chore(react/svelte): rename node.dimensions to node.size

This commit is contained in:
moklick
2023-10-09 17:04:11 +02:00
parent d78b2aad6f
commit afa6365e12
8 changed files with 31 additions and 28 deletions
+2 -2
View File
@@ -85,8 +85,8 @@ function toHandleBounds(handles?: HandleElement[]) {
function getHandleDataByNode(node?: NodeBase): [Rect, NodeHandleBounds | null, boolean] {
const handleBounds = node?.[internalsSymbol]?.handleBounds || toHandleBounds(node?.handles) || null;
const nodeWidth = node?.width || node?.dimensions?.width;
const nodeHeight = node?.height || node?.dimensions?.height;
const nodeWidth = node?.width || node?.size?.width;
const nodeHeight = node?.height || node?.size?.height;
const isValid =
handleBounds &&