How to change node/edge/text color dynamically #762
Answered
by
planger
sathya-1994
asked this question in
Q&A
-
I am using GLSP's vscode extension. I want to change node, edge and text color dynamically (edit the colors) and save these details in the .wf file. Currently css classes related to colors are present in the webview.js file which we cannot edit dynamically. |
Beta Was this translation helpful? Give feedback.
Answered by
planger
Oct 11, 2022
Replies: 1 comment
-
You could do that by creating custom view implementations that read certain attributes from the input GModel node (e.g. an attribute specifying the color code) and directly output it into the SVG elements' style attributes. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tortmayr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could do that by creating custom view implementations that read certain attributes from the input GModel node (e.g. an attribute specifying the color code) and directly output it into the SVG elements' style attributes.