fix resetting nodes with width & height set not working

This commit is contained in:
peterkogo
2025-01-27 13:14:14 +01:00
parent 72b956f797
commit 55364e6298
3 changed files with 4 additions and 2 deletions
@@ -10,6 +10,8 @@
const node1: Node = {
id: 'c1',
data: { label: '1' },
width: 100,
height: 100,
position: { x: 0, y: 0 }
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@xyflow/svelte",
"version": "1.0.0-next.1",
"version": "1.0.0-next.2",
"description": "Svelte Flow - A highly customizable Svelte library for building node-based editors, workflow systems, diagrams and more.",
"keywords": [
"svelte",
@@ -57,7 +57,7 @@
let draggable = $derived(_draggable ?? store.nodesDraggable);
let selectable = $derived(_selectable ?? store.elementsSelectable);
let connectable = $derived(_connectable ?? store.nodesConnectable);
let initialized = $derived(nodeHasDimensions(node));
let initialized = $derived(nodeHasDimensions(node) && !!node.internals.handleBounds);
function isInParentLookup(id: string) {
return store.parentLookup.has(id);