fix: avoid render all nodes at first render if set width
This commit is contained in:
+2
-2
@@ -153,8 +153,8 @@ export const parseNode = (node: Node, nodeExtent: NodeExtent): Node => {
|
|||||||
type: node.type || 'default',
|
type: node.type || 'default',
|
||||||
__rf: {
|
__rf: {
|
||||||
position: clampPosition(node.position, nodeExtent),
|
position: clampPosition(node.position, nodeExtent),
|
||||||
width: null,
|
width: node.style?.width || null,
|
||||||
height: null,
|
height: node.style?.height || null,
|
||||||
handleBounds: {},
|
handleBounds: {},
|
||||||
isDragging: false,
|
isDragging: false,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user