Skip to content

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.

readonly height: number

Defined in: core/src/layout/bars.ts:69

Height: barHeight, at most the row height.


readonly id: TaskId

Defined in: core/src/layout/bars.ts:57

The task id (from the row).


readonly kind: BarKind

Defined in: core/src/layout/bars.ts:61

'bar' or 'milestone'.


readonly progressWidth: number

Defined in: core/src/layout/bars.ts:73

Width of the done part from x, 0 … width; always 0 for a milestone.


readonly radius: number

Defined in: core/src/layout/bars.ts:71

Corner radius, at most half the height and half the width.


readonly rowIndex: number

Defined in: core/src/layout/bars.ts:59

Index of the row (RowMetrics.index).


readonly width: number

Defined in: core/src/layout/bars.ts:67

Width, 0 or more: from start to endExclusive; a milestone’s box is height wide.


readonly x: number

Defined in: core/src/layout/bars.ts:63

Left edge: the start (a milestone’s box starts half a bar height before it).


readonly y: number

Defined in: core/src/layout/bars.ts:65

Top edge: the bar is centred vertically in its row.