Refactor: CSS handling (#2344)
* refactor(css): only load base styles, add css task, cleanup exports * style(base): add edge label bg * refactor(css): use css-utils * feat(core): add Panel component * refactor(background): cleanup * refactor(css-handling): cleanup
This commit is contained in:
@@ -4,7 +4,8 @@ import React, {
|
||||
useCallback,
|
||||
} from 'react';
|
||||
|
||||
import ReactFlow, {
|
||||
import {
|
||||
ReactFlow,
|
||||
addEdge,
|
||||
Node,
|
||||
Viewport,
|
||||
@@ -17,9 +18,9 @@ import ReactFlow, {
|
||||
OnSelectionChangeParams,
|
||||
} from '@react-flow/core';
|
||||
|
||||
import Controls from '@react-flow/controls';
|
||||
import Background from '@react-flow/background';
|
||||
import MiniMap from '@react-flow/minimap';
|
||||
import { Controls } from '@react-flow/controls';
|
||||
import { Background } from '@react-flow/background';
|
||||
import { MiniMap } from '@react-flow/minimap';
|
||||
|
||||
const onNodeDragStart = (_: ReactMouseEvent, node: Node, nodes: Node[]) =>
|
||||
console.log('drag start', node, nodes);
|
||||
|
||||
Reference in New Issue
Block a user