@jnrs/lingshu-smart 2.2.38 → 2.2.40
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/AGENTS.md +27 -25
- package/README.md +10 -10
- package/dist/components/debug/ScriptRunner/StressPanel.vue.d.ts +63 -0
- package/dist/components/debug/WsProxy/ConfigEditor.vue.d.ts +5 -3
- package/dist/components/debug/WsProxy/ConnPanel.vue.d.ts +10 -0
- package/dist/components/debug/WsProxy/MappingGrid.vue.d.ts +2 -0
- package/dist/components/debug/WsProxy/index.vue.d.ts +33 -4
- package/dist/components/debug/WsProxy/proxy.d.ts +65 -19
- package/dist/components/editor/ControlBar/CaseTitleEdit.vue.d.ts +16 -16
- package/dist/components/editor/OptionCard/Equipment/stationSlot/StationSlotGroupDialog.vue.d.ts +1 -1
- package/dist/components/index.js +5610 -4080
- package/dist/components/preview/index.vue.d.ts +439 -30
- package/dist/controller/AppController.d.ts +12 -0
- package/dist/index-DKL_kTJG.js +11441 -0
- package/dist/index.js +42 -38
- package/dist/lingshu-smart/cases.json +12818 -211
- package/dist/lingshu-smart/wsProxyConfig.json +1026 -520
- package/dist/locales/en.d.ts +2 -0
- package/dist/locales/i18next.d.ts +4 -0
- package/dist/locales/index.js +12 -8
- package/dist/locales/zhCn.d.ts +2 -0
- package/dist/playground/ViewPageDemo.vue.d.ts +1025 -159
- package/dist/stores/index.js +1 -1
- package/dist/stores/useAppStore.d.ts +1491 -264
- package/dist/stores/useDataStore.d.ts +2143 -262
- package/dist/stores/useDebugStore.d.ts +38 -557
- package/dist/types/components/config.types.d.ts +3 -1
- package/dist/types/enums.d.ts +3 -1
- package/dist/types/models/config.types.d.ts +34 -2
- package/dist/types/models/operating.types.d.ts +36 -4
- package/dist/ui/abstract/ModelAbs.d.ts +6 -0
- package/dist/ui/components/StationSlot.d.ts +15 -0
- package/dist/ui/components/StationSlotGroup.d.ts +6 -0
- package/dist/ui/models/MaterialTrack.d.ts +29 -0
- package/dist/ui/models/ResourceOperationWindow.d.ts +39 -0
- package/dist/ui/models/ShuttleStation.d.ts +3 -3
- package/dist/useAppStore-DlxnXCZs.js +15737 -0
- package/dist/utils/caseCompact.d.ts +17 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/index-YxSpi9Af.js +0 -131
- package/dist/useAppStore-CIFewItb.js +0 -26105
- /package/dist/components/debug/{DebugPanel.vue.d.ts → GlobalSetting.vue.d.ts} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ICase } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* 压缩单个方案(深拷贝后处理,不改动入参)
|
|
4
|
+
*/
|
|
5
|
+
export declare const compactCase: (data: ICase) => ICase;
|
|
6
|
+
/**
|
|
7
|
+
* 压缩方案列表
|
|
8
|
+
*/
|
|
9
|
+
export declare const compactCases: (data: ICase[]) => ICase[];
|
|
10
|
+
/**
|
|
11
|
+
* 解压单个方案(深拷贝后处理,不改动入参;兼容压缩数据与全量旧数据)
|
|
12
|
+
*/
|
|
13
|
+
export declare const expandCase: (data: ICase) => ICase;
|
|
14
|
+
/**
|
|
15
|
+
* 解压方案列表
|
|
16
|
+
*/
|
|
17
|
+
export declare const expandCases: (data: ICase[]) => ICase[];
|
package/dist/utils/index.d.ts
CHANGED
package/package.json
CHANGED
package/dist/index-YxSpi9Af.js
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
var T = /* @__PURE__ */ ((r) => (r.UNDO = "Undo", r.REDO = "Redo", r))(T || {}), b = /* @__PURE__ */ ((r) => (r.TRANSPORT = "搬运设备", r.MACHINE = "机床", r.CLEANING = "清洗机", r.STATION = "装载站", r.STORAGE = "库", r.OTHER = "其他", r))(b || {}), w = /* @__PURE__ */ ((r) => (r.SINGLE_JOINT_ROBOT = "SingleJointRobot", r.DOUBLE_JOINT_ROBOT = "DoubleJointRobot", r.RGV = "Rgv", r.MACHINE_TOOL = "MachineTool", r.MARKING_MACHINE = "MarkingMachine", r.CLEANING_MACHINE = "CleaningMachine", r.LOADING_STATION = "LoadingStation", r.SHUTTLE_STATION = "ShuttleStation", r.RAIL = "Rail", r.RESOURCE_STORE = "ResourceStore", r.PALLET = "Pallet", r))(w || {}), A = /* @__PURE__ */ ((r) => (r.STATION_SLOT = "StationSlot", r.RESOURCE = "Resource", r))(A || {}), S = /* @__PURE__ */ ((r) => (r.PALLET = "Pallet", r.TOOL = "Tool", r))(S || {});
|
|
2
|
-
const g = {
|
|
3
|
-
none: 0,
|
|
4
|
-
error: 1,
|
|
5
|
-
warn: 2,
|
|
6
|
-
info: 3,
|
|
7
|
-
log: 4,
|
|
8
|
-
operating: 5
|
|
9
|
-
}, I = {
|
|
10
|
-
log: "LOG",
|
|
11
|
-
info: "INFO",
|
|
12
|
-
warn: "WARN",
|
|
13
|
-
error: "ERROR",
|
|
14
|
-
operating: "OPERATING"
|
|
15
|
-
};
|
|
16
|
-
let c = "warn";
|
|
17
|
-
function F(r) {
|
|
18
|
-
c = r;
|
|
19
|
-
}
|
|
20
|
-
function C() {
|
|
21
|
-
return c;
|
|
22
|
-
}
|
|
23
|
-
const h = {
|
|
24
|
-
log: "background: #6c8eef; color: #fff; padding: 2px 5px; border-radius: 3px; font-weight: bold; font-size: 11px",
|
|
25
|
-
info: "background: #4CA56E; color: #fff; padding: 2px 5px; border-radius: 3px; font-weight: bold; font-size: 11px",
|
|
26
|
-
warn: "background: #e6a23c; color: #fff; padding: 2px 5px; border-radius: 3px; font-weight: bold; font-size: 11px",
|
|
27
|
-
error: "background: #f56c6c; color: #fff; padding: 2px 5px; border-radius: 3px; font-weight: bold; font-size: 11px",
|
|
28
|
-
operating: "background: #009866; color: #fff; padding: 2px 5px; border-radius: 3px; font-weight: bold; font-size: 11px"
|
|
29
|
-
}, p = "color: inherit; background: transparent; padding: 0; margin-left: 4px";
|
|
30
|
-
function _(r) {
|
|
31
|
-
return c === "operating-only" ? r === "operating" || r === "error" : r === "operating" ? c === "operating" : g[r] <= g[c];
|
|
32
|
-
}
|
|
33
|
-
const E = {
|
|
34
|
-
log: "log",
|
|
35
|
-
info: "info",
|
|
36
|
-
warn: "warn",
|
|
37
|
-
error: "error",
|
|
38
|
-
operating: "log"
|
|
39
|
-
};
|
|
40
|
-
function a(r, o, ...t) {
|
|
41
|
-
if (!_(r)) return;
|
|
42
|
-
const e = r === "log" || r === "info" || r === "operating", i = I[r], n = E[r];
|
|
43
|
-
o && e ? t.length > 0 && typeof t[0] == "string" ? console[n](`%c${i}:${o}%c ${t[0]}`, h[r], p, ...t.slice(1)) : console[n](`%c${i}:${o}%c`, h[r], p, ...t) : o ? t.length > 0 && typeof t[0] == "string" ? console[n](`[${i}:${o}] ${t[0]}`, ...t.slice(1)) : console[n](`[${i}:${o}]`, ...t) : console[n](...t);
|
|
44
|
-
}
|
|
45
|
-
function P(r = "") {
|
|
46
|
-
return {
|
|
47
|
-
log: (...o) => a("log", r, ...o),
|
|
48
|
-
info: (...o) => a("info", r, ...o),
|
|
49
|
-
warn: (...o) => a("warn", r, ...o),
|
|
50
|
-
error: (...o) => a("error", r, ...o),
|
|
51
|
-
operating: (...o) => a("operating", r, ...o)
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
const G = P("LingshuSmart");
|
|
55
|
-
function* $(r, o, t = !1) {
|
|
56
|
-
let e = r;
|
|
57
|
-
for (; ; ) {
|
|
58
|
-
if (e > o)
|
|
59
|
-
if (t)
|
|
60
|
-
e = r;
|
|
61
|
-
else
|
|
62
|
-
return;
|
|
63
|
-
yield e++;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
const H = (r = 0, o = 100, t = 3, e = 300, i) => i ? new Promise((n) => {
|
|
67
|
-
const f = r, l = o, L = t * 1e3, O = performance.now();
|
|
68
|
-
let s = 0;
|
|
69
|
-
const u = (x) => {
|
|
70
|
-
const N = x - O, d = Math.min(N / L, 1), R = f + (l - f) * d;
|
|
71
|
-
if (i(R.toFixed(2)), d >= 1) {
|
|
72
|
-
cancelAnimationFrame(s), n();
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
s = requestAnimationFrame(u);
|
|
76
|
-
};
|
|
77
|
-
s = requestAnimationFrame(u);
|
|
78
|
-
}) : !1;
|
|
79
|
-
function k(r, o, t = 3, e) {
|
|
80
|
-
return r === void 0 || o === void 0 ? 0 : e ? o > 0 ? Number((r / o).toFixed(3)) : 0 : Number((o * r).toFixed(t));
|
|
81
|
-
}
|
|
82
|
-
function D(r, o) {
|
|
83
|
-
return r === void 0 || o === void 0 ? 0 : o > 0 ? Number((r / o).toFixed(3)) : r;
|
|
84
|
-
}
|
|
85
|
-
function U(r, o, t, e) {
|
|
86
|
-
if (r === void 0) return NaN;
|
|
87
|
-
let i = 0;
|
|
88
|
-
if (e === "width") {
|
|
89
|
-
const n = o?.width || 0, f = o?.runtime_width || 0;
|
|
90
|
-
if (n === 0 || f === 0) return 0;
|
|
91
|
-
i = n / f;
|
|
92
|
-
}
|
|
93
|
-
if (e === "height") {
|
|
94
|
-
const n = o?.height || 0, f = o?.runtime_height || 0;
|
|
95
|
-
if (n === 0 || f === 0) return 0;
|
|
96
|
-
i = n / f;
|
|
97
|
-
}
|
|
98
|
-
return Number((r * i).toFixed(t));
|
|
99
|
-
}
|
|
100
|
-
function m(r, o, t, e) {
|
|
101
|
-
if (r === void 0) return NaN;
|
|
102
|
-
let i = 0;
|
|
103
|
-
if (e === "width") {
|
|
104
|
-
const n = o?.width || 0;
|
|
105
|
-
if (n === 0) return r;
|
|
106
|
-
i = n * r;
|
|
107
|
-
}
|
|
108
|
-
if (e === "height") {
|
|
109
|
-
const n = o?.height || 0;
|
|
110
|
-
if (n === 0) return r;
|
|
111
|
-
i = n * r;
|
|
112
|
-
}
|
|
113
|
-
return Number(i.toFixed(t));
|
|
114
|
-
}
|
|
115
|
-
export {
|
|
116
|
-
S as E,
|
|
117
|
-
b as a,
|
|
118
|
-
T as b,
|
|
119
|
-
P as c,
|
|
120
|
-
w as d,
|
|
121
|
-
A as e,
|
|
122
|
-
m as f,
|
|
123
|
-
U as g,
|
|
124
|
-
C as h,
|
|
125
|
-
H as i,
|
|
126
|
-
D as j,
|
|
127
|
-
G as l,
|
|
128
|
-
$ as n,
|
|
129
|
-
F as s,
|
|
130
|
-
k as t
|
|
131
|
-
};
|