From b9b4830b333d48df8dad4467aaf5d6ab1d8f2a5c Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 13 Dec 2019 07:47:55 +0100 Subject: [PATCH] small fixes --- DesignerSpace/Workspace/Workspace.js | 2 +- Panels/PlotterPanel.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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