docs: add intersection example

This commit is contained in:
braks
2022-11-06 11:03:08 +01:00
committed by Braks
parent a2e260fbaf
commit 8e3864dc09
10 changed files with 109 additions and 12 deletions
@@ -0,0 +1,7 @@
export const initialElements = [
{ id: '1', label: 'Node 1', position: { x: 0, y: 0 } },
{ id: '2', label: 'Node 2', position: { x: 400, y: 400 } },
{ id: '3', label: 'Node 3', position: { x: 400, y: 0 } },
{ id: '4', label: 'Node 4', position: { x: 0, y: 400 } },
{ id: '5', style: { borderColor: 'red' }, label: 'Drag me over another node', position: { x: 200, y: 200 } },
]