@worktile/gantt 19.0.8-next.3 → 19.0.8-next.5

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.
@@ -7,6 +7,7 @@ export declare class GanttPrintService {
7
7
  private setInlineStyles;
8
8
  private recursElementChildren;
9
9
  register(root: ElementRef<HTMLElement>): void;
10
+ html2canvas(ignoreElementClass?: string): Promise<HTMLCanvasElement>;
10
11
  print(name?: string, ignoreElementClass?: string): Promise<void>;
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<GanttPrintService, never>;
12
13
  static ɵprov: i0.ɵɵInjectableDeclaration<GanttPrintService>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/gantt",
3
- "version": "19.0.8-next.3",
3
+ "version": "19.0.8-next.5",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "author": "walkerkay001",
6
6
  "license": "MIT",
package/views/day.d.ts CHANGED
@@ -12,4 +12,5 @@ export declare class GanttViewDay extends GanttView {
12
12
  getDayOccupancyWidth(date: GanttDate): number;
13
13
  getPrimaryDatePoints(): GanttDatePoint[];
14
14
  getSecondaryDatePoints(): GanttDatePoint[];
15
+ getEndDateByWidth(start: GanttDate, width: number): GanttDate;
15
16
  }
package/views/view.d.ts CHANGED
@@ -87,4 +87,11 @@ export declare abstract class GanttView {
87
87
  getDateByXPoint(x: number): GanttDate;
88
88
  getDateRangeWidth(start: GanttDate, end: GanttDate): number;
89
89
  getMinRangeWidthByPrecisionUnit(date: GanttDate): number;
90
+ /**
91
+ * 根据起始日期和宽度计算结束日期
92
+ * @param start 起始日期
93
+ * @param width 视觉宽度
94
+ * @returns 结束日期
95
+ */
96
+ getEndDateByWidth(start: GanttDate, width: number): GanttDate;
90
97
  }