refactor(nodes): rename computed to measured, add helpers

This commit is contained in:
moklick
2024-04-03 14:54:24 +02:00
parent f45f50671d
commit ea18e46a1a
32 changed files with 159 additions and 226 deletions
+5 -5
View File
@@ -65,9 +65,9 @@ export function getDragItems<NodeType extends NodeBase>(
internals: {
positionAbsolute: internalNode.internals.positionAbsolute || { x: 0, y: 0 },
},
computed: {
width: internalNode.computed.width || 0,
height: internalNode.computed.height || 0,
measured: {
width: internalNode.measured.width || 0,
height: internalNode.measured.height || 0,
},
});
}
@@ -93,8 +93,8 @@ export function getEventHandlerParams<NodeType extends NodeBase>({
return {
...node,
position: n.position,
computed: {
...n.computed,
measured: {
...n.measured,
},
};
});