web3dlink 2.1.21 → 2.1.23
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/{createGameSession-B7F0mf8j.js → createGameSession-DvGnvU6j.js} +287 -237
- package/dist/createGameSession-DvGnvU6j.js.map +1 -0
- package/dist/{linkFlowLarkSR-D8KzB4mT.js → linkFlowLarkSR-CrcwncD_.js} +2 -2
- package/dist/{linkFlowLarkSR-D8KzB4mT.js.map → linkFlowLarkSR-CrcwncD_.js.map} +1 -1
- package/dist/{linkFlowzsStream-DbhgylOU.js → linkFlowzsStream-BbgHPibf.js} +2 -2
- package/dist/{linkFlowzsStream-DbhgylOU.js.map → linkFlowzsStream-BbgHPibf.js.map} +1 -1
- package/dist/web3dlink-larksr.js +2 -2
- package/dist/web3dlink-zs.js +2 -2
- package/dist/web3dlink.js +3 -3
- package/package.json +11 -1
- package/dist/createGameSession-B7F0mf8j.js.map +0 -1
|
@@ -2,9 +2,17 @@
|
|
|
2
2
|
//#region baseConfig/version.js
|
|
3
3
|
var e = {
|
|
4
4
|
name: "web3dlink",
|
|
5
|
-
version: "2.1.
|
|
5
|
+
version: "2.1.23",
|
|
6
6
|
description: "LarkSR / ZS 推流 GameAPI SDK",
|
|
7
7
|
releaseNotes: {
|
|
8
|
+
"2.1.23": ["VTK.setColorRange 参数校验修改"],
|
|
9
|
+
"2.1.22": [
|
|
10
|
+
"sceneModel.offset 补齐 rotation/scale/translation 默认值 [0,0,0]",
|
|
11
|
+
"hydrodynamicForce.waterFlow 新增 rangeList 水深颜色配置",
|
|
12
|
+
"hydrodynamicForce.sediment 新增 rangeList 泥沙颜色配置",
|
|
13
|
+
"sceneModel.outline config.IsSolidMesh 默认值改为 true",
|
|
14
|
+
"sceneModel.setOpacity config.color 默认值改为 #1A80CCFF"
|
|
15
|
+
],
|
|
8
16
|
"2.1.21": [
|
|
9
17
|
"VTK 新增 setClipPlane 位置剖切、setClipPlaneByRatio 比例剖切",
|
|
10
18
|
"VTK setMode 新增 Contour、ContourMixed 模式",
|
|
@@ -2376,6 +2384,27 @@ function ft(e) {
|
|
|
2376
2384
|
};
|
|
2377
2385
|
}
|
|
2378
2386
|
//#endregion
|
|
2387
|
+
//#region api/hydrodynamicForce/helpers.js
|
|
2388
|
+
function M(e, t = {}) {
|
|
2389
|
+
let { required: n = !1 } = t, r = [];
|
|
2390
|
+
return e == null ? (n && r.push("[rangeList]为必填项"), r) : Array.isArray(e) ? e.length === 0 ? (r.push("[rangeList]不能为空数组"), r) : (e.forEach((e, t) => {
|
|
2391
|
+
if (typeof e != "object" || !e) {
|
|
2392
|
+
r.push(`[rangeList[${t}]]必须是对象类型`);
|
|
2393
|
+
return;
|
|
2394
|
+
}
|
|
2395
|
+
r.push(...p({
|
|
2396
|
+
normalized: e,
|
|
2397
|
+
field: "rangeDepth",
|
|
2398
|
+
value: e.rangeDepth,
|
|
2399
|
+
required: !0
|
|
2400
|
+
})), r.push(...h({
|
|
2401
|
+
normalized: e,
|
|
2402
|
+
field: "color",
|
|
2403
|
+
value: e.color
|
|
2404
|
+
}));
|
|
2405
|
+
}), r) : (r.push("[rangeList]必须是数组类型"), r);
|
|
2406
|
+
}
|
|
2407
|
+
//#endregion
|
|
2379
2408
|
//#region api/hydrodynamicForce/waterFlow.js
|
|
2380
2409
|
function pt(e) {
|
|
2381
2410
|
let t = [], n = { ...e };
|
|
@@ -2420,7 +2449,7 @@ function pt(e) {
|
|
|
2420
2449
|
normalized: n,
|
|
2421
2450
|
field: "key",
|
|
2422
2451
|
value: e.key
|
|
2423
|
-
})), {
|
|
2452
|
+
})), t.push(...M(e.rangeList)), {
|
|
2424
2453
|
errors: t,
|
|
2425
2454
|
normalized: n
|
|
2426
2455
|
};
|
|
@@ -2440,22 +2469,7 @@ function mt(e) {
|
|
|
2440
2469
|
value: e.maxWater,
|
|
2441
2470
|
required: !0,
|
|
2442
2471
|
min: e.minWater
|
|
2443
|
-
})),
|
|
2444
|
-
if (typeof e != "object" || !e) {
|
|
2445
|
-
t.push(`[rangeList[${n}]]必须是对象类型`);
|
|
2446
|
-
return;
|
|
2447
|
-
}
|
|
2448
|
-
t.push(...p({
|
|
2449
|
-
normalized: e,
|
|
2450
|
-
field: "rangeDepth",
|
|
2451
|
-
value: e.rangeDepth,
|
|
2452
|
-
required: !0
|
|
2453
|
-
})), t.push(...h({
|
|
2454
|
-
normalized: e,
|
|
2455
|
-
field: "color",
|
|
2456
|
-
value: e.color
|
|
2457
|
-
}));
|
|
2458
|
-
}) : t.push("[rangeList]必须是数组类型"), t.push(...h({
|
|
2472
|
+
})), t.push(...M(e.rangeList, { required: !0 })), t.push(...h({
|
|
2459
2473
|
normalized: n,
|
|
2460
2474
|
field: "waterDepthUrl",
|
|
2461
2475
|
value: e.waterDepthUrl
|
|
@@ -2502,7 +2516,7 @@ function ht(e) {
|
|
|
2502
2516
|
value: e.maxDoD,
|
|
2503
2517
|
required: !0,
|
|
2504
2518
|
min: e.minDoD
|
|
2505
|
-
})), {
|
|
2519
|
+
})), t.push(...M(e.rangeList)), {
|
|
2506
2520
|
errors: t,
|
|
2507
2521
|
normalized: n
|
|
2508
2522
|
};
|
|
@@ -2612,9 +2626,9 @@ function bt(e) {
|
|
|
2612
2626
|
}
|
|
2613
2627
|
//#endregion
|
|
2614
2628
|
//#region api/sceneModel/helpers.js
|
|
2615
|
-
var
|
|
2616
|
-
function
|
|
2617
|
-
let r =
|
|
2629
|
+
var N = (e) => e != null && e !== "";
|
|
2630
|
+
function P(e, { id: t, tag: n }) {
|
|
2631
|
+
let r = N(t), i = N(n);
|
|
2618
2632
|
if (!r && !i) {
|
|
2619
2633
|
e.push("[id]和[tag]必须提供其中一个");
|
|
2620
2634
|
return;
|
|
@@ -2631,7 +2645,7 @@ function N(e, { id: t, tag: n }) {
|
|
|
2631
2645
|
value: n
|
|
2632
2646
|
}));
|
|
2633
2647
|
}
|
|
2634
|
-
function
|
|
2648
|
+
function F(e, t, n) {
|
|
2635
2649
|
if (e == null) return;
|
|
2636
2650
|
if (typeof e != "object") {
|
|
2637
2651
|
n.push(`[${t}]必须是对象类型`);
|
|
@@ -2660,8 +2674,34 @@ function P(e, t, n) {
|
|
|
2660
2674
|
}));
|
|
2661
2675
|
}
|
|
2662
2676
|
}
|
|
2663
|
-
function
|
|
2664
|
-
|
|
2677
|
+
function I(e, t, n, r = {
|
|
2678
|
+
x: 0,
|
|
2679
|
+
y: 0,
|
|
2680
|
+
z: 0
|
|
2681
|
+
}) {
|
|
2682
|
+
if (n == null) {
|
|
2683
|
+
e[t] = { ...r };
|
|
2684
|
+
return;
|
|
2685
|
+
}
|
|
2686
|
+
if (typeof n != "object" || Array.isArray(n)) {
|
|
2687
|
+
if (Array.isArray(n) && n.length >= 3) {
|
|
2688
|
+
e[t] = {
|
|
2689
|
+
x: Number(n[0]),
|
|
2690
|
+
y: Number(n[1]),
|
|
2691
|
+
z: Number(n[2])
|
|
2692
|
+
};
|
|
2693
|
+
return;
|
|
2694
|
+
}
|
|
2695
|
+
return;
|
|
2696
|
+
}
|
|
2697
|
+
e[t] = {
|
|
2698
|
+
x: n.x === void 0 || n.x === null ? r.x : n.x,
|
|
2699
|
+
y: n.y === void 0 || n.y === null ? r.y : n.y,
|
|
2700
|
+
z: n.z === void 0 || n.z === null ? r.z : n.z
|
|
2701
|
+
};
|
|
2702
|
+
}
|
|
2703
|
+
function L(e, t, n) {
|
|
2704
|
+
let r = (t, n) => N(n) ? Array.isArray(n) ? n.length !== 0 || (e.push(`[${t}]不能为空数组`), !1) : (e.push(`[${t}]必须是数组类型`), !1) : !1, i = r("ids", t), a = r("tags", n);
|
|
2665
2705
|
!i && !a ? e.push("[ids]和[tags]必须提供其中一个") : i && a && e.push("[ids]和[tags]不能同时提供");
|
|
2666
2706
|
}
|
|
2667
2707
|
var xt = [
|
|
@@ -2670,7 +2710,7 @@ var xt = [
|
|
|
2670
2710
|
"Texture",
|
|
2671
2711
|
"Material"
|
|
2672
2712
|
];
|
|
2673
|
-
function
|
|
2713
|
+
function R(e, t, n, r, i) {
|
|
2674
2714
|
if (r == null) {
|
|
2675
2715
|
t[n] = i;
|
|
2676
2716
|
return;
|
|
@@ -2685,7 +2725,7 @@ function I(e, t, n, r, i) {
|
|
|
2685
2725
|
//#region api/sceneModel/setTransform.js
|
|
2686
2726
|
function St(e) {
|
|
2687
2727
|
let t = [], n = { ...e };
|
|
2688
|
-
return
|
|
2728
|
+
return P(t, e), F(e.rotation, "rotation", t), F(e.scale, "scale", t), F(e.translation, "translation", t), t.push(...m({
|
|
2689
2729
|
normalized: n,
|
|
2690
2730
|
field: "duration",
|
|
2691
2731
|
value: e.duration,
|
|
@@ -2696,7 +2736,7 @@ function St(e) {
|
|
|
2696
2736
|
t.push(`[list[${n}]]必须是对象类型`);
|
|
2697
2737
|
return;
|
|
2698
2738
|
}
|
|
2699
|
-
|
|
2739
|
+
F(e.rotation, `list[${n}].rotation`, t), F(e.scale, `list[${n}].scale`, t), F(e.translation, `list[${n}].translation`, t), t.push(...m({
|
|
2700
2740
|
normalized: e,
|
|
2701
2741
|
field: "duration",
|
|
2702
2742
|
value: e.duration,
|
|
@@ -2711,32 +2751,40 @@ function St(e) {
|
|
|
2711
2751
|
//#region api/sceneModel/clearTransform.js
|
|
2712
2752
|
function Ct(e) {
|
|
2713
2753
|
let t = [], n = { ...e };
|
|
2714
|
-
return
|
|
2754
|
+
return P(t, e), {
|
|
2715
2755
|
errors: t,
|
|
2716
2756
|
normalized: n
|
|
2717
2757
|
};
|
|
2718
2758
|
}
|
|
2719
2759
|
//#endregion
|
|
2720
2760
|
//#region api/sceneModel/offset.js
|
|
2761
|
+
var z = {
|
|
2762
|
+
x: 0,
|
|
2763
|
+
y: 0,
|
|
2764
|
+
z: 0
|
|
2765
|
+
};
|
|
2766
|
+
function B(e, t, n, r = "") {
|
|
2767
|
+
let i = r ? `${r}.rotation` : "rotation", a = r ? `${r}.scale` : "scale", o = r ? `${r}.translation` : "translation";
|
|
2768
|
+
I(e, "rotation", t.rotation, z), I(e, "scale", t.scale, z), I(e, "translation", t.translation, z), F(e.rotation, i, n), F(e.scale, a, n), F(e.translation, o, n);
|
|
2769
|
+
}
|
|
2721
2770
|
function wt(e) {
|
|
2722
2771
|
let t = [], n = { ...e };
|
|
2723
|
-
return
|
|
2772
|
+
return P(t, e), B(n, e, t), t.push(...m({
|
|
2724
2773
|
normalized: n,
|
|
2725
2774
|
field: "duration",
|
|
2726
2775
|
value: e.duration,
|
|
2727
2776
|
defaultValue: 0,
|
|
2728
2777
|
min: 0
|
|
2729
|
-
})), e.list !== void 0 && e.list !== null && (Array.isArray(e.list) ? e.list.
|
|
2730
|
-
if (typeof e != "object" || !e) {
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
P(e.rotation, `list[${n}].rotation`, t), P(e.scale, `list[${n}].scale`, t), P(e.translation, `list[${n}].translation`, t), t.push(...m({
|
|
2735
|
-
normalized: e,
|
|
2778
|
+
})), e.list !== void 0 && e.list !== null && (Array.isArray(e.list) ? n.list = e.list.map((e, n) => {
|
|
2779
|
+
if (typeof e != "object" || !e) return t.push(`[list[${n}]]必须是对象类型`), e;
|
|
2780
|
+
let r = { ...e };
|
|
2781
|
+
return B(r, e, t, `list[${n}]`), t.push(...m({
|
|
2782
|
+
normalized: r,
|
|
2736
2783
|
field: "duration",
|
|
2737
2784
|
value: e.duration,
|
|
2785
|
+
defaultValue: 0,
|
|
2738
2786
|
min: 0
|
|
2739
|
-
}));
|
|
2787
|
+
})), r;
|
|
2740
2788
|
}) : t.push("[list]必须是数组类型")), {
|
|
2741
2789
|
errors: t,
|
|
2742
2790
|
normalized: n
|
|
@@ -2746,7 +2794,7 @@ function wt(e) {
|
|
|
2746
2794
|
//#region api/sceneModel/clearOffset.js
|
|
2747
2795
|
function Tt(e) {
|
|
2748
2796
|
let t = [], n = { ...e };
|
|
2749
|
-
return
|
|
2797
|
+
return P(t, e), {
|
|
2750
2798
|
errors: t,
|
|
2751
2799
|
normalized: n
|
|
2752
2800
|
};
|
|
@@ -2755,7 +2803,7 @@ function Tt(e) {
|
|
|
2755
2803
|
//#region api/sceneModel/show.js
|
|
2756
2804
|
function Et(e) {
|
|
2757
2805
|
let t = [], n = { ...e };
|
|
2758
|
-
return
|
|
2806
|
+
return L(t, e.ids, e.tags), {
|
|
2759
2807
|
errors: t,
|
|
2760
2808
|
normalized: n
|
|
2761
2809
|
};
|
|
@@ -2764,7 +2812,7 @@ function Et(e) {
|
|
|
2764
2812
|
//#region api/sceneModel/hide.js
|
|
2765
2813
|
function Dt(e) {
|
|
2766
2814
|
let t = [], n = { ...e };
|
|
2767
|
-
return
|
|
2815
|
+
return L(t, e.ids, e.tags), {
|
|
2768
2816
|
errors: t,
|
|
2769
2817
|
normalized: n
|
|
2770
2818
|
};
|
|
@@ -2773,7 +2821,7 @@ function Dt(e) {
|
|
|
2773
2821
|
//#region api/sceneModel/showOnly.js
|
|
2774
2822
|
function Ot(e) {
|
|
2775
2823
|
let t = [], n = { ...e };
|
|
2776
|
-
return
|
|
2824
|
+
return L(t, e.ids, e.tags), e.isIgnoreMarker !== void 0 && typeof e.isIgnoreMarker != "boolean" ? t.push("[isIgnoreMarker]必须是布尔类型") : n.isIgnoreMarker = e.isIgnoreMarker === void 0 || e.isIgnoreMarker, e.isIgnoreSky !== void 0 && typeof e.isIgnoreSky != "boolean" ? t.push("[isIgnoreSky]必须是布尔类型") : n.isIgnoreSky = e.isIgnoreSky !== void 0 && e.isIgnoreSky, {
|
|
2777
2825
|
errors: t,
|
|
2778
2826
|
normalized: n
|
|
2779
2827
|
};
|
|
@@ -2782,7 +2830,7 @@ function Ot(e) {
|
|
|
2782
2830
|
//#region api/sceneModel/highLight.js
|
|
2783
2831
|
function kt(e) {
|
|
2784
2832
|
let t = [], n = { ...e };
|
|
2785
|
-
return
|
|
2833
|
+
return L(t, e.ids, e.tags), n.config ||= {}, t.push(...y({
|
|
2786
2834
|
normalized: n.config,
|
|
2787
2835
|
field: "color",
|
|
2788
2836
|
value: n.config.color,
|
|
@@ -2818,7 +2866,7 @@ function kt(e) {
|
|
|
2818
2866
|
//#region api/sceneModel/removeHighLight.js
|
|
2819
2867
|
function At(e) {
|
|
2820
2868
|
let t = [], n = { ...e };
|
|
2821
|
-
return
|
|
2869
|
+
return L(t, e.ids, e.tags), {
|
|
2822
2870
|
errors: t,
|
|
2823
2871
|
normalized: n
|
|
2824
2872
|
};
|
|
@@ -2827,7 +2875,7 @@ function At(e) {
|
|
|
2827
2875
|
//#region api/sceneModel/setOpacity.js
|
|
2828
2876
|
function jt(e) {
|
|
2829
2877
|
let t = [], n = { ...e };
|
|
2830
|
-
return
|
|
2878
|
+
return L(t, e.ids, e.tags), n.config ||= {}, t.push(...m({
|
|
2831
2879
|
normalized: n.config,
|
|
2832
2880
|
field: "opacity",
|
|
2833
2881
|
value: e.config?.opacity,
|
|
@@ -2844,7 +2892,7 @@ function jt(e) {
|
|
|
2844
2892
|
normalized: n.config,
|
|
2845
2893
|
field: "color",
|
|
2846
2894
|
value: e.config?.color,
|
|
2847
|
-
defaultValue: "#
|
|
2895
|
+
defaultValue: "#1A80CCFF"
|
|
2848
2896
|
})), {
|
|
2849
2897
|
errors: t,
|
|
2850
2898
|
normalized: n
|
|
@@ -2854,7 +2902,7 @@ function jt(e) {
|
|
|
2854
2902
|
//#region api/sceneModel/outline.js
|
|
2855
2903
|
function Mt(e) {
|
|
2856
2904
|
let t = [], n = { ...e };
|
|
2857
|
-
return
|
|
2905
|
+
return L(t, e.ids, e.tags), n.config ||= {}, t.push(...y({
|
|
2858
2906
|
normalized: n.config,
|
|
2859
2907
|
field: "color",
|
|
2860
2908
|
value: n.config.color,
|
|
@@ -2871,7 +2919,7 @@ function Mt(e) {
|
|
|
2871
2919
|
value: n.config.width,
|
|
2872
2920
|
defaultValue: 1,
|
|
2873
2921
|
min: 0
|
|
2874
|
-
})), n.config.IsSolidMesh === void 0 ? n.config.IsSolidMesh = !
|
|
2922
|
+
})), n.config.IsSolidMesh === void 0 ? n.config.IsSolidMesh = !0 : typeof n.config.IsSolidMesh != "boolean" && t.push("[config.IsSolidMesh] 必须是布尔类型"), t.push(...y({
|
|
2875
2923
|
normalized: n.config,
|
|
2876
2924
|
field: "meshColor",
|
|
2877
2925
|
value: n.config.meshColor,
|
|
@@ -2898,7 +2946,7 @@ function Mt(e) {
|
|
|
2898
2946
|
//#region api/sceneModel/removeOutline.js
|
|
2899
2947
|
function Nt(e) {
|
|
2900
2948
|
let t = [], n = { ...e };
|
|
2901
|
-
return
|
|
2949
|
+
return L(t, e.ids, e.tags), {
|
|
2902
2950
|
errors: t,
|
|
2903
2951
|
normalized: n
|
|
2904
2952
|
};
|
|
@@ -2953,7 +3001,7 @@ function Ft(e = {}) {
|
|
|
2953
3001
|
value: e.uvScale,
|
|
2954
3002
|
length: 2,
|
|
2955
3003
|
defaultValue: [1, 1]
|
|
2956
|
-
})),
|
|
3004
|
+
})), R(t, n, "isWorldUV", e.isWorldUV, !1), t.push(..._({
|
|
2957
3005
|
normalized: n,
|
|
2958
3006
|
field: "direction",
|
|
2959
3007
|
value: e.direction,
|
|
@@ -2963,7 +3011,7 @@ function Ft(e = {}) {
|
|
|
2963
3011
|
0,
|
|
2964
3012
|
-1
|
|
2965
3013
|
]
|
|
2966
|
-
})),
|
|
3014
|
+
})), R(t, n, "isWorldDirection", e.isWorldDirection, !1), t.push(...m({
|
|
2967
3015
|
normalized: n,
|
|
2968
3016
|
field: "ratio",
|
|
2969
3017
|
value: e.ratio,
|
|
@@ -3090,7 +3138,7 @@ function Ut(e) {
|
|
|
3090
3138
|
}
|
|
3091
3139
|
//#endregion
|
|
3092
3140
|
//#region api/tool/onDistance.js
|
|
3093
|
-
function
|
|
3141
|
+
function Wt(e) {
|
|
3094
3142
|
return {
|
|
3095
3143
|
errors: [],
|
|
3096
3144
|
normalized: { ...e }
|
|
@@ -3098,7 +3146,7 @@ function L(e) {
|
|
|
3098
3146
|
}
|
|
3099
3147
|
//#endregion
|
|
3100
3148
|
//#region api/tool/offDistance.js
|
|
3101
|
-
function
|
|
3149
|
+
function Gt(e) {
|
|
3102
3150
|
return {
|
|
3103
3151
|
errors: [],
|
|
3104
3152
|
normalized: { ...e }
|
|
@@ -3106,7 +3154,7 @@ function Wt(e) {
|
|
|
3106
3154
|
}
|
|
3107
3155
|
//#endregion
|
|
3108
3156
|
//#region api/tool/editConfigFile.js
|
|
3109
|
-
function
|
|
3157
|
+
function Kt(e) {
|
|
3110
3158
|
return {
|
|
3111
3159
|
errors: [],
|
|
3112
3160
|
normalized: { ...e }
|
|
@@ -3114,21 +3162,21 @@ function Gt(e) {
|
|
|
3114
3162
|
}
|
|
3115
3163
|
//#endregion
|
|
3116
3164
|
//#region api/tool/toolApi.js
|
|
3117
|
-
var
|
|
3165
|
+
var qt = r("tool", {
|
|
3118
3166
|
onMouseClick: Ht,
|
|
3119
3167
|
offMouseClick: Ut,
|
|
3120
|
-
onDistance:
|
|
3121
|
-
offDistance:
|
|
3122
|
-
editConfigFile:
|
|
3168
|
+
onDistance: Wt,
|
|
3169
|
+
offDistance: Gt,
|
|
3170
|
+
editConfigFile: Kt
|
|
3123
3171
|
});
|
|
3124
3172
|
//#endregion
|
|
3125
3173
|
//#region api/line/helpers.js
|
|
3126
|
-
function
|
|
3174
|
+
function Jt() {
|
|
3127
3175
|
return "line_" + Date.now() + "_" + Math.random().toString(36).substring(2, 9);
|
|
3128
3176
|
}
|
|
3129
3177
|
//#endregion
|
|
3130
3178
|
//#region api/line/addLine.js
|
|
3131
|
-
function
|
|
3179
|
+
function Yt(e) {
|
|
3132
3180
|
let t = [], n = { ...e };
|
|
3133
3181
|
if (!e.coordinates || !Array.isArray(e.coordinates)) t.push("[coordinates] 为必填项,且必须是数组类型");
|
|
3134
3182
|
else if (e.coordinates.length < 2) t.push("[coordinates] 至少需要2个坐标点才能绘制线条");
|
|
@@ -3159,7 +3207,7 @@ function Jt(e) {
|
|
|
3159
3207
|
value: e.width,
|
|
3160
3208
|
defaultValue: 1,
|
|
3161
3209
|
min: .1
|
|
3162
|
-
})), e.key === void 0 || e.key === null || e.key === "" ? n.key =
|
|
3210
|
+
})), e.key === void 0 || e.key === null || e.key === "" ? n.key = Jt() : t.push(...g({
|
|
3163
3211
|
normalized: n,
|
|
3164
3212
|
field: "key",
|
|
3165
3213
|
value: e.key
|
|
@@ -3199,7 +3247,7 @@ function Jt(e) {
|
|
|
3199
3247
|
}
|
|
3200
3248
|
//#endregion
|
|
3201
3249
|
//#region api/line/clearLine.js
|
|
3202
|
-
function
|
|
3250
|
+
function Xt(e) {
|
|
3203
3251
|
let t = [], n = { ...e };
|
|
3204
3252
|
if (!e.key || !Array.isArray(e.key)) t.push("[key] 为必填项,且必须是数组类型");
|
|
3205
3253
|
else if (e.key.length === 0) t.push("[key] 至少需要一个线条标识");
|
|
@@ -3216,7 +3264,7 @@ function Yt(e) {
|
|
|
3216
3264
|
}
|
|
3217
3265
|
//#endregion
|
|
3218
3266
|
//#region api/line/clearAllLine.js
|
|
3219
|
-
function
|
|
3267
|
+
function Zt(e) {
|
|
3220
3268
|
return {
|
|
3221
3269
|
errors: [],
|
|
3222
3270
|
normalized: { ...e }
|
|
@@ -3224,14 +3272,14 @@ function Xt(e) {
|
|
|
3224
3272
|
}
|
|
3225
3273
|
//#endregion
|
|
3226
3274
|
//#region api/line/lineApi.js
|
|
3227
|
-
var
|
|
3228
|
-
addLine:
|
|
3229
|
-
clearLine:
|
|
3230
|
-
clearAllLine:
|
|
3275
|
+
var Qt = r("line", {
|
|
3276
|
+
addLine: Yt,
|
|
3277
|
+
clearLine: Xt,
|
|
3278
|
+
clearAllLine: Zt
|
|
3231
3279
|
});
|
|
3232
3280
|
//#endregion
|
|
3233
3281
|
//#region api/level/switch.js
|
|
3234
|
-
function
|
|
3282
|
+
function $t(e) {
|
|
3235
3283
|
let t = [], n = { ...e };
|
|
3236
3284
|
return t.push(...h({
|
|
3237
3285
|
normalized: n,
|
|
@@ -3244,10 +3292,10 @@ function Qt(e) {
|
|
|
3244
3292
|
}
|
|
3245
3293
|
//#endregion
|
|
3246
3294
|
//#region api/level/levelApi.js
|
|
3247
|
-
var
|
|
3295
|
+
var en = r("level", { switch: $t });
|
|
3248
3296
|
//#endregion
|
|
3249
3297
|
//#region api/vtk/getInfo.js
|
|
3250
|
-
function
|
|
3298
|
+
function tn(e = {}) {
|
|
3251
3299
|
let t = [], n = { ...e };
|
|
3252
3300
|
return t.push(...h({
|
|
3253
3301
|
normalized: n,
|
|
@@ -3260,7 +3308,7 @@ function en(e = {}) {
|
|
|
3260
3308
|
}
|
|
3261
3309
|
//#endregion
|
|
3262
3310
|
//#region api/vtk/getFieldRange.js
|
|
3263
|
-
function
|
|
3311
|
+
function nn(e = {}) {
|
|
3264
3312
|
let t = [], n = { ...e };
|
|
3265
3313
|
return t.push(...h({
|
|
3266
3314
|
normalized: n,
|
|
@@ -3284,7 +3332,7 @@ function tn(e = {}) {
|
|
|
3284
3332
|
}
|
|
3285
3333
|
//#endregion
|
|
3286
3334
|
//#region api/vtk/helpers.js
|
|
3287
|
-
function
|
|
3335
|
+
function V(e, t, n, r, i) {
|
|
3288
3336
|
let a = e[t];
|
|
3289
3337
|
if (a == null || a === "") {
|
|
3290
3338
|
i[t] = n;
|
|
@@ -3296,24 +3344,24 @@ function R(e, t, n, r, i) {
|
|
|
3296
3344
|
}
|
|
3297
3345
|
i[t] = a;
|
|
3298
3346
|
}
|
|
3299
|
-
function
|
|
3347
|
+
function rn(e) {
|
|
3300
3348
|
let t = [];
|
|
3301
3349
|
if (!e || !Array.isArray(e)) return t.push("[coordinates] 为必填项,且必须是数组类型"), t;
|
|
3302
3350
|
if (e.length < 3) return t.push("[coordinates]包含:[x, y, z]"), t;
|
|
3303
3351
|
let [n, r, i] = e;
|
|
3304
3352
|
return d(n) || t.push("[coordinates[0]]必须是数字类型"), d(r) || t.push("[coordinates[1]]必须是数字类型"), d(i) || t.push("[coordinates[2]]必须是数字类型"), t;
|
|
3305
3353
|
}
|
|
3306
|
-
function
|
|
3354
|
+
function an(e, t, n) {
|
|
3307
3355
|
let r = e.coordinates;
|
|
3308
3356
|
if (r == null || r === "" || Array.isArray(r) && r.length === 0) {
|
|
3309
3357
|
n.coordinates = [];
|
|
3310
3358
|
return;
|
|
3311
3359
|
}
|
|
3312
|
-
n.isUseUePos ? t.push(...
|
|
3360
|
+
n.isUseUePos ? t.push(...rn(r)) : t.push(...f(r)), Array.isArray(r) && r.length >= 3 && (n.coordinates = r.slice(0, 3).map(Number));
|
|
3313
3361
|
}
|
|
3314
3362
|
//#endregion
|
|
3315
3363
|
//#region api/vtk/create.js
|
|
3316
|
-
function
|
|
3364
|
+
function on(e) {
|
|
3317
3365
|
let t = [];
|
|
3318
3366
|
if (!e || !Array.isArray(e)) t.push("[coordinates] 为必填项,且必须是数组类型");
|
|
3319
3367
|
else if (e.length < 3) t.push("[coordinates]包含:[x, y, z]");
|
|
@@ -3323,7 +3371,7 @@ function an(e) {
|
|
|
3323
3371
|
}
|
|
3324
3372
|
return t;
|
|
3325
3373
|
}
|
|
3326
|
-
function
|
|
3374
|
+
function sn(e = {}) {
|
|
3327
3375
|
let t = [], n = { ...e };
|
|
3328
3376
|
return t.push(...h({
|
|
3329
3377
|
normalized: n,
|
|
@@ -3333,7 +3381,7 @@ function on(e = {}) {
|
|
|
3333
3381
|
normalized: n,
|
|
3334
3382
|
field: "url",
|
|
3335
3383
|
value: e.url
|
|
3336
|
-
})),
|
|
3384
|
+
})), V(e, "isUseUePos", !1, t, n), n.isUseUePos ? (t.push(...on(e.coordinates)), Array.isArray(e.coordinates) && e.coordinates.length >= 3 && (n.coordinates = e.coordinates.slice(0, 3).map(Number))) : t.push(...f(e.coordinates)), t.push(...v({
|
|
3337
3385
|
normalized: n,
|
|
3338
3386
|
field: "rotation",
|
|
3339
3387
|
value: e.rotation,
|
|
@@ -3358,7 +3406,7 @@ function on(e = {}) {
|
|
|
3358
3406
|
}
|
|
3359
3407
|
//#endregion
|
|
3360
3408
|
//#region api/vtk/close.js
|
|
3361
|
-
function
|
|
3409
|
+
function cn(e = {}) {
|
|
3362
3410
|
let t = [], n = { ...e };
|
|
3363
3411
|
return t.push(...h({
|
|
3364
3412
|
normalized: n,
|
|
@@ -3371,7 +3419,7 @@ function sn(e = {}) {
|
|
|
3371
3419
|
}
|
|
3372
3420
|
//#endregion
|
|
3373
3421
|
//#region api/vtk/allClose.js
|
|
3374
|
-
function
|
|
3422
|
+
function ln(e = {}) {
|
|
3375
3423
|
return {
|
|
3376
3424
|
errors: [],
|
|
3377
3425
|
normalized: { ...e }
|
|
@@ -3379,7 +3427,7 @@ function cn(e = {}) {
|
|
|
3379
3427
|
}
|
|
3380
3428
|
//#endregion
|
|
3381
3429
|
//#region api/vtk/clearCacheByUrl.js
|
|
3382
|
-
function
|
|
3430
|
+
function un(e = {}) {
|
|
3383
3431
|
let t = [], n = { ...e };
|
|
3384
3432
|
return t.push(...h({
|
|
3385
3433
|
normalized: n,
|
|
@@ -3392,7 +3440,7 @@ function ln(e = {}) {
|
|
|
3392
3440
|
}
|
|
3393
3441
|
//#endregion
|
|
3394
3442
|
//#region api/vtk/clearAllCache.js
|
|
3395
|
-
function
|
|
3443
|
+
function dn(e = {}) {
|
|
3396
3444
|
return {
|
|
3397
3445
|
errors: [],
|
|
3398
3446
|
normalized: { ...e }
|
|
@@ -3400,7 +3448,7 @@ function un(e = {}) {
|
|
|
3400
3448
|
}
|
|
3401
3449
|
//#endregion
|
|
3402
3450
|
//#region api/vtk/setDisplacementScale.js
|
|
3403
|
-
function
|
|
3451
|
+
function fn(e = {}) {
|
|
3404
3452
|
let t = [], n = { ...e };
|
|
3405
3453
|
return t.push(...h({
|
|
3406
3454
|
normalized: n,
|
|
@@ -3430,7 +3478,7 @@ function dn(e = {}) {
|
|
|
3430
3478
|
}
|
|
3431
3479
|
//#endregion
|
|
3432
3480
|
//#region api/vtk/closeDisplacementScale.js
|
|
3433
|
-
function
|
|
3481
|
+
function pn(e = {}) {
|
|
3434
3482
|
let t = [], n = { ...e };
|
|
3435
3483
|
return t.push(...h({
|
|
3436
3484
|
normalized: n,
|
|
@@ -3443,7 +3491,7 @@ function fn(e = {}) {
|
|
|
3443
3491
|
}
|
|
3444
3492
|
//#endregion
|
|
3445
3493
|
//#region api/vtk/onMouseClick.js
|
|
3446
|
-
function
|
|
3494
|
+
function mn(e = {}) {
|
|
3447
3495
|
let t = [], n = { ...e };
|
|
3448
3496
|
return t.push(...h({
|
|
3449
3497
|
normalized: n,
|
|
@@ -3456,7 +3504,7 @@ function pn(e = {}) {
|
|
|
3456
3504
|
}
|
|
3457
3505
|
//#endregion
|
|
3458
3506
|
//#region api/vtk/offMouseClick.js
|
|
3459
|
-
function
|
|
3507
|
+
function hn(e = {}) {
|
|
3460
3508
|
let t = [], n = { ...e };
|
|
3461
3509
|
return t.push(...h({
|
|
3462
3510
|
normalized: n,
|
|
@@ -3469,22 +3517,22 @@ function mn(e = {}) {
|
|
|
3469
3517
|
}
|
|
3470
3518
|
//#endregion
|
|
3471
3519
|
//#region api/vtk/vtkSingleApi.js
|
|
3472
|
-
var
|
|
3473
|
-
getInfo:
|
|
3474
|
-
getFieldRange:
|
|
3475
|
-
create:
|
|
3476
|
-
close:
|
|
3477
|
-
allClose:
|
|
3478
|
-
clearCacheByUrl:
|
|
3479
|
-
clearAllCache:
|
|
3480
|
-
setDisplacementScale:
|
|
3481
|
-
closeDisplacementScale:
|
|
3482
|
-
onMouseClick:
|
|
3483
|
-
offMouseClick:
|
|
3520
|
+
var gn = {
|
|
3521
|
+
getInfo: tn,
|
|
3522
|
+
getFieldRange: nn,
|
|
3523
|
+
create: sn,
|
|
3524
|
+
close: cn,
|
|
3525
|
+
allClose: ln,
|
|
3526
|
+
clearCacheByUrl: un,
|
|
3527
|
+
clearAllCache: dn,
|
|
3528
|
+
setDisplacementScale: fn,
|
|
3529
|
+
closeDisplacementScale: pn,
|
|
3530
|
+
onMouseClick: mn,
|
|
3531
|
+
offMouseClick: hn
|
|
3484
3532
|
};
|
|
3485
3533
|
//#endregion
|
|
3486
3534
|
//#region api/vtk/setField.js
|
|
3487
|
-
function
|
|
3535
|
+
function _n(e = {}) {
|
|
3488
3536
|
let t = [], n = { ...e };
|
|
3489
3537
|
return t.push(...h({
|
|
3490
3538
|
normalized: n,
|
|
@@ -3508,7 +3556,7 @@ function gn(e = {}) {
|
|
|
3508
3556
|
}
|
|
3509
3557
|
//#endregion
|
|
3510
3558
|
//#region api/vtk/setMode.js
|
|
3511
|
-
function
|
|
3559
|
+
function vn(e = {}) {
|
|
3512
3560
|
let t = [], n = { ...e };
|
|
3513
3561
|
return t.push(...h({
|
|
3514
3562
|
normalized: n,
|
|
@@ -3534,14 +3582,14 @@ function _n(e = {}) {
|
|
|
3534
3582
|
}
|
|
3535
3583
|
//#endregion
|
|
3536
3584
|
//#region api/vtk/setColorBar.js
|
|
3537
|
-
var
|
|
3585
|
+
var yn = {
|
|
3538
3586
|
0: "#0000FFFF",
|
|
3539
3587
|
"0.25": "#00FFFFFF",
|
|
3540
3588
|
"0.5": "#00FF00FF",
|
|
3541
3589
|
"0.75": "#FFFF00FF",
|
|
3542
3590
|
1: "#FF0000FF"
|
|
3543
3591
|
};
|
|
3544
|
-
function
|
|
3592
|
+
function bn(e = {}) {
|
|
3545
3593
|
let t = [], n = { ...e };
|
|
3546
3594
|
t.push(...h({
|
|
3547
3595
|
normalized: n,
|
|
@@ -3549,7 +3597,7 @@ function yn(e = {}) {
|
|
|
3549
3597
|
value: e.id
|
|
3550
3598
|
}));
|
|
3551
3599
|
let r = e.colorBar;
|
|
3552
|
-
if (r == null || r === "") n.colorBar = { ...
|
|
3600
|
+
if (r == null || r === "") n.colorBar = { ...yn };
|
|
3553
3601
|
else if (typeof r != "object" || Array.isArray(r)) t.push("[colorBar]必须是对象类型");
|
|
3554
3602
|
else {
|
|
3555
3603
|
let e = Object.keys(r);
|
|
@@ -3587,7 +3635,7 @@ function yn(e = {}) {
|
|
|
3587
3635
|
}
|
|
3588
3636
|
//#endregion
|
|
3589
3637
|
//#region api/vtk/setOpacity.js
|
|
3590
|
-
function
|
|
3638
|
+
function xn(e = {}) {
|
|
3591
3639
|
let t = [], n = { ...e };
|
|
3592
3640
|
return t.push(...h({
|
|
3593
3641
|
normalized: n,
|
|
@@ -3607,7 +3655,7 @@ function bn(e = {}) {
|
|
|
3607
3655
|
}
|
|
3608
3656
|
//#endregion
|
|
3609
3657
|
//#region api/vtk/setCellOpacity.js
|
|
3610
|
-
function
|
|
3658
|
+
function Sn(e = {}) {
|
|
3611
3659
|
let t = [], n = { ...e };
|
|
3612
3660
|
return t.push(...h({
|
|
3613
3661
|
normalized: n,
|
|
@@ -3639,30 +3687,32 @@ function xn(e = {}) {
|
|
|
3639
3687
|
}
|
|
3640
3688
|
//#endregion
|
|
3641
3689
|
//#region api/vtk/setColorRange.js
|
|
3642
|
-
function
|
|
3690
|
+
function Cn(e = {}) {
|
|
3643
3691
|
let t = [], n = { ...e };
|
|
3644
|
-
|
|
3692
|
+
t.push(...h({
|
|
3645
3693
|
normalized: n,
|
|
3646
3694
|
field: "id",
|
|
3647
3695
|
value: e.id
|
|
3648
|
-
}))
|
|
3649
|
-
|
|
3696
|
+
}));
|
|
3697
|
+
let r = e.range === void 0 ? e.list : e.range;
|
|
3698
|
+
if (r == null || r === "") n.range = [0, 1];
|
|
3699
|
+
else if (!Array.isArray(r) || r.length < 2) t.push("[range]必须是包含2个元素的数组");
|
|
3650
3700
|
else {
|
|
3651
|
-
let
|
|
3652
|
-
if (!
|
|
3701
|
+
let e = r.slice(0, 2).map(Number);
|
|
3702
|
+
if (!e.every((e) => Number.isFinite(e))) t.push("[range]数组元素必须是数字");
|
|
3653
3703
|
else {
|
|
3654
|
-
let
|
|
3655
|
-
|
|
3704
|
+
let r = !0;
|
|
3705
|
+
e[0] < 0 && (t.push("[range[0]]取值不能小于0"), r = !1), e[1] > 1 && (t.push("[range[1]]取值不能大于1"), r = !1), r && (n.range = e);
|
|
3656
3706
|
}
|
|
3657
3707
|
}
|
|
3658
|
-
return {
|
|
3708
|
+
return "list" in n && delete n.list, {
|
|
3659
3709
|
errors: t,
|
|
3660
3710
|
normalized: n
|
|
3661
3711
|
};
|
|
3662
3712
|
}
|
|
3663
3713
|
//#endregion
|
|
3664
3714
|
//#region api/vtk/setClipPlane.js
|
|
3665
|
-
function
|
|
3715
|
+
function H(e, t, n, r, i) {
|
|
3666
3716
|
let a = e[t];
|
|
3667
3717
|
if (a == null || a === "" || Array.isArray(a) && a.length === 0) {
|
|
3668
3718
|
i[t] = [...n];
|
|
@@ -3679,17 +3729,17 @@ function z(e, t, n, r, i) {
|
|
|
3679
3729
|
}
|
|
3680
3730
|
i[t] = o;
|
|
3681
3731
|
}
|
|
3682
|
-
function
|
|
3732
|
+
function wn(e = {}) {
|
|
3683
3733
|
let t = [], n = { ...e };
|
|
3684
3734
|
return t.push(...h({
|
|
3685
3735
|
normalized: n,
|
|
3686
3736
|
field: "id",
|
|
3687
3737
|
value: e.id
|
|
3688
|
-
})),
|
|
3738
|
+
})), V(e, "enable", !0, t, n), H(e, "planePoint", [
|
|
3689
3739
|
0,
|
|
3690
3740
|
0,
|
|
3691
3741
|
0
|
|
3692
|
-
], t, n),
|
|
3742
|
+
], t, n), H(e, "planeNormal", [
|
|
3693
3743
|
0,
|
|
3694
3744
|
0,
|
|
3695
3745
|
-1
|
|
@@ -3700,7 +3750,7 @@ function Cn(e = {}) {
|
|
|
3700
3750
|
}
|
|
3701
3751
|
//#endregion
|
|
3702
3752
|
//#region api/vtk/setClipPlaneByRatio.js
|
|
3703
|
-
function
|
|
3753
|
+
function Tn(e, t, n, r, i) {
|
|
3704
3754
|
let a = e[t];
|
|
3705
3755
|
if (a == null || a === "" || Array.isArray(a) && a.length === 0) {
|
|
3706
3756
|
i[t] = [...n];
|
|
@@ -3717,20 +3767,20 @@ function wn(e, t, n, r, i) {
|
|
|
3717
3767
|
}
|
|
3718
3768
|
i[t] = o;
|
|
3719
3769
|
}
|
|
3720
|
-
function
|
|
3770
|
+
function En(e = {}) {
|
|
3721
3771
|
let t = [], n = { ...e };
|
|
3722
3772
|
return t.push(...h({
|
|
3723
3773
|
normalized: n,
|
|
3724
3774
|
field: "id",
|
|
3725
3775
|
value: e.id
|
|
3726
|
-
})),
|
|
3776
|
+
})), V(e, "enable", !0, t, n), t.push(...m({
|
|
3727
3777
|
normalized: n,
|
|
3728
3778
|
field: "clipRatio",
|
|
3729
3779
|
value: e.clipRatio,
|
|
3730
3780
|
defaultValue: .5,
|
|
3731
3781
|
min: 0,
|
|
3732
3782
|
max: 1
|
|
3733
|
-
})),
|
|
3783
|
+
})), Tn(e, "planeNormal", [
|
|
3734
3784
|
0,
|
|
3735
3785
|
0,
|
|
3736
3786
|
-1
|
|
@@ -3741,19 +3791,19 @@ function Tn(e = {}) {
|
|
|
3741
3791
|
}
|
|
3742
3792
|
//#endregion
|
|
3743
3793
|
//#region api/vtk/vtkCommonApi.js
|
|
3744
|
-
var
|
|
3745
|
-
setField:
|
|
3746
|
-
setMode:
|
|
3747
|
-
setColorBar:
|
|
3748
|
-
setOpacity:
|
|
3749
|
-
setCellOpacity:
|
|
3750
|
-
setColorRange:
|
|
3751
|
-
setClipPlane:
|
|
3752
|
-
setClipPlaneByRatio:
|
|
3794
|
+
var Dn = {
|
|
3795
|
+
setField: _n,
|
|
3796
|
+
setMode: vn,
|
|
3797
|
+
setColorBar: bn,
|
|
3798
|
+
setOpacity: xn,
|
|
3799
|
+
setCellOpacity: Sn,
|
|
3800
|
+
setColorRange: Cn,
|
|
3801
|
+
setClipPlane: wn,
|
|
3802
|
+
setClipPlaneByRatio: En
|
|
3753
3803
|
};
|
|
3754
3804
|
//#endregion
|
|
3755
3805
|
//#region api/vtk/playSequence.js
|
|
3756
|
-
function
|
|
3806
|
+
function On(e = {}) {
|
|
3757
3807
|
let t = [], n = { ...e };
|
|
3758
3808
|
t.push(...h({
|
|
3759
3809
|
normalized: n,
|
|
@@ -3787,7 +3837,7 @@ function Dn(e = {}) {
|
|
|
3787
3837
|
value: e.playbackSpeed,
|
|
3788
3838
|
defaultValue: 1,
|
|
3789
3839
|
min: 0
|
|
3790
|
-
})), typeof n.playbackSpeed == "number" && n.playbackSpeed <= 0 && t.push("[playbackSpeed]取值必须大于0"),
|
|
3840
|
+
})), typeof n.playbackSpeed == "number" && n.playbackSpeed <= 0 && t.push("[playbackSpeed]取值必须大于0"), V(e, "isUseUePos", !1, t, n), an(e, t, n), t.push(...v({
|
|
3791
3841
|
normalized: n,
|
|
3792
3842
|
field: "rotation",
|
|
3793
3843
|
value: e.rotation,
|
|
@@ -3812,7 +3862,7 @@ function Dn(e = {}) {
|
|
|
3812
3862
|
}
|
|
3813
3863
|
//#endregion
|
|
3814
3864
|
//#region api/vtk/pauseSequence.js
|
|
3815
|
-
function
|
|
3865
|
+
function kn(e = {}) {
|
|
3816
3866
|
let t = [], n = { ...e };
|
|
3817
3867
|
return t.push(...h({
|
|
3818
3868
|
normalized: n,
|
|
@@ -3825,7 +3875,7 @@ function On(e = {}) {
|
|
|
3825
3875
|
}
|
|
3826
3876
|
//#endregion
|
|
3827
3877
|
//#region api/vtk/stopSequence.js
|
|
3828
|
-
function
|
|
3878
|
+
function An(e = {}) {
|
|
3829
3879
|
let t = [], n = { ...e };
|
|
3830
3880
|
return t.push(...h({
|
|
3831
3881
|
normalized: n,
|
|
@@ -3838,7 +3888,7 @@ function kn(e = {}) {
|
|
|
3838
3888
|
}
|
|
3839
3889
|
//#endregion
|
|
3840
3890
|
//#region api/vtk/setFrame.js
|
|
3841
|
-
function
|
|
3891
|
+
function jn(e = {}) {
|
|
3842
3892
|
let t = [], n = { ...e };
|
|
3843
3893
|
return t.push(...h({
|
|
3844
3894
|
normalized: n,
|
|
@@ -3857,7 +3907,7 @@ function An(e = {}) {
|
|
|
3857
3907
|
}
|
|
3858
3908
|
//#endregion
|
|
3859
3909
|
//#region api/vtk/setPlaybackSpeed.js
|
|
3860
|
-
function
|
|
3910
|
+
function Mn(e = {}) {
|
|
3861
3911
|
let t = [], n = { ...e };
|
|
3862
3912
|
return t.push(...h({
|
|
3863
3913
|
normalized: n,
|
|
@@ -3876,44 +3926,44 @@ function jn(e = {}) {
|
|
|
3876
3926
|
}
|
|
3877
3927
|
//#endregion
|
|
3878
3928
|
//#region api/vtk/clearSequence.js
|
|
3879
|
-
function
|
|
3929
|
+
function Nn(e = {}) {
|
|
3880
3930
|
let t = [], n = { ...e };
|
|
3881
3931
|
return t.push(...h({
|
|
3882
3932
|
normalized: n,
|
|
3883
3933
|
field: "id",
|
|
3884
3934
|
value: e.id
|
|
3885
|
-
})),
|
|
3935
|
+
})), V(e, "isClearCache", !0, t, n), {
|
|
3886
3936
|
errors: t,
|
|
3887
3937
|
normalized: n
|
|
3888
3938
|
};
|
|
3889
3939
|
}
|
|
3890
3940
|
//#endregion
|
|
3891
3941
|
//#region api/vtk/clearAllSequence.js
|
|
3892
|
-
function
|
|
3942
|
+
function Pn(e = {}) {
|
|
3893
3943
|
let t = [], n = { ...e };
|
|
3894
|
-
return
|
|
3944
|
+
return V(e, "isClearCache", !0, t, n), {
|
|
3895
3945
|
errors: t,
|
|
3896
3946
|
normalized: n
|
|
3897
3947
|
};
|
|
3898
3948
|
}
|
|
3899
3949
|
//#endregion
|
|
3900
3950
|
//#region api/vtk/vtkAnimationApi.js
|
|
3901
|
-
var
|
|
3902
|
-
playSequence:
|
|
3903
|
-
pauseSequence:
|
|
3904
|
-
stopSequence:
|
|
3905
|
-
setFrame:
|
|
3906
|
-
setPlaybackSpeed:
|
|
3907
|
-
clearSequence:
|
|
3908
|
-
clearAllSequence:
|
|
3909
|
-
},
|
|
3910
|
-
...
|
|
3911
|
-
...
|
|
3912
|
-
...
|
|
3951
|
+
var Fn = {
|
|
3952
|
+
playSequence: On,
|
|
3953
|
+
pauseSequence: kn,
|
|
3954
|
+
stopSequence: An,
|
|
3955
|
+
setFrame: jn,
|
|
3956
|
+
setPlaybackSpeed: Mn,
|
|
3957
|
+
clearSequence: Nn,
|
|
3958
|
+
clearAllSequence: Pn
|
|
3959
|
+
}, In = r("VTK", {
|
|
3960
|
+
...gn,
|
|
3961
|
+
...Dn,
|
|
3962
|
+
...Fn
|
|
3913
3963
|
}, { getOptions: () => ({ timeout: 0 }) });
|
|
3914
3964
|
//#endregion
|
|
3915
3965
|
//#region api/videoFusion/open.js
|
|
3916
|
-
function
|
|
3966
|
+
function Ln(e, t) {
|
|
3917
3967
|
if (t === "Geographic") return f(e);
|
|
3918
3968
|
let n = [];
|
|
3919
3969
|
if (!e || !Array.isArray(e)) n.push("[coordinates] 为必填项,且必须是数组类型");
|
|
@@ -3924,7 +3974,7 @@ function In(e, t) {
|
|
|
3924
3974
|
}
|
|
3925
3975
|
return n;
|
|
3926
3976
|
}
|
|
3927
|
-
function
|
|
3977
|
+
function Rn(e = {}) {
|
|
3928
3978
|
let t = { ...e }, n = [];
|
|
3929
3979
|
return e.instanceId !== void 0 && e.instanceId !== null && e.instanceId !== "" ? typeof e.instanceId == "string" ? t.instanceId = e.instanceId : n.push("[instanceId]必须是字符串类型") : delete t.instanceId, n.push(...b({
|
|
3930
3980
|
normalized: t,
|
|
@@ -3933,7 +3983,7 @@ function Ln(e = {}) {
|
|
|
3933
3983
|
defaultValue: "Geographic",
|
|
3934
3984
|
type: "string",
|
|
3935
3985
|
list: ["UnrealWorld", "Geographic"]
|
|
3936
|
-
})), n.push(...
|
|
3986
|
+
})), n.push(...Ln(e.coordinates, t.poseMode)), n.push(...h({
|
|
3937
3987
|
normalized: t,
|
|
3938
3988
|
field: "url",
|
|
3939
3989
|
value: e.url
|
|
@@ -4007,7 +4057,7 @@ function Ln(e = {}) {
|
|
|
4007
4057
|
}
|
|
4008
4058
|
//#endregion
|
|
4009
4059
|
//#region api/videoFusion/close.js
|
|
4010
|
-
function
|
|
4060
|
+
function zn(e = {}) {
|
|
4011
4061
|
let t = { ...e };
|
|
4012
4062
|
return {
|
|
4013
4063
|
errors: [...h({
|
|
@@ -4020,7 +4070,7 @@ function Rn(e = {}) {
|
|
|
4020
4070
|
}
|
|
4021
4071
|
//#endregion
|
|
4022
4072
|
//#region api/videoFusion/closeAll.js
|
|
4023
|
-
function
|
|
4073
|
+
function Bn(e = {}) {
|
|
4024
4074
|
return {
|
|
4025
4075
|
errors: [],
|
|
4026
4076
|
normalized: { ...e }
|
|
@@ -4028,7 +4078,7 @@ function zn(e = {}) {
|
|
|
4028
4078
|
}
|
|
4029
4079
|
//#endregion
|
|
4030
4080
|
//#region api/videoFusion/pause.js
|
|
4031
|
-
function
|
|
4081
|
+
function Vn(e = {}) {
|
|
4032
4082
|
let t = { ...e };
|
|
4033
4083
|
return {
|
|
4034
4084
|
errors: [...h({
|
|
@@ -4041,7 +4091,7 @@ function Bn(e = {}) {
|
|
|
4041
4091
|
}
|
|
4042
4092
|
//#endregion
|
|
4043
4093
|
//#region api/videoFusion/resume.js
|
|
4044
|
-
function
|
|
4094
|
+
function Hn(e = {}) {
|
|
4045
4095
|
let t = { ...e };
|
|
4046
4096
|
return {
|
|
4047
4097
|
errors: [...h({
|
|
@@ -4054,7 +4104,7 @@ function Vn(e = {}) {
|
|
|
4054
4104
|
}
|
|
4055
4105
|
//#endregion
|
|
4056
4106
|
//#region api/videoFusion/setPlaybackRate.js
|
|
4057
|
-
function
|
|
4107
|
+
function Un(e = {}) {
|
|
4058
4108
|
let t = { ...e }, n = [];
|
|
4059
4109
|
return n.push(...h({
|
|
4060
4110
|
normalized: t,
|
|
@@ -4073,7 +4123,7 @@ function Hn(e = {}) {
|
|
|
4073
4123
|
}
|
|
4074
4124
|
//#endregion
|
|
4075
4125
|
//#region api/videoFusion/seekToTime.js
|
|
4076
|
-
function
|
|
4126
|
+
function Wn(e = {}) {
|
|
4077
4127
|
let t = { ...e }, n = [];
|
|
4078
4128
|
return n.push(...h({
|
|
4079
4129
|
normalized: t,
|
|
@@ -4092,18 +4142,18 @@ function Un(e = {}) {
|
|
|
4092
4142
|
}
|
|
4093
4143
|
//#endregion
|
|
4094
4144
|
//#region api/videoFusion/videoFusionApi.js
|
|
4095
|
-
var
|
|
4096
|
-
open:
|
|
4097
|
-
close:
|
|
4098
|
-
closeAll:
|
|
4099
|
-
pause:
|
|
4100
|
-
resume:
|
|
4101
|
-
setPlaybackRate:
|
|
4102
|
-
seekToTime:
|
|
4145
|
+
var Gn = r("videoFusion", {
|
|
4146
|
+
open: Rn,
|
|
4147
|
+
close: zn,
|
|
4148
|
+
closeAll: Bn,
|
|
4149
|
+
pause: Vn,
|
|
4150
|
+
resume: Hn,
|
|
4151
|
+
setPlaybackRate: Un,
|
|
4152
|
+
seekToTime: Wn
|
|
4103
4153
|
});
|
|
4104
4154
|
//#endregion
|
|
4105
4155
|
//#region api/other/otherApi.js
|
|
4106
|
-
function
|
|
4156
|
+
function U(e) {
|
|
4107
4157
|
return class {
|
|
4108
4158
|
constructor(t) {
|
|
4109
4159
|
this.commandManager = t, this.domain = e;
|
|
@@ -4118,7 +4168,7 @@ function B(e) {
|
|
|
4118
4168
|
}
|
|
4119
4169
|
//#endregion
|
|
4120
4170
|
//#region api/index.js
|
|
4121
|
-
var
|
|
4171
|
+
var Kn = {
|
|
4122
4172
|
camera: ue,
|
|
4123
4173
|
cesium: Se,
|
|
4124
4174
|
marker: Je,
|
|
@@ -4127,37 +4177,37 @@ var Gn = {
|
|
|
4127
4177
|
hydrodynamicForce: vt,
|
|
4128
4178
|
sceneModel: Rt,
|
|
4129
4179
|
atmosphericEffects: Vt,
|
|
4130
|
-
tool:
|
|
4131
|
-
line:
|
|
4132
|
-
level:
|
|
4133
|
-
VTK:
|
|
4134
|
-
videoFusion:
|
|
4135
|
-
oneDimensionalHydrodynamics:
|
|
4136
|
-
customDomain:
|
|
4137
|
-
arrow:
|
|
4138
|
-
NC:
|
|
4139
|
-
gateOperation:
|
|
4140
|
-
},
|
|
4180
|
+
tool: qt,
|
|
4181
|
+
line: Qt,
|
|
4182
|
+
level: en,
|
|
4183
|
+
VTK: In,
|
|
4184
|
+
videoFusion: Gn,
|
|
4185
|
+
oneDimensionalHydrodynamics: U("oneDimensionalHydrodynamics"),
|
|
4186
|
+
customDomain: U("customDomain"),
|
|
4187
|
+
arrow: U("arrow"),
|
|
4188
|
+
NC: U("NC"),
|
|
4189
|
+
gateOperation: U("gateOperation")
|
|
4190
|
+
}, W = class {
|
|
4141
4191
|
constructor(e) {
|
|
4142
4192
|
this._apis = {};
|
|
4143
|
-
for (let [t, n] of Object.entries(
|
|
4193
|
+
for (let [t, n] of Object.entries(Kn)) this._apis[t] = new n(e), this[t] = (e, n, r) => this._apis[t]._handleSend(e, n, r);
|
|
4144
4194
|
}
|
|
4145
|
-
},
|
|
4146
|
-
function
|
|
4147
|
-
|
|
4195
|
+
}, G = !0;
|
|
4196
|
+
function qn(e) {
|
|
4197
|
+
G = !!e;
|
|
4148
4198
|
}
|
|
4149
|
-
function
|
|
4150
|
-
|
|
4199
|
+
function K(...e) {
|
|
4200
|
+
G && console.log(...e);
|
|
4151
4201
|
}
|
|
4152
|
-
function
|
|
4153
|
-
|
|
4202
|
+
function q(...e) {
|
|
4203
|
+
G && console.warn(...e);
|
|
4154
4204
|
}
|
|
4155
|
-
function
|
|
4156
|
-
|
|
4205
|
+
function J(...e) {
|
|
4206
|
+
G && console.error(...e);
|
|
4157
4207
|
}
|
|
4158
4208
|
//#endregion
|
|
4159
4209
|
//#region commFlow/streamResponses.js
|
|
4160
|
-
function
|
|
4210
|
+
function Y(e) {
|
|
4161
4211
|
return (Array.isArray(e) ? e : [e]).map((e) => {
|
|
4162
4212
|
if (typeof e == "string") return e;
|
|
4163
4213
|
if (e && typeof e == "object") {
|
|
@@ -4171,7 +4221,7 @@ function K(e) {
|
|
|
4171
4221
|
return e == null ? "" : String(e);
|
|
4172
4222
|
}).filter((e) => e !== "");
|
|
4173
4223
|
}
|
|
4174
|
-
function
|
|
4224
|
+
function Jn(e, t, n) {
|
|
4175
4225
|
return {
|
|
4176
4226
|
success: !0,
|
|
4177
4227
|
message: e,
|
|
@@ -4179,27 +4229,27 @@ function qn(e, t, n) {
|
|
|
4179
4229
|
command: n
|
|
4180
4230
|
};
|
|
4181
4231
|
}
|
|
4182
|
-
function
|
|
4232
|
+
function X(e, t, n) {
|
|
4183
4233
|
let r = {
|
|
4184
4234
|
success: !1,
|
|
4185
|
-
message:
|
|
4235
|
+
message: Y(e),
|
|
4186
4236
|
params: t,
|
|
4187
4237
|
command: n
|
|
4188
4238
|
};
|
|
4189
|
-
return
|
|
4239
|
+
return J("三维场景报错:", r), r;
|
|
4190
4240
|
}
|
|
4191
|
-
function
|
|
4241
|
+
function Yn(e, t, n) {
|
|
4192
4242
|
let r = {
|
|
4193
4243
|
success: !1,
|
|
4194
|
-
message:
|
|
4244
|
+
message: Y(e),
|
|
4195
4245
|
params: t,
|
|
4196
4246
|
command: n
|
|
4197
4247
|
};
|
|
4198
|
-
return
|
|
4248
|
+
return q("三维场景警告:", r), r;
|
|
4199
4249
|
}
|
|
4200
4250
|
//#endregion
|
|
4201
4251
|
//#region commFlow/commFlow.js
|
|
4202
|
-
function
|
|
4252
|
+
function Z() {
|
|
4203
4253
|
return {
|
|
4204
4254
|
Hovered: {},
|
|
4205
4255
|
Click: {},
|
|
@@ -4207,10 +4257,10 @@ function Y() {
|
|
|
4207
4257
|
Unhovered: {}
|
|
4208
4258
|
};
|
|
4209
4259
|
}
|
|
4210
|
-
function
|
|
4260
|
+
function Xn(e, t) {
|
|
4211
4261
|
typeof t == "function" && (e.includes(t) || e.push(t));
|
|
4212
4262
|
}
|
|
4213
|
-
function
|
|
4263
|
+
function Q(e) {
|
|
4214
4264
|
return {
|
|
4215
4265
|
prepare(t, n) {
|
|
4216
4266
|
return t._registerMarkerCallbacks(t[e], n);
|
|
@@ -4220,15 +4270,15 @@ function Z(e) {
|
|
|
4220
4270
|
}
|
|
4221
4271
|
};
|
|
4222
4272
|
}
|
|
4223
|
-
var
|
|
4224
|
-
"marker.iconMarker":
|
|
4225
|
-
"marker.iconUrlMarker":
|
|
4226
|
-
"marker.secondMarker":
|
|
4227
|
-
"marker.followMarker":
|
|
4273
|
+
var Zn = {
|
|
4274
|
+
"marker.iconMarker": Q("markerEventCallbacks"),
|
|
4275
|
+
"marker.iconUrlMarker": Q("markerEventCallbacks"),
|
|
4276
|
+
"marker.secondMarker": Q("secondMarkerEventCallbacks"),
|
|
4277
|
+
"marker.followMarker": Q("followMarkerEventCallbacks"),
|
|
4228
4278
|
"tool.onMouseClick": {
|
|
4229
4279
|
prepare(e, t) {
|
|
4230
4280
|
let { onMouseClick: n, ...r } = t || {};
|
|
4231
|
-
return
|
|
4281
|
+
return Xn(e.mouseClickCallback.MouseClick, n), r;
|
|
4232
4282
|
},
|
|
4233
4283
|
dispatch(e, t, n) {
|
|
4234
4284
|
return n.coordinates ? e._executeCallbacks(e.mouseClickCallback.MouseClick, t, n) : !1;
|
|
@@ -4256,7 +4306,7 @@ var Q = {
|
|
|
4256
4306
|
"animation.onData": {
|
|
4257
4307
|
prepare(e, t) {
|
|
4258
4308
|
let { onChange: n, ...r } = t || {};
|
|
4259
|
-
return
|
|
4309
|
+
return Xn(e.animationOnDataCallback.Change, n), r;
|
|
4260
4310
|
},
|
|
4261
4311
|
dispatch(e, t, n) {
|
|
4262
4312
|
return n.type ? e._executeCallbacks(e.animationOnDataCallback.Change, t, n) : !1;
|
|
@@ -4269,7 +4319,7 @@ var Q = {
|
|
|
4269
4319
|
});
|
|
4270
4320
|
}
|
|
4271
4321
|
_resetEventCallbacks() {
|
|
4272
|
-
this.markerEventCallbacks =
|
|
4322
|
+
this.markerEventCallbacks = Z(), this.secondMarkerEventCallbacks = Z(), this.followMarkerEventCallbacks = Z(), this.animationOnDataCallback = { Change: [] }, this.mouseClickCallback = { MouseClick: [] }, this.vtkMouseClickCallback = {};
|
|
4273
4323
|
}
|
|
4274
4324
|
destroy() {
|
|
4275
4325
|
if (!this._destroyed) {
|
|
@@ -4283,8 +4333,8 @@ var Q = {
|
|
|
4283
4333
|
}
|
|
4284
4334
|
sendWithDefault(e, t, n = {}) {
|
|
4285
4335
|
let r = this._sendPreparePayload(t, e.normalized || {});
|
|
4286
|
-
if (e.errors.length > 0) return
|
|
4287
|
-
if (this._destroyed || !this.transport) return
|
|
4336
|
+
if (e.errors.length > 0) return X(e.errors, r, t);
|
|
4337
|
+
if (this._destroyed || !this.transport) return X("连接已关闭,无法发送命令", r, t);
|
|
4288
4338
|
let i = (++this.requestId).toString(), a = n?.timeout === 0 ? 0 : n?.timeout ?? this.timeout, o = new Promise((e, t) => {
|
|
4289
4339
|
let n = null;
|
|
4290
4340
|
a !== 0 && (n = setTimeout(() => {
|
|
@@ -4299,18 +4349,18 @@ var Q = {
|
|
|
4299
4349
|
requestId: i,
|
|
4300
4350
|
params: r
|
|
4301
4351
|
};
|
|
4302
|
-
return
|
|
4352
|
+
return K("消息下发成功:", s), this.transport.sendTextToDataChannel(JSON.stringify(s)), o.then((e) => {
|
|
4303
4353
|
if (e && e.command && e.command === t) switch (e.status) {
|
|
4304
|
-
case "info": return
|
|
4305
|
-
case "warn": return
|
|
4306
|
-
default: return
|
|
4354
|
+
case "info": return Jn("操作执行成功", e.data, t);
|
|
4355
|
+
case "warn": return Yn(e.message, e.data, t);
|
|
4356
|
+
default: return X(e.message, e.data, t);
|
|
4307
4357
|
}
|
|
4308
|
-
return
|
|
4309
|
-
}).catch((e) => e && e.message ? e.message === "Command timeout with no results" ?
|
|
4358
|
+
return X("返回数据格式错乱【请注意command参数】", e?.command, t);
|
|
4359
|
+
}).catch((e) => e && e.message ? e.message === "Command timeout with no results" ? Yn(e.message, r, t) : X(e.message, r, t) : X("数据返回发生错误", r, t));
|
|
4310
4360
|
}
|
|
4311
4361
|
_handleRawResponse(e) {
|
|
4312
4362
|
if (this._destroyed) return null;
|
|
4313
|
-
if (!e) return
|
|
4363
|
+
if (!e) return J("数据第一步解析失败:", e), null;
|
|
4314
4364
|
let t;
|
|
4315
4365
|
try {
|
|
4316
4366
|
let n = JSON.parse(String(e).trim());
|
|
@@ -4322,7 +4372,7 @@ var Q = {
|
|
|
4322
4372
|
requestId: n.requestId || ""
|
|
4323
4373
|
}, t.message === "The data channel has been connected." || t.message === "The level has been initialized") return null;
|
|
4324
4374
|
} catch {
|
|
4325
|
-
return
|
|
4375
|
+
return J("数据第二步解析失败:", e), null;
|
|
4326
4376
|
}
|
|
4327
4377
|
if (this._processEventResponse(t)) return;
|
|
4328
4378
|
let { command: n, message: r, data: i, status: a, requestId: o } = t;
|
|
@@ -4336,7 +4386,7 @@ var Q = {
|
|
|
4336
4386
|
});
|
|
4337
4387
|
return;
|
|
4338
4388
|
}
|
|
4339
|
-
|
|
4389
|
+
q("注意:非常规响应", t);
|
|
4340
4390
|
}
|
|
4341
4391
|
_registerMarkerCallbacks(e, t) {
|
|
4342
4392
|
let { onMarkerClick: n, onMarkerDoubleClick: r, onMarkerDblClick: i, onMouseHover: a, onMouseLeave: o, ...s } = t || {}, c = r || i, l = s?.id, u = l != null && l !== "" ? l : "__default";
|
|
@@ -4352,27 +4402,27 @@ var Q = {
|
|
|
4352
4402
|
return this._executeCallback(o, t, n);
|
|
4353
4403
|
}
|
|
4354
4404
|
_sendPreparePayload(e, t) {
|
|
4355
|
-
let n =
|
|
4405
|
+
let n = Zn[e];
|
|
4356
4406
|
return n?.prepare ? n.prepare(this, t) : t;
|
|
4357
4407
|
}
|
|
4358
4408
|
_processEventResponse(e) {
|
|
4359
4409
|
if (!e) return !1;
|
|
4360
|
-
let { command: t, data: n = {} } = e, r =
|
|
4410
|
+
let { command: t, data: n = {} } = e, r = Zn[t];
|
|
4361
4411
|
return r?.dispatch ? r.dispatch(this, t, n) : !1;
|
|
4362
4412
|
}
|
|
4363
4413
|
_executeCallback(e, t, n) {
|
|
4364
|
-
if (typeof e != "function") return
|
|
4414
|
+
if (typeof e != "function") return K(`${t}未监听:${n.eventType}`), !0;
|
|
4365
4415
|
try {
|
|
4366
4416
|
return e(n), !0;
|
|
4367
4417
|
} catch (e) {
|
|
4368
|
-
return
|
|
4418
|
+
return J(`执行${t}回调出错:`, e, n), !0;
|
|
4369
4419
|
}
|
|
4370
4420
|
}
|
|
4371
4421
|
_executeCallbacks(e, t, n) {
|
|
4372
4422
|
return e ? Array.isArray(e) ? (e.forEach((e) => this._executeCallback(e, t, n)), !0) : this._executeCallback(e, t, n) : !1;
|
|
4373
4423
|
}
|
|
4374
4424
|
};
|
|
4375
|
-
function
|
|
4425
|
+
function Qn(e) {
|
|
4376
4426
|
if (!e) return "";
|
|
4377
4427
|
try {
|
|
4378
4428
|
return JSON.parse(String(e).trim())?.message || "";
|
|
@@ -4380,7 +4430,7 @@ function Jn(e) {
|
|
|
4380
4430
|
return "";
|
|
4381
4431
|
}
|
|
4382
4432
|
}
|
|
4383
|
-
function
|
|
4433
|
+
function $n(t = {}) {
|
|
4384
4434
|
let { sendText: n, commandTimeout: r = 3e3, onSceneInit: i } = t;
|
|
4385
4435
|
if (typeof n != "function") throw Error("createGameSession: sendText 必须是函数");
|
|
4386
4436
|
let a = null, o = !1, s = new $({
|
|
@@ -4390,11 +4440,11 @@ function Yn(t = {}) {
|
|
|
4390
4440
|
bindMessageHandler(e) {
|
|
4391
4441
|
a = e;
|
|
4392
4442
|
}
|
|
4393
|
-
}, { timeout: r }), c = new
|
|
4443
|
+
}, { timeout: r }), c = new W(s);
|
|
4394
4444
|
function l(e, t) {
|
|
4395
|
-
e && a && a(e), !o &&
|
|
4445
|
+
e && a && a(e), !o && Qn(e) === "The level has been initialized" && (o = !0, i ? i(t === void 0 ? e : t) : K("场景初始化加载成功", t === void 0 ? e : t));
|
|
4396
4446
|
}
|
|
4397
|
-
return
|
|
4447
|
+
return K(`插件初始化成功 [web3dlink@${e}]`), {
|
|
4398
4448
|
gameAPI: c,
|
|
4399
4449
|
commandManager: s,
|
|
4400
4450
|
handleIncoming: l,
|
|
@@ -4403,7 +4453,7 @@ function Yn(t = {}) {
|
|
|
4403
4453
|
}
|
|
4404
4454
|
};
|
|
4405
4455
|
}
|
|
4406
|
-
function
|
|
4456
|
+
function er(e, t, n) {
|
|
4407
4457
|
if (!(!e || !n)) {
|
|
4408
4458
|
if (typeof e.off == "function") {
|
|
4409
4459
|
e.off(t, n);
|
|
@@ -4412,10 +4462,10 @@ function Xn(e, t, n) {
|
|
|
4412
4462
|
typeof e.removeListener == "function" && e.removeListener(t, n);
|
|
4413
4463
|
}
|
|
4414
4464
|
}
|
|
4415
|
-
function
|
|
4416
|
-
for (let { target: t, event: n, handler: r } of e)
|
|
4465
|
+
function tr(e = []) {
|
|
4466
|
+
for (let { target: t, event: n, handler: r } of e) er(t, n, r);
|
|
4417
4467
|
}
|
|
4418
4468
|
//#endregion
|
|
4419
|
-
export {
|
|
4469
|
+
export { J as a, e as c, K as i, tr as n, qn as o, $ as r, W as s, $n as t };
|
|
4420
4470
|
|
|
4421
|
-
//# sourceMappingURL=createGameSession-
|
|
4471
|
+
//# sourceMappingURL=createGameSession-DvGnvU6j.js.map
|