Saving and Loading Frame position

This commit is contained in:
Luis Fernando Molina committed 2020-01-17 15:27:06 +01:00
1 parent b5dd022c0f
commit 0df490bd1f
6 files changed
+63 -22

No files matched your search

@@ -157,6 +157,18 @@ function newProtocolNode () {
}
}
if (node.payload.frame !== undefined) {
savedPayload.frame = {
position: {
x: node.payload.frame.position.x,
y: node.payload.frame.position.y
},
width: node.payload.frame.width,
height: node.payload.frame.height,
radius: node.payload.frame.radius
}
}
if (includeReferencesInSavedPayload) {
/* Next for the ones that have a reference parent, we include it */
if (node.payload.referenceParent !== undefined) {