Performance Improvements

This commit is contained in:
Luis Fernando Molina committed 2020-02-12 18:40:33 +01:00
1 parent c270163a83
commit e8eaa7168f
5 files changed
+37 -22

No files matched your search

+7 -3
View File
@@ -87,6 +87,8 @@ function newWorkspace () {
}
functionLibraryUiObjectsFromNodes.recreateWorkspace(thisObject.workspaceNode)
thisObject.enabled = true
setInterval(saveWorkspace, 5000)
} catch (err) {
if (ERROR_LOG === true) { logger.write('[ERROR] initialize -> err = ' + err.stack) }
}
@@ -108,11 +110,13 @@ function newWorkspace () {
functionLibraryReferenceAttachDetach.referenceAttachNode(node, attachToNode, thisObject.workspaceNode.rootNodes)
}
function physics () {
if (thisObject.enabled !== true) { return }
function saveWorkspace () {
let textToSave = stringifyWorkspace()
window.localStorage.setItem(CANVAS_APP_NAME + '.' + 'Workspace', textToSave)
}
function physics () {
if (thisObject.enabled !== true) { return }
if (workingAtTask > 0) {
circularProgressBar.physics()