@worktile/gantt 19.0.8-next.2 → 19.0.8-next.4

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.
@@ -164,6 +164,10 @@
164
164
  }
165
165
  }
166
166
  }
167
+
168
+ &-hide {
169
+ visibility: hidden;
170
+ }
167
171
  }
168
172
  }
169
173
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/gantt",
3
- "version": "19.0.8-next.2",
3
+ "version": "19.0.8-next.4",
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
  }