fix(svelte): use node.style.width and node.style

This commit is contained in:
moklick
2023-11-21 16:03:07 +01:00
parent 24c999a335
commit a166129547
2 changed files with 3 additions and 11 deletions
@@ -48,16 +48,12 @@ const initialNodes: Node[] = [
position: Position.Bottom,
x: nodeSize.width * 0.5,
y: nodeSize.height,
width: 1,
height: 1,
},
{
type: 'target',
position: Position.Top,
x: nodeSize.width * 0.5,
y: 0,
width: 1,
height: 1,
},
],
},
@@ -72,16 +68,12 @@ const initialNodes: Node[] = [
position: Position.Bottom,
x: nodeSize.width * 0.5,
y: nodeSize.height,
width: 1,
height: 1,
},
{
type: 'target',
position: Position.Top,
x: nodeSize.width * 0.5,
y: 0,
width: 1,
height: 1,
},
],
},