@ganttloom/gantt-core 0.4.0 → 0.4.3

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/index.d.cts CHANGED
@@ -182,6 +182,7 @@ interface GanttTheme {
182
182
  fontFamily: string;
183
183
  fontSize: number;
184
184
  borderRadius: number;
185
+ borderColor?: string;
185
186
  }
186
187
  /**
187
188
  * Fully-resolved, framework-agnostic geometry for one render pass.
@@ -253,6 +254,7 @@ interface GanttRenderMarker {
253
254
  interface GanttRenderTick {
254
255
  x: number;
255
256
  label: string;
257
+ parentLabel: string;
256
258
  isWeekend: boolean;
257
259
  /** weekend OR a calendar holiday; only meaningful when a WorkingCalendar was supplied */
258
260
  isNonWorking: boolean;
@@ -286,6 +288,8 @@ interface GanttOptions {
286
288
  colorScheme?: "light" | "dark" | "auto";
287
289
  /** px per smallest time unit column, auto if omitted */
288
290
  columnWidth?: number;
291
+ /** Positions the grid and timeline headers. Default is "top". */
292
+ headerPosition?: "top" | "bottom" | "none";
289
293
  readonly?: boolean;
290
294
  showProgress?: boolean;
291
295
  showDependencies?: boolean;
@@ -530,6 +534,8 @@ interface LayoutInput {
530
534
  columnId: string;
531
535
  direction: "asc" | "desc";
532
536
  } | null;
537
+ /** available pixel width of the scrolling timeline area, used to pad empty grids if chart is too short */
538
+ timelineViewportWidth?: number;
533
539
  }
534
540
  declare function computeLayout(input: LayoutInput): GanttRenderModel;
535
541
 
@@ -603,6 +609,7 @@ interface GeneratedTick {
603
609
  date: Date;
604
610
  x: number;
605
611
  label: string;
612
+ parentLabel: string;
606
613
  isWeekend: boolean;
607
614
  isNonWorking: boolean;
608
615
  isToday: boolean;
@@ -730,6 +737,7 @@ declare class GanttChart {
730
737
  updateDependency(fromId: string, toId: string, partial: Partial<GanttDependency>): void;
731
738
  private handleProgressDrag;
732
739
  private handleCreateTaskDrag;
740
+ private handleAddChild;
733
741
  private handleBarClick;
734
742
  /** Replace (default) or add to (`additive: true`) the current selection. Requires `selectable`. */
735
743
  selectTask(id: string, options?: {
package/dist/index.d.ts CHANGED
@@ -182,6 +182,7 @@ interface GanttTheme {
182
182
  fontFamily: string;
183
183
  fontSize: number;
184
184
  borderRadius: number;
185
+ borderColor?: string;
185
186
  }
186
187
  /**
187
188
  * Fully-resolved, framework-agnostic geometry for one render pass.
@@ -253,6 +254,7 @@ interface GanttRenderMarker {
253
254
  interface GanttRenderTick {
254
255
  x: number;
255
256
  label: string;
257
+ parentLabel: string;
256
258
  isWeekend: boolean;
257
259
  /** weekend OR a calendar holiday; only meaningful when a WorkingCalendar was supplied */
258
260
  isNonWorking: boolean;
@@ -286,6 +288,8 @@ interface GanttOptions {
286
288
  colorScheme?: "light" | "dark" | "auto";
287
289
  /** px per smallest time unit column, auto if omitted */
288
290
  columnWidth?: number;
291
+ /** Positions the grid and timeline headers. Default is "top". */
292
+ headerPosition?: "top" | "bottom" | "none";
289
293
  readonly?: boolean;
290
294
  showProgress?: boolean;
291
295
  showDependencies?: boolean;
@@ -530,6 +534,8 @@ interface LayoutInput {
530
534
  columnId: string;
531
535
  direction: "asc" | "desc";
532
536
  } | null;
537
+ /** available pixel width of the scrolling timeline area, used to pad empty grids if chart is too short */
538
+ timelineViewportWidth?: number;
533
539
  }
534
540
  declare function computeLayout(input: LayoutInput): GanttRenderModel;
535
541
 
@@ -603,6 +609,7 @@ interface GeneratedTick {
603
609
  date: Date;
604
610
  x: number;
605
611
  label: string;
612
+ parentLabel: string;
606
613
  isWeekend: boolean;
607
614
  isNonWorking: boolean;
608
615
  isToday: boolean;
@@ -730,6 +737,7 @@ declare class GanttChart {
730
737
  updateDependency(fromId: string, toId: string, partial: Partial<GanttDependency>): void;
731
738
  private handleProgressDrag;
732
739
  private handleCreateTaskDrag;
740
+ private handleAddChild;
733
741
  private handleBarClick;
734
742
  /** Replace (default) or add to (`additive: true`) the current selection. Requires `selectable`. */
735
743
  selectTask(id: string, options?: {