chore(examples): only use bundle
This commit is contained in:
@@ -10,10 +10,10 @@ import {
|
||||
addEdge,
|
||||
applyEdgeChanges,
|
||||
EdgeChange,
|
||||
} from '@react-flow/core';
|
||||
import { Controls } from '@react-flow/controls';
|
||||
import { Background } from '@react-flow/background';
|
||||
import { MiniMap } from '@react-flow/minimap';
|
||||
Controls,
|
||||
Background,
|
||||
MiniMap,
|
||||
} from '@react-flow/bundle';
|
||||
|
||||
import { getNodesAndEdges } from './utils';
|
||||
|
||||
|
||||
@@ -1,14 +1,11 @@
|
||||
import { Node, Edge } from '@react-flow/core';
|
||||
import { Node, Edge } from '@react-flow/bundle';
|
||||
|
||||
type ElementsCollection = {
|
||||
nodes: Node[];
|
||||
edges: Edge[];
|
||||
};
|
||||
|
||||
export function getNodesAndEdges(
|
||||
xElements: number = 10,
|
||||
yElements: number = 10
|
||||
): ElementsCollection {
|
||||
export function getNodesAndEdges(xElements = 10, yElements = 10): ElementsCollection {
|
||||
const initialNodes = [];
|
||||
const initialEdges: Edge[] = [];
|
||||
let nodeId = 1;
|
||||
|
||||
Reference in New Issue
Block a user