text styke to panels
This commit is contained in:
1 parent
f427b49c2e
commit
a0a1ae99d7
2 files changed
+12
-2
No files matched your search
+1
-1
@@ -187,7 +187,7 @@ function newLayer() {
|
||||
'Polygon Vertex->Point->' +
|
||||
'Image->Image Condition->Image Position->Point->' +
|
||||
'Text->Text Condition->Text Position->Point->Text Formula->Text Style->' +
|
||||
'Plotter Panel->Javascript Code->Panel Data->Data Formula->' +
|
||||
'Plotter Panel->Javascript Code->Panel Data->Data Formula->Text Style->' +
|
||||
'Nodes Highlights->Nodes Values->Nodes Errors->Nodes Warnings->Nodes Infos->Nodes Status->Nodes Progress->Nodes Running->Nodes Announcements->Record Values->'
|
||||
thisObject.definition = functionLibraryProtocolNode.getProtocolNode(thisObject.payload.node, false, true, true, false, false, lightingPath)
|
||||
|
||||
|
||||
+11
-1
@@ -167,8 +167,18 @@ function newPlotterPanel() {
|
||||
valuePosition = panelData.config.valuePosition
|
||||
}
|
||||
|
||||
let opacity = '1.00'
|
||||
let fontSize = 14
|
||||
let paletteColor
|
||||
|
||||
if (panelData.textStyle !== undefined) {
|
||||
if (panelData.textStyle.config.fontSize !== undefined) { fontSize = panelData.textStyle.config.fontSize }
|
||||
if (panelData.textStyle.config.opacity !== undefined) { opacity = panelData.textStyle.config.opacity }
|
||||
if (panelData.textStyle.config.paletteColor !== undefined) { paletteColor = eval(panelData.textStyle.config.paletteColor) }
|
||||
}
|
||||
|
||||
printLabel(labelText, X_AXIS, UI_PANEL.HEIGHT.NORMAL * labelPosition / 100 / heightFactor, '0.60', undefined, undefined, true, thisObject.container, thisObject.fitFunction)
|
||||
printLabel(value, X_AXIS, UI_PANEL.HEIGHT.NORMAL * valuePosition / 100 / heightFactor, '1.00', 14, undefined, true, thisObject.container, thisObject.fitFunction, false, true)
|
||||
printLabel(value, X_AXIS, UI_PANEL.HEIGHT.NORMAL * valuePosition / 100 / heightFactor, opacity, fontSize, paletteColor, true, thisObject.container, thisObject.fitFunction, false, true)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user