@taskctrl/canvas-timeline 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canvas/GridLayer.d.ts +1 -1
- package/dist/canvas-timeline.cjs.js +1 -1
- package/dist/canvas-timeline.cjs.js.map +1 -1
- package/dist/canvas-timeline.es.js +974 -818
- package/dist/canvas-timeline.es.js.map +1 -1
- package/dist/dom/DateHeader.d.ts +2 -1
- package/dist/dom/TimelineHeaders.d.ts +2 -1
- package/dist/types.d.ts +8 -0
- package/dist/utils/timezone.d.ts +2 -0
- package/package.json +1 -1
package/dist/dom/DateHeader.d.ts
CHANGED
|
@@ -13,8 +13,9 @@ export interface DateHeaderProps {
|
|
|
13
13
|
/** Minimum cell width in pixels. Header auto-hides when cells are narrower. Set to 0 to disable. */
|
|
14
14
|
minCellWidth?: number;
|
|
15
15
|
onZoomToInterval?: (start: number, end: number) => void;
|
|
16
|
+
timezone?: string;
|
|
16
17
|
}
|
|
17
|
-
export declare function DateHeader({ unit, visibleTimeStart, visibleTimeEnd, canvasWidth, theme, height, className, labelFormat, onIntervalClick, minCellWidth, onZoomToInterval, }: DateHeaderProps): import("react/jsx-runtime").JSX.Element | null;
|
|
18
|
+
export declare function DateHeader({ unit, visibleTimeStart, visibleTimeEnd, canvasWidth, theme, height, className, labelFormat, onIntervalClick, minCellWidth, onZoomToInterval, timezone, }: DateHeaderProps): import("react/jsx-runtime").JSX.Element | null;
|
|
18
19
|
export declare namespace DateHeader {
|
|
19
20
|
var displayName: string;
|
|
20
21
|
}
|
|
@@ -11,8 +11,9 @@ export interface TimelineHeadersProps {
|
|
|
11
11
|
canvasWidth?: number;
|
|
12
12
|
sidebarWidth?: number;
|
|
13
13
|
onZoomToInterval?: (start: number, end: number) => void;
|
|
14
|
+
timezone?: string;
|
|
14
15
|
}
|
|
15
|
-
export declare function TimelineHeaders({ children, theme, className, classNames: _classNames, style, visibleTimeStart, visibleTimeEnd, canvasWidth, sidebarWidth, onZoomToInterval }: TimelineHeadersProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function TimelineHeaders({ children, theme, className, classNames: _classNames, style, visibleTimeStart, visibleTimeEnd, canvasWidth, sidebarWidth, onZoomToInterval, timezone }: TimelineHeadersProps): import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export declare namespace TimelineHeaders {
|
|
17
18
|
var displayName: string;
|
|
18
19
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -151,6 +151,14 @@ export interface CanvasTimelineProps {
|
|
|
151
151
|
onReady?: (api: CanvasTimelineRef) => void;
|
|
152
152
|
/** Dev-only: show a version + build-time badge in the top-left corner.
|
|
153
153
|
* Wire to your app's dev flag, e.g. `devBadge={import.meta.env.DEV}`. */
|
|
154
|
+
/** Maximum visible height for the timeline body. Accepts a number (px) or
|
|
155
|
+
* a CSS string like `'calc(100vh - 98px)'`. When set, the canvas and sidebar
|
|
156
|
+
* are clipped and internally scrollable via wheel, drag, or touch. */
|
|
157
|
+
maxHeight?: number | string;
|
|
158
|
+
/** IANA timezone string (e.g. "America/New_York", "UTC").
|
|
159
|
+
* When set, grid lines, headers, and day styling render in this timezone.
|
|
160
|
+
* Defaults to the browser's local timezone. */
|
|
161
|
+
timezone?: string;
|
|
154
162
|
devBadge?: boolean;
|
|
155
163
|
children?: React.ReactNode;
|
|
156
164
|
}
|