@kengic/vue 0.30.1-beta.36 → 0.30.1-beta.38
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/README.md +1 -1
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +35369 -34873
- package/dist/src/component/KgCanvas/KgCanvas.d.ts +47 -19
- package/dist/src/component/KgCanvas/KgCanvas.model.d.ts +27 -1
- package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +1 -27
- package/dist/src/component/KgCanvas/index.d.ts +1 -1
- package/dist/src/component/KgSimulator/KgSimulator.Canvas.d.ts +1 -1
- package/dist/src/component/KgSimulator/KgSimulator.Canvas.service.d.ts +19 -10
- package/dist/src/component/KgSimulator/KgSimulator.event.d.ts +34 -14
- package/dist/src/component/KgSimulator/KgSimulator.hooks.d.ts +27 -6
- package/dist/src/component/KgSimulator/KgSimulator.model.d.ts +155 -21
- package/dist/src/component/KgSimulator/KgSimulator.store.d.ts +75 -47
- package/dist/src/component/KgSimulator/KgSimulator.utils.d.ts +21 -0
- package/dist/src/const/const.model.d.ts +34 -30
- package/package.json +2 -2
|
@@ -2,20 +2,29 @@ import { ExtractPropTypes, PropType } from 'vue';
|
|
|
2
2
|
import './KgCanvas.css';
|
|
3
3
|
export declare const getProps: () => {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* 该组件实例的唯一标识.
|
|
6
|
+
*/
|
|
7
|
+
id: {
|
|
8
|
+
type: PropType<string>;
|
|
9
|
+
required: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 画布--右键菜单--重新加载--是否可用.
|
|
6
13
|
*
|
|
7
14
|
* @default true
|
|
8
15
|
*/
|
|
9
|
-
|
|
16
|
+
kg$ContextMenu$Reload$IsAvailable: {
|
|
10
17
|
type: PropType<boolean>;
|
|
11
18
|
default: boolean;
|
|
12
19
|
};
|
|
13
20
|
/**
|
|
14
|
-
*
|
|
21
|
+
* 画布--工具按钮--交互模式--是否可用.
|
|
22
|
+
*
|
|
23
|
+
* @default true
|
|
15
24
|
*/
|
|
16
|
-
|
|
17
|
-
type: PropType<
|
|
18
|
-
|
|
25
|
+
kg$KgCanvasToolbarButtonMode$IsAvailable: {
|
|
26
|
+
type: PropType<boolean>;
|
|
27
|
+
default: boolean;
|
|
19
28
|
};
|
|
20
29
|
/**
|
|
21
30
|
* 组件 KgCanvasToolbarButtonFullscreen 的参数.
|
|
@@ -68,20 +77,29 @@ export declare const getProps: () => {
|
|
|
68
77
|
export declare type KgCanvasProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
69
78
|
declare const _default: import("vue").DefineComponent<{
|
|
70
79
|
/**
|
|
71
|
-
*
|
|
80
|
+
* 该组件实例的唯一标识.
|
|
81
|
+
*/
|
|
82
|
+
id: {
|
|
83
|
+
type: PropType<string>;
|
|
84
|
+
required: boolean;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* 画布--右键菜单--重新加载--是否可用.
|
|
72
88
|
*
|
|
73
89
|
* @default true
|
|
74
90
|
*/
|
|
75
|
-
|
|
91
|
+
kg$ContextMenu$Reload$IsAvailable: {
|
|
76
92
|
type: PropType<boolean>;
|
|
77
93
|
default: boolean;
|
|
78
94
|
};
|
|
79
95
|
/**
|
|
80
|
-
*
|
|
96
|
+
* 画布--工具按钮--交互模式--是否可用.
|
|
97
|
+
*
|
|
98
|
+
* @default true
|
|
81
99
|
*/
|
|
82
|
-
|
|
83
|
-
type: PropType<
|
|
84
|
-
|
|
100
|
+
kg$KgCanvasToolbarButtonMode$IsAvailable: {
|
|
101
|
+
type: PropType<boolean>;
|
|
102
|
+
default: boolean;
|
|
85
103
|
};
|
|
86
104
|
/**
|
|
87
105
|
* 组件 KgCanvasToolbarButtonFullscreen 的参数.
|
|
@@ -132,20 +150,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
132
150
|
};
|
|
133
151
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
134
152
|
/**
|
|
135
|
-
*
|
|
153
|
+
* 该组件实例的唯一标识.
|
|
154
|
+
*/
|
|
155
|
+
id: {
|
|
156
|
+
type: PropType<string>;
|
|
157
|
+
required: boolean;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* 画布--右键菜单--重新加载--是否可用.
|
|
136
161
|
*
|
|
137
162
|
* @default true
|
|
138
163
|
*/
|
|
139
|
-
|
|
164
|
+
kg$ContextMenu$Reload$IsAvailable: {
|
|
140
165
|
type: PropType<boolean>;
|
|
141
166
|
default: boolean;
|
|
142
167
|
};
|
|
143
168
|
/**
|
|
144
|
-
*
|
|
169
|
+
* 画布--工具按钮--交互模式--是否可用.
|
|
170
|
+
*
|
|
171
|
+
* @default true
|
|
145
172
|
*/
|
|
146
|
-
|
|
147
|
-
type: PropType<
|
|
148
|
-
|
|
173
|
+
kg$KgCanvasToolbarButtonMode$IsAvailable: {
|
|
174
|
+
type: PropType<boolean>;
|
|
175
|
+
default: boolean;
|
|
149
176
|
};
|
|
150
177
|
/**
|
|
151
178
|
* 组件 KgCanvasToolbarButtonFullscreen 的参数.
|
|
@@ -195,7 +222,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
195
222
|
default: boolean;
|
|
196
223
|
};
|
|
197
224
|
}>>, {
|
|
198
|
-
|
|
225
|
+
kg$ContextMenu$Reload$IsAvailable: boolean;
|
|
226
|
+
kg$KgCanvasToolbarButtonMode$IsAvailable: boolean;
|
|
199
227
|
kgIsEditable: boolean;
|
|
200
228
|
kgIsEnableOverview: boolean;
|
|
201
229
|
kgIsGridBackground: boolean;
|
|
@@ -1 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* 节点用户属性.
|
|
3
|
+
*/
|
|
4
|
+
export declare type IKgCanvasElementProperties = {
|
|
5
|
+
/**
|
|
6
|
+
* 编码, 全局唯一.
|
|
7
|
+
*/
|
|
8
|
+
key?: string;
|
|
9
|
+
/**
|
|
10
|
+
* 数据.
|
|
11
|
+
*/
|
|
12
|
+
data?: any;
|
|
13
|
+
/**
|
|
14
|
+
* 是否启用提示文本.
|
|
15
|
+
*/
|
|
16
|
+
isEnableTooltip?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 样式.
|
|
19
|
+
*/
|
|
20
|
+
style?: {
|
|
21
|
+
/**
|
|
22
|
+
* 鼠标划过时的指针样式.
|
|
23
|
+
*/
|
|
24
|
+
hoverCursor?: 'pointer' | 'default';
|
|
25
|
+
};
|
|
26
|
+
[index: string]: any;
|
|
27
|
+
};
|
|
@@ -1,38 +1,12 @@
|
|
|
1
1
|
import { Q } from '@thymine/xunee';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
3
|
import { IKgCanvasContextMenu, KgCanvasContextMenuProps } from './KgCanvas.ContextMenu';
|
|
4
|
-
/**
|
|
5
|
-
* 用户属性.
|
|
6
|
-
*/
|
|
7
|
-
export declare type IKgCanvasElementProperties = {
|
|
8
|
-
/**
|
|
9
|
-
* 编码, 全局唯一.
|
|
10
|
-
*/
|
|
11
|
-
key?: string;
|
|
12
|
-
/**
|
|
13
|
-
* 数据.
|
|
14
|
-
*/
|
|
15
|
-
data?: any;
|
|
16
|
-
/**
|
|
17
|
-
* 是否启用提示文本.
|
|
18
|
-
*/
|
|
19
|
-
isEnableTooltip?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* 样式.
|
|
22
|
-
*/
|
|
23
|
-
style?: {
|
|
24
|
-
/**
|
|
25
|
-
* 鼠标划过时的指针样式.
|
|
26
|
-
*/
|
|
27
|
-
hoverCursor?: 'pointer' | 'default';
|
|
28
|
-
};
|
|
29
|
-
[index: string]: any;
|
|
30
|
-
};
|
|
31
4
|
export declare type IUseGlobalContextMenuList = {
|
|
32
5
|
globalContextMenuList: Array<IKgCanvasContextMenu>;
|
|
33
6
|
};
|
|
34
7
|
export declare function _useGlobalContextMenuList(param: {
|
|
35
8
|
id: string | undefined;
|
|
9
|
+
kg$ContextMenu$Reload$IsAvailable?: boolean | null | undefined;
|
|
36
10
|
}): IUseGlobalContextMenuList;
|
|
37
11
|
export declare type IUseResizeObserver = {};
|
|
38
12
|
export declare function _useResizeObserver(param: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as KgCanvas } from './KgCanvas';
|
|
2
2
|
export { type IKgCanvasContextMenu } from './KgCanvas.ContextMenu';
|
|
3
3
|
export * from './KgCanvas.hooks';
|
|
4
|
-
export { type IKgCanvasElementProperties } from './KgCanvas.
|
|
4
|
+
export { type IKgCanvasElementProperties } from './KgCanvas.model';
|
|
@@ -2,7 +2,7 @@ import { ExtractPropTypes } from 'vue';
|
|
|
2
2
|
import './KgSimulator.css';
|
|
3
3
|
import './KgSimulator.icons';
|
|
4
4
|
export declare const getProps: () => any;
|
|
5
|
-
export declare type
|
|
5
|
+
export declare type IKgSimulatorCanvasProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
6
6
|
/**
|
|
7
7
|
* 模拟器--画布.
|
|
8
8
|
*/
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import { Q } from '@thymine/xunee';
|
|
2
|
-
import { Creator, Destroyer, Station } from './KgSimulator.model';
|
|
2
|
+
import { Agent, Creator, Destroyer, JackUpTransferStation, PalletStackerStation, PhotoelectricSensor, Station } from './KgSimulator.model';
|
|
3
3
|
export declare type IUseDraw = {
|
|
4
|
+
/**
|
|
5
|
+
* 绘制环形输送线--绘制代理者.
|
|
6
|
+
*
|
|
7
|
+
* @param param
|
|
8
|
+
* @param param.agent 代理者.
|
|
9
|
+
*/
|
|
10
|
+
circularConveyor$DrawAgent(param?: {
|
|
11
|
+
agent: Agent;
|
|
12
|
+
}): Q.Node | null;
|
|
4
13
|
/**
|
|
5
14
|
* 绘制环形输送线--绘制创建者.
|
|
6
15
|
*
|
|
7
16
|
* @param param
|
|
8
17
|
* @param param.creator 创建者.
|
|
9
18
|
*/
|
|
10
|
-
circularConveyor$
|
|
19
|
+
circularConveyor$DrawCreator(param?: {
|
|
11
20
|
creator: Creator;
|
|
12
21
|
}): Q.Node | null;
|
|
13
22
|
/**
|
|
@@ -16,8 +25,8 @@ export declare type IUseDraw = {
|
|
|
16
25
|
* @param param
|
|
17
26
|
* @param param.dpj 叠盘机.
|
|
18
27
|
*/
|
|
19
|
-
circularConveyor$
|
|
20
|
-
dpj:
|
|
28
|
+
circularConveyor$DrawDPJ(param?: {
|
|
29
|
+
dpj: PalletStackerStation;
|
|
21
30
|
}): Q.Node | null;
|
|
22
31
|
/**
|
|
23
32
|
* 绘制环形输送线--绘制顶升移载机.
|
|
@@ -25,8 +34,8 @@ export declare type IUseDraw = {
|
|
|
25
34
|
* @param param
|
|
26
35
|
* @param param.dsyzj 顶升移载机.
|
|
27
36
|
*/
|
|
28
|
-
circularConveyor$
|
|
29
|
-
dsyzj:
|
|
37
|
+
circularConveyor$DrawDSYZJ(param?: {
|
|
38
|
+
dsyzj: JackUpTransferStation;
|
|
30
39
|
}): Q.Node | null;
|
|
31
40
|
/**
|
|
32
41
|
* 绘制环形输送线--绘制销毁者.
|
|
@@ -34,7 +43,7 @@ export declare type IUseDraw = {
|
|
|
34
43
|
* @param param
|
|
35
44
|
* @param param.destroyer 销毁者.
|
|
36
45
|
*/
|
|
37
|
-
circularConveyor$
|
|
46
|
+
circularConveyor$DrawDestroyer(param?: {
|
|
38
47
|
destroyer: Destroyer;
|
|
39
48
|
}): Q.Node | null;
|
|
40
49
|
/**
|
|
@@ -43,8 +52,8 @@ export declare type IUseDraw = {
|
|
|
43
52
|
* @param param
|
|
44
53
|
* @param param.gdcgq 光电传感器.
|
|
45
54
|
*/
|
|
46
|
-
circularConveyor$
|
|
47
|
-
gdcgq:
|
|
55
|
+
circularConveyor$DrawGDCGQ(param?: {
|
|
56
|
+
gdcgq: PhotoelectricSensor;
|
|
48
57
|
}): Q.Node | null;
|
|
49
58
|
/**
|
|
50
59
|
* 绘制环形输送线--绘制普通输送机.
|
|
@@ -52,7 +61,7 @@ export declare type IUseDraw = {
|
|
|
52
61
|
* @param param
|
|
53
62
|
* @param param.ptssj 普通输送机.
|
|
54
63
|
*/
|
|
55
|
-
circularConveyor$
|
|
64
|
+
circularConveyor$DrawPTSSJ(param?: {
|
|
56
65
|
ptssj: Station;
|
|
57
66
|
}): Q.Node | null;
|
|
58
67
|
/**
|
|
@@ -2,10 +2,10 @@ import { IKgEventListener } from '@kengic/core.core';
|
|
|
2
2
|
/**
|
|
3
3
|
* 事件类型.
|
|
4
4
|
*/
|
|
5
|
-
export declare type IKgSimulatorEvent = 'on$KgSimulatorCanvas$CreateData' | 'on$KgSimulatorCanvas$DeleteData' | 'on$KgSimulatorCanvas$UpdateData' | 'on$KgSimulatorPanelScene$Click' | 'on$KgSimulatorPanelScene$Delete' | 'on$KgSimulatorPanelScene$SelectChange' | 'on$WebSocket$
|
|
5
|
+
export declare type IKgSimulatorEvent = 'on$KgSimulatorCanvas$CreateData' | 'on$KgSimulatorCanvas$DeleteData' | 'on$KgSimulatorCanvas$UpdateData' | 'on$KgSimulatorMenu$Scene$Create' | 'on$KgSimulatorMenu$Scene$Import' | 'on$KgSimulatorMenu$Scene$Open' | 'on$KgSimulatorPanelScene$Click' | 'on$KgSimulatorPanelScene$Delete' | 'on$KgSimulatorPanelScene$SelectChange' | 'on$WebSocket$Message';
|
|
6
6
|
export declare type IKgSimulatorEventListenerParameter$on$KgSimulatorCanvas$CreateData = {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* 被创建的对象.
|
|
9
9
|
*/
|
|
10
10
|
data: Record<string, any>;
|
|
11
11
|
/**
|
|
@@ -16,10 +16,27 @@ export declare type IKgSimulatorEventListenerParameter$on$KgSimulatorCanvas$Crea
|
|
|
16
16
|
type: string;
|
|
17
17
|
};
|
|
18
18
|
export declare type IKgSimulatorEventListener$on$KgSimulatorCanvas$CreateData = ((param: IKgSimulatorEventListenerParameter$on$KgSimulatorCanvas$CreateData) => Promise<boolean>) & IKgEventListener;
|
|
19
|
-
export declare type IKgSimulatorEventListenerParameter$on$KgSimulatorCanvas$DeleteData = {
|
|
19
|
+
export declare type IKgSimulatorEventListenerParameter$on$KgSimulatorCanvas$DeleteData = {
|
|
20
|
+
/**
|
|
21
|
+
* 被销毁的对象.
|
|
22
|
+
*/
|
|
23
|
+
data: Record<string, any>;
|
|
24
|
+
/**
|
|
25
|
+
* 对象类型.
|
|
26
|
+
*
|
|
27
|
+
* @see {@link NODE_KEY}
|
|
28
|
+
*/
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
20
31
|
export declare type IKgSimulatorEventListener$on$KgSimulatorCanvas$DeleteData = ((param: IKgSimulatorEventListenerParameter$on$KgSimulatorCanvas$DeleteData) => Promise<boolean>) & IKgEventListener;
|
|
21
32
|
export declare type IKgSimulatorEventListenerParameter$on$KgSimulatorCanvas$UpdateData = {};
|
|
22
33
|
export declare type IKgSimulatorEventListener$on$KgSimulatorCanvas$UpdateData = ((param: IKgSimulatorEventListenerParameter$on$KgSimulatorCanvas$UpdateData) => Promise<boolean>) & IKgEventListener;
|
|
34
|
+
export declare type IKgSimulatorEventListenerParameter$on$KgSimulatorMenu$Scene$Create = {};
|
|
35
|
+
export declare type IKgSimulatorEventListener$on$KgSimulatorMenu$Scene$Create = ((param: IKgSimulatorEventListenerParameter$on$KgSimulatorMenu$Scene$Create) => Promise<boolean>) & IKgEventListener;
|
|
36
|
+
export declare type IKgSimulatorEventListenerParameter$on$KgSimulatorMenu$Scene$Import = {};
|
|
37
|
+
export declare type IKgSimulatorEventListener$on$KgSimulatorMenu$Scene$Import = ((param: IKgSimulatorEventListenerParameter$on$KgSimulatorMenu$Scene$Import) => Promise<boolean>) & IKgEventListener;
|
|
38
|
+
export declare type IKgSimulatorEventListenerParameter$on$KgSimulatorMenu$Scene$Open = {};
|
|
39
|
+
export declare type IKgSimulatorEventListener$on$KgSimulatorMenu$Scene$Open = ((param: IKgSimulatorEventListenerParameter$on$KgSimulatorMenu$Scene$Open) => Promise<boolean>) & IKgEventListener;
|
|
23
40
|
export declare type IKgSimulatorEventListenerParameter$on$KgSimulatorPanelScene$Click = {
|
|
24
41
|
/**
|
|
25
42
|
* 主键.
|
|
@@ -32,38 +49,41 @@ export declare type IKgSimulatorEventListenerParameter$on$KgSimulatorPanelScene$
|
|
|
32
49
|
*/
|
|
33
50
|
type: string;
|
|
34
51
|
};
|
|
35
|
-
export declare type
|
|
52
|
+
export declare type IKgSimulatorEventListener$on$KgSimulatorPanelScene$Click = ((param: IKgSimulatorEventListenerParameter$on$KgSimulatorPanelScene$Click) => Promise<boolean>) & IKgEventListener;
|
|
36
53
|
export declare type IKgSimulatorEventListenerParameter$on$KgSimulatorPanelScene$Delete = {
|
|
37
54
|
/**
|
|
38
55
|
* 被删除的主键列表.
|
|
39
56
|
*/
|
|
40
57
|
deleteIdList: Array<string>;
|
|
41
58
|
};
|
|
42
|
-
export declare type
|
|
59
|
+
export declare type IKgSimulatorEventListener$on$KgSimulatorPanelScene$Delete = ((param: IKgSimulatorEventListenerParameter$on$KgSimulatorPanelScene$Delete) => Promise<boolean>) & IKgEventListener;
|
|
43
60
|
export declare type IKgSimulatorEventListenerParameter$on$KgSimulatorPanelScene$SelectChange = {
|
|
44
61
|
/**
|
|
45
62
|
* 被选中的主键列表.
|
|
46
63
|
*/
|
|
47
64
|
selectedIdList: Array<string>;
|
|
48
65
|
};
|
|
49
|
-
export declare type
|
|
50
|
-
export declare type IKgSimulatorEventListenerParameter$on$WebSocket$
|
|
66
|
+
export declare type IKgSimulatorEventListener$on$KgSimulatorPanelScene$SelectChange = ((param: IKgSimulatorEventListenerParameter$on$KgSimulatorPanelScene$SelectChange) => Promise<boolean>) & IKgEventListener;
|
|
67
|
+
export declare type IKgSimulatorEventListenerParameter$on$WebSocket$Message = {
|
|
51
68
|
/**
|
|
52
69
|
* 消息内容.
|
|
53
70
|
*/
|
|
54
71
|
data: Record<string, any>;
|
|
55
72
|
};
|
|
56
|
-
export declare type IKgSimulatorEventListener$on$WebSocket$
|
|
57
|
-
export declare type IKgSimulatorEventListenerParameter = IKgSimulatorEventListenerParameter$on$KgSimulatorCanvas$CreateData | IKgSimulatorEventListenerParameter$on$KgSimulatorCanvas$DeleteData | IKgSimulatorEventListenerParameter$on$KgSimulatorCanvas$UpdateData | IKgSimulatorEventListenerParameter$on$KgSimulatorPanelScene$Click | IKgSimulatorEventListenerParameter$on$KgSimulatorPanelScene$Delete | IKgSimulatorEventListenerParameter$on$KgSimulatorPanelScene$SelectChange | IKgSimulatorEventListenerParameter$on$WebSocket$
|
|
58
|
-
export declare type IKgSimulatorEventListener = IKgSimulatorEventListener$on$KgSimulatorCanvas$CreateData | IKgSimulatorEventListener$on$KgSimulatorCanvas$DeleteData | IKgSimulatorEventListener$on$KgSimulatorCanvas$UpdateData |
|
|
73
|
+
export declare type IKgSimulatorEventListener$on$WebSocket$Message = ((param: IKgSimulatorEventListenerParameter$on$WebSocket$Message) => Promise<boolean>) & IKgEventListener;
|
|
74
|
+
export declare type IKgSimulatorEventListenerParameter = IKgSimulatorEventListenerParameter$on$KgSimulatorCanvas$CreateData | IKgSimulatorEventListenerParameter$on$KgSimulatorCanvas$DeleteData | IKgSimulatorEventListenerParameter$on$KgSimulatorCanvas$UpdateData | IKgSimulatorEventListenerParameter$on$KgSimulatorMenu$Scene$Create | IKgSimulatorEventListenerParameter$on$KgSimulatorMenu$Scene$Import | IKgSimulatorEventListenerParameter$on$KgSimulatorMenu$Scene$Open | IKgSimulatorEventListenerParameter$on$KgSimulatorPanelScene$Click | IKgSimulatorEventListenerParameter$on$KgSimulatorPanelScene$Delete | IKgSimulatorEventListenerParameter$on$KgSimulatorPanelScene$SelectChange | IKgSimulatorEventListenerParameter$on$WebSocket$Message;
|
|
75
|
+
export declare type IKgSimulatorEventListener = IKgSimulatorEventListener$on$KgSimulatorCanvas$CreateData | IKgSimulatorEventListener$on$KgSimulatorCanvas$DeleteData | IKgSimulatorEventListener$on$KgSimulatorCanvas$UpdateData | IKgSimulatorEventListener$on$KgSimulatorMenu$Scene$Create | IKgSimulatorEventListener$on$KgSimulatorMenu$Scene$Import | IKgSimulatorEventListener$on$KgSimulatorMenu$Scene$Open | IKgSimulatorEventListener$on$KgSimulatorPanelScene$Click | IKgSimulatorEventListener$on$KgSimulatorPanelScene$Delete | IKgSimulatorEventListener$on$KgSimulatorPanelScene$SelectChange | IKgSimulatorEventListener$on$WebSocket$Message;
|
|
59
76
|
export declare const eventListeners: Record<string, {
|
|
60
77
|
on$KgSimulatorCanvas$CreateData: Array<IKgSimulatorEventListener$on$KgSimulatorCanvas$CreateData>;
|
|
61
78
|
on$KgSimulatorCanvas$DeleteData: Array<IKgSimulatorEventListener$on$KgSimulatorCanvas$DeleteData>;
|
|
62
79
|
on$KgSimulatorCanvas$UpdateData: Array<IKgSimulatorEventListener$on$KgSimulatorCanvas$UpdateData>;
|
|
63
|
-
on$
|
|
64
|
-
on$
|
|
65
|
-
on$
|
|
66
|
-
on$
|
|
80
|
+
on$KgSimulatorMenu$Scene$Create: Array<IKgSimulatorEventListener$on$WebSocket$Message>;
|
|
81
|
+
on$KgSimulatorMenu$Scene$Import: Array<IKgSimulatorEventListener$on$WebSocket$Message>;
|
|
82
|
+
on$KgSimulatorMenu$Scene$Open: Array<IKgSimulatorEventListener$on$WebSocket$Message>;
|
|
83
|
+
on$KgSimulatorPanelScene$Click: Array<IKgSimulatorEventListener$on$KgSimulatorPanelScene$Click>;
|
|
84
|
+
on$KgSimulatorPanelScene$Delete: Array<IKgSimulatorEventListener$on$KgSimulatorPanelScene$Delete>;
|
|
85
|
+
on$KgSimulatorPanelScene$SelectChange: Array<IKgSimulatorEventListener$on$KgSimulatorPanelScene$SelectChange>;
|
|
86
|
+
on$WebSocket$Message: Array<IKgSimulatorEventListener$on$WebSocket$Message>;
|
|
67
87
|
}>;
|
|
68
88
|
/**
|
|
69
89
|
* 触发事件.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IRemoveEventListener } from '@kengic/core.core';
|
|
2
2
|
import { VarSubmitDetail } from '../../api/WMS/models';
|
|
3
|
-
import { IKgSimulatorEventListener$on$KgSimulatorCanvas$CreateData, IKgSimulatorEventListener$on$KgSimulatorCanvas$DeleteData, IKgSimulatorEventListener$on$KgSimulatorCanvas$UpdateData, IKgSimulatorEventListener$on$
|
|
3
|
+
import { IKgSimulatorEventListener$on$KgSimulatorCanvas$CreateData, IKgSimulatorEventListener$on$KgSimulatorCanvas$DeleteData, IKgSimulatorEventListener$on$KgSimulatorCanvas$UpdateData, IKgSimulatorEventListener$on$KgSimulatorMenu$Scene$Create, IKgSimulatorEventListener$on$KgSimulatorMenu$Scene$Import, IKgSimulatorEventListener$on$KgSimulatorMenu$Scene$Open, IKgSimulatorEventListener$on$KgSimulatorPanelScene$Click, IKgSimulatorEventListener$on$KgSimulatorPanelScene$Delete, IKgSimulatorEventListener$on$KgSimulatorPanelScene$SelectChange, IKgSimulatorEventListener$on$WebSocket$Message } from './KgSimulator.event';
|
|
4
4
|
import { buildKgSimulatorStore } from './KgSimulator.store';
|
|
5
5
|
export declare type IUseKgSimulator = {
|
|
6
6
|
/**
|
|
@@ -41,34 +41,55 @@ export declare type IUseKgSimulator = {
|
|
|
41
41
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
42
42
|
*/
|
|
43
43
|
on$KgSimulatorCanvas$UpdateData(listener: IKgSimulatorEventListener$on$KgSimulatorCanvas$UpdateData, isOnce?: boolean): IRemoveEventListener;
|
|
44
|
+
/**
|
|
45
|
+
* 监听事件: 菜单--场景--创建.
|
|
46
|
+
*
|
|
47
|
+
* @param listener 事件监听函数.
|
|
48
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
49
|
+
*/
|
|
50
|
+
on$KgSimulatorMenu$Scene$Create(listener: IKgSimulatorEventListener$on$KgSimulatorMenu$Scene$Create, isOnce?: boolean): IRemoveEventListener;
|
|
51
|
+
/**
|
|
52
|
+
* 监听事件: 菜单--场景--导入.
|
|
53
|
+
*
|
|
54
|
+
* @param listener 事件监听函数.
|
|
55
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
56
|
+
*/
|
|
57
|
+
on$KgSimulatorMenu$Scene$Import(listener: IKgSimulatorEventListener$on$KgSimulatorMenu$Scene$Import, isOnce?: boolean): IRemoveEventListener;
|
|
58
|
+
/**
|
|
59
|
+
* 监听事件: 菜单--场景--打开.
|
|
60
|
+
*
|
|
61
|
+
* @param listener 事件监听函数.
|
|
62
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
63
|
+
*/
|
|
64
|
+
on$KgSimulatorMenu$Scene$Open(listener: IKgSimulatorEventListener$on$KgSimulatorMenu$Scene$Open, isOnce?: boolean): IRemoveEventListener;
|
|
44
65
|
/**
|
|
45
66
|
* 监听事件: 面板--场景--点击一个节点.
|
|
46
67
|
*
|
|
47
68
|
* @param listener 事件监听函数.
|
|
48
69
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
49
70
|
*/
|
|
50
|
-
on$KgSimulatorPanelScene$Click(listener:
|
|
71
|
+
on$KgSimulatorPanelScene$Click(listener: IKgSimulatorEventListener$on$KgSimulatorPanelScene$Click, isOnce?: boolean): IRemoveEventListener;
|
|
51
72
|
/**
|
|
52
73
|
* 监听事件: 面板--场景--删除多个节点.
|
|
53
74
|
*
|
|
54
75
|
* @param listener 事件监听函数.
|
|
55
76
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
56
77
|
*/
|
|
57
|
-
on$KgSimulatorPanelScene$Delete(listener:
|
|
78
|
+
on$KgSimulatorPanelScene$Delete(listener: IKgSimulatorEventListener$on$KgSimulatorPanelScene$Delete, isOnce?: boolean): IRemoveEventListener;
|
|
58
79
|
/**
|
|
59
80
|
* 监听事件: 面板--场景--勾选发生变更.
|
|
60
81
|
*
|
|
61
82
|
* @param listener 事件监听函数.
|
|
62
83
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
63
84
|
*/
|
|
64
|
-
on$KgSimulatorPanelScene$SelectChange(listener:
|
|
85
|
+
on$KgSimulatorPanelScene$SelectChange(listener: IKgSimulatorEventListener$on$KgSimulatorPanelScene$SelectChange, isOnce?: boolean): IRemoveEventListener;
|
|
65
86
|
/**
|
|
66
|
-
* 监听事件: WEBSOCKET
|
|
87
|
+
* 监听事件: WEBSOCKET--收到消息.
|
|
67
88
|
*
|
|
68
89
|
* @param listener 事件监听函数.
|
|
69
90
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
70
91
|
*/
|
|
71
|
-
on$WebSocket$
|
|
92
|
+
on$WebSocket$Message(listener: IKgSimulatorEventListener$on$WebSocket$Message, isOnce?: boolean): IRemoveEventListener;
|
|
72
93
|
/**
|
|
73
94
|
* 状态数据.
|
|
74
95
|
*/
|