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.
- package/package.json +1 -1
- package/src/build.js +16 -1
- package/src/index.css +23 -1
- package/src/index3.js +1427 -374
- package/src/utils/CommandManager/CommandFlow.d.ts +4 -1
- package/src/utils/CommandManager/CommandManager.d.ts +5 -0
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/CommandFlowComponent.d.ts +1 -0
- package/src/utils/DxfSystem/plugin/Editor/pages/EditorTool.vue.d.ts +1 -1
|
@@ -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
|
/** 执行控制流
|
|
@@ -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
|
-
},
|
|
9
|
+
}, any>;
|
|
10
10
|
export default _default;
|