@jnrs/lingshu-smart 3.1.7 → 3.1.8
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/components/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { onMounted as jt, onUnmounted as nl, defineComponent as Pe, computed as
|
|
|
3
3
|
import { ElMessageBox as et, ElDialog as mt, ElForm as zt, ElFormItem as ye, ElSelect as ke, ElOption as ve, ElSwitch as Ee, ElButton as se, ElIcon as De, ElMessage as oe, ElInputNumber as Me, ElColorPicker as Sl, ElInput as fe, ElPopover as ca, ElTooltip as Je, TableV2FixedDir as vn, ElAutoResizer as fn, ElTableV2 as pn, ElTag as Be, ElLoading as va, ElRadioGroup as ns, ElRadioButton as yl, ElDropdown as bl, ElDropdownMenu as gl, ElDropdownItem as rt, vLoading as fa, ElCheckbox as ht, ElScrollbar as mn, ElEmpty as fl, ElTable as ts, ElTableColumn as Ge, ElButtonGroup as yn, ElRadio as bn } from "element-plus";
|
|
4
4
|
import { Search as gn, Close as Xs, WarnTriangleFilled as os, View as pa, Hide as ma, CopyDocument as ol, Delete as Hl, QuestionFilled as ya, Plus as al, Minus as Ol, Top as Vn, Bottom as xn, Select as wn, WarningFilled as pl, Upload as ba, Download as ga, Coin as Ms, Cpu as Ls, ArrowDown as rs, Connection as hn, Refresh as Pn, Finished as An, Back as zn, Right as Nn, SwitchButton as kn, Sunny as Dn, Moon as Xn, FullScreen as Ln, ArrowRight as Tn } from "@element-plus/icons-vue";
|
|
5
5
|
import { storeToRefs as Re } from "pinia";
|
|
6
|
-
import { c as It, i as Us, u as Nt, a as Ye, d as Rt, s as Ut, L as On, D as Wn, M as Sn, e as Hn, f as qn, W as Un, V as Cn, B as Rn, S as jn, C as In, P as Fn, g as Mn, h as En, j as Kn, k as Bn, l as Va, r as xa, b as Cs, m as wa, n as ha, o as Pa, p as Aa, q as za, t as Yn, v as Ts, w as Gn, x as Es, y as Ks, z as Na, A as Qn, E as Bs, F as Zn, G as Ys, H as Jn, I as _n, J as $n, K as eo, N as to, O as lo, Q as so } from "../useAppStore-
|
|
6
|
+
import { c as It, i as Us, u as Nt, a as Ye, d as Rt, s as Ut, L as On, D as Wn, M as Sn, e as Hn, f as qn, W as Un, V as Cn, B as Rn, S as jn, C as In, P as Fn, g as Mn, h as En, j as Kn, k as Bn, l as Va, r as xa, b as Cs, m as wa, n as ha, o as Pa, p as Aa, q as za, t as Yn, v as Ts, w as Gn, x as Es, y as Ks, z as Na, A as Qn, E as Bs, F as Zn, G as Ys, H as Jn, I as _n, J as $n, K as eo, N as to, O as lo, Q as so } from "../useAppStore-5M7dO6mB.js";
|
|
7
7
|
import { z as Se, t as Tt, b as dt, H as Et, e as ot, a as ka, q as ao, p as no, u as oo, r as ro, E as Pt, m as io, M as uo, o as $t } from "../index-C6Liz-8o.js";
|
|
8
8
|
import { clipboard as Vl, formatDateTime as Rs } from "@jnrs/shared";
|
|
9
9
|
import { f as co, b as qt, i as ws, d as el, e as tl, g as vt, c as ll, u as vo } from "../fullscreen-cF8Z5e2Z.js";
|
|
@@ -5533,7 +5533,7 @@ const hv = { class: "step-visualizer-container" }, Pv = { class: "dots-wrapper"
|
|
|
5533
5533
|
},
|
|
5534
5534
|
{ immediate: !0 }
|
|
5535
5535
|
);
|
|
5536
|
-
const c = () => b.toggleTheme(), { isFullscreen: y, toggleFullscreen: O } = vo(), C = "3.1.
|
|
5536
|
+
const c = () => b.toggleTheme(), { isFullscreen: y, toggleFullscreen: O } = vo(), C = "3.1.8", X = ee();
|
|
5537
5537
|
return Da(X), (H, k) => He((h(), M("div", Rv, [
|
|
5538
5538
|
t("div", jv, [
|
|
5539
5539
|
t("div", Iv, [
|
|
@@ -1,114 +1,49 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"caseId": "
|
|
4
|
-
"caseName": "
|
|
3
|
+
"caseId": "372045259409989632",
|
|
4
|
+
"caseName": "方案37204525",
|
|
5
5
|
"fileUrl": "public/lingshu-smart/wsProxyConfig.json",
|
|
6
|
-
"version": "
|
|
7
|
-
"dataSource": "external",
|
|
6
|
+
"version": "10281125",
|
|
7
|
+
"dataSource": "registry-external",
|
|
8
8
|
"wsUrl": "",
|
|
9
9
|
"carryToken": true,
|
|
10
|
-
"requestMode": "
|
|
10
|
+
"requestMode": "proxy",
|
|
11
11
|
"autoConnect": true,
|
|
12
|
-
"payloadKey": "
|
|
13
|
-
"sourceTypeField": "
|
|
14
|
-
"heartbeatInterval":
|
|
12
|
+
"payloadKey": "data",
|
|
13
|
+
"sourceTypeField": "type",
|
|
14
|
+
"heartbeatInterval": 0,
|
|
15
15
|
"autoReconnect": true,
|
|
16
16
|
"modelMap": {
|
|
17
|
-
"
|
|
17
|
+
"0": "Rgv"
|
|
18
18
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"deviceType": "double_joint_robot",
|
|
23
|
-
"className": "DoubleJointRobot",
|
|
24
|
-
"equipmentName": "双关节机器人",
|
|
25
|
-
"enabled": true,
|
|
26
|
-
"operate": "single",
|
|
27
|
-
"mappings": [
|
|
28
|
-
{
|
|
29
|
-
"target": "device_id",
|
|
30
|
-
"source": "device_id",
|
|
31
|
-
"defaultValue": ""
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"target": "light.color",
|
|
35
|
-
"source": "light.color"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"target": "light.rotating",
|
|
39
|
-
"source": "light.rotating"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"target": "light.blinking",
|
|
43
|
-
"source": "light.blinking"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"target": "position.x",
|
|
47
|
-
"source": "position.x"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"target": "position.y",
|
|
51
|
-
"source": "position.y"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"target": "position.j1",
|
|
55
|
-
"source": "position.j1"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"target": "position.j2",
|
|
59
|
-
"source": "position.j2"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"target": "current_fixture",
|
|
63
|
-
"source": "current_fixture"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"target": "device_state",
|
|
67
|
-
"source": "device_state"
|
|
68
|
-
}
|
|
69
|
-
]
|
|
70
|
-
},
|
|
19
|
+
"registryUrl": "/device/devices",
|
|
20
|
+
"registryIdField": "id",
|
|
21
|
+
"registryDevices": [
|
|
71
22
|
{
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"className": "
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"operate": "single",
|
|
23
|
+
"uid": "373747708789358592",
|
|
24
|
+
"layerId": "372049628637437952",
|
|
25
|
+
"className": "ResourceStore",
|
|
26
|
+
"enumValue": "12",
|
|
27
|
+
"number": "2",
|
|
78
28
|
"mappings": [
|
|
79
|
-
{
|
|
80
|
-
"target": "device_id",
|
|
81
|
-
"source": "device_id",
|
|
82
|
-
"defaultValue": ""
|
|
83
|
-
},
|
|
84
29
|
{
|
|
85
30
|
"target": "light.color",
|
|
86
31
|
"source": "light.color"
|
|
87
32
|
},
|
|
88
33
|
{
|
|
89
34
|
"target": "light.rotating",
|
|
90
|
-
"source": "light.rotating"
|
|
35
|
+
"source": "light.rotating",
|
|
36
|
+
"transformTargetType": "boolean"
|
|
91
37
|
},
|
|
92
38
|
{
|
|
93
39
|
"target": "light.blinking",
|
|
94
|
-
"source": "light.blinking"
|
|
40
|
+
"source": "light.blinking",
|
|
41
|
+
"transformTargetType": "boolean"
|
|
95
42
|
},
|
|
96
43
|
{
|
|
97
44
|
"target": "position.x",
|
|
98
45
|
"source": "position.x"
|
|
99
46
|
},
|
|
100
|
-
{
|
|
101
|
-
"target": "position.j1",
|
|
102
|
-
"source": "position.j1"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"target": "position.fork_xy",
|
|
106
|
-
"source": "position.fork_xy"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"target": "position.fork_z",
|
|
110
|
-
"source": "position.fork_z"
|
|
111
|
-
},
|
|
112
47
|
{
|
|
113
48
|
"target": "device_state",
|
|
114
49
|
"source": "device_state"
|
|
@@ -116,33 +51,25 @@
|
|
|
116
51
|
]
|
|
117
52
|
},
|
|
118
53
|
{
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"className": "
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"operate": "single",
|
|
54
|
+
"uid": "373747714258731008",
|
|
55
|
+
"layerId": "372049832065376256",
|
|
56
|
+
"className": "MaterialTrack",
|
|
57
|
+
"enumValue": "10",
|
|
58
|
+
"number": "1",
|
|
125
59
|
"mappings": [
|
|
126
|
-
{
|
|
127
|
-
"target": "device_id",
|
|
128
|
-
"source": "device_id",
|
|
129
|
-
"defaultValue": ""
|
|
130
|
-
},
|
|
131
60
|
{
|
|
132
61
|
"target": "light.color",
|
|
133
62
|
"source": "light.color"
|
|
134
63
|
},
|
|
135
|
-
{
|
|
136
|
-
"target": "light.rotating",
|
|
137
|
-
"source": "light.rotating"
|
|
138
|
-
},
|
|
139
64
|
{
|
|
140
65
|
"target": "light.blinking",
|
|
141
|
-
"source": "light.blinking"
|
|
66
|
+
"source": "light.blinking",
|
|
67
|
+
"transformTargetType": "boolean"
|
|
142
68
|
},
|
|
143
69
|
{
|
|
144
|
-
"target": "
|
|
145
|
-
"source": "
|
|
70
|
+
"target": "layer_visible",
|
|
71
|
+
"source": "layer_visible",
|
|
72
|
+
"defaultValue": {}
|
|
146
73
|
},
|
|
147
74
|
{
|
|
148
75
|
"target": "device_state",
|
|
@@ -151,57 +78,25 @@
|
|
|
151
78
|
]
|
|
152
79
|
},
|
|
153
80
|
{
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"className": "
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"operate": "single",
|
|
81
|
+
"uid": "373747716368465920",
|
|
82
|
+
"layerId": "372051317327142912",
|
|
83
|
+
"className": "MaterialTrack",
|
|
84
|
+
"enumValue": "11",
|
|
85
|
+
"number": "1",
|
|
160
86
|
"mappings": [
|
|
161
|
-
{
|
|
162
|
-
"target": "device_id",
|
|
163
|
-
"source": "device_id",
|
|
164
|
-
"defaultValue": ""
|
|
165
|
-
},
|
|
166
87
|
{
|
|
167
88
|
"target": "light.color",
|
|
168
89
|
"source": "light.color"
|
|
169
90
|
},
|
|
170
|
-
{
|
|
171
|
-
"target": "light.rotating",
|
|
172
|
-
"source": "light.rotating"
|
|
173
|
-
},
|
|
174
91
|
{
|
|
175
92
|
"target": "light.blinking",
|
|
176
|
-
"source": "light.blinking"
|
|
177
|
-
|
|
178
|
-
{
|
|
179
|
-
"target": "progress.percent",
|
|
180
|
-
"source": "progress.percent",
|
|
181
|
-
"defaultValue": 0
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"target": "progress.text",
|
|
185
|
-
"source": "progress.text"
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
"target": "passage.in",
|
|
189
|
-
"source": "passage.in",
|
|
190
|
-
"defaultValue": false
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"target": "passage.out",
|
|
194
|
-
"source": "passage.out",
|
|
195
|
-
"defaultValue": false
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"target": "station_rotation",
|
|
199
|
-
"source": "station_rotation"
|
|
93
|
+
"source": "light.blinking",
|
|
94
|
+
"transformTargetType": "boolean"
|
|
200
95
|
},
|
|
201
96
|
{
|
|
202
|
-
"target": "
|
|
203
|
-
"source": "
|
|
204
|
-
"defaultValue":
|
|
97
|
+
"target": "layer_visible",
|
|
98
|
+
"source": "layer_visible",
|
|
99
|
+
"defaultValue": {}
|
|
205
100
|
},
|
|
206
101
|
{
|
|
207
102
|
"target": "device_state",
|
|
@@ -210,146 +105,95 @@
|
|
|
210
105
|
]
|
|
211
106
|
},
|
|
212
107
|
{
|
|
213
|
-
"
|
|
214
|
-
"
|
|
215
|
-
"className": "
|
|
216
|
-
"
|
|
217
|
-
"
|
|
218
|
-
"operate": "single",
|
|
108
|
+
"uid": "373747718398509056",
|
|
109
|
+
"layerId": "372051699218522112",
|
|
110
|
+
"className": "Rgv",
|
|
111
|
+
"enumValue": "0",
|
|
112
|
+
"number": "1",
|
|
219
113
|
"mappings": [
|
|
220
|
-
{
|
|
221
|
-
"target": "device_id",
|
|
222
|
-
"source": "device_id",
|
|
223
|
-
"defaultValue": ""
|
|
224
|
-
},
|
|
225
114
|
{
|
|
226
115
|
"target": "light.color",
|
|
227
|
-
"source": "
|
|
116
|
+
"source": "status"
|
|
228
117
|
},
|
|
229
118
|
{
|
|
230
119
|
"target": "light.rotating",
|
|
231
|
-
"source": "
|
|
120
|
+
"source": "",
|
|
121
|
+
"transformTargetType": "boolean"
|
|
232
122
|
},
|
|
233
123
|
{
|
|
234
124
|
"target": "light.blinking",
|
|
235
|
-
"source": "
|
|
125
|
+
"source": "status",
|
|
126
|
+
"transformTargetType": "boolean"
|
|
236
127
|
},
|
|
237
128
|
{
|
|
238
|
-
"target": "
|
|
239
|
-
"source": "
|
|
240
|
-
"defaultValue": 0
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"target": "progress.text",
|
|
244
|
-
"source": "progress.text"
|
|
129
|
+
"target": "position.x",
|
|
130
|
+
"source": "x"
|
|
245
131
|
},
|
|
246
132
|
{
|
|
247
|
-
"target": "
|
|
248
|
-
"source": "
|
|
249
|
-
"defaultValue": false
|
|
133
|
+
"target": "position.j1",
|
|
134
|
+
"source": ""
|
|
250
135
|
},
|
|
251
136
|
{
|
|
252
|
-
"target": "
|
|
253
|
-
"source": "
|
|
254
|
-
"defaultValue": false
|
|
137
|
+
"target": "position.fork_xy",
|
|
138
|
+
"source": "forkY"
|
|
255
139
|
},
|
|
256
140
|
{
|
|
257
|
-
"target": "
|
|
258
|
-
"source": "
|
|
259
|
-
"defaultValue": false
|
|
141
|
+
"target": "position.fork_z",
|
|
142
|
+
"source": "z"
|
|
260
143
|
},
|
|
261
144
|
{
|
|
262
145
|
"target": "device_state",
|
|
263
|
-
"source": "
|
|
146
|
+
"source": "status"
|
|
264
147
|
}
|
|
265
|
-
]
|
|
148
|
+
],
|
|
149
|
+
"typeValue": "1"
|
|
266
150
|
},
|
|
267
151
|
{
|
|
268
|
-
"
|
|
269
|
-
"
|
|
270
|
-
"className": "
|
|
271
|
-
"
|
|
272
|
-
"
|
|
273
|
-
"
|
|
274
|
-
"mappings": [
|
|
275
|
-
{
|
|
276
|
-
"target": "device_id",
|
|
277
|
-
"source": "device_id",
|
|
278
|
-
"defaultValue": ""
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"target": "light.color",
|
|
282
|
-
"source": "light.color"
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
"target": "light.blinking",
|
|
286
|
-
"source": "light.blinking"
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"target": "device_state",
|
|
290
|
-
"source": "device_state"
|
|
291
|
-
}
|
|
292
|
-
]
|
|
152
|
+
"uid": "373747720948645888",
|
|
153
|
+
"layerId": "372051533644177408",
|
|
154
|
+
"className": "Rail",
|
|
155
|
+
"enumValue": "",
|
|
156
|
+
"number": "",
|
|
157
|
+
"mappings": []
|
|
293
158
|
},
|
|
294
159
|
{
|
|
295
|
-
"
|
|
296
|
-
"
|
|
297
|
-
"className": "
|
|
298
|
-
"
|
|
299
|
-
"
|
|
300
|
-
"operate": "single",
|
|
160
|
+
"uid": "373754078808895488",
|
|
161
|
+
"layerId": "372045856062316544",
|
|
162
|
+
"className": "ResourceStore",
|
|
163
|
+
"enumValue": "12",
|
|
164
|
+
"number": "1",
|
|
301
165
|
"mappings": [
|
|
302
|
-
{
|
|
303
|
-
"target": "device_id",
|
|
304
|
-
"source": "device_id",
|
|
305
|
-
"defaultValue": ""
|
|
306
|
-
},
|
|
307
166
|
{
|
|
308
167
|
"target": "light.color",
|
|
309
168
|
"source": "light.color"
|
|
310
169
|
},
|
|
311
170
|
{
|
|
312
171
|
"target": "light.rotating",
|
|
313
|
-
"source": "light.rotating"
|
|
172
|
+
"source": "light.rotating",
|
|
173
|
+
"transformTargetType": "boolean"
|
|
314
174
|
},
|
|
315
175
|
{
|
|
316
176
|
"target": "light.blinking",
|
|
317
|
-
"source": "light.blinking"
|
|
318
|
-
|
|
319
|
-
{
|
|
320
|
-
"target": "progress.percent",
|
|
321
|
-
"source": "progress.percent",
|
|
322
|
-
"defaultValue": 0
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
"target": "progress.text",
|
|
326
|
-
"source": "progress.text"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
"target": "passage.in",
|
|
330
|
-
"source": "passage.in",
|
|
331
|
-
"defaultValue": false
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
"target": "passage.out",
|
|
335
|
-
"source": "passage.out",
|
|
336
|
-
"defaultValue": false
|
|
177
|
+
"source": "light.blinking",
|
|
178
|
+
"transformTargetType": "boolean"
|
|
337
179
|
},
|
|
338
180
|
{
|
|
339
|
-
"target": "
|
|
340
|
-
"source": "
|
|
181
|
+
"target": "position.x",
|
|
182
|
+
"source": "position.x"
|
|
341
183
|
},
|
|
342
184
|
{
|
|
343
185
|
"target": "device_state",
|
|
344
186
|
"source": "device_state"
|
|
345
187
|
}
|
|
346
188
|
]
|
|
347
|
-
}
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
"rules": [
|
|
348
192
|
{
|
|
349
193
|
"sourceType": "device_command",
|
|
350
|
-
"deviceType": "
|
|
351
|
-
"className": "
|
|
352
|
-
"equipmentName": "
|
|
194
|
+
"deviceType": "resource_store",
|
|
195
|
+
"className": "ResourceStore",
|
|
196
|
+
"equipmentName": "资源库",
|
|
353
197
|
"enabled": true,
|
|
354
198
|
"operate": "single",
|
|
355
199
|
"mappings": [
|
|
@@ -363,23 +207,18 @@
|
|
|
363
207
|
"source": "light.color"
|
|
364
208
|
},
|
|
365
209
|
{
|
|
366
|
-
"target": "light.
|
|
367
|
-
"source": "light.
|
|
368
|
-
|
|
369
|
-
{
|
|
370
|
-
"target": "layer_visible",
|
|
371
|
-
"source": "layer_visible",
|
|
372
|
-
"defaultValue": {}
|
|
210
|
+
"target": "light.rotating",
|
|
211
|
+
"source": "light.rotating",
|
|
212
|
+
"transformTargetType": "boolean"
|
|
373
213
|
},
|
|
374
214
|
{
|
|
375
|
-
"target": "
|
|
376
|
-
"source": "
|
|
377
|
-
"
|
|
215
|
+
"target": "light.blinking",
|
|
216
|
+
"source": "light.blinking",
|
|
217
|
+
"transformTargetType": "boolean"
|
|
378
218
|
},
|
|
379
219
|
{
|
|
380
|
-
"target": "
|
|
381
|
-
"source": "
|
|
382
|
-
"defaultValue": {}
|
|
220
|
+
"target": "position.x",
|
|
221
|
+
"source": "position.x"
|
|
383
222
|
},
|
|
384
223
|
{
|
|
385
224
|
"target": "device_state",
|
|
@@ -406,7 +245,8 @@
|
|
|
406
245
|
},
|
|
407
246
|
{
|
|
408
247
|
"target": "light.blinking",
|
|
409
|
-
"source": "light.blinking"
|
|
248
|
+
"source": "light.blinking",
|
|
249
|
+
"transformTargetType": "boolean"
|
|
410
250
|
},
|
|
411
251
|
{
|
|
412
252
|
"target": "layer_visible",
|
|
@@ -421,9 +261,9 @@
|
|
|
421
261
|
},
|
|
422
262
|
{
|
|
423
263
|
"sourceType": "device_command",
|
|
424
|
-
"deviceType": "
|
|
425
|
-
"className": "
|
|
426
|
-
"equipmentName": "
|
|
264
|
+
"deviceType": "",
|
|
265
|
+
"className": "Rgv",
|
|
266
|
+
"equipmentName": "RGV",
|
|
427
267
|
"enabled": true,
|
|
428
268
|
"operate": "single",
|
|
429
269
|
"mappings": [
|
|
@@ -438,95 +278,62 @@
|
|
|
438
278
|
},
|
|
439
279
|
{
|
|
440
280
|
"target": "light.rotating",
|
|
441
|
-
"source": "light.rotating"
|
|
281
|
+
"source": "light.rotating",
|
|
282
|
+
"transformTargetType": "boolean"
|
|
442
283
|
},
|
|
443
284
|
{
|
|
444
285
|
"target": "light.blinking",
|
|
445
|
-
"source": "light.blinking"
|
|
286
|
+
"source": "light.blinking",
|
|
287
|
+
"transformTargetType": "boolean"
|
|
446
288
|
},
|
|
447
289
|
{
|
|
448
|
-
"target": "
|
|
449
|
-
"source": "
|
|
450
|
-
"defaultValue": 0
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
"target": "progress.text",
|
|
454
|
-
"source": "progress.text"
|
|
455
|
-
},
|
|
456
|
-
{
|
|
457
|
-
"target": "passage.in",
|
|
458
|
-
"source": "passage.in",
|
|
459
|
-
"defaultValue": false
|
|
460
|
-
},
|
|
461
|
-
{
|
|
462
|
-
"target": "passage.out",
|
|
463
|
-
"source": "passage.out",
|
|
464
|
-
"defaultValue": false
|
|
465
|
-
},
|
|
466
|
-
{
|
|
467
|
-
"target": "device_state",
|
|
468
|
-
"source": "device_state"
|
|
469
|
-
}
|
|
470
|
-
]
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
"sourceType": "device_command",
|
|
474
|
-
"deviceType": "pallet",
|
|
475
|
-
"className": "Pallet",
|
|
476
|
-
"equipmentName": "托盘",
|
|
477
|
-
"enabled": true,
|
|
478
|
-
"operate": "single",
|
|
479
|
-
"mappings": [
|
|
480
|
-
{
|
|
481
|
-
"target": "device_id",
|
|
482
|
-
"source": "device_id",
|
|
483
|
-
"defaultValue": ""
|
|
484
|
-
},
|
|
485
|
-
{
|
|
486
|
-
"target": "light.color",
|
|
487
|
-
"source": "light.color"
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
"target": "light.rotating",
|
|
491
|
-
"source": "light.rotating"
|
|
290
|
+
"target": "position.x",
|
|
291
|
+
"source": "x"
|
|
492
292
|
},
|
|
493
293
|
{
|
|
494
|
-
"target": "
|
|
495
|
-
"source": "
|
|
294
|
+
"target": "position.j1",
|
|
295
|
+
"source": "position.j1"
|
|
496
296
|
},
|
|
497
297
|
{
|
|
498
|
-
"target": "position.
|
|
499
|
-
"source": "
|
|
298
|
+
"target": "position.fork_xy",
|
|
299
|
+
"source": "forkY"
|
|
500
300
|
},
|
|
501
301
|
{
|
|
502
|
-
"target": "position.
|
|
503
|
-
"source": "
|
|
302
|
+
"target": "position.fork_z",
|
|
303
|
+
"source": "z"
|
|
504
304
|
},
|
|
505
305
|
{
|
|
506
306
|
"target": "device_state",
|
|
507
|
-
"source": "
|
|
307
|
+
"source": "status"
|
|
508
308
|
}
|
|
509
309
|
]
|
|
510
310
|
},
|
|
511
311
|
{
|
|
512
312
|
"className": "Resource",
|
|
313
|
+
"equipmentName": "资源",
|
|
513
314
|
"enabled": true,
|
|
514
315
|
"operate": "resource",
|
|
515
316
|
"mappings": [],
|
|
317
|
+
"sourceType": "resource_command",
|
|
516
318
|
"resourceMappings": {
|
|
517
319
|
"add": [
|
|
518
320
|
{
|
|
519
321
|
"target": "resource_id",
|
|
520
|
-
"source": "
|
|
322
|
+
"source": ""
|
|
521
323
|
},
|
|
522
324
|
{
|
|
523
325
|
"target": "resource_type",
|
|
524
|
-
"source": "
|
|
326
|
+
"source": ""
|
|
525
327
|
},
|
|
526
328
|
{
|
|
527
329
|
"target": "resource_name",
|
|
528
330
|
"source": "resource_name"
|
|
529
331
|
},
|
|
332
|
+
{
|
|
333
|
+
"target": "resource_state",
|
|
334
|
+
"source": "resource_state",
|
|
335
|
+
"defaultValue": 0
|
|
336
|
+
},
|
|
530
337
|
{
|
|
531
338
|
"target": "resource_color",
|
|
532
339
|
"source": "resource_color"
|
|
@@ -561,6 +368,11 @@
|
|
|
561
368
|
"target": "resource_name",
|
|
562
369
|
"source": "resource_name"
|
|
563
370
|
},
|
|
371
|
+
{
|
|
372
|
+
"target": "resource_state",
|
|
373
|
+
"source": "resource_state",
|
|
374
|
+
"defaultValue": 0
|
|
375
|
+
},
|
|
564
376
|
{
|
|
565
377
|
"target": "resource_color",
|
|
566
378
|
"source": "resource_color"
|
|
@@ -585,51 +397,86 @@
|
|
|
585
397
|
"transfer": [
|
|
586
398
|
{
|
|
587
399
|
"target": "resource_id",
|
|
588
|
-
"source": "
|
|
400
|
+
"source": "id"
|
|
589
401
|
},
|
|
590
402
|
{
|
|
591
403
|
"target": "resource_type",
|
|
592
|
-
"source": "
|
|
404
|
+
"source": "",
|
|
405
|
+
"transform": "constant",
|
|
406
|
+
"constant": "workpiece"
|
|
593
407
|
},
|
|
594
408
|
{
|
|
595
409
|
"target": "resource_name",
|
|
596
|
-
"source": "
|
|
410
|
+
"source": "",
|
|
411
|
+
"transform": "constant",
|
|
412
|
+
"constant": ""
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"target": "resource_state",
|
|
416
|
+
"source": "status"
|
|
597
417
|
},
|
|
598
418
|
{
|
|
599
419
|
"target": "resource_color",
|
|
600
|
-
"source": "
|
|
420
|
+
"source": "status",
|
|
421
|
+
"transform": "condition",
|
|
422
|
+
"conditions": [
|
|
423
|
+
{
|
|
424
|
+
"source": "status",
|
|
425
|
+
"operator": "eq",
|
|
426
|
+
"operand": "1",
|
|
427
|
+
"value": "#B2EF40"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"source": "status",
|
|
431
|
+
"operator": "eq",
|
|
432
|
+
"operand": "2",
|
|
433
|
+
"value": "#FEFA45"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"source": "status",
|
|
437
|
+
"operator": "eq",
|
|
438
|
+
"operand": "3",
|
|
439
|
+
"value": "#88F8FE"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"source": "status",
|
|
443
|
+
"operator": "eq",
|
|
444
|
+
"operand": "4",
|
|
445
|
+
"value": "#E39E39"
|
|
446
|
+
}
|
|
447
|
+
]
|
|
601
448
|
},
|
|
602
449
|
{
|
|
603
450
|
"target": "from.device_type",
|
|
604
|
-
"source": "
|
|
451
|
+
"source": "originDeviceType"
|
|
605
452
|
},
|
|
606
453
|
{
|
|
607
454
|
"target": "from.device_id",
|
|
608
|
-
"source": "
|
|
455
|
+
"source": "originDeviceId"
|
|
609
456
|
},
|
|
610
457
|
{
|
|
611
458
|
"target": "from.device_layer",
|
|
612
|
-
"source": "
|
|
459
|
+
"source": ""
|
|
613
460
|
},
|
|
614
461
|
{
|
|
615
462
|
"target": "from.device_station",
|
|
616
|
-
"source": "
|
|
463
|
+
"source": "originStation"
|
|
617
464
|
},
|
|
618
465
|
{
|
|
619
466
|
"target": "to.device_type",
|
|
620
|
-
"source": "
|
|
467
|
+
"source": "deviceType"
|
|
621
468
|
},
|
|
622
469
|
{
|
|
623
470
|
"target": "to.device_id",
|
|
624
|
-
"source": "
|
|
471
|
+
"source": "deviceId"
|
|
625
472
|
},
|
|
626
473
|
{
|
|
627
474
|
"target": "to.device_layer",
|
|
628
|
-
"source": "
|
|
475
|
+
"source": ""
|
|
629
476
|
},
|
|
630
477
|
{
|
|
631
478
|
"target": "to.device_station",
|
|
632
|
-
"source": "
|
|
479
|
+
"source": "station"
|
|
633
480
|
}
|
|
634
481
|
],
|
|
635
482
|
"remove": [
|
|
@@ -645,31 +492,23 @@
|
|
|
645
492
|
"batch_remove": [
|
|
646
493
|
{
|
|
647
494
|
"target": "resource_ids",
|
|
648
|
-
"source": "
|
|
495
|
+
"source": "ids"
|
|
649
496
|
},
|
|
650
497
|
{
|
|
651
498
|
"target": "resource_type",
|
|
652
|
-
"source": "
|
|
499
|
+
"source": ""
|
|
653
500
|
}
|
|
654
501
|
]
|
|
655
502
|
},
|
|
656
503
|
"resourceFields": {
|
|
657
504
|
"operationField": "data.operation",
|
|
658
|
-
"batchAddItems": "data.resources"
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
"sourceType": "runtime_status_push",
|
|
666
|
-
"enabled": true,
|
|
667
|
-
"operate": "statusPush",
|
|
668
|
-
"mappings": [
|
|
669
|
-
{ "target": "currentTask", "source": "current_task" },
|
|
670
|
-
{ "target": "device_stats", "source": "device_stats" },
|
|
671
|
-
{ "target": "deviceOnline", "source": "device_stats.online" }
|
|
672
|
-
]
|
|
505
|
+
"batchAddItems": "data.resources",
|
|
506
|
+
"typeValues": {
|
|
507
|
+
"add": "",
|
|
508
|
+
"transfer": "5",
|
|
509
|
+
"batch_remove": "8"
|
|
510
|
+
}
|
|
511
|
+
}
|
|
673
512
|
},
|
|
674
513
|
{
|
|
675
514
|
"className": "ResetAll",
|
package/dist/stores/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as qe } from "pinia";
|
|
2
2
|
import { ref as de, computed as N, watch as le } from "vue";
|
|
3
3
|
import { v as Ki, w as Yi, x as At, y as zi, e as R, a as H, b as L, M as ue, g as _, z as ne, o as Y, j as Ai, i as ji, u as Xi, k as Ji, q as qi, m as z, B as Zi, A as $, C as se, F as Ve, S as _i, G as di, s as Dt, t as X, D as Ie } from "./index-C6Liz-8o.js";
|
|
4
|
-
import { Box as M, Star as $i, Text as es, PointerEvent as We, DragEvent as Mt, Rect as ts, Ellipse as
|
|
4
|
+
import { Box as M, Star as $i, Text as es, PointerEvent as We, DragEvent as Mt, Rect as ts, Ellipse as Re, Flow as Be, Path as Se, Group as ui, App as is, LeaferEvent as ss, EditorEvent as Tt, EditorMoveEvent as Gt, EditorRotateEvent as Lt, EditorScaleEvent as Ft } from "leafer";
|
|
5
5
|
import { Ruler as os } from "leafer-x-ruler";
|
|
6
6
|
import { DotMatrix as rs } from "leafer-x-dot-matrix";
|
|
7
7
|
import { ElMessage as st } from "element-plus";
|
|
@@ -109,18 +109,18 @@ function vs(r) {
|
|
|
109
109
|
return Array.isArray(r) ? r.every((e) => fi(e)) : (console.error("isICaseArray: data must be an array"), !1);
|
|
110
110
|
}
|
|
111
111
|
const Is = 1704038400000n, gt = 5n, bs = 5n, Ze = 12n, Bs = (1n << gt) - 1n, xs = (1n << Ze) - 1n, Rs = Ze, Ds = Ze + gt, Ms = Ze + gt + bs, Ts = BigInt(Math.floor(Math.random() * (Number(Bs) + 1))), Gs = 0n;
|
|
112
|
-
let
|
|
112
|
+
let Te = -1n, Ge = 0n;
|
|
113
113
|
function Ls() {
|
|
114
114
|
let r = BigInt(Date.now());
|
|
115
|
-
if (r <
|
|
116
|
-
if (
|
|
117
|
-
for (; BigInt(Date.now()) <=
|
|
115
|
+
if (r < Te && (r = Te), r === Te) {
|
|
116
|
+
if (Ge = Ge + 1n & xs, Ge === 0n) {
|
|
117
|
+
for (; BigInt(Date.now()) <= Te; )
|
|
118
118
|
;
|
|
119
119
|
r = BigInt(Date.now());
|
|
120
120
|
}
|
|
121
121
|
} else
|
|
122
|
-
|
|
123
|
-
return
|
|
122
|
+
Ge = 0n;
|
|
123
|
+
return Te = r, r - Is << Ms | Gs << Ds | Ts << Rs | Ge;
|
|
124
124
|
}
|
|
125
125
|
function He() {
|
|
126
126
|
return Ls().toString();
|
|
@@ -860,7 +860,7 @@ function Os(r, e) {
|
|
|
860
860
|
return !1;
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function De(r, e) {
|
|
864
864
|
return {
|
|
865
865
|
id: He(),
|
|
866
866
|
type: r,
|
|
@@ -890,7 +890,7 @@ function Vs(r, e, t, i, s, o) {
|
|
|
890
890
|
device_type: e.deviceType?.trim() || ue[e.className] || e.className
|
|
891
891
|
};
|
|
892
892
|
return ce(a, r, e.mappings, i, s, o), a.device_id === void 0 || a.device_id === null || a.device_id === "" ? null : {
|
|
893
|
-
envelope:
|
|
893
|
+
envelope: De(_.DeviceCommand, t),
|
|
894
894
|
payload: a
|
|
895
895
|
};
|
|
896
896
|
}
|
|
@@ -911,7 +911,7 @@ function mi(r, e, t, i, s, o, n, a, l) {
|
|
|
911
911
|
return mt;
|
|
912
912
|
}
|
|
913
913
|
}, A = [], d = (u) => {
|
|
914
|
-
A.push({ envelope:
|
|
914
|
+
A.push({ envelope: De(_.ResourceCommand, o), payload: u });
|
|
915
915
|
};
|
|
916
916
|
switch (r) {
|
|
917
917
|
case "add": {
|
|
@@ -1017,7 +1017,7 @@ function Ps(r, e, t, i) {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
function Ws(r, e, t, i, s, o, n, a) {
|
|
1019
1019
|
const l = t.resourceFields, c = t.resourceMappings?.add?.length ? t.resourceMappings.add : Pe, h = t.resourceMappings?.remove?.length ? t.resourceMappings.remove : _e, A = [], d = (u) => {
|
|
1020
|
-
A.push({ envelope:
|
|
1020
|
+
A.push({ envelope: De(_.ResourceCommand, s), payload: u });
|
|
1021
1021
|
};
|
|
1022
1022
|
if (l?.operationField) {
|
|
1023
1023
|
const u = String(we(r, l.operationField) ?? "").trim().toLowerCase(), f = pi.includes(u) ? u : void 0;
|
|
@@ -1132,7 +1132,7 @@ function zs(r, e, t, i, s = "data", o = "type", n, a) {
|
|
|
1132
1132
|
return {
|
|
1133
1133
|
messages: [
|
|
1134
1134
|
{
|
|
1135
|
-
envelope:
|
|
1135
|
+
envelope: De(_.SceneReset, t),
|
|
1136
1136
|
payload: {}
|
|
1137
1137
|
}
|
|
1138
1138
|
]
|
|
@@ -1212,7 +1212,7 @@ function ar(r, e, t, i, s, o, n, a, l = "data", c = "type", h = [], A = []) {
|
|
|
1212
1212
|
(O) => O.enabled && O.operate === "resetAll" && O.sourceType != null && String(O.sourceType) === String(p)
|
|
1213
1213
|
))
|
|
1214
1214
|
return {
|
|
1215
|
-
messages: [{ envelope:
|
|
1215
|
+
messages: [{ envelope: De(_.SceneReset, s), payload: {} }]
|
|
1216
1216
|
};
|
|
1217
1217
|
const Q = e.find((O) => O.enabled && O.operate === "resource"), W = Q ? pi.find((O) => {
|
|
1218
1218
|
const me = Q.resourceFields?.typeValues?.[O];
|
|
@@ -1277,7 +1277,7 @@ function ar(r, e, t, i, s, o, n, a, l = "data", c = "type", h = [], A = []) {
|
|
|
1277
1277
|
device_id: T
|
|
1278
1278
|
};
|
|
1279
1279
|
return ce(B, f, S.mappings, o, n, a), {
|
|
1280
|
-
messages: [{ envelope:
|
|
1280
|
+
messages: [{ envelope: De(_.DeviceCommand, s), payload: B }]
|
|
1281
1281
|
};
|
|
1282
1282
|
}
|
|
1283
1283
|
const Pe = [
|
|
@@ -1333,7 +1333,7 @@ const Et = Xs(), he = [
|
|
|
1333
1333
|
{ target: "passage.out", source: "passage.out", defaultValue: !1, transformTargetType: "boolean" }
|
|
1334
1334
|
], Ot = [
|
|
1335
1335
|
{ target: "is_working", source: "is_working", defaultValue: !1, transformTargetType: "boolean" }
|
|
1336
|
-
], Js = [{ target: "station_rotation", source: "station_rotation" }], te = [{ target: "device_state", source: "device_state" }],
|
|
1336
|
+
], Js = [{ target: "station_rotation", source: "station_rotation" }], te = [{ target: "device_state", source: "device_state" }], Le = { target: "position.x", source: "position.x" }, nt = { target: "position.y", source: "position.y" };
|
|
1337
1337
|
function Ei(r, e) {
|
|
1338
1338
|
return {
|
|
1339
1339
|
// 信封类型 = device_command(标准信封源 envelope.type);设备类型 = socket 协议 device_type(snake_case),与规则 className(内部模型)解耦
|
|
@@ -1368,7 +1368,7 @@ const Si = {
|
|
|
1368
1368
|
// 单关节机器人:light / position / current_fixture / device_state
|
|
1369
1369
|
SingleJointRobot: [
|
|
1370
1370
|
...he,
|
|
1371
|
-
|
|
1371
|
+
Le,
|
|
1372
1372
|
nt,
|
|
1373
1373
|
{ target: "position.j1", source: "position.j1" },
|
|
1374
1374
|
{ target: "current_fixture", source: "current_fixture" },
|
|
@@ -1377,7 +1377,7 @@ const Si = {
|
|
|
1377
1377
|
// 双关节机器人:light / position / current_fixture / device_state
|
|
1378
1378
|
DoubleJointRobot: [
|
|
1379
1379
|
...he,
|
|
1380
|
-
|
|
1380
|
+
Le,
|
|
1381
1381
|
nt,
|
|
1382
1382
|
{ target: "position.j1", source: "position.j1" },
|
|
1383
1383
|
{ target: "position.j2", source: "position.j2" },
|
|
@@ -1385,9 +1385,9 @@ const Si = {
|
|
|
1385
1385
|
...te
|
|
1386
1386
|
],
|
|
1387
1387
|
// 资源库:light / position(工位槽资源操作走 Resource 规则)/ device_state
|
|
1388
|
-
ResourceStore: [...he,
|
|
1388
|
+
ResourceStore: [...he, Le, ...te],
|
|
1389
1389
|
// 托盘:light / position(工位槽资源操作走 Resource 规则)/ device_state
|
|
1390
|
-
Pallet: [...he,
|
|
1390
|
+
Pallet: [...he, Le, nt, ...te],
|
|
1391
1391
|
// 料道:light / layer_visible / device_state
|
|
1392
1392
|
MaterialTrack: [
|
|
1393
1393
|
...rt,
|
|
@@ -1415,7 +1415,7 @@ const Si = {
|
|
|
1415
1415
|
// RGV:light / position(含 x / j1 / fork_xy / fork_z)/ device_state
|
|
1416
1416
|
Rgv: [
|
|
1417
1417
|
...he,
|
|
1418
|
-
|
|
1418
|
+
Le,
|
|
1419
1419
|
{ target: "position.j1", source: "position.j1" },
|
|
1420
1420
|
{ target: "position.fork_xy", source: "position.fork_xy" },
|
|
1421
1421
|
{ target: "position.fork_z", source: "position.fork_z" },
|
|
@@ -1501,20 +1501,23 @@ const $s = {
|
|
|
1501
1501
|
"resource.device_station": "to.device_station",
|
|
1502
1502
|
"resource.device_layer": "to.device_layer"
|
|
1503
1503
|
};
|
|
1504
|
-
function
|
|
1504
|
+
function be(r) {
|
|
1505
1505
|
const e = $s[r.target];
|
|
1506
1506
|
return e ? { ...r, target: e } : r;
|
|
1507
1507
|
}
|
|
1508
1508
|
function Ci(r) {
|
|
1509
1509
|
const e = {
|
|
1510
1510
|
...r,
|
|
1511
|
-
mappings: r.mappings?.map(
|
|
1511
|
+
mappings: r.mappings?.map(be) || []
|
|
1512
1512
|
};
|
|
1513
1513
|
return r.resourceMappings && (e.resourceMappings = {
|
|
1514
|
-
add: r.resourceMappings.add?.map(
|
|
1515
|
-
batch_add: r.resourceMappings.batch_add?.map(
|
|
1516
|
-
transfer: r.resourceMappings.transfer?.map(
|
|
1517
|
-
remove: r.resourceMappings.remove?.map(
|
|
1514
|
+
add: r.resourceMappings.add?.map(be),
|
|
1515
|
+
batch_add: r.resourceMappings.batch_add?.map(be),
|
|
1516
|
+
transfer: r.resourceMappings.transfer?.map(be),
|
|
1517
|
+
remove: r.resourceMappings.remove?.map(be),
|
|
1518
|
+
// 批量离场映射组同样需保留,否则加载/导入配置时该组被丢弃,
|
|
1519
|
+
// 随后 ensureResourceMappings 会用内置默认映射(source 为 resource_ids / resource_type)重建
|
|
1520
|
+
batch_remove: r.resourceMappings.batch_remove?.map(be)
|
|
1518
1521
|
}), e;
|
|
1519
1522
|
}
|
|
1520
1523
|
function vi(r) {
|
|
@@ -2368,7 +2371,7 @@ class $e extends Ve {
|
|
|
2368
2371
|
blur: 2,
|
|
2369
2372
|
color: "rgba(0,0,0,0.4)"
|
|
2370
2373
|
} : null
|
|
2371
|
-
}), A = new
|
|
2374
|
+
}), A = new Re({
|
|
2372
2375
|
className: "mid",
|
|
2373
2376
|
x: this.width_05,
|
|
2374
2377
|
y: this.width_05,
|
|
@@ -2378,7 +2381,7 @@ class $e extends Ve {
|
|
|
2378
2381
|
stroke: "rgba(255,255,255,0.5)",
|
|
2379
2382
|
strokeWidth: 1,
|
|
2380
2383
|
fill: o
|
|
2381
|
-
}), d = new
|
|
2384
|
+
}), d = new Re({
|
|
2382
2385
|
className: "rotateLight",
|
|
2383
2386
|
x: this.width_05,
|
|
2384
2387
|
y: this.width_05,
|
|
@@ -2719,7 +2722,7 @@ class re extends Ve {
|
|
|
2719
2722
|
}).init();
|
|
2720
2723
|
this.stationSlotInstances.set(p.index, C), d.push(C.ui);
|
|
2721
2724
|
}
|
|
2722
|
-
return new
|
|
2725
|
+
return new Be({
|
|
2723
2726
|
...n,
|
|
2724
2727
|
flowAlign: "center",
|
|
2725
2728
|
className: "StationSlotGroup",
|
|
@@ -3174,7 +3177,7 @@ class Xe extends ee {
|
|
|
3174
3177
|
x: this.width_05,
|
|
3175
3178
|
around: "top"
|
|
3176
3179
|
}),
|
|
3177
|
-
new
|
|
3180
|
+
new Re({
|
|
3178
3181
|
hittable: !1,
|
|
3179
3182
|
fill: "#D5DAE3",
|
|
3180
3183
|
x: this.width_05,
|
|
@@ -3322,7 +3325,7 @@ class k extends ee {
|
|
|
3322
3325
|
cornerRadius: [0, 0, 4, 4],
|
|
3323
3326
|
stroke: "#C8CCD4",
|
|
3324
3327
|
strokeWidth: 0.5
|
|
3325
|
-
}), o = t + k.BASE_THICKNESS - k.WHEEL_SIZE * k.WHEEL_COVER_RATIO, n = -4 + k.WHEEL_INSET, a = e + k.BASE_EXTEND - k.WHEEL_INSET, l = new
|
|
3328
|
+
}), o = t + k.BASE_THICKNESS - k.WHEEL_SIZE * k.WHEEL_COVER_RATIO, n = -4 + k.WHEEL_INSET, a = e + k.BASE_EXTEND - k.WHEEL_INSET, l = new Re({
|
|
3326
3329
|
editable: !1,
|
|
3327
3330
|
hittable: !1,
|
|
3328
3331
|
className: "WheelLeft",
|
|
@@ -3333,7 +3336,7 @@ class k extends ee {
|
|
|
3333
3336
|
fill: "#111",
|
|
3334
3337
|
stroke: "#999",
|
|
3335
3338
|
strokeWidth: 1
|
|
3336
|
-
}), c = new
|
|
3339
|
+
}), c = new Re({
|
|
3337
3340
|
editable: !1,
|
|
3338
3341
|
hittable: !1,
|
|
3339
3342
|
className: "WheelRight",
|
|
@@ -5036,7 +5039,7 @@ class Ne extends ee {
|
|
|
5036
5039
|
inFlow: !1,
|
|
5037
5040
|
color: this.defaultLightColor
|
|
5038
5041
|
}).init());
|
|
5039
|
-
const S = new
|
|
5042
|
+
const S = new Be({
|
|
5040
5043
|
hitSelf: !1,
|
|
5041
5044
|
id: "rgv_fork",
|
|
5042
5045
|
inFlow: !1,
|
|
@@ -5135,7 +5138,7 @@ class Ne extends ee {
|
|
|
5135
5138
|
]
|
|
5136
5139
|
}
|
|
5137
5140
|
]
|
|
5138
|
-
}), G = new
|
|
5141
|
+
}), G = new Be({
|
|
5139
5142
|
hitSelf: !1,
|
|
5140
5143
|
x: this.width_05,
|
|
5141
5144
|
y: this.height_05,
|
|
@@ -5211,7 +5214,7 @@ class Ne extends ee {
|
|
|
5211
5214
|
around: "center",
|
|
5212
5215
|
children: [
|
|
5213
5216
|
// 左侧支撑臂
|
|
5214
|
-
new
|
|
5217
|
+
new Be({
|
|
5215
5218
|
hittable: !1,
|
|
5216
5219
|
width: 17,
|
|
5217
5220
|
height: s,
|
|
@@ -5271,7 +5274,7 @@ class Ne extends ee {
|
|
|
5271
5274
|
}),
|
|
5272
5275
|
G,
|
|
5273
5276
|
// 右侧支撑臂
|
|
5274
|
-
new
|
|
5277
|
+
new Be({
|
|
5275
5278
|
hittable: !1,
|
|
5276
5279
|
x: i,
|
|
5277
5280
|
around: "top-right",
|
|
@@ -5465,7 +5468,7 @@ class Je extends ee {
|
|
|
5465
5468
|
visible: D,
|
|
5466
5469
|
editable: g,
|
|
5467
5470
|
draggable: m
|
|
5468
|
-
} = this.config, E = n && n.width > 0 ? n.width : void 0, y = n && n.height > 0 ? n.height : void 0, S = new
|
|
5471
|
+
} = this.config, E = n && n.width > 0 ? n.width : void 0, y = n && n.height > 0 ? n.height : void 0, S = new Be({
|
|
5469
5472
|
...n,
|
|
5470
5473
|
flowAlign: "center",
|
|
5471
5474
|
x: 0,
|
|
@@ -5615,7 +5618,7 @@ const ni = z("Pallet"), Do = {
|
|
|
5615
5618
|
VerticalBar: { scale: 0.2, opacity: 0.3 }
|
|
5616
5619
|
// 竖条纹
|
|
5617
5620
|
};
|
|
5618
|
-
class
|
|
5621
|
+
class xe extends ee {
|
|
5619
5622
|
static CORNER_RADIUS = 0;
|
|
5620
5623
|
static LAYER_PADDING = 0;
|
|
5621
5624
|
static LAYER_GAP = 4;
|
|
@@ -5630,7 +5633,7 @@ class Be extends ee {
|
|
|
5630
5633
|
}
|
|
5631
5634
|
// 构建多层工位组容器(参考 ShuttleStation.buildLayers:纵向均分内腔,工位组水平垂直居中)
|
|
5632
5635
|
buildLayers(e, t, i) {
|
|
5633
|
-
const s =
|
|
5636
|
+
const s = xe.LAYER_PADDING, o = xe.LAYER_GAP, n = s, c = (t - s - n - o * (i.length - 1)) / i.length, h = [];
|
|
5634
5637
|
return i.forEach((A, d) => {
|
|
5635
5638
|
const u = n + d * (c + o), f = new M({
|
|
5636
5639
|
// 层容器可命中自身(不可设 hitSelf: false):overflow hidden 的裁剪 Box 在 Leafer pick 时
|
|
@@ -5694,7 +5697,7 @@ class Be extends ee {
|
|
|
5694
5697
|
effect: E,
|
|
5695
5698
|
scale: T,
|
|
5696
5699
|
opacity: B,
|
|
5697
|
-
cornerRadius:
|
|
5700
|
+
cornerRadius: xe.CORNER_RADIUS
|
|
5698
5701
|
})
|
|
5699
5702
|
);
|
|
5700
5703
|
}
|
|
@@ -5724,7 +5727,7 @@ class Be extends ee {
|
|
|
5724
5727
|
draggable: g,
|
|
5725
5728
|
origin: "center",
|
|
5726
5729
|
around: "center",
|
|
5727
|
-
cornerRadius:
|
|
5730
|
+
cornerRadius: xe.CORNER_RADIUS,
|
|
5728
5731
|
fill: n,
|
|
5729
5732
|
overflow: "hidden",
|
|
5730
5733
|
children: m
|
|
@@ -5979,7 +5982,7 @@ const To = {
|
|
|
5979
5982
|
[L.RGV]: Ne,
|
|
5980
5983
|
[L.RAIL]: bt,
|
|
5981
5984
|
[L.RESOURCE_STORE]: Je,
|
|
5982
|
-
[L.PALLET]:
|
|
5985
|
+
[L.PALLET]: xe,
|
|
5983
5986
|
[L.RESOURCE_OPERATION_WINDOW]: ae
|
|
5984
5987
|
};
|
|
5985
5988
|
function Go(r) {
|
|
@@ -6499,7 +6502,7 @@ class Qi {
|
|
|
6499
6502
|
n.set({ stroke: li[s] });
|
|
6500
6503
|
return;
|
|
6501
6504
|
}
|
|
6502
|
-
const l = Math.max(a.config.width || 100, a.config.height || 100) * 1.05, c = new
|
|
6505
|
+
const l = Math.max(a.config.width || 100, a.config.height || 100) * 1.05, c = new Re({
|
|
6503
6506
|
className: "AlarmHighlight",
|
|
6504
6507
|
x: a.ui.x,
|
|
6505
6508
|
y: a.ui.y,
|
|
@@ -6955,7 +6958,7 @@ const hi = ns({
|
|
|
6955
6958
|
const w = i?.getSelectedIds() ?? [];
|
|
6956
6959
|
if (w.length > 1) {
|
|
6957
6960
|
w.forEach((F) => {
|
|
6958
|
-
const I = d.value.find((
|
|
6961
|
+
const I = d.value.find((Me) => Me.id === F), j = I ? t?.findOne(`#${F}`) : null;
|
|
6959
6962
|
!I || !j || (I.x = Math.round(j.x ?? 0), I.y = Math.round(j.y ?? 0), I.percentX = X(I.x ?? 0, A.value?.width, 3, !0), I.percentY = X(I.y ?? 0, A.value?.height, 3, !0));
|
|
6960
6963
|
}), x();
|
|
6961
6964
|
return;
|
|
@@ -6985,12 +6988,12 @@ const hi = ns({
|
|
|
6985
6988
|
B.value = null;
|
|
6986
6989
|
return;
|
|
6987
6990
|
}
|
|
6988
|
-
const j = Math.round((w + F) / 2),
|
|
6991
|
+
const j = Math.round((w + F) / 2), Me = Math.round((v + I) / 2);
|
|
6989
6992
|
B.value = {
|
|
6990
6993
|
x: j,
|
|
6991
|
-
y:
|
|
6994
|
+
y: Me,
|
|
6992
6995
|
percentX: X(j, A.value?.width, 3, !0),
|
|
6993
|
-
percentY: X(
|
|
6996
|
+
percentY: X(Me, A.value?.height, 3, !0)
|
|
6994
6997
|
};
|
|
6995
6998
|
}, Q = (w, v) => {
|
|
6996
6999
|
n.value.length <= 1 || !t || w === 0 && v === 0 || (n.value.forEach((F) => {
|
|
@@ -7005,7 +7008,7 @@ const hi = ns({
|
|
|
7005
7008
|
hittable: F,
|
|
7006
7009
|
hitSelf: I,
|
|
7007
7010
|
clickable: j,
|
|
7008
|
-
menuClickable:
|
|
7011
|
+
menuClickable: Me,
|
|
7009
7012
|
draggable: Rt,
|
|
7010
7013
|
...ve
|
|
7011
7014
|
} = w;
|