fix: avoid render all nodes at first render if set width

This commit is contained in:
doctoroyy
2021-10-15 21:11:28 +08:00
committed by GitHub
parent fa3554060b
commit 38f18d89d7
+2 -2
View File
@@ -153,8 +153,8 @@ export const parseNode = (node: Node, nodeExtent: NodeExtent): Node => {
type: node.type || 'default',
__rf: {
position: clampPosition(node.position, nodeExtent),
width: null,
height: null,
width: node.style?.width || null,
height: node.style?.height || null,
handleBounds: {},
isDragging: false,
},