Conditional Polygons

This commit is contained in:
Luis Fernando Molina committed 2020-05-07 12:37:03 +02:00
1 parent ad9133e13f
commit d23e4697fe
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -170,7 +170,7 @@ function newLayer () {
'Plotter Module->Plotter->' +
'Shapes->' +
'Chart Points->Point->Point Formula->' +
'Polygon->Polygon Body->Style->Style Condition->Style->' +
'Polygon->Polygon Condition->Polygon Body->Style->Style Condition->Style->' +
'Polygon Border->Style->Style Condition->Style->' +
'Polygon Vertex->Point->' +
'Plotter Panel->Javascript Code->Panel Data->Data Formula->'
+6
View File
@@ -598,6 +598,12 @@ function newPlotter () {
for (let j = 0; j < productDefinition.referenceParent.shapes.polygons.length; j++) {
let polygon = productDefinition.referenceParent.shapes.polygons[j]
/* We will check if we need to plot this Polygon or not. */
if (polygon.polygonCondition !== undefined) {
let mustPlot = eval(polygon.polygonCondition.code)
if (mustPlot !== true) { continue }
}
let calculatedStyle
/* Finding out the fill style */