Merge branch 'demo' into refactor/nodes-match-functionality
This commit is contained in:
@@ -46,15 +46,12 @@ function createNode(id: string, type: string, position: XYPosition, data: Record
|
||||
// Start and End don't need to apply the UUID, since they are technically never compiled into a program.
|
||||
const startNode = createNode('start', 'start', {x: 100, y: 100}, {label: "Start"}, false)
|
||||
const endNode = createNode('end', 'end', {x: 500, y: 100}, {label: "End"}, false)
|
||||
const initialPhaseNode = createNode(crypto.randomUUID(), 'phase', {x:200, y:100}, {label: "Phase 1", children : []})
|
||||
const initialPhaseNode = createNode(crypto.randomUUID(), 'phase', {x:200, y:100}, {label: "Phase 1", children : [], isFirstPhase: false, nextPhaseId: null})
|
||||
|
||||
const initialNodes : Node[] = [startNode, endNode, initialPhaseNode,];
|
||||
|
||||
// * Initial edges * /
|
||||
const initialEdges: Edge[] = [
|
||||
{ id: 'start-phase-1', source: startNode.id, target: initialPhaseNode.id },
|
||||
{ id: 'phase-1-end', source: initialPhaseNode.id, target: endNode.id },
|
||||
];
|
||||
// * Initial edges * /
|
||||
const initialEdges: Edge[] = []; // no initial edges as edge connect events don't fire when using initial edges
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user