Documentation / @finchart/tools / BarMeasure
Interface: BarMeasure
Defined in: tools/src/drawings.ts:200
A segment from a to b that reports how many bars lie between them — the pane's nearest bar at each end, counted by index in the data. The x mapping can't answer this: under a continuous mapping its domain is time, and time between two bars is not a bar count.
Extends
DrawingIdentity
Properties
a
a:
Anchor
Defined in: tools/src/drawings.ts:202
b
b:
Anchor
Defined in: tools/src/drawings.ts:203
id
id:
string
Defined in: tools/src/drawings.ts:74
Inherited from
DrawingIdentity.id
style?
optionalstyle?:Partial<LineStyle>
Defined in: tools/src/drawings.ts:85
Per-drawing override — the third layer of the same resolution the toolbox already does (theme variables → toolbox override → this). The same Partial<LineStyle> shape, deliberately: one leaf vocabulary (width·color·dashArray), not a second one.
The values are literals, not theme tokens — a canvas can't read var(), and this is a saved value. A drawing colored by hand keeps its color across a theme switch; absent means "the theme's".
Inherited from
DrawingIdentity.style
type
type:
"barMeasure"
Defined in: tools/src/drawings.ts:201