small fixes

This commit is contained in:
Luis Fernando Molina committed 2019-12-13 07:47:55 +01:00
1 parent d3a5e40948
commit b9b4830b33
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -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)
+6
View File
@@ -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