chore(examples): only use bundle
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
||||
useEdgesState,
|
||||
MarkerType,
|
||||
EdgeMarker,
|
||||
} from '@react-flow/renderer';
|
||||
} from '@react-flow/bundle';
|
||||
|
||||
import dagre from 'dagre';
|
||||
|
||||
@@ -78,10 +78,7 @@ const LayoutFlow = () => {
|
||||
eds.map((e) => ({
|
||||
...e,
|
||||
markerEnd: {
|
||||
type:
|
||||
(e.markerEnd as EdgeMarker)?.type === MarkerType.Arrow
|
||||
? MarkerType.ArrowClosed
|
||||
: MarkerType.Arrow,
|
||||
type: (e.markerEnd as EdgeMarker)?.type === MarkerType.Arrow ? MarkerType.ArrowClosed : MarkerType.Arrow,
|
||||
},
|
||||
}))
|
||||
);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Node, Edge, XYPosition, MarkerType } from '@react-flow/core';
|
||||
import { Node, Edge, XYPosition, MarkerType } from '@react-flow/bundle';
|
||||
|
||||
const position: XYPosition = { x: 0, y: 0 };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user