build-dxf 0.1.20 → 0.1.21

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.
@@ -18,17 +18,19 @@ export declare class CommandFlow extends EventDispatcher<{
18
18
  finally: {};
19
19
  }> {
20
20
  list: CommandFlowCallBack[];
21
+ dataList: Record<string, any>[];
21
22
  rollbacklist: ((data?: any) => void)[];
22
23
  revokeRollbacklist: ((data?: any) => void)[];
23
24
  writeOperationList: boolean;
24
25
  loop: boolean;
26
+ currentIndex: number;
25
27
  setLoop(loop: boolean): this;
26
28
  /**
27
29
  *
28
30
  * @param operation
29
31
  * @returns
30
32
  */
31
- add(operation: CommandFlowCallBack): this;
33
+ add(operation: CommandFlowCallBack, data?: Record<string, any>): this;
32
34
  /** 添加回滚回调列表
33
35
  * @param callBack
34
36
  */
@@ -38,5 +40,6 @@ export declare class CommandFlow extends EventDispatcher<{
38
40
  * @returns
39
41
  */
40
42
  addRevokeRollback(callBack: (data?: any) => void): this;
43
+ getData(index: number): Record<string, any>;
41
44
  }
42
45
  export {};
@@ -61,6 +61,11 @@ export declare class CommandManager extends EventDispatcher<{
61
61
  * @returns
62
62
  */
63
63
  addCommandFlow(name: string): CommandFlow;
64
+ /** 获取命令流
65
+ * @param name
66
+ * @returns
67
+ */
68
+ getCommandFlow(name: string): CommandFlow | undefined;
64
69
  private executionPromise;
65
70
  private executionResolve;
66
71
  /** 执行控制流
@@ -59,4 +59,5 @@ export declare class CommandFlowComponent<TEventMap extends {} = {}> extends Com
59
59
  destroy(): void;
60
60
  setBaseLine(line: LineSegment | null, point: Point | null): void;
61
61
  };
62
+ formatText(text: string, color?: string, style?: string): string;
62
63
  }
@@ -6,5 +6,5 @@ type __VLS_Props = {
6
6
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
7
7
  elRef: HTMLDivElement;
8
8
  toolBarRef: HTMLDivElement;
9
- }, HTMLDivElement>;
9
+ }, any>;
10
10
  export default _default;