refactor(internals): rename __rg to __rf

This commit is contained in:
moklick
2020-06-05 00:17:28 +02:00
parent 5bfe72f225
commit 5a3adab3a0
10 changed files with 37 additions and 37 deletions
+5 -5
View File
@@ -192,7 +192,7 @@ export const storeModel: StoreModel = {
// only update when size change
if (
!matchingNode ||
(matchingNode.__rg.width === dimensions.width && matchingNode.__rg.height === dimensions.height)
(matchingNode.__rf.width === dimensions.width && matchingNode.__rf.height === dimensions.height)
) {
return;
}
@@ -204,8 +204,8 @@ export const storeModel: StoreModel = {
state.nodes.forEach((n) => {
if (n.id === id) {
n.__rg = {
...n.__rg,
n.__rf = {
...n.__rf,
...dimensions,
handleBounds,
};
@@ -227,8 +227,8 @@ export const storeModel: StoreModel = {
state.nodes.forEach((n) => {
if (n.id === id) {
n.__rg = {
...n.__rg,
n.__rf = {
...n.__rf,
position,
};
}