wavedrom icon indicating copy to clipboard operation
wavedrom copied to clipboard

Feature Request: Absolute Timing Markers

Open jwcxz opened this issue 9 years ago • 2 comments

Oftentimes, it is useful in a diagram to clearly mark certain absolute times and reference them later.

A simple mockup (zipped because GitHub isn't letting me attach a PDF): example-mockup.zip

In this example, I've created two markers, T1 and T2 at tick 2 and tick 4 respectively. A bonus nice-to-have would be support for coloring the marker line with a custom color as shown in T2.

Maybe the syntax could be something like:

{
    signal: [...],
    edge: [...],
    marker: [
        { text: 'T1', tick: 2 },
        { text: [ 'tspan', { fill: 'red' }, 'T2' ], tick: 4 }
    ]
}

Perhaps it could support putting markers on tick or tock.

I found a similar request here but didn't want to revive a dead thread.

jwcxz avatar Jul 06 '16 12:07 jwcxz

@jwcxz inserted your example as Bitmap:

screenshot_20160712_235756

drom avatar Jul 13 '16 06:07 drom

that will be great if we could specify the position of marker

{
    signal: [...],
    edge: [...],
    marker: [
        { text: 'T1', tick: 2 },
        { text: [ 'tspan', { fill: 'red' }, 'T2' ], tick: 4, pos: 0.1 } // default pos:0.5
    ]
}

heartacker avatar Aug 19 '21 08:08 heartacker