@kengic/vue 0.30.1-beta.35 → 0.30.1-beta.36

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.
@@ -1,31 +1,8 @@
1
1
  import { Q } from '@thymine/xunee';
2
+ import { WebSocketResult } from '@vueuse/core';
2
3
  import { KgStoreDefinition } from '../../const';
3
4
  import { IToolbarPlacement, Scene } from './KgSimulator.model';
4
5
  export interface IKgSimulatorStoreGetters {
5
- /**
6
- * 环形输送线--当前场景.
7
- */
8
- $circularConveyor$currentScene: Scene | null;
9
- /**
10
- * 环形输送线--当前场景--是否已经保存.
11
- */
12
- $circularConveyor$currentScene$isSave: boolean;
13
- /**
14
- * 环形输送线--当前场景--是否正在保存.
15
- */
16
- $circularConveyor$currentScene$isSaving: boolean;
17
- /**
18
- * 环形穿梭车--当前场景.
19
- */
20
- $circularShuttle$currentScene: any | null;
21
- /**
22
- * 环形穿梭车--当前场景--是否已经保存.
23
- */
24
- $circularShuttle$currentScene$isSave: boolean;
25
- /**
26
- * 环形穿梭车--当前场景--是否正在保存.
27
- */
28
- $circularShuttle$currentScene$isSaving: boolean;
29
6
  /**
30
7
  * 配置--环形输送线--接口地址--创建场景.
31
8
  *
@@ -44,6 +21,12 @@ export interface IKgSimulatorStoreGetters {
44
21
  * @default '/Scene/SaveScene'
45
22
  */
46
23
  $config$circularConveyor$api$updateScene: string;
24
+ /**
25
+ * 配置--环形输送线--接口地址--WEBSOCKET.
26
+ *
27
+ * @default '/Scene/GetScenes'
28
+ */
29
+ $config$circularConveyor$api$ws: string;
47
30
  /**
48
31
  * 配置--环境--是否是环形输送线.
49
32
  *
@@ -56,24 +39,6 @@ export interface IKgSimulatorStoreGetters {
56
39
  * @default false
57
40
  */
58
41
  $config$env$isCircularShuttle: boolean;
59
- /**
60
- * 配置--模式--是否是编辑模式.
61
- *
62
- * @default true
63
- */
64
- $config$mode$isEdit: boolean;
65
- /**
66
- * 配置--模式--是否是监控模式.
67
- *
68
- * @default false
69
- */
70
- $config$mode$isMonitor: boolean;
71
- /**
72
- * 配置--模式--是否是仿真模式.
73
- *
74
- * @default false
75
- */
76
- $config$mode$isSimulate: boolean;
77
42
  /**
78
43
  * 配置--工具栏--预制组件--是否打开.
79
44
  *
@@ -128,22 +93,77 @@ export interface IKgSimulatorStoreGetters {
128
93
  * @default 'LEFT_TOP'
129
94
  */
130
95
  $config$toolbar$scene$placement: IToolbarPlacement;
96
+ /**
97
+ * 环境--环形输送线--当前场景.
98
+ */
99
+ $env$circularConveyor$currentScene: Scene | null;
100
+ /**
101
+ * 环境--环形输送线--当前场景--是否已经保存.
102
+ */
103
+ $env$circularConveyor$currentScene$isSave: boolean;
104
+ /**
105
+ * 环境--环形输送线--当前场景--是否正在保存.
106
+ */
107
+ $env$circularConveyor$currentScene$isSaving: boolean;
108
+ /**
109
+ * 环境--环形穿梭车--当前场景.
110
+ */
111
+ $env$circularShuttle$currentScene: any | null;
112
+ /**
113
+ * 环境--环形穿梭车--当前场景--是否已经保存.
114
+ */
115
+ $env$circularShuttle$currentScene$isSave: boolean;
116
+ /**
117
+ * 环境--环形穿梭车--当前场景--是否正在保存.
118
+ */
119
+ $env$circularShuttle$currentScene$isSaving: boolean;
120
+ /**
121
+ * 模式--是否是编辑模式.
122
+ *
123
+ * @default true
124
+ */
125
+ $mode$isEdit: boolean;
126
+ /**
127
+ * 模式--是否是监控模式.
128
+ *
129
+ * @default false
130
+ */
131
+ $mode$isMonitor: boolean;
132
+ /**
133
+ * 配置--模式--是否是仿真模式.
134
+ *
135
+ * @default false
136
+ */
137
+ $mode$isSimulate: boolean;
138
+ /**
139
+ * 配置--模式--仿真模式--正在运行.
140
+ *
141
+ * @default false
142
+ */
143
+ $mode$simulate$isRunning: boolean;
131
144
  }
