diff --git a/Projects/Superalgos/Schemas/Docs-Nodes/layer-manager.json b/Projects/Superalgos/Schemas/Docs-Nodes/layer-manager.json index 8fa5cf312..7388ddbc7 100644 --- a/Projects/Superalgos/Schemas/Docs-Nodes/layer-manager.json +++ b/Projects/Superalgos/Schemas/Docs-Nodes/layer-manager.json @@ -48,7 +48,7 @@ }, { "style": "Text", - "text": " \"label2FontSize\": 12" + "text": " \"labelTwoFontSize\": 12" }, { "style": "Text", @@ -64,7 +64,7 @@ }, { "style": "List", - "text": "label2FontSize allows adjusting the font size of the second-order label of each layer, displaying the name of the exchange and market." + "text": "labelTwoFontSize allows adjusting the font size of the second-order label of each layer, displaying the name of the exchange and market." } ] } \ No newline at end of file diff --git a/Projects/Superalgos/UI/Spaces/Panel-Space/Layer.js b/Projects/Superalgos/UI/Spaces/Panel-Space/Layer.js index 16f279831..5a75e38e8 100644 --- a/Projects/Superalgos/UI/Spaces/Panel-Space/Layer.js +++ b/Projects/Superalgos/UI/Spaces/Panel-Space/Layer.js @@ -661,18 +661,18 @@ function newLayer() { UI.projects.superalgos.utilities.drawPrint.roundedCornersBackground(params) let parentLabel1FontSize = UI.projects.superalgos.utilities.nodeConfig.loadPropertyFromNodeConfig(thisObject.payload.parentNode.payload, 'label1FontSize') - let parentLabel2FontSize = UI.projects.superalgos.utilities.nodeConfig.loadPropertyFromNodeConfig(thisObject.payload.parentNode.payload, 'label2FontSize') + let parentlabelTwoFontSize = UI.projects.superalgos.utilities.nodeConfig.loadPropertyFromNodeConfig(thisObject.payload.parentNode.payload, 'labelTwoFontSize') let parentLabel3FontSize = UI.projects.superalgos.utilities.nodeConfig.loadPropertyFromNodeConfig(thisObject.payload.parentNode.payload, 'label3FontSize') let label1FontSize = UI.projects.superalgos.utilities.nodeConfig.loadPropertyFromNodeConfig(thisObject.payload, 'label1FontSize') - let label2FontSize = UI.projects.superalgos.utilities.nodeConfig.loadPropertyFromNodeConfig(thisObject.payload, 'label2FontSize') + let labelTwoFontSize = UI.projects.superalgos.utilities.nodeConfig.loadPropertyFromNodeConfig(thisObject.payload, 'labelTwoFontSize') let label3FontSize = UI.projects.superalgos.utilities.nodeConfig.loadPropertyFromNodeConfig(thisObject.payload, 'label3FontSize') if (parentLabel1FontSize !== undefined) { label1FontSize = parentLabel1FontSize } - if (parentLabel2FontSize !== undefined) { - label2FontSize = parentLabel2FontSize + if (parentlabelTwoFontSize !== undefined) { + labelTwoFontSize = parentlabelTwoFontSize } if (parentLabel3FontSize !== undefined) { label3FontSize = parentLabel3FontSize @@ -686,8 +686,8 @@ function newLayer() { } } - if (label2FontSize === undefined) { - label2FontSize = 10 + if (labelTwoFontSize === undefined) { + labelTwoFontSize = 10 } if (label3FontSize === undefined) { @@ -695,7 +695,7 @@ function newLayer() { } UI.projects.superalgos.utilities.drawPrint.drawLabel(label1, 1 / 2, 5.2 / 10, -5, 0, label1FontSize, thisObject.container) - UI.projects.superalgos.utilities.drawPrint.drawLabel(label2, 1 / 2, 8.2 / 10, -5, 0, label2FontSize, thisObject.container) + UI.projects.superalgos.utilities.drawPrint.drawLabel(label2, 1 / 2, 8.2 / 10, -5, 0, labelTwoFontSize, thisObject.container) UI.projects.superalgos.utilities.drawPrint.drawLabel(label3, 1 / 2, 9.5 / 10, -5, 0, label3FontSize, thisObject.container) drawProgressBar(marketFileProgressBar, 2, -45 + 18)