diff --git a/Projects/Superalgos/Function-Libraries/UiObjectsFromNodes.js b/Projects/Superalgos/Function-Libraries/UiObjectsFromNodes.js index 07e48cc17..777ba8420 100644 --- a/Projects/Superalgos/Function-Libraries/UiObjectsFromNodes.js +++ b/Projects/Superalgos/Function-Libraries/UiObjectsFromNodes.js @@ -609,7 +609,7 @@ function newUiObjectsFromNodes() { frame.width = node.savedPayload.frame.width frame.height = node.savedPayload.frame.height frame.radius = node.savedPayload.frame.radius - saveFrame(payload, frame) + UI.projects.superalgos.utilities.loadSaveFrame.saveFrame(payload, frame) } if (node.savedPayload.tutorial !== undefined) { let tutorial = { diff --git a/Projects/Superalgos/Spaces/Charting-Space/TimeMachine.js b/Projects/Superalgos/Spaces/Charting-Space/TimeMachine.js index 58bcc4126..c41bbd3c8 100644 --- a/Projects/Superalgos/Spaces/Charting-Space/TimeMachine.js +++ b/Projects/Superalgos/Spaces/Charting-Space/TimeMachine.js @@ -141,9 +141,9 @@ function newTimeMachine() { function initialize(callBackFunction) { timeFrame = INITIAL_TIME_PERIOD - loadFrame(thisObject.payload, thisObject.container.frame) + UI.projects.superalgos.utilities.loadSaveFrame.loadFrame(thisObject.payload, thisObject.container.frame) setInitialPosition() - saveFrame(thisObject.payload, thisObject.container.frame) + UI.projects.superalgos.utilities.loadSaveFrame.saveFrame(thisObject.payload, thisObject.container.frame) recalculateCoordinateSystem() recalculateCurrentDatetime() @@ -383,7 +383,7 @@ function newTimeMachine() { thisObject.edgeEditor.physics() timeMachineCoordinateSystem.physics() - saveFrame(thisObject.payload, thisObject.container.frame) + UI.projects.superalgos.utilities.loadSaveFrame.saveFrame(thisObject.payload, thisObject.container.frame) if (thisObject.container.frame.isInViewPort()) { childrenPhysics() syncWithDesigner() diff --git a/Projects/Superalgos/Spaces/Charting-Space/Viewport.js b/Projects/Superalgos/Spaces/Charting-Space/Viewport.js index 75f814f37..9aaff8ef6 100644 --- a/Projects/Superalgos/Spaces/Charting-Space/Viewport.js +++ b/Projects/Superalgos/Spaces/Charting-Space/Viewport.js @@ -86,7 +86,7 @@ function newViewport() { y: 0 } } - loadFrame(thisObject.payload, frame) + UI.projects.superalgos.utilities.loadSaveFrame.loadFrame(thisObject.payload, frame) if (!isNaN(frame.position.x)) { position.x = frame.position.x } @@ -177,7 +177,7 @@ function newViewport() { /* Save the position at the frame lavel */ let frame = {} frame.position = position - saveFrame(thisObject.payload, frame) + UI.projects.superalgos.utilities.loadSaveFrame.saveFrame(thisObject.payload, frame) } function animationPhysics() { diff --git a/Projects/Superalgos/Spaces/Panel-Space/LayersPanel.js b/Projects/Superalgos/Spaces/Panel-Space/LayersPanel.js index 9540816cb..d50d348b8 100644 --- a/Projects/Superalgos/Spaces/Panel-Space/LayersPanel.js +++ b/Projects/Superalgos/Spaces/Panel-Space/LayersPanel.js @@ -78,7 +78,7 @@ function newLayersPanel() { } thisObject.container.frame.position = position - loadFrame(thisObject.payload, thisObject.container.frame) + UI.projects.superalgos.utilities.loadSaveFrame.loadFrame(thisObject.payload, thisObject.container.frame) thisObject.upDownButton = newUpDownButton() thisObject.upDownButton.parentContainer = thisObject.container @@ -346,7 +346,7 @@ function newLayersPanel() { thisObject.upDownButton.physics() thisObject.leftRightButton.physics() - saveFrame(thisObject.payload, thisObject.container.frame) + UI.projects.superalgos.utilities.loadSaveFrame.saveFrame(thisObject.payload, thisObject.container.frame) syncWithConfigPhysics() /*