@jnrs/lingshu-smart 2.2.36 → 2.2.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.
@@ -1083,6 +1083,110 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
1083
1083
  } | {
1084
1084
  className: import("@/types").EnumModel.PALLET;
1085
1085
  backgroundColor?: string | undefined;
1086
+ flowOptions?: {
1087
+ flow: "x" | "y" | "x-reverse" | "y-reverse";
1088
+ flowWrap: boolean | "reverse";
1089
+ oneDirectionMaxQuantity: number;
1090
+ gap: number;
1091
+ width: number;
1092
+ height: number;
1093
+ } | undefined;
1094
+ stationSlotGroupPallet?: {
1095
+ width?: number | undefined;
1096
+ height?: number | undefined;
1097
+ parentRotation?: number | undefined;
1098
+ origin?: import('../../types').IOriginAround | undefined;
1099
+ around?: import('../../types').IOriginAround | undefined;
1100
+ stationSlots: {
1101
+ className?: import("@/types").EnumComponent.STATION_SLOT | undefined;
1102
+ resourceType: import('../../types').EnumResourceType;
1103
+ index: number;
1104
+ name?: string | undefined;
1105
+ rotation?: number | undefined;
1106
+ parentRotation?: number | undefined;
1107
+ disabled?: boolean | undefined;
1108
+ origin?: import('../../types').IOriginAround | undefined;
1109
+ around?: import('../../types').IOriginAround | undefined;
1110
+ hideBounds?: boolean | undefined;
1111
+ background?: string | undefined;
1112
+ stroke?: string | undefined;
1113
+ strokeWidth?: number | undefined;
1114
+ textColor?: string | undefined;
1115
+ width: number;
1116
+ height: number;
1117
+ x?: number | undefined;
1118
+ y?: number | undefined;
1119
+ zIndex?: number | undefined;
1120
+ hittable?: boolean | undefined;
1121
+ hitSelf?: boolean | undefined;
1122
+ visible?: boolean | 0 | undefined;
1123
+ }[];
1124
+ flowOptions: {
1125
+ flow: "x" | "y" | "x-reverse" | "y-reverse";
1126
+ flowWrap: boolean | "reverse";
1127
+ oneDirectionMaxQuantity: number;
1128
+ gap: number;
1129
+ width: number;
1130
+ height: number;
1131
+ };
1132
+ hideBounds?: boolean | undefined;
1133
+ className?: import('../../types').EnumInteractiveUi | undefined;
1134
+ rotation?: number | undefined;
1135
+ x?: number | undefined;
1136
+ y?: number | undefined;
1137
+ zIndex?: number | undefined;
1138
+ hittable?: boolean | undefined;
1139
+ hitSelf?: boolean | undefined;
1140
+ visible?: boolean | 0 | undefined;
1141
+ } | undefined;
1142
+ stationSlotGroupTool?: {
1143
+ width?: number | undefined;
1144
+ height?: number | undefined;
1145
+ parentRotation?: number | undefined;
1146
+ origin?: import('../../types').IOriginAround | undefined;
1147
+ around?: import('../../types').IOriginAround | undefined;
1148
+ stationSlots: {
1149
+ className?: import("@/types").EnumComponent.STATION_SLOT | undefined;
1150
+ resourceType: import('../../types').EnumResourceType;
1151
+ index: number;
1152
+ name?: string | undefined;
1153
+ rotation?: number | undefined;
1154
+ parentRotation?: number | undefined;
1155
+ disabled?: boolean | undefined;
1156
+ origin?: import('../../types').IOriginAround | undefined;
1157
+ around?: import('../../types').IOriginAround | undefined;
1158
+ hideBounds?: boolean | undefined;
1159
+ background?: string | undefined;
1160
+ stroke?: string | undefined;
1161
+ strokeWidth?: number | undefined;
1162
+ textColor?: string | undefined;
1163
+ width: number;
1164
+ height: number;
1165
+ x?: number | undefined;
1166
+ y?: number | undefined;
1167
+ zIndex?: number | undefined;
1168
+ hittable?: boolean | undefined;
1169
+ hitSelf?: boolean | undefined;
1170
+ visible?: boolean | 0 | undefined;
1171
+ }[];
1172
+ flowOptions: {
1173
+ flow: "x" | "y" | "x-reverse" | "y-reverse";
1174
+ flowWrap: boolean | "reverse";
1175
+ oneDirectionMaxQuantity: number;
1176
+ gap: number;
1177
+ width: number;
1178
+ height: number;
1179
+ };
1180
+ hideBounds?: boolean | undefined;
1181
+ className?: import('../../types').EnumInteractiveUi | undefined;
1182
+ rotation?: number | undefined;
1183
+ x?: number | undefined;
1184
+ y?: number | undefined;
1185
+ zIndex?: number | undefined;
1186
+ hittable?: boolean | undefined;
1187
+ hitSelf?: boolean | undefined;
1188
+ visible?: boolean | 0 | undefined;
1189
+ } | undefined;
1086
1190
  uuid: string;
1087
1191
  equipmentName: string;
1088
1192
  nameplate?: string | undefined;
@@ -2158,6 +2262,110 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
2158
2262
  } | {
2159
2263
  className: import("@/types").EnumModel.PALLET;
2160
2264
  backgroundColor?: string | undefined;
2265
+ flowOptions?: {
2266
+ flow: "x" | "y" | "x-reverse" | "y-reverse";
2267
+ flowWrap: boolean | "reverse";
2268
+ oneDirectionMaxQuantity: number;
2269
+ gap: number;
2270
+ width: number;
2271
+ height: number;
2272
+ } | undefined;
2273
+ stationSlotGroupPallet?: {
2274
+ width?: number | undefined;
2275
+ height?: number | undefined;
2276
+ parentRotation?: number | undefined;
2277
+ origin?: import('../../types').IOriginAround | undefined;
2278
+ around?: import('../../types').IOriginAround | undefined;
2279
+ stationSlots: {
2280
+ className?: import("@/types").EnumComponent.STATION_SLOT | undefined;
2281
+ resourceType: import('../../types').EnumResourceType;
2282
+ index: number;
2283
+ name?: string | undefined;
2284
+ rotation?: number | undefined;
2285
+ parentRotation?: number | undefined;
2286
+ disabled?: boolean | undefined;
2287
+ origin?: import('../../types').IOriginAround | undefined;
2288
+ around?: import('../../types').IOriginAround | undefined;
2289
+ hideBounds?: boolean | undefined;
2290
+ background?: string | undefined;
2291
+ stroke?: string | undefined;
2292
+ strokeWidth?: number | undefined;
2293
+ textColor?: string | undefined;
2294
+ width: number;
2295
+ height: number;
2296
+ x?: number | undefined;
2297
+ y?: number | undefined;
2298
+ zIndex?: number | undefined;
2299
+ hittable?: boolean | undefined;
2300
+ hitSelf?: boolean | undefined;
2301
+ visible?: boolean | 0 | undefined;
2302
+ }[];
2303
+ flowOptions: {
2304
+ flow: "x" | "y" | "x-reverse" | "y-reverse";
2305
+ flowWrap: boolean | "reverse";
2306
+ oneDirectionMaxQuantity: number;
2307
+ gap: number;
2308
+ width: number;
2309
+ height: number;
2310
+ };
2311
+ hideBounds?: boolean | undefined;
2312
+ className?: import('../../types').EnumInteractiveUi | undefined;
2313
+ rotation?: number | undefined;
2314
+ x?: number | undefined;
2315
+ y?: number | undefined;
2316
+ zIndex?: number | undefined;
2317
+ hittable?: boolean | undefined;
2318
+ hitSelf?: boolean | undefined;
2319
+ visible?: boolean | 0 | undefined;
2320
+ } | undefined;
2321
+ stationSlotGroupTool?: {
2322
+ width?: number | undefined;
2323
+ height?: number | undefined;
2324
+ parentRotation?: number | undefined;
2325
+ origin?: import('../../types').IOriginAround | undefined;
2326
+ around?: import('../../types').IOriginAround | undefined;
2327
+ stationSlots: {
2328
+ className?: import("@/types").EnumComponent.STATION_SLOT | undefined;
2329
+ resourceType: import('../../types').EnumResourceType;
2330
+ index: number;
2331
+ name?: string | undefined;
2332
+ rotation?: number | undefined;
2333
+ parentRotation?: number | undefined;
2334
+ disabled?: boolean | undefined;
2335
+ origin?: import('../../types').IOriginAround | undefined;
2336
+ around?: import('../../types').IOriginAround | undefined;
2337
+ hideBounds?: boolean | undefined;
2338
+ background?: string | undefined;
2339
+ stroke?: string | undefined;
2340
+ strokeWidth?: number | undefined;
2341
+ textColor?: string | undefined;
2342
+ width: number;
2343
+ height: number;
2344
+ x?: number | undefined;
2345
+ y?: number | undefined;
2346
+ zIndex?: number | undefined;
2347
+ hittable?: boolean | undefined;
2348
+ hitSelf?: boolean | undefined;
2349
+ visible?: boolean | 0 | undefined;
2350
+ }[];
2351
+ flowOptions: {
2352
+ flow: "x" | "y" | "x-reverse" | "y-reverse";
2353
+ flowWrap: boolean | "reverse";
2354
+ oneDirectionMaxQuantity: number;
2355
+ gap: number;
2356
+ width: number;
2357
+ height: number;
2358
+ };
2359
+ hideBounds?: boolean | undefined;
2360
+ className?: import('../../types').EnumInteractiveUi | undefined;
2361
+ rotation?: number | undefined;
2362
+ x?: number | undefined;
2363
+ y?: number | undefined;
2364
+ zIndex?: number | undefined;
2365
+ hittable?: boolean | undefined;
2366
+ hitSelf?: boolean | undefined;
2367
+ visible?: boolean | 0 | undefined;
2368
+ } | undefined;
2161
2369
  uuid: string;
2162
2370
  equipmentName: string;
2163
2371
  nameplate?: string | undefined;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @Author : TanRui
3
+ * @File : useCaseLoading.ts
4
+ * @Desc. : 方案操作全局 Loading(切换/新增/删除/导入等操作的服务级 Loading)
5
+ */
6
+ /**
7
+ * 展示全局"方案加载中..." Loading(服务方式调用)
8
+ * 同一 Loading 实例复用,连续触发时仅重置关闭计时,避免闪烁
9
+ */
10
+ export declare const showCaseLoading: () => void;
@@ -0,0 +1,131 @@
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
+ };
package/dist/index.js CHANGED
@@ -1,163 +1,51 @@
1
- var I = /* @__PURE__ */ ((t) => (t.UNDO = "Undo", t.REDO = "Redo", t))(I || {}), A = /* @__PURE__ */ ((t) => (t.TRANSPORT = "搬运设备", t.MACHINE = "机床", t.CLEANING = "清洗机", t.STATION = "装载站", t.STORAGE = "库", t.OTHER = "其他", t))(A || {}), e = /* @__PURE__ */ ((t) => (t.SINGLE_JOINT_ROBOT = "SingleJointRobot", t.DOUBLE_JOINT_ROBOT = "DoubleJointRobot", t.RGV = "Rgv", t.MACHINE_TOOL = "MachineTool", t.MARKING_MACHINE = "MarkingMachine", t.CLEANING_MACHINE = "CleaningMachine", t.LOADING_STATION = "LoadingStation", t.SHUTTLE_STATION = "ShuttleStation", t.RAIL = "Rail", t.RESOURCE_STORE = "ResourceStore", t.PALLET = "Pallet", t))(e || {}), _ = /* @__PURE__ */ ((t) => (t.STATION_SLOT = "StationSlot", t.RESOURCE = "Resource", t))(_ || {}), x = /* @__PURE__ */ ((t) => (t.PALLET = "Pallet", t.TOOL = "Tool", t))(x || {});
2
- function G(t) {
3
- return t?.className === e.MACHINE_TOOL;
1
+ import { d as a } from "./index-YxSpi9Af.js";
2
+ import { e as l, E as O, b as E, a as L, c as I, h as S, i as _, l as A, n as R, s as f, j as g, t as p, f as G, g as h } from "./index-YxSpi9Af.js";
3
+ function n(s) {
4
+ return s?.className === a.MACHINE_TOOL;
4
5
  }
5
- function C(t) {
6
- return t?.className === e.MACHINE_TOOL || t?.className === e.MARKING_MACHINE || t?.className === e.CLEANING_MACHINE || t?.className === e.LOADING_STATION;
6
+ function t(s) {
7
+ return s?.className === a.MACHINE_TOOL || s?.className === a.MARKING_MACHINE || s?.className === a.CLEANING_MACHINE || s?.className === a.LOADING_STATION;
7
8
  }
8
- function P(t) {
9
- return t?.className === e.RESOURCE_STORE || t?.className === e.SINGLE_JOINT_ROBOT || t?.className === e.DOUBLE_JOINT_ROBOT || t?.className === e.RGV;
9
+ function o(s) {
10
+ return s?.className === a.RESOURCE_STORE || s?.className === a.SINGLE_JOINT_ROBOT || s?.className === a.DOUBLE_JOINT_ROBOT || s?.className === a.RGV || s?.className === a.PALLET;
10
11
  }
11
- function F(t) {
12
- return t?.className === e.SHUTTLE_STATION;
12
+ function r(s) {
13
+ return s?.className === a.SHUTTLE_STATION;
13
14
  }
14
- function H(t) {
15
- return t?.className === e.SINGLE_JOINT_ROBOT || t?.className === e.DOUBLE_JOINT_ROBOT;
15
+ function N(s) {
16
+ return s?.className === a.SINGLE_JOINT_ROBOT || s?.className === a.DOUBLE_JOINT_ROBOT;
16
17
  }
17
- function B(t) {
18
- return t?.className === e.RAIL;
18
+ function c(s) {
19
+ return s?.className === a.RAIL;
19
20
  }
20
- function U(t) {
21
- return t?.className === e.SHUTTLE_STATION;
21
+ function T(s) {
22
+ return s?.className === a.SHUTTLE_STATION;
22
23
  }
23
- function $(t) {
24
- return t?.className === e.PALLET;
25
- }
26
- const d = {
27
- none: 0,
28
- error: 1,
29
- warn: 2,
30
- info: 3,
31
- log: 4,
32
- operating: 5
33
- }, E = {
34
- log: "LOG",
35
- info: "INFO",
36
- warn: "WARN",
37
- error: "ERROR",
38
- operating: "OPERATING"
39
- };
40
- let f = "warn";
41
- function D(t) {
42
- f = t;
43
- }
44
- function J() {
45
- return f;
46
- }
47
- const l = {
48
- log: "background: #6c8eef; color: #fff; padding: 2px 5px; border-radius: 3px; font-weight: bold; font-size: 11px",
49
- info: "background: #4CA56E; color: #fff; padding: 2px 5px; border-radius: 3px; font-weight: bold; font-size: 11px",
50
- warn: "background: #e6a23c; color: #fff; padding: 2px 5px; border-radius: 3px; font-weight: bold; font-size: 11px",
51
- error: "background: #f56c6c; color: #fff; padding: 2px 5px; border-radius: 3px; font-weight: bold; font-size: 11px",
52
- operating: "background: #009866; color: #fff; padding: 2px 5px; border-radius: 3px; font-weight: bold; font-size: 11px"
53
- }, T = "color: inherit; background: transparent; padding: 0; margin-left: 4px";
54
- function b(t) {
55
- return f === "operating-only" ? t === "operating" || t === "error" : t === "operating" ? f === "operating" : d[t] <= d[f];
56
- }
57
- const w = {
58
- log: "log",
59
- info: "info",
60
- warn: "warn",
61
- error: "error",
62
- operating: "log"
63
- };
64
- function s(t, n, ...r) {
65
- if (!b(t)) return;
66
- const a = t === "log" || t === "info" || t === "operating", i = E[t], o = w[t];
67
- n && a ? r.length > 0 && typeof r[0] == "string" ? console[o](`%c${i}:${n}%c ${r[0]}`, l[t], T, ...r.slice(1)) : console[o](`%c${i}:${n}%c`, l[t], T, ...r) : n ? r.length > 0 && typeof r[0] == "string" ? console[o](`[${i}:${n}] ${r[0]}`, ...r.slice(1)) : console[o](`[${i}:${n}]`, ...r) : console[o](...r);
68
- }
69
- function m(t = "") {
70
- return {
71
- log: (...n) => s("log", t, ...n),
72
- info: (...n) => s("info", t, ...n),
73
- warn: (...n) => s("warn", t, ...n),
74
- error: (...n) => s("error", t, ...n),
75
- operating: (...n) => s("operating", t, ...n)
76
- };
77
- }
78
- const M = m("LingshuSmart");
79
- function* k(t, n, r = !1) {
80
- let a = t;
81
- for (; ; ) {
82
- if (a > n)
83
- if (r)
84
- a = t;
85
- else
86
- return;
87
- yield a++;
88
- }
89
- }
90
- const V = (t = 0, n = 100, r = 3, a = 300, i) => i ? new Promise((o) => {
91
- const c = t, L = n, h = r * 1e3, g = performance.now();
92
- let u = 0;
93
- const N = (p) => {
94
- const R = p - g, O = Math.min(R / h, 1), S = c + (L - c) * O;
95
- if (i(S.toFixed(2)), O >= 1) {
96
- cancelAnimationFrame(u), o();
97
- return;
98
- }
99
- u = requestAnimationFrame(N);
100
- };
101
- u = requestAnimationFrame(N);
102
- }) : !1;
103
- function Y(t, n, r = 3, a) {
104
- return t === void 0 || n === void 0 ? 0 : a ? n > 0 ? Number((t / n).toFixed(3)) : 0 : Number((n * t).toFixed(r));
105
- }
106
- function q(t, n) {
107
- return t === void 0 || n === void 0 ? 0 : n > 0 ? Number((t / n).toFixed(3)) : t;
108
- }
109
- function K(t, n, r, a) {
110
- if (t === void 0) return NaN;
111
- let i = 0;
112
- if (a === "width") {
113
- const o = n?.width || 0, c = n?.runtime_width || 0;
114
- if (o === 0 || c === 0) return 0;
115
- i = o / c;
116
- }
117
- if (a === "height") {
118
- const o = n?.height || 0, c = n?.runtime_height || 0;
119
- if (o === 0 || c === 0) return 0;
120
- i = o / c;
121
- }
122
- return Number((t * i).toFixed(r));
123
- }
124
- function v(t, n, r, a) {
125
- if (t === void 0) return NaN;
126
- let i = 0;
127
- if (a === "width") {
128
- const o = n?.width || 0;
129
- if (o === 0) return t;
130
- i = o * t;
131
- }
132
- if (a === "height") {
133
- const o = n?.height || 0;
134
- if (o === 0) return t;
135
- i = o * t;
136
- }
137
- return Number(i.toFixed(r));
24
+ function i(s) {
25
+ return s?.className === a.PALLET;
138
26
  }
139
27
  export {
140
- _ as EnumComponent,
141
- e as EnumModel,
142
- x as EnumResourceType,
143
- I as EnumStepType,
144
- A as EnumTag,
145
- m as createLogger,
146
- J as getLogLevel,
147
- H as hasFixtureChange,
148
- C as hasStationSlotGroup,
149
- F as hasStationSlotLayers,
150
- G as isMachineTool,
151
- $ as isPallet,
152
- B as isRail,
153
- U as isShuttleStation,
154
- P as isStationSlotGroupBoth,
155
- V as linearIncrease,
156
- M as logger,
157
- k as numberLoopGenerator,
158
- D as setLogLevel,
159
- q as transFraction,
160
- Y as transPercentAndPixel,
161
- v as transPercentToPixel,
162
- K as transRuntimeToPixel
28
+ l as EnumComponent,
29
+ a as EnumModel,
30
+ O as EnumResourceType,
31
+ E as EnumStepType,
32
+ L as EnumTag,
33
+ I as createLogger,
34
+ S as getLogLevel,
35
+ N as hasFixtureChange,
36
+ t as hasStationSlotGroup,
37
+ r as hasStationSlotLayers,
38
+ n as isMachineTool,
39
+ i as isPallet,
40
+ c as isRail,
41
+ T as isShuttleStation,
42
+ o as isStationSlotGroupBoth,
43
+ _ as linearIncrease,
44
+ A as logger,
45
+ R as numberLoopGenerator,
46
+ f as setLogLevel,
47
+ g as transFraction,
48
+ p as transPercentAndPixel,
49
+ G as transPercentToPixel,
50
+ h as transRuntimeToPixel
163
51
  };