11import React , { CSSProperties , useEffect } from 'react' ;
22import { ReactFlow , Controls , Background , MiniMap } from 'reactflow' ;
3- import { EmptyCanvas , useStudioProvier , Utils } from '@graphscope/studio-components' ;
3+ import { EmptyCanvas , useStudioProvier , Utils , useDynamicStyle } from '@graphscope/studio-components' ;
44import { nodeTypes } from '../elements/node-types' ;
55import { edgeTypes } from '../elements/edge-types' ;
66import ConnectionLine from '../elements/connection-line' ;
77import ArrowMarker from '../elements/arrow-marker' ;
88import { PlayCircleOutlined } from '@ant-design/icons' ;
99import ButtonController from '../button-controller' ;
10-
1110import useInteractive from './useInteractive' ;
1211import { FormattedMessage } from 'react-intl' ;
1312import { useGraphContext } from '..' ;
14- // import 'reactflow/dist/style.css';
1513import { useContext } from './useContext' ;
14+ import reactFLowStyle from './reactflowStyle'
15+
1616
1717interface ISchemaGraphProps {
1818 children ?: React . ReactNode ;
@@ -38,6 +38,7 @@ const SchemaGraph: React.FunctionComponent<ISchemaGraphProps> = props => {
3838 disabled = false ,
3939 graphId,
4040 } = useGraphContext ( ) ;
41+ useDynamicStyle ( reactFLowStyle , 'reactflow-dynamic-styles' ) ;
4142 const description = (
4243 < FormattedMessage
4344 id = "Start sketching a model, a vertex label is a named grouping or categorization of nodes within the graph dataset"
0 commit comments