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 +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +18 -4
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
package/dist/index.css
CHANGED
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
package/dist/index.umd.js
CHANGED