feat(nodes,edges): add deletable flag

This commit is contained in:
moklick
2022-08-16 17:27:01 +02:00
parent aa175b4bef
commit ee5352df8f
4 changed files with 11 additions and 5 deletions
+4 -2
View File
@@ -121,11 +121,12 @@ const initialNodes: Node[] = [
data: {
label: (
<>
An <strong>output node</strong>
An <strong>output node (not deletable)</strong>
</>
),
},
position: { x: 100, y: 480 },
deletable: false,
},
{
id: '7',
@@ -151,7 +152,8 @@ const initialEdges: Edge[] = [
source: '5',
target: '6',
type: 'smoothstep',
label: 'smooth step edge',
deletable: false,
label: 'smooth step edge (not deletable)',
},
{
id: 'e5-7',