gantt-canvas-chart 1.1.0 → 1.1.1

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.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * gantt-canvas-chart v1.1.0
2
+ * gantt-canvas-chart v1.1.1
3
3
  * (c) 2025-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/index.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * gantt-canvas-chart v1.1.0
2
+ * gantt-canvas-chart v1.1.1
3
3
  * (c) 2025-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/index.d.ts CHANGED
@@ -97,7 +97,7 @@ export declare class GanttChart {
97
97
  scrollToStartDate(date?: Date): void;
98
98
  }
99
99
 
100
- declare interface GanttConfig {
100
+ export declare interface GanttConfig {
101
101
  viewMode?: 'Day' | 'Week' | 'Month' | 'Year';
102
102
  planBorderColor?: string;
103
103
  actualBgColor?: string;
@@ -124,15 +124,15 @@ declare interface GanttConfig {
124
124
  tooltipFormat?: null | ((task: Row, date: Date, config: GanttConfig) => string);
125
125
  }
126
126
 
127
- declare type GanttData = Row[];
127
+ export declare type GanttData = Row[];
128
128
 
129
- declare interface Row {
129
+ export declare interface Row {
130
130
  id: string;
131
131
  name: string;
132
132
  tasks: Task[];
133
133
  }
134
134
 
135
- declare interface Task {
135
+ export declare interface Task {
136
136
  id: string;
137
137
  name: string;
138
138
  type?: 'task' | 'leave';
@@ -152,4 +152,18 @@ declare interface Task {
152
152
  actualOffsetPercent?: [number, number];
153
153
  }
154
154
 
155
+ export declare interface TaskPosition {
156
+ x_plan_start: number;
157
+ x_plan_end: number;
158
+ x_actual_start: number | null;
159
+ x_actual_end: number | null;
160
+ y: number;
161
+ row: number;
162
+ }
163
+
164
+ export declare interface VisibleDateRange {
165
+ start: Date;
166
+ end: Date;
167
+ }
168
+
155
169
  export { }
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * gantt-canvas-chart v1.1.0
2
+ * gantt-canvas-chart v1.1.1
3
3
  * (c) 2025-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * gantt-canvas-chart v1.1.0
2
+ * gantt-canvas-chart v1.1.1
3
3
  * (c) 2025-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-canvas-chart",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "High performance Gantt chart component based on Canvas, can be applied to any framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",