refactor(nodes): add computed attr for width/height and absolute position

This commit is contained in:
moklick
2023-11-21 15:06:42 +01:00
parent a27e813cf7
commit d812dbbe53
30 changed files with 177 additions and 134 deletions
+5 -2
View File
@@ -147,7 +147,7 @@ const createRFStore = ({
};
if (positionChanged) {
change.positionAbsolute = node.positionAbsolute;
change.positionAbsolute = node.computed?.positionAbsolute;
change.position = node.position;
}
@@ -276,7 +276,10 @@ const createRFStore = ({
return {
...node,
positionAbsolute,
computed: {
...node.computed,
positionAbsolute,
},
};
}),
});