You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a node defined as follows: decision_Review@{shape: hex, label: Review. OK?}. This draws a hexagon with the label "Review. OK?"
I can also define a class for decision nodes: classDef decision fill:Green,stroke:Blue,stroke-width:4px;
I can apply this class to the node like this: decision_Review:::decision@{shape: hex, label: Review. OK?}. This works.
Question: Is it possible to include the shape definition in the class definition? Then I could just use something like: decision_Review:::decision@{label: Review. OK?}
Question: Is there a simpler syntax to create a node, give it a label, and then rely on class styling to give it the shape, color etc?
I can also supposedly use class decision_Review decision; to apply the class to the node, but this doesn't seem to work - unless I put this AFTER the node creation.
Question/Suggestion: It would be very nice if I could use a wildcard to assign classes to nodes, like this: class decision_* decision;, which would assign "decision" to all nodes starting with "decision_"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a node defined as follows:
decision_Review@{shape: hex, label: Review. OK?}. This draws a hexagon with the label "Review. OK?"I can also define a class for decision nodes:
classDef decision fill:Green,stroke:Blue,stroke-width:4px;I can apply this class to the node like this:
decision_Review:::decision@{shape: hex, label: Review. OK?}. This works.Question: Is it possible to include the shape definition in the class definition? Then I could just use something like:
decision_Review:::decision@{label: Review. OK?}Question: Is there a simpler syntax to create a node, give it a label, and then rely on class styling to give it the shape, color etc?
I can also supposedly use
class decision_Review decision;to apply the class to the node, but this doesn't seem to work - unless I put this AFTER the node creation.Question/Suggestion: It would be very nice if I could use a wildcard to assign classes to nodes, like this:
class decision_* decision;, which would assign "decision" to all nodes starting with "decision_"Beta Was this translation helpful? Give feedback.
All reactions