Skip to content

DSL support for fillStyle and node-level style customization #22

Description

@simonkuang

Feature Request

I would like to be able to set the fillStyle option for closed elements (like rectangles, diamonds, ellipses, etc.) directly in the DSL syntax, not just in code or DOT format. Currently, the DSL supports only node type, label and standard directives, but doesn't allow for fine-grained node-level style customization.

Example of desired syntax

(Start) -> [Enter Credentials @fillStyle:hachure] -> {Valid?}
{Valid?} -> "yes" -> [Dashboard] -> (End)
{Valid?} -> "no" -> [Show Error @fillStyle:hachure] -> [Enter Credentials]

Or, even better, a syntax like:

@node [Enter Credentials]
  fillStyle: hachure
  backgroundColor: #a5d8ff

Motivation:

  • More visually expressive diagrams
  • Parity with DOT/style capabilities
  • Avoids switching to JSON or DOT for style features

Expected:

  • DSL nodes support fillStyle: hachure (or other style attributes)
  • Prefer inline or directive syntax, as shown above

Can this be implemented in a future release?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions