From 0a0d171daa7654330235cdbb9f80fd7f7a9d11a8 Mon Sep 17 00:00:00 2001 From: Alessandro Date: Mon, 28 Jul 2025 16:05:20 +0200 Subject: [PATCH] update examples --- examples/react/src/examples/Edges/index.tsx | 14 ++++++++----- .../src/routes/examples/edges/+page.svelte | 20 ++++++++++++++----- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/examples/react/src/examples/Edges/index.tsx b/examples/react/src/examples/Edges/index.tsx index 5ef76859..820a48c5 100644 --- a/examples/react/src/examples/Edges/index.tsx +++ b/examples/react/src/examples/Edges/index.tsx @@ -198,20 +198,22 @@ const initialEdges: Edge[] = [ id: 'e4-11', source: '4', target: '11', - label: 'Explicit Red Color (should override CSS)', + label: 'Explicit Blue Prop Color (should override CSS)', + className: 'css-variable-edge', markerEnd: { type: MarkerType.ArrowClosed, - color: '#ff0000', + color: '#0000ff', }, }, { id: 'e4-12', source: '4', target: '12', - label: 'No Explicit Color (should use CSS variable)', + label: 'Marker No Prop Color (should use CSS variable)', + className: 'css-variable-edge', markerEnd: { type: MarkerType.ArrowClosed, - color: null, + color: undefined, }, }, ]; @@ -240,10 +242,12 @@ const EdgesFlow = () => {
@@ -182,6 +190,7 @@ bind:edges {edgeTypes} fitView + {defaultEdgeOptions} nodeDragThreshold={2} onbeforeconnect={(connection) => { console.log('on edge create', connection); @@ -198,8 +207,9 @@