Setting lifeline style of lifeline created by _evt #22

Open
opened 2026-01-17 18:45:28 +00:00 by realmayus · 2 comments

Hi, how do I change the color of a lifeline that was created using _evt("foo", "enable")?

Is it maybe possible to create it invisibly using _seq so I can set the lifeline style?

Hi, how do I change the color of a lifeline that was created using `_evt("foo", "enable")`? Is it maybe possible to create it invisibly using `_seq` so I can set the lifeline style?
Owner

It looks like lifeline style is not exposed as a parameter of _evt
As a workaround, you can directly write the full element like so:

#chronos.diagram({
  import chronos: *

  ((
    type: "evt",
    participant: "a",
    event: "enable",
    lifeline-style: (fill: red)
  ),)
  
  _seq("a", "b")

  _seq("b", "a", disable-dst: true)
})
It looks like lifeline style is not exposed as a parameter of `_evt` As a workaround, you can directly write the full element like so: ```typst #chronos.diagram({ import chronos: * (( type: "evt", participant: "a", event: "enable", lifeline-style: (fill: red) ),) _seq("a", "b") _seq("b", "a", disable-dst: true) }) ```
Author

Awesome, thank you!

Awesome, thank you!
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: HEL/chronos#22
No description provided.