API reference: @salmonui/export/gantt
GanttPdfBarinterface
import type { GanttPdfBar } from '@salmonui/export/gantt';interface GanttPdfBar {
readonly row: number;
readonly kind: GanttPdfBarKind;
readonly x: number;
readonly width: number;
readonly top: number;
readonly height: number;
readonly progress: number;
readonly color: string;
readonly progressColor: string;
readonly critical?: boolean;
readonly segments?: readonly {
readonly x: number;
readonly width: number;
}[];
readonly label?: string;
}
One bar of the chart, in px; row indexes GanttPdfModel.rows, top / height are inside the row.
| Name | Signature | Description |
|---|---|---|
row | readonly row: number; | |
kind | readonly kind: GanttPdfBarKind; | |
x | readonly x: number; | |
width | readonly width: number; | |
top | readonly top: number; | |
height | readonly height: number; | |
progress | readonly progress: number; | 0..100. |
color | readonly color: string; |
|
progressColor | readonly progressColor: string; | |
criticaloptional | readonly critical?: boolean; | Outlined with |
segmentsoptional | readonly segments?: readonly {
readonly x: number;
readonly width: number;
}[]; | Split task parts (px from the chart start), joined by a dashed line. |
labeloptional | readonly label?: string; | Drawn after the bar end. |