@xpyjs/gantt-core 0.0.1-rc.1 → 0.0.1-rc.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xpyjs/gantt-core",
3
3
  "private": false,
4
- "version": "0.0.1-rc.1",
4
+ "version": "0.0.1-rc.3",
5
5
  "description": "A powerful and flexible Gantt chart component library for modern web applications with TypeScript support",
6
6
  "type": "module",
7
7
  "main": "./dist/x-gantt.umd.cjs",
@@ -58,6 +58,8 @@ export declare class DataManager {
58
58
  * 获取所有任务
59
59
  */
60
60
  getTasks(asTree?: boolean): Task[];
61
+ /** 获取数据规模 */
62
+ getDataSize(): number;
61
63
  /**
62
64
  * 通过 ID 获取任务
63
65
  */
@@ -80,6 +82,10 @@ export declare class DataManager {
80
82
  * 使用缓存提高性能,只有在必要时才会重建列表
81
83
  */
82
84
  getVisibleTasks(): Task[];
85
+ /**
86
+ * 获取一个任务是否可展示
87
+ */
88
+ isTaskVisible(task: Task): boolean;
83
89
  /**
84
90
  * 获取可展示任务数量
85
91
  */