@kengic/vue 0.30.1-beta.36 → 0.30.1-beta.37
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/dist/kengic-vue.js +29164 -28884
- package/dist/src/component/KgSimulator/KgSimulator.Canvas.d.ts +1 -1
- package/dist/src/component/KgSimulator/KgSimulator.Canvas.service.d.ts +16 -7
- 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 +77 -21
- package/dist/src/component/KgSimulator/KgSimulator.store.d.ts +20 -6
- package/dist/src/component/KgSimulator/KgSimulator.utils.d.ts +8 -0
- package/package.json +2 -2
|
@@ -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, 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,7 +25,7 @@ export declare type IUseDraw = {
|
|
|
16
25
|
* @param param
|
|
17
26
|
* @param param.dpj 叠盘机.
|
|
18
27
|
*/
|
|
19
|
-
circularConveyor$
|
|
28
|
+
circularConveyor$DrawDPJ(param?: {
|
|
20
29
|
dpj: Station;
|
|
21
30
|
}): Q.Node | null;
|
|
22
31
|
/**
|
|
@@ -25,7 +34,7 @@ export declare type IUseDraw = {
|
|
|
25
34
|
* @param param
|
|
26
35
|
* @param param.dsyzj 顶升移载机.
|
|
27
36
|
*/
|
|
28
|
-
circularConveyor$
|
|
37
|
+
circularConveyor$DrawDSYZJ(param?: {
|
|
29
38
|
dsyzj: Station;
|
|
30
39
|
}): Q.Node | null;
|
|
31
40
|
/**
|
|
@@ -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,7 +52,7 @@ export declare type IUseDraw = {
|
|
|
43
52
|
* @param param
|
|
44
53
|
* @param param.gdcgq 光电传感器.
|
|
45
54
|
*/
|
|
46
|
-
circularConveyor$
|
|
55
|
+
circularConveyor$DrawGDCGQ(param?: {
|
|
47
56
|
gdcgq: Station;
|
|
48
57
|
}): Q.Node | null;
|
|
49
58
|
/**
|
|
@@ -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
|
*/
|
|
@@ -76,6 +76,50 @@ export declare class Agent {
|
|
|
76
76
|
z?: number | null;
|
|
77
77
|
constructor(obj?: Agent);
|
|
78
78
|
}
|
|
79
|
+
/** Agent创建消息. */
|
|
80
|
+
export declare class AgentCreatedMessage {
|
|
81
|
+
/** Agent ID. */
|
|
82
|
+
agentId?: string | null;
|
|
83
|
+
/** 角度. */
|
|
84
|
+
angle?: number | null;
|
|
85
|
+
/** Data. */
|
|
86
|
+
data?: any | null;
|
|
87
|
+
/** Message Id. */
|
|
88
|
+
messageId?: string | null;
|
|
89
|
+
/** 场景ID. */
|
|
90
|
+
sceneId?: string | null;
|
|
91
|
+
/** 目标站点ID. */
|
|
92
|
+
targetStationId?: string | null;
|
|
93
|
+
/** 时间戳. */
|
|
94
|
+
timestamp?: string | null;
|
|
95
|
+
/** 消息类型. */
|
|
96
|
+
type?: string | null;
|
|
97
|
+
/** X坐标. */
|
|
98
|
+
x?: number | null;
|
|
99
|
+
/** Y坐标. */
|
|
100
|
+
y?: number | null;
|
|
101
|
+
/** Z坐标. */
|
|
102
|
+
z?: number | null;
|
|
103
|
+
constructor(obj?: AgentCreatedMessage);
|
|
104
|
+
}
|
|
105
|
+
/** Agent销毁消息. */
|
|
106
|
+
export declare class AgentDestroyedMessage {
|
|
107
|
+
/** Agent ID. */
|
|
108
|
+
agentId?: string | null;
|
|
109
|
+
/** Data. */
|
|
110
|
+
data?: any | null;
|
|
111
|
+
/** 销毁者ID. */
|
|
112
|
+
destroyerId?: string | null;
|
|
113
|
+
/** Message Id. */
|
|
114
|
+
messageId?: string | null;
|
|
115
|
+
/** 场景ID. */
|
|
116
|
+
sceneId?: string | null;
|
|
117
|
+
/** 时间戳. */
|
|
118
|
+
timestamp?: string | null;
|
|
119
|
+
/** 消息类型. */
|
|
120
|
+
type?: string | null;
|
|
121
|
+
constructor(obj?: AgentDestroyedMessage);
|
|
122
|
+
}
|
|
79
123
|
/** RGV代理实体。
|
|
80
124
|
* 从PLC下发命令执行动作的都算Agent。动作包括不限于移动,转弯、加速、减速等. */
|
|
81
125
|
export declare class AgentDto {
|
|
@@ -369,8 +413,6 @@ export declare class CreatorDto {
|
|
|
369
413
|
length?: number | null;
|
|
370
414
|
/** 所属场景ID. */
|
|
371
415
|
sceneId?: string | null;
|
|
372
|
-
/** 所属站点Id. */
|
|
373
|
-
stationId?: string | null;
|
|
374
416
|
/** 创建者宽度,对应X轴. */
|
|
375
417
|
width?: number | null;
|
|
376
418
|
/** 坐标X. */
|
|
@@ -448,8 +490,6 @@ export declare class DestroyerDto {
|
|
|
448
490
|
length?: number | null;
|
|
449
491
|
/** 所属场景ID. */
|
|
450
492
|
sceneId?: string | null;
|
|
451
|
-
/** 所属站点Id. */
|
|
452
|
-
stationId?: string | null;
|
|
453
493
|
/** 销毁者宽度,对应X轴. */
|
|
454
494
|
width?: number | null;
|
|
455
495
|
/** 坐标X. */
|
|
@@ -807,6 +847,14 @@ export declare class PhotoelectricSensorDto {
|
|
|
807
847
|
z?: number | null;
|
|
808
848
|
constructor(obj?: PhotoelectricSensorDto);
|
|
809
849
|
}
|
|
850
|
+
/** 用于前端生成类型定义. */
|
|
851
|
+
export declare class PontRequest {
|
|
852
|
+
/** Agent Created Message. */
|
|
853
|
+
agentCreatedMessage?: AgentCreatedMessage | null;
|
|
854
|
+
/** Agent Destroyed Message. */
|
|
855
|
+
agentDestroyedMessage?: AgentDestroyedMessage | null;
|
|
856
|
+
constructor(obj?: PontRequest);
|
|
857
|
+
}
|
|
810
858
|
export declare class Result<T0> {
|
|
811
859
|
/** Code. */
|
|
812
860
|
code?: number | null;
|
|
@@ -1057,39 +1105,39 @@ export declare function keys<C extends object>(obj: C): Array<keyof C>;
|
|
|
1057
1105
|
/**
|
|
1058
1106
|
* 创建一个新的对象, 并给部分属性设置默认值.
|
|
1059
1107
|
*
|
|
1060
|
-
* @param
|
|
1108
|
+
* @param creator 要覆盖的部分属性.
|
|
1061
1109
|
*/
|
|
1062
|
-
export declare function
|
|
1110
|
+
export declare function newCreator(creator?: Creator): Creator;
|
|
1063
1111
|
/**
|
|
1064
1112
|
* 创建一个新的对象, 并给部分属性设置默认值.
|
|
1065
1113
|
*
|
|
1066
|
-
* @param
|
|
1114
|
+
* @param destroyer 要覆盖的部分属性.
|
|
1067
1115
|
*/
|
|
1068
|
-
export declare function
|
|
1116
|
+
export declare function newDestroyer(destroyer?: Destroyer): Destroyer;
|
|
1069
1117
|
/**
|
|
1070
1118
|
* 创建一个新的对象, 并给部分属性设置默认值.
|
|
1071
1119
|
*
|
|
1072
1120
|
* @param station 要覆盖的部分属性.
|
|
1073
1121
|
*/
|
|
1074
|
-
export declare function
|
|
1122
|
+
export declare function newPTSSJ(station?: Station): Station;
|
|
1075
1123
|
/**
|
|
1076
1124
|
* 创建一个新的对象, 并给部分属性设置默认值.
|
|
1077
1125
|
*
|
|
1078
1126
|
* @param station 要覆盖的部分属性.
|
|
1079
1127
|
*/
|
|
1080
|
-
export declare function
|
|
1128
|
+
export declare function newDSYZJ(station?: JackUpTransferStation): JackUpTransferStation;
|
|
1081
1129
|
/**
|
|
1082
1130
|
* 创建一个新的对象, 并给部分属性设置默认值.
|
|
1083
1131
|
*
|
|
1084
|
-
* @param
|
|
1132
|
+
* @param station 要覆盖的部分属性.
|
|
1085
1133
|
*/
|
|
1086
|
-
export declare function
|
|
1134
|
+
export declare function newDPJ(station?: PalletStackerStation): PalletStackerStation;
|
|
1087
1135
|
/**
|
|
1088
1136
|
* 创建一个新的对象, 并给部分属性设置默认值.
|
|
1089
1137
|
*
|
|
1090
|
-
* @param
|
|
1138
|
+
* @param station 要覆盖的部分属性.
|
|
1091
1139
|
*/
|
|
1092
|
-
export declare function
|
|
1140
|
+
export declare function newGDCGQ(station?: PhotoelectricSensor): PhotoelectricSensor;
|
|
1093
1141
|
/**
|
|
1094
1142
|
* 创建一个新的对象, 并给部分属性设置默认值.
|
|
1095
1143
|
*
|
|
@@ -1120,14 +1168,22 @@ export declare type IDragDataTransferData = {
|
|
|
1120
1168
|
*/
|
|
1121
1169
|
export declare type INodeProperty = {
|
|
1122
1170
|
/**
|
|
1123
|
-
*
|
|
1171
|
+
* 创建者--计时器.
|
|
1124
1172
|
*/
|
|
1125
|
-
|
|
1173
|
+
$Creator$Timer?: number;
|
|
1126
1174
|
/**
|
|
1127
|
-
*
|
|
1128
|
-
* <p>如果是节点, 则该属性为 undefined,</p>
|
|
1175
|
+
* 创建者--计时器.
|
|
1129
1176
|
*/
|
|
1130
|
-
|
|
1177
|
+
$Destroyer$Timer?: number;
|
|
1178
|
+
/**
|
|
1179
|
+
* <p>连线--长度.</p>
|
|
1180
|
+
* <p>如果不是连线, 则该属性为 undefined,</p>
|
|
1181
|
+
*/
|
|
1182
|
+
$Edge$length?: number;
|
|
1183
|
+
/**
|
|
1184
|
+
* 对象.
|
|
1185
|
+
*/
|
|
1186
|
+
data: Record<string, any>;
|
|
1131
1187
|
/**
|
|
1132
1188
|
* 对象类型.
|
|
1133
1189
|
*
|
|
@@ -1233,7 +1289,7 @@ export declare const NODE_UI_KEY: {
|
|
|
1233
1289
|
/**
|
|
1234
1290
|
* WEBSOCKET 发起请求消息类型.
|
|
1235
1291
|
*/
|
|
1236
|
-
export declare const
|
|
1292
|
+
export declare const WEBSOCKET_PING_TYPE: {
|
|
1237
1293
|
/**
|
|
1238
1294
|
* 更新代理状态.
|
|
1239
1295
|
*/
|
|
@@ -1242,7 +1298,7 @@ export declare const WEBSOCKET_REQUEST_TYPE: {
|
|
|
1242
1298
|
/**
|
|
1243
1299
|
* WEBSOCKET 接收响应消息类型.
|
|
1244
1300
|
*/
|
|
1245
|
-
export declare const
|
|
1301
|
+
export declare const WEBSOCKET_PONG_TYPE: {
|
|
1246
1302
|
/**
|
|
1247
1303
|
* 代理创建成功.
|
|
1248
1304
|
*/
|
|
@@ -3,24 +3,36 @@ import { WebSocketResult } from '@vueuse/core';
|
|
|
3
3
|
import { KgStoreDefinition } from '../../const';
|
|
4
4
|
import { IToolbarPlacement, Scene } from './KgSimulator.model';
|
|
5
5
|
export interface IKgSimulatorStoreGetters {
|
|
6
|
+
/**
|
|
7
|
+
* 配置--环形输送线--接口地址--创建代理者.
|
|
8
|
+
*
|
|
9
|
+
* @default '/Agent/CreateAgent'
|
|
10
|
+
*/
|
|
11
|
+
$config$circularConveyor$api$CreateAgent: string;
|
|
6
12
|
/**
|
|
7
13
|
* 配置--环形输送线--接口地址--创建场景.
|
|
8
14
|
*
|
|
9
15
|
* @default '/Scene/CreateScene'
|
|
10
16
|
*/
|
|
11
|
-
$config$circularConveyor$api$
|
|
17
|
+
$config$circularConveyor$api$CreateScene: string;
|
|
18
|
+
/**
|
|
19
|
+
* 配置--环形输送线--接口地址--销毁代理者.
|
|
20
|
+
*
|
|
21
|
+
* @default '/Agent/DestroyAgent'
|
|
22
|
+
*/
|
|
23
|
+
$config$circularConveyor$api$DestroyAgent: string;
|
|
12
24
|
/**
|
|
13
25
|
* 配置--环形输送线--接口地址--查询场景列表.
|
|
14
26
|
*
|
|
15
27
|
* @default '/Scene/GetScenes'
|
|
16
28
|
*/
|
|
17
|
-
$config$circularConveyor$api$
|
|
29
|
+
$config$circularConveyor$api$RequestSceneList: string;
|
|
18
30
|
/**
|
|
19
31
|
* 配置--环形输送线--接口地址--更新场景.
|
|
20
32
|
*
|
|
21
33
|
* @default '/Scene/SaveScene'
|
|
22
34
|
*/
|
|
23
|
-
$config$circularConveyor$api$
|
|
35
|
+
$config$circularConveyor$api$UpdateScene: string;
|
|
24
36
|
/**
|
|
25
37
|
* 配置--环形输送线--接口地址--WEBSOCKET.
|
|
26
38
|
*
|
|
@@ -160,9 +172,11 @@ export interface IKgSimulatorStoreActions {
|
|
|
160
172
|
* 保存场景.
|
|
161
173
|
*/
|
|
162
174
|
saveScene(): Promise<void>;
|
|
163
|
-
set$config$circularConveyor$api$
|
|
164
|
-
set$config$circularConveyor$api$
|
|
165
|
-
set$config$circularConveyor$api$
|
|
175
|
+
set$config$circularConveyor$api$CreateAgent(value: string | null | undefined): void;
|
|
176
|
+
set$config$circularConveyor$api$CreateScene(value: string | null | undefined): void;
|
|
177
|
+
set$config$circularConveyor$api$DestroyAgent(value: string | null | undefined): void;
|
|
178
|
+
set$config$circularConveyor$api$RequestSceneList(value: string | null | undefined): void;
|
|
179
|
+
set$config$circularConveyor$api$UpdateScene(value: string | null | undefined): void;
|
|
166
180
|
set$config$circularConveyor$api$ws(value: string | null | undefined): void;
|
|
167
181
|
/**
|
|
168
182
|
* <p>设置环境.</p>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kengic/vue",
|
|
3
|
-
"version": "0.30.1-beta.
|
|
3
|
+
"version": "0.30.1-beta.37",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "npm run use-node && rimraf dist && vue-tsc && vite build",
|
|
6
6
|
"build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@iconify-icons/mdi": "1.2.48",
|
|
44
44
|
"@iconify-icons/ph": "1.2.5",
|
|
45
45
|
"@iconify/vue": "4.1.2",
|
|
46
|
-
"@kengic/core.core": "0.0.1-beta.
|
|
46
|
+
"@kengic/core.core": "0.0.1-beta.24",
|
|
47
47
|
"@kengic/core.react": "0.0.2-beta.42",
|
|
48
48
|
"@kengic/pont": "1.2.17-beta.5",
|
|
49
49
|
"@rys-fe/vite-plugin-theme": "0.8.6",
|