diff --git a/DesignerSpace/Workspace/Workspace.js b/DesignerSpace/Workspace/Workspace.js index 72550bd0d..c36212303 100644 --- a/DesignerSpace/Workspace/Workspace.js +++ b/DesignerSpace/Workspace/Workspace.js @@ -316,7 +316,7 @@ function newWorkspace () { if (nodeName === undefined) { nodeName = '' } else { - nodeName = '.' + nodeName + nodeName = ' ' + nodeName } let fileName = 'Backup - ' + payload.node.type + ' - ' + nodeName + '.json' download(fileName, text) diff --git a/Panels/PlotterPanel.js b/Panels/PlotterPanel.js index 92c3834fa..e014bc4f1 100644 --- a/Panels/PlotterPanel.js +++ b/Panels/PlotterPanel.js @@ -86,6 +86,10 @@ function newPlotterPanel () { if (currentRecord === undefined) { return } if (currentRecord.data === undefined) { return } + + let record = currentRecord.data + + /* First we execute code if provided. */ if (panelNode.javascriptCode !== undefined) { try { eval(panelNode.javascriptCode.code) @@ -94,6 +98,8 @@ function newPlotterPanel () { } } + /* Second we go through the panel labels. */ + function printLabel (labelToPrint, x, y, opacity) { let labelPoint let fontSize = 10