BarGeometry
Defined in: core/src/layout/bars.ts:55
Where a bar lies, in body pixels (y = 0 at the top of the first row, x in time scale
pixels). Values are unrounded floats: snapping to device pixels is the renderer’s job. Frozen.
For a milestone, x … x + width and y … y + height are the bounding box of the diamond: a
square of barHeight centred on the start, whose corners touch the middle of each side.
Properties
Section titled “Properties”height
Section titled “height”
readonlyheight:number
Defined in: core/src/layout/bars.ts:69
Height: barHeight, at most the row height.
readonlyid:TaskId
Defined in: core/src/layout/bars.ts:57
The task id (from the row).
readonlykind:BarKind
Defined in: core/src/layout/bars.ts:61
'bar' or 'milestone'.
progressWidth
Section titled “progressWidth”
readonlyprogressWidth:number
Defined in: core/src/layout/bars.ts:73
Width of the done part from x, 0 … width; always 0 for a milestone.
radius
Section titled “radius”
readonlyradius:number
Defined in: core/src/layout/bars.ts:71
Corner radius, at most half the height and half the width.
rowIndex
Section titled “rowIndex”
readonlyrowIndex:number
Defined in: core/src/layout/bars.ts:59
Index of the row (RowMetrics.index).
readonlywidth:number
Defined in: core/src/layout/bars.ts:67
Width, 0 or more: from start to endExclusive; a milestone’s box is height wide.
readonlyx:number
Defined in: core/src/layout/bars.ts:63
Left edge: the start (a milestone’s box starts half a bar height before it).
readonlyy:number
Defined in: core/src/layout/bars.ts:65
Top edge: the bar is centred vertically in its row.