132
145
  export interface IKgSimulatorStoreActions {
146
+ /**
147
+ * WEBSOCKET--建立连接.
148
+ *
149
+ * @param param.url 连接地址.
150
+ */
151
+ $WebSocket$connect(param: {
152
+ url: string;
153
+ }): void;
154
+ /**
155
+ * WEBSOCKET--获取连接结果.
156
+ */
157
+ $WebSocket$getConnection(): WebSocketResult<any> | null;
133
158
  get$graph(): Q.Graph | null;
134
159
  /**
135
160
  * 保存场景.
136
161
  */
137
162
  saveScene(): Promise<void>;
138
- set$circularConveyor$currentScene(value: Scene | null | undefined): void;
139
- set$circularConveyor$currentScene$isSave(value: boolean | null | undefined): void;
140
- set$circularConveyor$currentScene$isSaving(value: boolean | null | undefined): void;
141
- set$circularShuttle$currentScene(value: any | null | undefined): void;
142
- set$circularShuttle$currentScene$isSave(value: boolean | null | undefined): void;
143
- set$circularShuttle$currentScene$isSaving(value: boolean | null | undefined): void;
144
163
  set$config$circularConveyor$api$createScene(value: string | null | undefined): void;
145
164
  set$config$circularConveyor$api$requestSceneList(value: string | null | undefined): void;
146
165
  set$config$circularConveyor$api$updateScene(value: string | null | undefined): void;
166
+ set$config$circularConveyor$api$ws(value: string | null | undefined): void;
147
167
  /**
148
168
  * <p>设置环境.</p>
149
169
  * <ul>
@@ -174,6 +194,13 @@ export interface IKgSimulatorStoreActions {
174
194
  set$config$toolbar$scene$isOpen(value: boolean | null | undefined): void;
175
195
  set$config$toolbar$scene$isVisible(value: boolean | null | undefined): void;
176
196
  set$config$toolbar$scene$placement(value: IToolbarPlacement | null | undefined): void;
197
+ set$env$circularConveyor$currentScene(value: Scene | null | undefined): void;
198
+ set$env$circularConveyor$currentScene$isSave(value: boolean | null | undefined): void;
199
+ set$env$circularConveyor$currentScene$isSaving(value: boolean | null | undefined): void;
200
+ set$env$circularShuttle$currentScene(value: any | null | undefined): void;
201
+ set$env$circularShuttle$currentScene$isSave(value: boolean | null | undefined): void;
202
+ set$env$circularShuttle$currentScene$isSaving(value: boolean | null | undefined): void;
177
203
  set$graph(value: Q.Graph | null | undefined): void;
204
+ set$mode$simulate$isRunning(value: boolean | null | undefined): void;
178
205
  }
179
206
  export declare function buildKgSimulatorStore(id: string | null | undefined): KgStoreDefinition<IKgSimulatorStoreGetters, IKgSimulatorStoreActions>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.30.1-beta.35",
3
+ "version": "0.30.1-beta.36",
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",
@@ -1,11 +0,0 @@
1
- import { ExtractPropTypes } from 'vue';
2
- import './KgSimulator.css';
3
- import './KgSimulator.icons';
4
- export declare const getProps: () => any;
5
- export declare type KgSimulatorTitleProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
6
- /**
7
- * 模拟器--标题栏.
8
- */
9
- export declare const KgSimulatorTitle: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
10
- [x: string]: any;
11
- }>;