User Activity

  • Posted a comment on ticket #41 on WebVisu

    Hi Frank Thank you very much for taking your time to answer our question, we really appreciate this. We spent some time yesterday and figured out the drawing part of it as well. Regarding your question, the expr-*-color - that always reference variables, are used when one adds variable names to this dialog in CoDeSys Element Configuration - Colorvariables: We only implemented the "Fill Color" variable for now, as this currently suffices. The parsing code used (codesys.pp.js, inserted at line 742),...

  • Posted a comment on ticket #41 on WebVisu

    I currently have no running system here, but I guess this should be the way: var exprFillColor = []; var expr_fillColor = $myMedia.find('expr-fill-color'); if (expr_fillColor.length) { exprFillColor = parseExpression(expr_fillColor); // get value from visuVariables // name is e.g. ".dwFarbe_F1" - value e.g. "4,418284,4,5" exprFillColorRAW = visuVariables[exprFillColor]; // convert to RGB exprFillColorRGB = TODOCONVERT(exprFillColorRAW); // overwrite fill_color fill_color = exprFillColorRGB; }

  • Posted a comment on ticket #41 on WebVisu

    I feel like this case is not supported yet, so we could read the variables from xml and look for the correct one at this place, would this work?

  • Posted a comment on ticket #41 on WebVisu

    I will add some info that we already gathered: The parsing most likely needs to be added in codesys.pp.js at line 741. var exprFillColor = []; var expr_fillColor = $myMedia.find('expr-fill-color'); if (expr_fillColor.length) { exprFillColor = parseExpression(expr_fillColor); // Read out value from visuVariables? // convert to RGB? // overwrite fill_color }

  • Created ticket #41 on WebVisu

    How can we add support for expr-fill-color?

View All

Personal Data

Username:
vali-dan
Joined:
2022-02-15 15:19:11.581000

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB