added better example for svelte
This commit is contained in:
@@ -111,9 +111,10 @@
|
|||||||
{
|
{
|
||||||
id: '5a',
|
id: '5a',
|
||||||
type: 'defaultResizer',
|
type: 'defaultResizer',
|
||||||
data: { label: 'Child' },
|
data: { label: 'Child with extent parent' },
|
||||||
position: { x: 50, y: 50 },
|
position: { x: 50, y: 50 },
|
||||||
parentNode: '5',
|
parentNode: '5',
|
||||||
|
extent: 'parent',
|
||||||
style: nodeStyle
|
style: nodeStyle
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -137,6 +138,7 @@
|
|||||||
maxZoom={5}
|
maxZoom={5}
|
||||||
snapGrid={snapToGrid ? [10, 10] : undefined}
|
snapGrid={snapToGrid ? [10, 10] : undefined}
|
||||||
fitView
|
fitView
|
||||||
|
nodeOrigin={[0.5, 0.5]}
|
||||||
>
|
>
|
||||||
<Controls />
|
<Controls />
|
||||||
<Panel position="bottom-right">
|
<Panel position="bottom-right">
|
||||||
|
|||||||
Reference in New Issue
Block a user