[Style][Timing] Allow stereotype on Timing diagram

0 votes
asked Apr 20, 2022 in Wanted features by The-Lu (67,080 points)

Hello PlantUML team,

  • Could you allow stereotype on Timing diagram?

Ref. :

Here is a proposal example:

@startuml
<style>
timingDiagram {
  .red {
    LineColor red
  }
}
</style>
clock clk with period 1
binary "Input Signal 1"  as IS1
binary "Input Signal 2"  as IS2
binary "Output Signal 1" as OS1 <<red>>

@0
IS1 is low
IS2 is high
OS1 is low
@2
OS1 is high
@4
OS1 is low
@5
IS1 is high
OS1 is high
@6
IS2 is low
@10
IS1 is low
OS1 is low
@enduml

This is only a proposal, and if that can help for a wanted feature... (for PlantUML team)
Regards.

commented Apr 20, 2022 by The-Lu (67,080 points)

1 Answer

0 votes
answered May 4, 2022 by plantuml (295,000 points)
selected May 4, 2022 by The-Lu
 
Best answer

Thanks for the idea.

This has been implemented in last release.

commented Apr 22 by The-Lu (67,080 points)

Hi PlantUML team,

It's good for everything except for `clock`...

  • Could you also manage `clock`?

Here is an example:

@startuml
<style>
timingDiagram {
  .red {
    LineColor red
  }
  .blue {
    LineColor blue
    LineThickness 3
  }
}
</style>

clock   "Clock_0"   as C0 with period 50 <<red>>
clock   "Clock_1"   as C1 with period 50 pulse 15 offset 10 <<blue>>
binary  "Binary"  as B <<blue>>
concise "Concise" as C <<red>>
robust  "Robust"  as R <<blue>>
analog  "Analog"  as A <<red>>

@0
C is Idle
R is Idle
A is 0

@100
B is high
C is Waiting
R is Processing
A is 3

@300
R is Waiting
A is 1
@enduml

See similar request here:

Regards,
Th.

...