@vived/component-pneumatic-panel 1.1.0 → 1.1.1
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onCheckPressure.d.ts","sourceRoot":"","sources":["../../../src/Domain/Controllers/onCheckPressure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,wBAAgB,eAAe,CAC7B,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,aAAa,EACzB,QAAQ,EAAE,MAAM,IAAI,GACnB,MAAM,IAAI,CAYZ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { onPanelUnlocked } from "./Domain/Controllers/onPanelUnlocked";
|
|
|
23
23
|
export { enablePanelHitbox } from "./Domain/Controllers/enablePanelHitbox";
|
|
24
24
|
export { disablePanelHitbox } from "./Domain/Controllers/disablePanelHitbox";
|
|
25
25
|
export { onPanelSelected } from "./Domain/Controllers/onPanelSelected";
|
|
26
|
+
export { onCheckPressure } from "./Domain/Controllers/onCheckPressure";
|
|
26
27
|
export { panelHitboxClicked } from "./Domain/Controllers/panelHitboxClicked";
|
|
27
28
|
export { PneumaticPanelPM, makePneumaticPanelPM, type PneumaticPanelVM, } from "./Domain/PMs/PneumaticPanelPM";
|
|
28
29
|
export { pneumaticPanelPMAdapter } from "./Domain/Adapters/pneumaticPanelPMAdapter";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACL,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,KAAK,2BAA2B,GACjC,MAAM,sCAAsC,CAAC;AAG9C,OAAO,EACL,6BAA6B,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AAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppObjectEntity as c, MemoizedBoolean as D, MemoizedNumber as No, AppObjectEntityRepo as
|
|
1
|
+
import { AppObjectEntity as c, MemoizedBoolean as D, MemoizedNumber as No, AppObjectEntityRepo as it, getSingletonComponent as r, generateUniqueID as Qs, AppObjectUC as o, AppObjectPM as h, ParametricLine as Qo, AppObjectSingletonPM as K, Matrix as U, Vector3 as g, Quaternion as R, AppObjectController as u, Vector2 as l, MemoizedString as pe, Color as B, RangedNumber as Yo, Angle as jt, AppObjectView as wt, DomainFactory as Xo } from "@vived/core";
|
|
2
2
|
import { Color3 as Bt, ActionManager as E, ExecuteCodeAction as V, Animation as X, CubicEase as $o, EasingFunction as Jo, Material as tr, LoadAssetContainerAsync as er, Color4 as sr, HighlightLayer as ir } from "@babylonjs/core";
|
|
3
3
|
class j extends c {
|
|
4
4
|
static type = "PneumaticPanelEntity";
|
|
@@ -71,14 +71,14 @@ class nr extends j {
|
|
|
71
71
|
super(t, j.type);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
class
|
|
74
|
+
class ct extends it {
|
|
75
75
|
static type = "PneumaticPanelRepo";
|
|
76
76
|
/**
|
|
77
77
|
* Global accessor for the singleton repository
|
|
78
78
|
*/
|
|
79
79
|
static get(t) {
|
|
80
80
|
return r(
|
|
81
|
-
|
|
81
|
+
ct.type,
|
|
82
82
|
t
|
|
83
83
|
);
|
|
84
84
|
}
|
|
@@ -86,7 +86,7 @@ class ht extends st {
|
|
|
86
86
|
function or(s) {
|
|
87
87
|
return new rr(s);
|
|
88
88
|
}
|
|
89
|
-
class rr extends
|
|
89
|
+
class rr extends ct {
|
|
90
90
|
pneumaticPanelEntityFactory = (t) => {
|
|
91
91
|
const e = this.appObjects.getOrCreate(t);
|
|
92
92
|
return Vo(e);
|
|
@@ -104,7 +104,7 @@ class rr extends ht {
|
|
|
104
104
|
e.appObject.dispose(), this.removeForAppObject(t);
|
|
105
105
|
}
|
|
106
106
|
constructor(t) {
|
|
107
|
-
super(t,
|
|
107
|
+
super(t, ct.type);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
class _ extends o {
|
|
@@ -232,7 +232,7 @@ class cr extends Z {
|
|
|
232
232
|
super(t, Z.type);
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
class
|
|
235
|
+
class J extends o {
|
|
236
236
|
static type = "PneumaticPanelCheckPressureUC";
|
|
237
237
|
static get(t) {
|
|
238
238
|
return t.getComponent(this.type);
|
|
@@ -244,7 +244,7 @@ class ct extends o {
|
|
|
244
244
|
function ur(s) {
|
|
245
245
|
return new pr(s);
|
|
246
246
|
}
|
|
247
|
-
class pr extends
|
|
247
|
+
class pr extends J {
|
|
248
248
|
onCheckPressureCallbacks = /* @__PURE__ */ new Set();
|
|
249
249
|
get entity() {
|
|
250
250
|
try {
|
|
@@ -304,7 +304,7 @@ class pr extends ct {
|
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
constructor(t) {
|
|
307
|
-
super(t,
|
|
307
|
+
super(t, J.type);
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
class F extends o {
|
|
@@ -378,7 +378,7 @@ function Cr(s, t) {
|
|
|
378
378
|
), !1);
|
|
379
379
|
}
|
|
380
380
|
function fr(s, t) {
|
|
381
|
-
const e =
|
|
381
|
+
const e = J.getById(s, t);
|
|
382
382
|
if (!e) {
|
|
383
383
|
t.submitWarning(
|
|
384
384
|
"checkPressure",
|
|
@@ -491,6 +491,14 @@ function Ol(s, t, e) {
|
|
|
491
491
|
), () => {
|
|
492
492
|
});
|
|
493
493
|
}
|
|
494
|
+
function Ul(s, t, e) {
|
|
495
|
+
const i = J.getById(s, t);
|
|
496
|
+
return i ? i.subscribeOnCheckPressure(e) : (t.submitWarning(
|
|
497
|
+
"onCheckPressure",
|
|
498
|
+
"Unable to find PneumaticPanelCheckPressureUC"
|
|
499
|
+
), () => {
|
|
500
|
+
});
|
|
501
|
+
}
|
|
494
502
|
function br(s, t) {
|
|
495
503
|
const e = F.getById(s, t);
|
|
496
504
|
if (!e) {
|
|
@@ -502,7 +510,7 @@ function br(s, t) {
|
|
|
502
510
|
}
|
|
503
511
|
e.notifyPanelSelected();
|
|
504
512
|
}
|
|
505
|
-
class
|
|
513
|
+
class tt extends h {
|
|
506
514
|
static type = "PneumaticPanelPM";
|
|
507
515
|
static get(t) {
|
|
508
516
|
return t.getComponent(this.type);
|
|
@@ -514,7 +522,7 @@ class J extends h {
|
|
|
514
522
|
function mr(s) {
|
|
515
523
|
return new Sr(s);
|
|
516
524
|
}
|
|
517
|
-
class Sr extends
|
|
525
|
+
class Sr extends tt {
|
|
518
526
|
get entity() {
|
|
519
527
|
return this.getCachedLocalComponent(
|
|
520
528
|
j.type
|
|
@@ -536,7 +544,7 @@ class Sr extends J {
|
|
|
536
544
|
});
|
|
537
545
|
};
|
|
538
546
|
constructor(t) {
|
|
539
|
-
super(t,
|
|
547
|
+
super(t, tt.type), this.entity?.addChangeObserver(this.onEntityChange), this.onEntityChange();
|
|
540
548
|
}
|
|
541
549
|
}
|
|
542
550
|
const w = {
|
|
@@ -551,7 +559,7 @@ const w = {
|
|
|
551
559
|
},
|
|
552
560
|
subscribe: (s, t, e) => {
|
|
553
561
|
if (!s) return;
|
|
554
|
-
const i =
|
|
562
|
+
const i = tt.getById(s, t);
|
|
555
563
|
if (!i) {
|
|
556
564
|
t.submitWarning(
|
|
557
565
|
"pneumaticPanelPMAdapter",
|
|
@@ -563,7 +571,7 @@ const w = {
|
|
|
563
571
|
},
|
|
564
572
|
unsubscribe: (s, t, e) => {
|
|
565
573
|
if (!s) return;
|
|
566
|
-
const i =
|
|
574
|
+
const i = tt.getById(s, t);
|
|
567
575
|
i && i.removeView(e);
|
|
568
576
|
}
|
|
569
577
|
};
|
|
@@ -854,10 +862,10 @@ class Ke extends o {
|
|
|
854
862
|
}
|
|
855
863
|
Ke.type = "EditSlideTextUC";
|
|
856
864
|
Ke.get = (s) => r(Ke.type, s);
|
|
857
|
-
class
|
|
865
|
+
class et extends c {
|
|
858
866
|
}
|
|
859
|
-
|
|
860
|
-
|
|
867
|
+
et.type = "KeyboardInputEntity";
|
|
868
|
+
et.get = (s) => r(et.type, s);
|
|
861
869
|
class C extends c {
|
|
862
870
|
}
|
|
863
871
|
C.type = "TouchInputEntity";
|
|
@@ -879,7 +887,7 @@ class qe extends h {
|
|
|
879
887
|
}
|
|
880
888
|
qe.type = "FramedScreenSizePM";
|
|
881
889
|
qe.get = (s) => r(qe.type, s);
|
|
882
|
-
class
|
|
890
|
+
class st extends c {
|
|
883
891
|
static addIfMissing(t) {
|
|
884
892
|
const e = t.getComponent(this.type);
|
|
885
893
|
return e || Ze(t);
|
|
@@ -891,11 +899,11 @@ class et extends c {
|
|
|
891
899
|
return e.get(t)?.getComponent(this.type);
|
|
892
900
|
}
|
|
893
901
|
}
|
|
894
|
-
|
|
902
|
+
st.type = "TRANSFORM_3D";
|
|
895
903
|
function Ze(s) {
|
|
896
904
|
return new Er(s);
|
|
897
905
|
}
|
|
898
|
-
class Er extends
|
|
906
|
+
class Er extends st {
|
|
899
907
|
get localMatrix() {
|
|
900
908
|
return this._transformationMatrix;
|
|
901
909
|
}
|
|
@@ -974,7 +982,7 @@ class Er extends et {
|
|
|
974
982
|
this.notifyOnChange();
|
|
975
983
|
}
|
|
976
984
|
constructor(t) {
|
|
977
|
-
super(t,
|
|
985
|
+
super(t, st.type), this._transformationMatrix = U.Identity(), this.localPointToWorld = (e) => g.Transform(e, this.worldMatrix), this.worldPointToLocal = (e) => {
|
|
978
986
|
const i = U.Invert(this.worldMatrix);
|
|
979
987
|
return g.Transform(e, i);
|
|
980
988
|
}, this.localDirectionToWorld = (e) => {
|
|
@@ -1070,7 +1078,7 @@ class ei extends u {
|
|
|
1070
1078
|
this.warn("Controller has been added to an App Object that does not have ToolRepository. Add one first.");
|
|
1071
1079
|
return;
|
|
1072
1080
|
}
|
|
1073
|
-
const e =
|
|
1081
|
+
const e = et.get(t.appObjectRepo);
|
|
1074
1082
|
e ? e.registerController(this) : this.warn("Unable to find KeyboardInputEntity");
|
|
1075
1083
|
}
|
|
1076
1084
|
}
|
|
@@ -1107,12 +1115,12 @@ class ii extends o {
|
|
|
1107
1115
|
}
|
|
1108
1116
|
}
|
|
1109
1117
|
ii.type = "MoveTransformUC";
|
|
1110
|
-
class
|
|
1118
|
+
class nt extends o {
|
|
1111
1119
|
static get(t, e) {
|
|
1112
|
-
return e.get(t)?.getComponent(
|
|
1120
|
+
return e.get(t)?.getComponent(nt.type);
|
|
1113
1121
|
}
|
|
1114
1122
|
}
|
|
1115
|
-
|
|
1123
|
+
nt.type = "PanTransformUC";
|
|
1116
1124
|
class Wo extends o {
|
|
1117
1125
|
}
|
|
1118
1126
|
Wo.type = "PinchTransformUC";
|
|
@@ -1186,7 +1194,7 @@ class li extends u {
|
|
|
1186
1194
|
this.doPan && this.panUC?.updatePixel(i.position);
|
|
1187
1195
|
}, this.onUp = () => {
|
|
1188
1196
|
this.doPan = !1, this.panUC?.finish();
|
|
1189
|
-
}, this.panUC = t.getComponent(
|
|
1197
|
+
}, this.panUC = t.getComponent(nt.type), !this.panUC) {
|
|
1190
1198
|
this.error("Controller has been added to an App Object that does not have PanTransformUC. Add one first.");
|
|
1191
1199
|
return;
|
|
1192
1200
|
}
|
|
@@ -1276,7 +1284,7 @@ class di extends u {
|
|
|
1276
1284
|
this.error("Unable to find StylusEntity");
|
|
1277
1285
|
return;
|
|
1278
1286
|
}
|
|
1279
|
-
if (this.uc = t.getComponent(
|
|
1287
|
+
if (this.uc = t.getComponent(nt.type), !this.uc) {
|
|
1280
1288
|
this.error("App Object that does not have a RayScaleTransformUC");
|
|
1281
1289
|
return;
|
|
1282
1290
|
}
|
|
@@ -1346,7 +1354,7 @@ class Ci extends u {
|
|
|
1346
1354
|
this.isPanning = !1, this.panUC?.finish();
|
|
1347
1355
|
};
|
|
1348
1356
|
const e = t.appObjectRepo;
|
|
1349
|
-
if (this.panUC = t.getComponent(
|
|
1357
|
+
if (this.panUC = t.getComponent(nt.type), !this.panUC) {
|
|
1350
1358
|
this.warn("Controller has been added to an App Object that does not have PanTransformUC. Add one first.");
|
|
1351
1359
|
return;
|
|
1352
1360
|
}
|
|
@@ -1826,7 +1834,7 @@ class xi extends h {
|
|
|
1826
1834
|
}
|
|
1827
1835
|
}
|
|
1828
1836
|
xi.type = "CalloutLinePointsPM";
|
|
1829
|
-
class A extends
|
|
1837
|
+
class A extends it {
|
|
1830
1838
|
static get(t) {
|
|
1831
1839
|
return t.getComponent(this.type);
|
|
1832
1840
|
}
|
|
@@ -1859,7 +1867,7 @@ class Vr extends A {
|
|
|
1859
1867
|
}, this.calloutFactory = (e) => {
|
|
1860
1868
|
const i = this.appObjects.getOrCreate(e);
|
|
1861
1869
|
return Hr(i);
|
|
1862
|
-
}, this._transform =
|
|
1870
|
+
}, this._transform = st.addIfMissing(t);
|
|
1863
1871
|
}
|
|
1864
1872
|
}
|
|
1865
1873
|
class Ei extends h {
|
|
@@ -2238,7 +2246,7 @@ class zi extends u {
|
|
|
2238
2246
|
constructor(t) {
|
|
2239
2247
|
super(t, zi.type), this.onKeyDown = (i) => {
|
|
2240
2248
|
i.code === "Escape" && this.selection && (this.selection.selectedObjectId = null);
|
|
2241
|
-
},
|
|
2249
|
+
}, et.get(this.appObjects)?.registerController(this);
|
|
2242
2250
|
}
|
|
2243
2251
|
}
|
|
2244
2252
|
zi.type = "KeyboardToClearSelection";
|
|
@@ -2264,12 +2272,12 @@ class Ni extends u {
|
|
|
2264
2272
|
}
|
|
2265
2273
|
}
|
|
2266
2274
|
Ni.type = "MouseHoverOnAppObject";
|
|
2267
|
-
class
|
|
2275
|
+
class ot extends o {
|
|
2268
2276
|
static get(t) {
|
|
2269
|
-
return r(
|
|
2277
|
+
return r(ot.type, t);
|
|
2270
2278
|
}
|
|
2271
2279
|
}
|
|
2272
|
-
|
|
2280
|
+
ot.type = "PressAppObjectUC";
|
|
2273
2281
|
class Ct extends u {
|
|
2274
2282
|
constructor(t) {
|
|
2275
2283
|
if (super(t, Ct.type), this.zSpaceEntity = void 0, this.startPosition = l.Zero(), this.endPosition = l.Zero(), this.pressedID = null, this.isPressed = !1, this.allow = (i) => !0, this.onDown = (i) => {
|
|
@@ -2282,7 +2290,7 @@ class Ct extends u {
|
|
|
2282
2290
|
this.isPressed = !1, i.button === 0 && this.pressUC && this.pressUC.pressAppObject(this.pressedID, this.isPressed);
|
|
2283
2291
|
}, this.onMove = (i) => {
|
|
2284
2292
|
this.pressUC && this.isPressed && (this.endPosition = i.position, l.Subtract(this.startPosition, this.endPosition).magnitued > Ct.maxTapDistancePx && this.pressUC.pressAppObject(null, this.isPressed));
|
|
2285
|
-
}, this.zSpaceEntity = G.get(this.appObjects), this.pressUC = t.getComponent(
|
|
2293
|
+
}, this.zSpaceEntity = G.get(this.appObjects), this.pressUC = t.getComponent(ot.type), !this.pressUC) {
|
|
2286
2294
|
console.warn("MousePress has been added to an App Object that does not have a PressAppObjectUC. Add a PressAppObjectUC before adding the Controller.");
|
|
2287
2295
|
return;
|
|
2288
2296
|
}
|
|
@@ -2292,12 +2300,12 @@ class Ct extends u {
|
|
|
2292
2300
|
}
|
|
2293
2301
|
Ct.type = "MousePressOnAppObject";
|
|
2294
2302
|
Ct.maxTapDistancePx = 5;
|
|
2295
|
-
class
|
|
2303
|
+
class rt extends o {
|
|
2296
2304
|
static get(t) {
|
|
2297
|
-
return r(
|
|
2305
|
+
return r(rt.type, t);
|
|
2298
2306
|
}
|
|
2299
2307
|
}
|
|
2300
|
-
|
|
2308
|
+
rt.type = "SelectAppObjectUC";
|
|
2301
2309
|
class Vi extends u {
|
|
2302
2310
|
constructor(t) {
|
|
2303
2311
|
if (super(t, Vi.type), this.zSpaceEntity = void 0, this.allow = (i) => !0, this.onClick = (i) => {
|
|
@@ -2305,7 +2313,7 @@ class Vi extends u {
|
|
|
2305
2313
|
return;
|
|
2306
2314
|
const n = Mt(i.position, this.appObjects);
|
|
2307
2315
|
this.selectUC.trySelectAppObject(n);
|
|
2308
|
-
}, this.zSpaceEntity = G.get(this.appObjects), this.selectUC = t.getComponent(
|
|
2316
|
+
}, this.zSpaceEntity = G.get(this.appObjects), this.selectUC = t.getComponent(rt.type), !this.selectUC) {
|
|
2309
2317
|
console.warn("MouseSelect has been added to an App Object that does not have a SelectAppObjectUC. Add a SelectAppObjectUC before adding the Controller.");
|
|
2310
2318
|
return;
|
|
2311
2319
|
}
|
|
@@ -2359,7 +2367,7 @@ class ft extends u {
|
|
|
2359
2367
|
this.error("Unable to find StylusEntity");
|
|
2360
2368
|
return;
|
|
2361
2369
|
}
|
|
2362
|
-
if (this.pressUC = t.getComponent(
|
|
2370
|
+
if (this.pressUC = t.getComponent(ot.type), !this.pressUC) {
|
|
2363
2371
|
this.error("Unable to get PressAppObjectUC from the App Object");
|
|
2364
2372
|
return;
|
|
2365
2373
|
}
|
|
@@ -2379,7 +2387,7 @@ class Wi extends u {
|
|
|
2379
2387
|
this.error("Unable to find StylusEntity");
|
|
2380
2388
|
return;
|
|
2381
2389
|
}
|
|
2382
|
-
if (this.selectUC = t.getComponent(
|
|
2390
|
+
if (this.selectUC = t.getComponent(rt.type), !this.selectUC) {
|
|
2383
2391
|
this.error("Added to an App Object that does not have SelectAppObjectUC");
|
|
2384
2392
|
return;
|
|
2385
2393
|
}
|
|
@@ -2400,7 +2408,7 @@ class bt extends u {
|
|
|
2400
2408
|
const n = Mt(this.endPosition, this.appObjects);
|
|
2401
2409
|
this.selectUC?.trySelectAppObject(n);
|
|
2402
2410
|
}
|
|
2403
|
-
}, this.selectUC = t.getComponent(
|
|
2411
|
+
}, this.selectUC = t.getComponent(rt.type), !this.selectUC) {
|
|
2404
2412
|
console.warn("MouseSelect has been added to an App Object that does not have a SelectAppObjectUC. Add a SelectAppObjectUC before adding the Controller.");
|
|
2405
2413
|
return;
|
|
2406
2414
|
}
|
|
@@ -2422,7 +2430,7 @@ class mt extends u {
|
|
|
2422
2430
|
i.touches.length === 1 ? (this.endPosition = i.touches[0].position, l.Subtract(this.startPosition, this.endPosition).magnitued > mt.maxTapDistancePx && this.pressUC?.pressAppObject(null, !0)) : (this.pressUC?.pressAppObject(null, !0), this.doTouchEnd = !1);
|
|
2423
2431
|
}, this.onTouchEnd = () => {
|
|
2424
2432
|
this.doTouchEnd && (this.isPressed = !1, this.pressUC?.pressAppObject(this.pressedID, this.isPressed));
|
|
2425
|
-
}, this.pressUC = t.getComponent(
|
|
2433
|
+
}, this.pressUC = t.getComponent(ot.type), !this.pressUC) {
|
|
2426
2434
|
console.warn("TouchPress has been added to an App Object that does not have a PressAppObjectUC. Add a PressAppObjectUC before adding the Controller.");
|
|
2427
2435
|
return;
|
|
2428
2436
|
}
|
|
@@ -2626,16 +2634,16 @@ var ns;
|
|
|
2626
2634
|
(function(s) {
|
|
2627
2635
|
s.SCREEN = "SCREEN", s.WORLD = "WORLD";
|
|
2628
2636
|
})(ns || (ns = {}));
|
|
2629
|
-
class
|
|
2637
|
+
class at extends it {
|
|
2630
2638
|
constructor() {
|
|
2631
2639
|
super(...arguments), this.challengeID = "LABEL_DROP", this.name = "Label Drop", this.helpHeading = "Label Drop Challenge Help", this.consumerHelpText = "You are being challenged to drop these labels on the correct objects in the scene.", this.authorHelpText = "Challenge the user to drop labels onto specific objects.";
|
|
2632
2640
|
}
|
|
2633
2641
|
static get(t) {
|
|
2634
|
-
return r(
|
|
2642
|
+
return r(at.type, t);
|
|
2635
2643
|
}
|
|
2636
2644
|
}
|
|
2637
|
-
|
|
2638
|
-
|
|
2645
|
+
at.type = "LabelDropRepo";
|
|
2646
|
+
at.LABEL_DROP_ANSWER_REQUIRED = "At least one label drop answer item is required";
|
|
2639
2647
|
class Yi extends h {
|
|
2640
2648
|
static get(t) {
|
|
2641
2649
|
return r(Yi.type, t);
|
|
@@ -2731,7 +2739,7 @@ class an extends o {
|
|
|
2731
2739
|
return this.getCachedSingleton(L.type);
|
|
2732
2740
|
}
|
|
2733
2741
|
get labelDropRepo() {
|
|
2734
|
-
return this.getCachedSingleton(
|
|
2742
|
+
return this.getCachedSingleton(at.type);
|
|
2735
2743
|
}
|
|
2736
2744
|
constructor(t) {
|
|
2737
2745
|
super(t, an.type), this.onBaseAppChange = () => {
|
|
@@ -2766,7 +2774,7 @@ class ln extends o {
|
|
|
2766
2774
|
ln.type = "InitializeLabelDropLabelHook";
|
|
2767
2775
|
class hn extends o {
|
|
2768
2776
|
get labelDrop() {
|
|
2769
|
-
return this.getCachedSingleton(
|
|
2777
|
+
return this.getCachedSingleton(at.type);
|
|
2770
2778
|
}
|
|
2771
2779
|
getSystemState() {
|
|
2772
2780
|
return this.labelDrop ? {
|
|
@@ -2879,12 +2887,12 @@ class kt extends o {
|
|
|
2879
2887
|
}
|
|
2880
2888
|
}
|
|
2881
2889
|
kt.type = "TrySelectObjectPickUC";
|
|
2882
|
-
class
|
|
2890
|
+
class lt extends o {
|
|
2883
2891
|
static get(t) {
|
|
2884
|
-
return r(
|
|
2892
|
+
return r(lt.type, t);
|
|
2885
2893
|
}
|
|
2886
2894
|
}
|
|
2887
|
-
|
|
2895
|
+
lt.type = "TrySubmitObjectPickUC";
|
|
2888
2896
|
class gn extends u {
|
|
2889
2897
|
get baseApp() {
|
|
2890
2898
|
return this.getCachedSingleton(L.type);
|
|
@@ -2896,7 +2904,7 @@ class gn extends u {
|
|
|
2896
2904
|
return this.getCachedSingleton(kt.type)?.tryWithPixel;
|
|
2897
2905
|
}
|
|
2898
2906
|
get trySubmitObjectPick() {
|
|
2899
|
-
return this.getCachedSingleton(
|
|
2907
|
+
return this.getCachedSingleton(lt.type)?.tryWithPixel;
|
|
2900
2908
|
}
|
|
2901
2909
|
constructor(t) {
|
|
2902
2910
|
super(t, gn.type), this.onClick = (e) => {
|
|
@@ -2910,7 +2918,7 @@ class yn extends u {
|
|
|
2910
2918
|
return this.getCachedSingleton(S.type);
|
|
2911
2919
|
}
|
|
2912
2920
|
get trySubmitObjectPick() {
|
|
2913
|
-
return this.getCachedSingleton(
|
|
2921
|
+
return this.getCachedSingleton(lt.type)?.tryWithRay;
|
|
2914
2922
|
}
|
|
2915
2923
|
constructor(t) {
|
|
2916
2924
|
super(t, yn.type), this.onButtonClick = (e) => {
|
|
@@ -2933,7 +2941,7 @@ class Cn extends u {
|
|
|
2933
2941
|
return this.getCachedSingleton(kt.type)?.tryWithPixel;
|
|
2934
2942
|
}
|
|
2935
2943
|
get trySubmitObjectPick() {
|
|
2936
|
-
return this.getCachedSingleton(
|
|
2944
|
+
return this.getCachedSingleton(lt.type)?.tryWithPixel;
|
|
2937
2945
|
}
|
|
2938
2946
|
constructor(t) {
|
|
2939
2947
|
super(t, Cn.type), this.onTap = (e) => {
|
|
@@ -3163,7 +3171,7 @@ class wn extends c {
|
|
|
3163
3171
|
}
|
|
3164
3172
|
}
|
|
3165
3173
|
wn.type = "ChannelModelEntity";
|
|
3166
|
-
class Ss extends
|
|
3174
|
+
class Ss extends it {
|
|
3167
3175
|
}
|
|
3168
3176
|
Ss.type = "CHANNEL_MODEL_REPO";
|
|
3169
3177
|
Ss.get = (s) => r(Ss.type, s);
|
|
@@ -3271,10 +3279,10 @@ class Ca extends $ {
|
|
|
3271
3279
|
super.dispose(), this._label.removeChangeObserver(this.notifyOnChange), this._transform.removeChangeObserver(this.notifyOnChange), this._hideable.removeChangeObserver(this.notifyOnChange), this._overlayColor.removeChangeObserver(this.notifyOnChange), this._selectable.removeChangeObserver(this.notifyOnChange), this._label.dispose(), this._transform.dispose(), this._hideable.dispose(), this._overlayColor.dispose(), this._selectable.dispose(), this._inRepo && this._inRepo.removeForAppObject(this.appObject.id);
|
|
3272
3280
|
}
|
|
3273
3281
|
constructor(t) {
|
|
3274
|
-
super(t, $.type), this.memoizedSize = new No(0, this.notifyOnChange), this._label = v.addIfMissing(t), this._label.addChangeObserver(this.notifyOnChange), this._transform =
|
|
3282
|
+
super(t, $.type), this.memoizedSize = new No(0, this.notifyOnChange), this._label = v.addIfMissing(t), this._label.addChangeObserver(this.notifyOnChange), this._transform = st.addIfMissing(t), this._transform.addChangeObserver(this.notifyOnChange), this._hideable = q.addIfMissing(t), this._hideable.addChangeObserver(this.notifyOnChange), this._overlayColor = z.addIfMissing(t), this._overlayColor.addChangeObserver(this.notifyOnChange), this._selectable = qo(t), this._selectable.addChangeObserver(this.notifyOnChange);
|
|
3275
3283
|
}
|
|
3276
3284
|
}
|
|
3277
|
-
class Q extends
|
|
3285
|
+
class Q extends it {
|
|
3278
3286
|
static get(t) {
|
|
3279
3287
|
return t.getComponent(this.type);
|
|
3280
3288
|
}
|
|
@@ -3308,7 +3316,7 @@ class ba extends Q {
|
|
|
3308
3316
|
}, this.landmarkFactory = (e) => {
|
|
3309
3317
|
const i = this.appObjects.getOrCreate(e);
|
|
3310
3318
|
return ya(i);
|
|
3311
|
-
}, this._transform =
|
|
3319
|
+
}, this._transform = st.addIfMissing(this.appObject);
|
|
3312
3320
|
}
|
|
3313
3321
|
}
|
|
3314
3322
|
class vn extends h {
|
|
@@ -3870,7 +3878,7 @@ var Io;
|
|
|
3870
3878
|
class Ma extends c {
|
|
3871
3879
|
}
|
|
3872
3880
|
Ma.type = "GlbModelEntity";
|
|
3873
|
-
class to extends
|
|
3881
|
+
class to extends it {
|
|
3874
3882
|
static get(t) {
|
|
3875
3883
|
return r(to.type, t);
|
|
3876
3884
|
}
|
|
@@ -4108,7 +4116,7 @@ class bo extends u {
|
|
|
4108
4116
|
return;
|
|
4109
4117
|
const n = this.codeLookup.get(i.code);
|
|
4110
4118
|
n === void 0 || n < 0 || n >= this.inspectorTabEntity.inspectorTabs.length || (this.inspectorTabEntity.activeTabIndex = n);
|
|
4111
|
-
},
|
|
4119
|
+
}, et.get(this.appObjects)?.registerController(this);
|
|
4112
4120
|
}
|
|
4113
4121
|
}
|
|
4114
4122
|
bo.type = "KeyboardToSetTab";
|
|
@@ -4378,15 +4386,15 @@ class Oo extends o {
|
|
|
4378
4386
|
}
|
|
4379
4387
|
}
|
|
4380
4388
|
Oo.type = "TryPickStickTargetUC";
|
|
4381
|
-
class
|
|
4389
|
+
class ht extends c {
|
|
4382
4390
|
static addIfMissing(t) {
|
|
4383
4391
|
const e = t.getComponent(this.type);
|
|
4384
|
-
return e || new
|
|
4392
|
+
return e || new ht(t);
|
|
4385
4393
|
}
|
|
4386
4394
|
static get(t, e) {
|
|
4387
4395
|
const i = e.get(t);
|
|
4388
4396
|
if (i !== void 0)
|
|
4389
|
-
return i.getComponent(
|
|
4397
|
+
return i.getComponent(ht.type);
|
|
4390
4398
|
}
|
|
4391
4399
|
get isTransparent() {
|
|
4392
4400
|
return this.memoizedIsTransparent.val;
|
|
@@ -4395,10 +4403,10 @@ class lt extends c {
|
|
|
4395
4403
|
this.memoizedIsTransparent.val = t;
|
|
4396
4404
|
}
|
|
4397
4405
|
constructor(t) {
|
|
4398
|
-
super(t,
|
|
4406
|
+
super(t, ht.type), this.memoizedIsTransparent = new D(!1, this.notifyOnChange);
|
|
4399
4407
|
}
|
|
4400
4408
|
}
|
|
4401
|
-
|
|
4409
|
+
ht.type = "Transparency";
|
|
4402
4410
|
class Uo extends h {
|
|
4403
4411
|
static get(t, e) {
|
|
4404
4412
|
const i = e.get(t);
|
|
@@ -5064,7 +5072,7 @@ class hl extends Xo {
|
|
|
5064
5072
|
finalSetup() {
|
|
5065
5073
|
}
|
|
5066
5074
|
}
|
|
5067
|
-
function
|
|
5075
|
+
function wl(s) {
|
|
5068
5076
|
const t = s.getOrCreate("PneumaticPanels");
|
|
5069
5077
|
return new hl(t);
|
|
5070
5078
|
}
|
|
@@ -5075,7 +5083,7 @@ function cl(s) {
|
|
|
5075
5083
|
};
|
|
5076
5084
|
}
|
|
5077
5085
|
function ul(s, t) {
|
|
5078
|
-
const e =
|
|
5086
|
+
const e = ct.get(t);
|
|
5079
5087
|
if (!e) {
|
|
5080
5088
|
t.submitWarning(
|
|
5081
5089
|
"createPneumaticPanel",
|
|
@@ -5085,17 +5093,17 @@ function ul(s, t) {
|
|
|
5085
5093
|
}
|
|
5086
5094
|
return e.createPneumaticPanelEntity(s).appObject;
|
|
5087
5095
|
}
|
|
5088
|
-
async function
|
|
5096
|
+
async function Ml(s, t) {
|
|
5089
5097
|
const e = ul(s, t);
|
|
5090
5098
|
return e ? (await al(e).load(), e) : void 0;
|
|
5091
5099
|
}
|
|
5092
|
-
class
|
|
5100
|
+
class Tl extends tt {
|
|
5093
5101
|
vmsAreEqual = () => !0;
|
|
5094
5102
|
constructor(t) {
|
|
5095
|
-
super(t,
|
|
5103
|
+
super(t, tt.type);
|
|
5096
5104
|
}
|
|
5097
5105
|
}
|
|
5098
|
-
class
|
|
5106
|
+
class Al extends _ {
|
|
5099
5107
|
maxPressure = 60;
|
|
5100
5108
|
toggleExhaust = () => !0;
|
|
5101
5109
|
subscribeOnExhaustOpened = (t) => () => {
|
|
@@ -5108,7 +5116,7 @@ class Tl extends _ {
|
|
|
5108
5116
|
super(t, _.type);
|
|
5109
5117
|
}
|
|
5110
5118
|
}
|
|
5111
|
-
class
|
|
5119
|
+
class Ll extends Z {
|
|
5112
5120
|
toggleLock = () => !0;
|
|
5113
5121
|
subscribeOnPanelLocked = (t) => () => {
|
|
5114
5122
|
};
|
|
@@ -5118,16 +5126,16 @@ class Al extends Z {
|
|
|
5118
5126
|
super(t, Z.type);
|
|
5119
5127
|
}
|
|
5120
5128
|
}
|
|
5121
|
-
class
|
|
5129
|
+
class Il extends J {
|
|
5122
5130
|
checkPressure = () => {
|
|
5123
5131
|
};
|
|
5124
5132
|
subscribeOnCheckPressure = (t) => () => {
|
|
5125
5133
|
};
|
|
5126
5134
|
constructor(t) {
|
|
5127
|
-
super(t,
|
|
5135
|
+
super(t, J.type);
|
|
5128
5136
|
}
|
|
5129
5137
|
}
|
|
5130
|
-
class
|
|
5138
|
+
class vl extends F {
|
|
5131
5139
|
enableHitbox = () => {
|
|
5132
5140
|
};
|
|
5133
5141
|
disableHitbox = () => {
|
|
@@ -5141,35 +5149,36 @@ class Il extends F {
|
|
|
5141
5149
|
}
|
|
5142
5150
|
}
|
|
5143
5151
|
export {
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5152
|
+
Il as MockPneumaticPanelCheckPressureUC,
|
|
5153
|
+
Tl as MockPneumaticPanelPM,
|
|
5154
|
+
vl as MockPneumaticPanelSelectUC,
|
|
5155
|
+
Al as MockPneumaticPanelToggleExhaustUC,
|
|
5156
|
+
Ll as MockPneumaticPanelToggleLockUC,
|
|
5149
5157
|
zo as PneumaticPanelBabylonView,
|
|
5150
|
-
|
|
5158
|
+
J as PneumaticPanelCheckPressureUC,
|
|
5151
5159
|
j as PneumaticPanelEntity,
|
|
5152
5160
|
hl as PneumaticPanelFeatureFactory,
|
|
5153
|
-
|
|
5154
|
-
|
|
5161
|
+
tt as PneumaticPanelPM,
|
|
5162
|
+
ct as PneumaticPanelRepo,
|
|
5155
5163
|
F as PneumaticPanelSelectUC,
|
|
5156
5164
|
_ as PneumaticPanelToggleExhaustUC,
|
|
5157
5165
|
Z as PneumaticPanelToggleLockUC,
|
|
5158
5166
|
fr as checkPressure,
|
|
5159
5167
|
Cl as clearAllHighlights,
|
|
5160
5168
|
Wa as componentConfig,
|
|
5161
|
-
|
|
5169
|
+
Ml as createBabylonPneumaticPanel,
|
|
5162
5170
|
El as disablePanelHitbox,
|
|
5163
5171
|
xl as enablePanelHitbox,
|
|
5164
5172
|
al as makePneumaticPanelBabylonView,
|
|
5165
5173
|
ur as makePneumaticPanelCheckPressureUC,
|
|
5166
5174
|
Vo as makePneumaticPanelEntity,
|
|
5167
|
-
|
|
5175
|
+
wl as makePneumaticPanelFeatureFactory,
|
|
5168
5176
|
mr as makePneumaticPanelPM,
|
|
5169
5177
|
or as makePneumaticPanelRepo,
|
|
5170
5178
|
dr as makePneumaticPanelSelectUC,
|
|
5171
5179
|
ar as makePneumaticPanelToggleExhaustUC,
|
|
5172
5180
|
hr as makePneumaticPanelToggleLockUC,
|
|
5181
|
+
Ul as onCheckPressure,
|
|
5173
5182
|
ml as onExhaustCloseBlockedByLock,
|
|
5174
5183
|
bl as onExhaustClosed,
|
|
5175
5184
|
fl as onExhaustOpened,
|