wavedrom
wavedrom copied to clipboard
label rect calculation for arcs
Hi, I am wondering about this: https://github.com/wavedrom/wavedrom/blob/master/lib/render-label.js#L12 This is supposed to be w/2, but implicitly casts to int. Hence, the rect is not centered, but a bit offset due to the rounding error. For the sake of cleanness it should probably better be
x: -(w/2),
Best, Stefan