//#region src/components/gantt/types.d.ts /** Shorthand strings representing hour-based timeline interval durations. */ type GanttHoursTimescale = '1h' | '2h' | '6h' | '12h' | '24h'; /** Shorthand strings representing minute-based timeline interval durations. */ type GanttMinutesTimescale = '1m' | '5m' | '10m' | '30m'; /** * Timeline interval duration controlling the spacing between tick marks. * Determines the granularity of the timeline display. */ type GanttTimescale = GanttHoursTimescale | GanttMinutesTimescale; type GanttTimelineChunkObject = { /** Epoch milliseconds for this timeline chunk's position. */ timestampMs: number; }; type GanttTimeBounds = { /** Start of the time range in epoch milliseconds. */ startMs: number; /** End of the time range in epoch milliseconds. */ endMs: number; }; /** * Visual color variant for row elements (blocks, markers, spacers, brackets). * Maps to design token color scales. */ type GanttRowElementColorProp = 'serious' | 'accent' | 'critical'; /** * Configuration for threshold-based data loading notifications. * When the rendered region approaches the edges of the total data region, * the Gantt fires `onThresholdMet` so consumers can load additional data. */ type GanttThreshold = { /** Number of timescale intervals from the timeline boundary that triggers a threshold event. */ timescaleMultipleDistance: number; /** Number of rows from the visible row boundary that triggers a threshold event. */ rowIndexBoundaryDistance: number; }; type GanttDerivedThresholdValue = { /** Derived threshold boundary at the start of the axis. */ start: number; /** Derived threshold boundary at the end of the axis. */ end: number; }; /** Data describing a threshold that was met during rendering. */ type GanttMetThresholdData = { /** Which axis the threshold was met on (time or rows). */ axis: 'horizontal' | 'vertical'; /** Whether the threshold was met at the beginning or end of the axis. */ direction: 'start' | 'end'; /** The timestamp (horizontal) or row index (vertical) at which the threshold was met. */ value: number; }; type GanttRegion = { startMs: number; endMs: number; startRowIndex: number; endRowIndex: number; }; /** Props for configuring threshold-based data loading on the Gantt component. */ type GanttThresholdProps = { /** Threshold distances that define when edge-of-data notifications fire. */ threshold: GanttThreshold; /** Callback invoked when the rendered region enters a threshold zone. */ onThresholdMet: (metThresholds: GanttMetThresholdData[]) => void; }; //#endregion export { GanttDerivedThresholdValue, GanttHoursTimescale, GanttMetThresholdData, GanttMinutesTimescale, GanttRegion, GanttRowElementColorProp, GanttThreshold, GanttThresholdProps, GanttTimeBounds, GanttTimelineChunkObject, GanttTimescale }; //# sourceMappingURL=types.d.ts.map