aoi-comp 1.0.17 → 1.0.19
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/{BufferResource-CJ6gTLVt.js → BufferResource-lGiwAHbY.js} +2 -2
- package/dist/{CanvasPool-DxPWPREy.js → CanvasPool-jGurtfi2.js} +1 -1
- package/dist/{Geometry-Cgp_B-U6.js → Geometry-xMtyt_5s.js} +1 -1
- package/dist/{RenderTargetSystem-CI7Pyqfs.js → RenderTargetSystem-CWpIn4RK.js} +1 -1
- package/dist/{browserAll-C01g8dM4.js → browserAll-hbV1nRns.js} +3 -3
- package/dist/{canvasUtils-BDyuJAnf.js → canvasUtils-DIcFK_XK.js} +1 -1
- package/dist/comps.js +4604 -4601
- package/dist/{getTextureBatchBindGroup-BOQSIxaA.js → getTextureBatchBindGroup-CGADar9L.js} +1 -1
- package/dist/{hooks-Bg2vQv8s.js → hooks-Bvpdah8O.js} +84 -84
- package/dist/hooks.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{init-DUQko66x.js → init-CsJxRzrF.js} +3 -3
- package/dist/{init-ByqgxCRA.js → init-DnSsl3Uq.js} +2 -2
- package/dist/{packages-CrmSAScp.js → packages-CvFznab6.js} +72 -72
- package/dist/utils.js +2 -2
- package/dist/webworkerAll-BjUYwKq_.js +2 -0
- package/package.json +1 -1
- package/dist/webworkerAll-BmBCi8yO.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as e, u as t } from "./Geometry-
|
|
1
|
+
import { V as e, u as t } from "./Geometry-xMtyt_5s.js";
|
|
2
2
|
//#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/batcher/gpu/getTextureBatchBindGroup.mjs
|
|
3
3
|
var n = {};
|
|
4
4
|
function r(e, t, r) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as e, D as t, I as n, J as r, O as i,
|
|
1
|
+
import { B as e, D as t, I as n, J as r, O as i, Q as a, T as o, Y as s, _t as c, at as l, b as u, c as d, d as f, mt as p, ot as m, p as h, rt as g, s as _, t as v, tt as y, y as b, yt as x, z as S } from "./packages-CvFznab6.js";
|
|
2
2
|
import { message as C } from "antd";
|
|
3
3
|
import { createContext as w, use as T, useCallback as E, useContext as D, useEffect as O, useMemo as k, useRef as A, useState as j } from "react";
|
|
4
4
|
//#region node_modules/.pnpm/react-i18next@17.0.13_i18ne_77b937ecedfb676debf3096b5685165d/node_modules/react-i18next/dist/es/utils.js
|
|
@@ -45,8 +45,8 @@ var M = (e, t, n, r) => {
|
|
|
45
45
|
getUsedNamespaces() {
|
|
46
46
|
return Object.keys(this.usedNamespaces);
|
|
47
47
|
}
|
|
48
|
-
}, ee = /* @__PURE__ */
|
|
49
|
-
var t =
|
|
48
|
+
}, ee = /* @__PURE__ */ c(((e) => {
|
|
49
|
+
var t = x("react");
|
|
50
50
|
function n(e, t) {
|
|
51
51
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
52
52
|
}
|
|
@@ -83,7 +83,7 @@ var M = (e, t, n, r) => {
|
|
|
83
83
|
}
|
|
84
84
|
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
|
|
85
85
|
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
|
|
86
|
-
})), te = /* @__PURE__ */
|
|
86
|
+
})), te = /* @__PURE__ */ c(((e) => {
|
|
87
87
|
process.env.NODE_ENV !== "production" && (function() {
|
|
88
88
|
function t(e, t) {
|
|
89
89
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
@@ -126,10 +126,10 @@ var M = (e, t, n, r) => {
|
|
|
126
126
|
return t();
|
|
127
127
|
}
|
|
128
128
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
129
|
-
var a =
|
|
129
|
+
var a = x("react"), o = typeof Object.is == "function" ? Object.is : t, s = a.useState, c = a.useEffect, l = a.useLayoutEffect, u = a.useDebugValue, d = !1, f = !1, p = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? i : n;
|
|
130
130
|
e.useSyncExternalStore = a.useSyncExternalStore === void 0 ? p : a.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
131
131
|
})();
|
|
132
|
-
})), ne = (/* @__PURE__ */
|
|
132
|
+
})), ne = (/* @__PURE__ */ c(((e, t) => {
|
|
133
133
|
t.exports = process.env.NODE_ENV === "production" ? ee() : te();
|
|
134
134
|
})))(), re = {
|
|
135
135
|
t: (e, t) => {
|
|
@@ -144,43 +144,43 @@ var M = (e, t, n, r) => {
|
|
|
144
144
|
},
|
|
145
145
|
ready: !1
|
|
146
146
|
}, U = () => () => {}, W = (e, t = {}) => {
|
|
147
|
-
let { i18n: n } = t, { i18n: r, defaultNS: i } = D(V) || {}, a = n || r ||
|
|
147
|
+
let { i18n: n } = t, { i18n: r, defaultNS: i } = D(V) || {}, a = n || r || l();
|
|
148
148
|
a && !a.reportNamespaces && (a.reportNamespaces = new H()), a || P(a, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");
|
|
149
149
|
let o = k(() => ({
|
|
150
|
-
...
|
|
150
|
+
...m(),
|
|
151
151
|
...a?.options?.react,
|
|
152
152
|
...t
|
|
153
|
-
}), [a, t]), { useSuspense:
|
|
153
|
+
}), [a, t]), { useSuspense: s, keyPrefix: c } = o, u = e || i || a?.options?.defaultNS, d = z(u) ? [u] : u || ["translation"], f = k(() => d, d);
|
|
154
154
|
a?.reportNamespaces?.addUsedNamespaces?.(f);
|
|
155
|
-
let
|
|
155
|
+
let p = A(0), h = E((e) => {
|
|
156
156
|
if (!a) return U;
|
|
157
157
|
let { bindI18n: t, bindI18nStore: n } = o, r = () => {
|
|
158
|
-
|
|
158
|
+
p.current += 1, e();
|
|
159
159
|
};
|
|
160
160
|
return t && a.on(t, r), n && a.store.on(n, r), () => {
|
|
161
161
|
t && t.split(" ").forEach((e) => a.off(e, r)), n && n.split(" ").forEach((e) => a.store.off(e, r));
|
|
162
162
|
};
|
|
163
163
|
}, [a, o]), g = A(), _ = E(() => {
|
|
164
164
|
if (!a) return re;
|
|
165
|
-
let e = !!(a.isInitialized || a.initializedStoreOnce) && f.every((e) => R(e, a, o)), n = t.lng || a.language, r =
|
|
166
|
-
if (i && i.ready === e && i.lng === n && i.keyPrefix ===
|
|
165
|
+
let e = !!(a.isInitialized || a.initializedStoreOnce) && f.every((e) => R(e, a, o)), n = t.lng || a.language, r = p.current, i = g.current;
|
|
166
|
+
if (i && i.ready === e && i.lng === n && i.keyPrefix === c && i.revision === r) return i;
|
|
167
167
|
let s = {
|
|
168
|
-
t: a.getFixedT(n, o.nsMode === "fallback" ? f : f[0],
|
|
168
|
+
t: a.getFixedT(n, o.nsMode === "fallback" ? f : f[0], c, { scopeNs: f }),
|
|
169
169
|
ready: e,
|
|
170
170
|
lng: n,
|
|
171
|
-
keyPrefix:
|
|
171
|
+
keyPrefix: c,
|
|
172
172
|
revision: r
|
|
173
173
|
};
|
|
174
174
|
return g.current = s, s;
|
|
175
175
|
}, [
|
|
176
176
|
a,
|
|
177
177
|
f,
|
|
178
|
-
|
|
178
|
+
c,
|
|
179
179
|
o,
|
|
180
180
|
t.lng
|
|
181
181
|
]), [v, y] = j(0), { t: b, ready: x } = (0, ne.useSyncExternalStore)(h, _, _);
|
|
182
182
|
O(() => {
|
|
183
|
-
if (a && !x && !
|
|
183
|
+
if (a && !x && !s) {
|
|
184
184
|
let e = () => y((e) => e + 1);
|
|
185
185
|
t.lng ? L(a, t.lng, f, e) : I(a, f, e);
|
|
186
186
|
}
|
|
@@ -189,7 +189,7 @@ var M = (e, t, n, r) => {
|
|
|
189
189
|
t.lng,
|
|
190
190
|
f,
|
|
191
191
|
x,
|
|
192
|
-
|
|
192
|
+
s,
|
|
193
193
|
v
|
|
194
194
|
]);
|
|
195
195
|
let S = a || {}, C = A(null), w = A(), T = (e) => {
|
|
@@ -208,7 +208,7 @@ var M = (e, t, n, r) => {
|
|
|
208
208
|
}, M = k(() => {
|
|
209
209
|
let e = S, t = e?.language, n = e;
|
|
210
210
|
e && (C.current && C.current.__original === e && w.current === t ? n = C.current : (n = T(e), C.current = n, w.current = t));
|
|
211
|
-
let r = !x && !
|
|
211
|
+
let r = !x && !s ? (...e) => (P(a, "USE_T_BEFORE_READY", "useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."), b(...e)) : b, i = [
|
|
212
212
|
r,
|
|
213
213
|
n,
|
|
214
214
|
x
|
|
@@ -222,7 +222,7 @@ var M = (e, t, n, r) => {
|
|
|
222
222
|
S.language,
|
|
223
223
|
S.languages
|
|
224
224
|
]);
|
|
225
|
-
if (a &&
|
|
225
|
+
if (a && s && !x) {
|
|
226
226
|
let e = !1;
|
|
227
227
|
try {
|
|
228
228
|
e = process.env.NODE_ENV !== "production";
|
|
@@ -236,14 +236,14 @@ var M = (e, t, n, r) => {
|
|
|
236
236
|
}, G = { app: w("app") }, K = (e = "app") => {
|
|
237
237
|
G[e] || (G[e] = w(e));
|
|
238
238
|
let t = T(G[e]);
|
|
239
|
-
if (!t) throw Error(
|
|
239
|
+
if (!t) throw Error(a.use.contextErr({ key: e }));
|
|
240
240
|
return t;
|
|
241
241
|
}, q = (e) => {
|
|
242
242
|
let t = A(), n = A();
|
|
243
243
|
return t.current = e, n.current ||= (...e) => t.current(...e), n.current;
|
|
244
244
|
}, J = (e = {}) => {
|
|
245
|
-
let [t, n] = j(Object.keys(e).reduce((e, t) => (e[t] = `vast-${t}-0`, e), {})), r = A(e), i = A(!1),
|
|
246
|
-
let r = `vast-${e}-${
|
|
245
|
+
let [t, n] = j(Object.keys(e).reduce((e, t) => (e[t] = `vast-${t}-0`, e), {})), r = A(e), i = A(!1), a = q((e) => {
|
|
246
|
+
let r = `vast-${e}-${o("-")}`;
|
|
247
247
|
n({
|
|
248
248
|
...t,
|
|
249
249
|
[e]: r
|
|
@@ -251,10 +251,10 @@ var M = (e, t, n, r) => {
|
|
|
251
251
|
}), s = (t, n = e) => {
|
|
252
252
|
let i = t ? n[t] : n;
|
|
253
253
|
if (typeof i != "object" || !i) return;
|
|
254
|
-
let
|
|
254
|
+
let o = new Proxy(i, {
|
|
255
255
|
get(e, n, r) {
|
|
256
|
-
let i =
|
|
257
|
-
return
|
|
256
|
+
let i = g(e), o = Reflect.get(e, n, i === "map" || i === "set" ? e : r);
|
|
257
|
+
return y(o, "function") ? [
|
|
258
258
|
"add",
|
|
259
259
|
"set",
|
|
260
260
|
"delete",
|
|
@@ -268,23 +268,23 @@ var M = (e, t, n, r) => {
|
|
|
268
268
|
"splice",
|
|
269
269
|
"unshift"
|
|
270
270
|
].includes(n) ? (...r) => {
|
|
271
|
-
let i =
|
|
272
|
-
return
|
|
273
|
-
} : (...t) =>
|
|
271
|
+
let i = o.apply(e, r);
|
|
272
|
+
return a(t ?? n), i;
|
|
273
|
+
} : (...t) => o.apply(e, t) : o;
|
|
274
274
|
},
|
|
275
275
|
set(e, n, r, i) {
|
|
276
276
|
if (Reflect.get(e, n, i) === r) return !0;
|
|
277
|
-
let
|
|
278
|
-
return
|
|
277
|
+
let o = Reflect.set(e, n, r, i);
|
|
278
|
+
return a(t ?? n), o;
|
|
279
279
|
},
|
|
280
280
|
deleteProperty(e, n) {
|
|
281
281
|
if (!Reflect.has(e, n)) return !0;
|
|
282
282
|
let r = Reflect.deleteProperty(e, n);
|
|
283
|
-
return
|
|
283
|
+
return a(t ?? n), r;
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
|
-
if (t) r.current[t] =
|
|
287
|
-
else return
|
|
286
|
+
if (t) r.current[t] = o;
|
|
287
|
+
else return o;
|
|
288
288
|
};
|
|
289
289
|
if (!i.current) {
|
|
290
290
|
r.current = s();
|
|
@@ -314,9 +314,9 @@ var M = (e, t, n, r) => {
|
|
|
314
314
|
return [n, a];
|
|
315
315
|
}, X = (e = "simple", t = []) => {
|
|
316
316
|
let n = {
|
|
317
|
-
exe:
|
|
318
|
-
cv:
|
|
319
|
-
db:
|
|
317
|
+
exe: v.exe,
|
|
318
|
+
cv: v.cv,
|
|
319
|
+
db: v.db
|
|
320
320
|
}, r = A([
|
|
321
321
|
"store",
|
|
322
322
|
"system",
|
|
@@ -334,7 +334,7 @@ var M = (e, t, n, r) => {
|
|
|
334
334
|
setRunning: i.setRunning,
|
|
335
335
|
proAction: i.proAction
|
|
336
336
|
}];
|
|
337
|
-
default: throw Error(
|
|
337
|
+
default: throw Error(a.use.patternErr({ pattern: e }));
|
|
338
338
|
}
|
|
339
339
|
}, Z = (e, t, n = { immediate: !1 }) => {
|
|
340
340
|
let r = A({
|
|
@@ -343,28 +343,28 @@ var M = (e, t, n, r) => {
|
|
|
343
343
|
isWatch: !0
|
|
344
344
|
}).current;
|
|
345
345
|
return O(() => {
|
|
346
|
-
r.isWatch && (r.isInit ? (
|
|
346
|
+
r.isWatch && (r.isInit ? (d(t, r.oldValue) || e(t, r.oldValue), r.oldValue = _(t)) : r.isInit = !0);
|
|
347
347
|
}, t), () => {
|
|
348
348
|
r.isWatch = !1;
|
|
349
349
|
};
|
|
350
350
|
}, ie = (e = "") => {
|
|
351
|
-
if (!e) throw Error(
|
|
351
|
+
if (!e) throw Error(a.use.prefixErr());
|
|
352
352
|
let { t } = W("translation", { keyPrefix: e });
|
|
353
353
|
return t;
|
|
354
354
|
}, ae = (e, t, n = !1) => {
|
|
355
355
|
let i = q(e);
|
|
356
|
-
return O(() => (n && i(),
|
|
356
|
+
return O(() => (n && i(), s(t, i), () => r(t, i)), []), i;
|
|
357
357
|
}, Q = (e, t) => {
|
|
358
358
|
let n = A({
|
|
359
359
|
immediate: !1,
|
|
360
360
|
fps: 17,
|
|
361
361
|
beforeFn: null
|
|
362
362
|
}).current;
|
|
363
|
-
if (
|
|
364
|
-
else if (
|
|
365
|
-
else if (
|
|
366
|
-
else if (
|
|
367
|
-
let r =
|
|
363
|
+
if (y(t, "boolean")) n.immediate = t;
|
|
364
|
+
else if (y(t, "number")) n.fps = t;
|
|
365
|
+
else if (y(t, "function")) n.beforeFn = t;
|
|
366
|
+
else if (y(t, "object")) for (let e in t) Object.hasOwn(n, e) && (n[e] = t[e]);
|
|
367
|
+
let r = u(e, 60 * n.fps);
|
|
368
368
|
O(() => (n.beforeFn?.(), n.immediate && r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), []);
|
|
369
369
|
}, $ = (e, t, n) => {
|
|
370
370
|
let [r, i] = j({
|
|
@@ -375,11 +375,11 @@ var M = (e, t, n, r) => {
|
|
|
375
375
|
fps: 12,
|
|
376
376
|
beforeFn: null
|
|
377
377
|
}).current;
|
|
378
|
-
if (
|
|
379
|
-
else if (
|
|
380
|
-
else if (
|
|
381
|
-
else if (
|
|
382
|
-
let s = () => a.current?.observe?.(t.current),
|
|
378
|
+
if (y(n, "boolean")) o.immediate = n;
|
|
379
|
+
else if (y(n, "number")) o.fps = n;
|
|
380
|
+
else if (y(n, "function")) o.beforeFn = n;
|
|
381
|
+
else if (y(n, "object")) for (let e in n) Object.hasOwn(o, e) && (o[e] = n[e]);
|
|
382
|
+
let s = () => a.current?.observe?.(t.current), c = () => a.current?.unobserve?.(t.current), l = q((t) => {
|
|
383
383
|
let n = t[0].contentRect, { width: a, height: o } = n;
|
|
384
384
|
(a !== r.width || o !== r.height) && e?.(n, r), i({
|
|
385
385
|
width: a,
|
|
@@ -387,7 +387,7 @@ var M = (e, t, n, r) => {
|
|
|
387
387
|
});
|
|
388
388
|
});
|
|
389
389
|
return O(() => {
|
|
390
|
-
if (t.current) return a.current = new ResizeObserver(
|
|
390
|
+
if (t.current) return a.current = new ResizeObserver(u(l, 10 * o.fps)), a.current.observe(t.current), () => a.current?.disconnect?.();
|
|
391
391
|
}, [t, e]), Q(() => {
|
|
392
392
|
if (!t.current) return;
|
|
393
393
|
let e = t.current;
|
|
@@ -397,23 +397,23 @@ var M = (e, t, n, r) => {
|
|
|
397
397
|
});
|
|
398
398
|
}, n), [r, {
|
|
399
399
|
observe: s,
|
|
400
|
-
unobserve:
|
|
400
|
+
unobserve: c
|
|
401
401
|
}];
|
|
402
402
|
}, oe = (e = "app", t = !1) => {
|
|
403
|
-
let { context: n } = X("privatize"), r = A(C.useMessage()), i = A([]),
|
|
404
|
-
let c = n || `msg_${
|
|
403
|
+
let { context: n } = X("privatize"), r = A(C.useMessage()), i = A([]), a = (e, t, { key: n, duration: a = 3, onClose: s } = {}) => {
|
|
404
|
+
let c = n || `msg_${o()}`;
|
|
405
405
|
return i.current.push(c), r.current[0].open({
|
|
406
406
|
key: c,
|
|
407
407
|
type: e,
|
|
408
408
|
content: t,
|
|
409
|
-
duration:
|
|
409
|
+
duration: a,
|
|
410
410
|
classNames: { root: "aoi-message" },
|
|
411
411
|
onClose: () => {
|
|
412
412
|
let e = i.current.indexOf(c);
|
|
413
413
|
e !== -1 && i.current.splice(e, 1), s?.();
|
|
414
414
|
}
|
|
415
415
|
}), c;
|
|
416
|
-
}, s = (e, t = {}) =>
|
|
416
|
+
}, s = (e, t = {}) => a("success", e, t), c = (e, t = {}) => a("error", e, t);
|
|
417
417
|
return O(() => {
|
|
418
418
|
if (!n.msgs) return;
|
|
419
419
|
let i = n.msgs.get(e);
|
|
@@ -423,10 +423,10 @@ var M = (e, t, n, r) => {
|
|
|
423
423
|
}, []), [{
|
|
424
424
|
success: s,
|
|
425
425
|
error: c,
|
|
426
|
-
info: (e, t = {}) =>
|
|
427
|
-
warning: (e, t = {}) =>
|
|
426
|
+
info: (e, t = {}) => a("info", e, t),
|
|
427
|
+
warning: (e, t = {}) => a("warning", e, t),
|
|
428
428
|
loading: (e, t = {}) => {
|
|
429
|
-
let n =
|
|
429
|
+
let n = a("loading", e, {
|
|
430
430
|
duration: 0,
|
|
431
431
|
...t
|
|
432
432
|
});
|
|
@@ -438,38 +438,38 @@ var M = (e, t, n, r) => {
|
|
|
438
438
|
}
|
|
439
439
|
}, t ? r.current[1] : void 0];
|
|
440
440
|
}, se = (e, r = {}) => {
|
|
441
|
-
let [i,
|
|
441
|
+
let [i, o] = j(r), s = A(y(e, "function")).current, c = () => {
|
|
442
442
|
h(e, (e) => {
|
|
443
443
|
let t = {};
|
|
444
444
|
for (let n in r) t[n] = e?.[n] ?? r[n];
|
|
445
|
-
|
|
445
|
+
o(t);
|
|
446
446
|
});
|
|
447
447
|
}, l = (n) => {
|
|
448
448
|
t(e, n);
|
|
449
449
|
}, u = q((t, r, c = null) => {
|
|
450
|
-
let { db: l } =
|
|
451
|
-
i[t] = r,
|
|
450
|
+
let { db: l } = v, u = i[t];
|
|
451
|
+
i[t] = r, o({
|
|
452
452
|
...i,
|
|
453
453
|
[t]: r
|
|
454
|
-
}), s && e(t, r), c?.(
|
|
454
|
+
}), s && e(t, r), c?.(a.tool.setOk(), { key: n }), l && l.logOperate(S.INFO, { setProject: {
|
|
455
455
|
key: t,
|
|
456
456
|
oldValue: u,
|
|
457
457
|
value: r
|
|
458
458
|
} });
|
|
459
|
-
}),
|
|
460
|
-
|
|
459
|
+
}), d = q((t, r = null) => {
|
|
460
|
+
o({
|
|
461
461
|
...i,
|
|
462
462
|
...t
|
|
463
|
-
}), s && e(t), r?.(
|
|
463
|
+
}), s && e(t), r?.(a.tool.setOk(), { key: n });
|
|
464
464
|
});
|
|
465
465
|
O(() => {
|
|
466
466
|
s || c();
|
|
467
467
|
}, []);
|
|
468
|
-
let
|
|
468
|
+
let f = Z(([e]) => {
|
|
469
469
|
l(e);
|
|
470
470
|
}, [i]);
|
|
471
|
-
return s &&
|
|
472
|
-
setData:
|
|
471
|
+
return s && f(), [i, {
|
|
472
|
+
setData: d,
|
|
473
473
|
setKey: u
|
|
474
474
|
}];
|
|
475
475
|
}, ce = (t, n = e) => {
|
|
@@ -485,12 +485,12 @@ var M = (e, t, n, r) => {
|
|
|
485
485
|
total: a,
|
|
486
486
|
setValue: (e, n) => {
|
|
487
487
|
let r = s.pageSize, a = s.current;
|
|
488
|
-
|
|
488
|
+
f(n) && (a = 1, !t && (l.current = e), o(n), c({
|
|
489
489
|
current: a,
|
|
490
490
|
pageSize: r
|
|
491
491
|
}));
|
|
492
|
-
let
|
|
493
|
-
i(t ? e : e.slice(
|
|
492
|
+
let u = (a - 1) * r, d = u + r;
|
|
493
|
+
i(t ? e : e.slice(u, d));
|
|
494
494
|
},
|
|
495
495
|
onChange: (e, n) => {
|
|
496
496
|
let r = (e - 1) * n, a = r + n, o = {
|
|
@@ -505,21 +505,21 @@ var M = (e, t, n, r) => {
|
|
|
505
505
|
let e = t.current.shift();
|
|
506
506
|
e ? (n.current = e, s(e._id)) : (n.current = null, s(null));
|
|
507
507
|
}, l = q((e) => {
|
|
508
|
-
e._id =
|
|
508
|
+
e._id = o("#"), t.current.push(e), !r && !n.current && c();
|
|
509
509
|
});
|
|
510
510
|
return O(() => {
|
|
511
|
-
let { exe: t, db: n } =
|
|
511
|
+
let { exe: t, db: n } = v;
|
|
512
512
|
t && t.on("summaryDataUploaded(HeilsSummaryDataInfo)", async (t) => {
|
|
513
513
|
if (!t) {
|
|
514
|
-
let e =
|
|
515
|
-
i.warning(e,
|
|
514
|
+
let e = a.main.dataEmpty({ data: b(t) });
|
|
515
|
+
i.warning(e, a.exe.disposeErr()), n.logMessage(S.WARN, { dataEmpty: { data: t } });
|
|
516
516
|
return;
|
|
517
517
|
}
|
|
518
|
-
|
|
518
|
+
v.dev && console.log("Received data ...");
|
|
519
519
|
let r = await e?.(t);
|
|
520
520
|
if (!r) {
|
|
521
|
-
let e =
|
|
522
|
-
i.error(e,
|
|
521
|
+
let e = a.main.dataErr({ data: b(t) });
|
|
522
|
+
i.error(e, a.exe.disposeErr()), n.logMessage(S.ERROR, { dataErr: { data: t } }), v.dev && console.error(t);
|
|
523
523
|
return;
|
|
524
524
|
}
|
|
525
525
|
l(r);
|
|
@@ -542,15 +542,15 @@ var M = (e, t, n, r) => {
|
|
|
542
542
|
data: k(() => [{
|
|
543
543
|
label: "OK",
|
|
544
544
|
value: e.ok,
|
|
545
|
-
color:
|
|
545
|
+
color: p.ok
|
|
546
546
|
}, {
|
|
547
547
|
label: "NG",
|
|
548
548
|
value: e.ng,
|
|
549
|
-
color:
|
|
549
|
+
color: p.ng
|
|
550
550
|
}], [e]),
|
|
551
551
|
increment: n,
|
|
552
552
|
clear: () => {
|
|
553
|
-
let { db: n } =
|
|
553
|
+
let { db: n } = v, r = { ...e };
|
|
554
554
|
t({
|
|
555
555
|
ok: 0,
|
|
556
556
|
ng: 0
|
package/dist/hooks.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./hooks-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./hooks-Bvpdah8O.js";
|
|
2
2
|
export { l as Contexts, f as useAppContext, o as useAsync, e as useDataQueue, u as useFileState, p as useMessage, t as useObserver, s as useOnEvent, h as usePagination, n as usePersistFn, r as usePrefixT, d as useResize, m as useRunStatis, c as useStore, a as useVastState, i as useWatch };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./packages-
|
|
1
|
+
import { n as e, t } from "./packages-CvFznab6.js";
|
|
2
2
|
export { t as AoiGlobal, e as aoiInit };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as e, R as t, T as n, V as r, at as i, d as a, et as o, f as s, i as c, it as l, l as u, m as d, t as f, u as p } from "./Geometry-
|
|
2
|
-
import { t as m } from "./canvasUtils-
|
|
3
|
-
import { t as h } from "./CanvasPool-
|
|
1
|
+
import { B as e, R as t, T as n, V as r, at as i, d as a, et as o, f as s, i as c, it as l, l as u, m as d, t as f, u as p } from "./Geometry-xMtyt_5s.js";
|
|
2
|
+
import { t as m } from "./canvasUtils-DIcFK_XK.js";
|
|
3
|
+
import { t as h } from "./CanvasPool-jGurtfi2.js";
|
|
4
4
|
//#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/bounds/getRenderableBounds.mjs
|
|
5
5
|
var g = new o();
|
|
6
6
|
function _(e, t) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as e, C as t, D as n, M as r, N as i, Q as a, R as o, U as s, V as c, W as l, _ as u, at as d, b as f, it as p, j as m, x as h, y as g } from "./Geometry-
|
|
2
|
-
import { r as _ } from "./canvasUtils-
|
|
1
|
+
import { B as e, C as t, D as n, M as r, N as i, Q as a, R as o, U as s, V as c, W as l, _ as u, at as d, b as f, it as p, j as m, x as h, y as g } from "./Geometry-xMtyt_5s.js";
|
|
2
|
+
import { r as _ } from "./canvasUtils-DIcFK_XK.js";
|
|
3
3
|
//#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/mask/utils/addMaskBounds.mjs
|
|
4
4
|
var v = new e();
|
|
5
5
|
function y(e, t, n) {
|