@xpyjs/gantt-core 0.0.1-rc.4 → 0.0.1-rc.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.
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.4",
4
+ "version": "0.0.1-rc.5",
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",
@@ -15,6 +15,7 @@ export declare class Renderer {
15
15
  private width;
16
16
  private height;
17
17
  private isInitialized;
18
+ private resizeObserver?;
18
19
  getScrollbar(): Scrollbar;
19
20
  constructor(context: IContext, // 渲染器上下文
20
21
  container: HTMLElement);
@@ -11,6 +11,12 @@ export interface IGanttOptions {
11
11
  /** 日志 level。 默认 info */
12
12
  logLevel?: "debug" | "info" | "warn" | "error" | "none";
13
13
 
14
+ /** 配置 resize 规则 */
15
+ resize?: {
16
+ /** 是否启用自适应 */
17
+ enabled: boolean;
18
+ };
19
+
14
20
  /** 源数据 */
15
21
  data: any[];
16
22
 
@@ -287,7 +293,7 @@ export interface IGanttOptions {
287
293
  /** 差异显示模式 */
288
294
  mode: 'highlight' | 'indicator' | 'both';
289
295
  /** 以何种基准展示对比。基线高亮只会以一种(起始/结束)基线进行对比。默认以结束时间为基准('end') */
290
- target: 'start' | 'end'
296
+ target: 'start' | 'end';
291
297
 
292
298
  /** 超期任务的高亮配置 */
293
299
  delayed: {