chore(examples): only use bundle

This commit is contained in:
moklick
2022-08-09 18:55:32 +02:00
parent affae72f7e
commit 0f835a2961
48 changed files with 194 additions and 513 deletions
+2 -5
View File
@@ -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 };