web3dlink 2.1.20 → 2.1.21

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.
@@ -2,9 +2,17 @@
2
2
  //#region baseConfig/version.js
3
3
  var e = {
4
4
  name: "web3dlink",
5
- version: "2.1.20",
5
+ version: "2.1.21",
6
6
  description: "LarkSR / ZS 推流 GameAPI SDK",
7
- releaseNotes: { "2.1.20": ["更新 zs-stream-parent(配合推流平台修复 streamId 重复,二次打开视频流导致首次页面流关闭的问题)"] },
7
+ releaseNotes: {
8
+ "2.1.21": [
9
+ "VTK 新增 setClipPlane 位置剖切、setClipPlaneByRatio 比例剖切",
10
+ "VTK setMode 新增 Contour、ContourMixed 模式",
11
+ "VTK API 拆分为单个加载 / 通用功能 / 动画三个模块"
12
+ ],
13
+ "2.1.20": ["更新 zs-stream-parent(配合推流平台修复 streamId 重复,二次打开视频流导致首次页面流关闭的问题)"],
14
+ "2.1.19": ["新增 videoFusion 视频融合", "更新 zs-stream-parent(配合推流平台,修复第一人称 WASD 控制)"]
15
+ },
8
16
  type: "module",
9
17
  main: "./dist/web3dlink.js",
10
18
  module: "./dist/web3dlink.js",
@@ -1230,14 +1238,14 @@ function k(e, t) {
1230
1238
  let n = e.markerType || "default";
1231
1239
  e.config ||= {};
1232
1240
  let r = e.config;
1233
- n === "flashIcon" ? ke(r, t) : n === "component" ? Te(r, t) : n === "customCom" ? Ee(r, t) : n === "menuIcon" ? Ae(r, t) : n === "flood" ? je(r, t) : n === "capture" ? Me(r, t) : [
1241
+ n === "flashIcon" ? Ae(r, t) : n === "component" ? Ee(r, t) : n === "customCom" ? De(r, t) : n === "menuIcon" ? je(r, t) : n === "flood" ? Me(r, t) : n === "capture" ? Ne(r, t) : [
1234
1242
  "anchor1",
1235
1243
  "anchor2",
1236
1244
  "anchor3",
1237
1245
  "anchor4",
1238
1246
  "anchor5",
1239
1247
  "anchor6"
1240
- ].includes(n) ? Oe(r, t) : n === "html" ? A(r, t) : n === "url" ? we(r, t) : n === "lod" ? Ce(r, t) : De(r, t);
1248
+ ].includes(n) ? ke(r, t) : n === "html" ? we(r, t) : n === "url" ? Te(r, t) : n === "lod" ? Ce(r, t) : Oe(r, t);
1241
1249
  }
1242
1250
  function Ce(e, t) {
1243
1251
  if (D(e, "iconStyle", t), O(e, "textStyle", t), e.levels === void 0 || e.levels === null) {
@@ -1271,7 +1279,7 @@ function Ce(e, t) {
1271
1279
  })), D(e, "iconStyle", t), O(e, "textStyle", t);
1272
1280
  });
1273
1281
  }
1274
- function A(e, t) {
1282
+ function we(e, t) {
1275
1283
  if (t.push(...m({
1276
1284
  normalized: e,
1277
1285
  field: "scale",
@@ -1294,7 +1302,7 @@ function A(e, t) {
1294
1302
  defaultValue: ""
1295
1303
  }));
1296
1304
  }
1297
- function we(e, t) {
1305
+ function Te(e, t) {
1298
1306
  if (t.push(..._({
1299
1307
  normalized: e,
1300
1308
  field: "size",
@@ -1311,7 +1319,7 @@ function we(e, t) {
1311
1319
  value: e.url
1312
1320
  }));
1313
1321
  }
1314
- function Te(e, t) {
1322
+ function Ee(e, t) {
1315
1323
  t.push(...y({
1316
1324
  normalized: e,
1317
1325
  field: "color",
@@ -1337,7 +1345,7 @@ function Te(e, t) {
1337
1345
  value: e.value ?? ""
1338
1346
  })) : [], O(e, "dataKeyStyle", t), O(e, "dataValueStyle", t);
1339
1347
  }
1340
- function Ee(e, t) {
1348
+ function De(e, t) {
1341
1349
  t.push(..._({
1342
1350
  normalized: e,
1343
1351
  field: "size",
@@ -1369,7 +1377,7 @@ function Ee(e, t) {
1369
1377
  value: e.value ?? ""
1370
1378
  })) : [], O(e, "dataKeyStyle", t), O(e, "dataValueStyle", t);
1371
1379
  }
1372
- function De(e, t) {
1380
+ function Oe(e, t) {
1373
1381
  t.push(...m({
1374
1382
  normalized: e,
1375
1383
  field: "scale",
@@ -1394,7 +1402,7 @@ function De(e, t) {
1394
1402
  defaultValue: [0, 2147483647]
1395
1403
  })), D(e, "iconStyle", t), O(e, "textStyle", t);
1396
1404
  }
1397
- function Oe(e, t) {
1405
+ function ke(e, t) {
1398
1406
  t.push(...m({
1399
1407
  normalized: e,
1400
1408
  field: "scale",
@@ -1423,7 +1431,7 @@ function Oe(e, t) {
1423
1431
  value: e.color
1424
1432
  })), O(e, "textStyle", t);
1425
1433
  }
1426
- function ke(e, t) {
1434
+ function Ae(e, t) {
1427
1435
  t.push(...y({
1428
1436
  normalized: e,
1429
1437
  field: "baseColor",
@@ -1454,7 +1462,7 @@ function ke(e, t) {
1454
1462
  min: 0
1455
1463
  }));
1456
1464
  }
1457
- function Ae(e, t) {
1465
+ function je(e, t) {
1458
1466
  t.push(...y({
1459
1467
  normalized: e,
1460
1468
  field: "color",
@@ -1524,7 +1532,7 @@ function Ae(e, t) {
1524
1532
  }));
1525
1533
  });
1526
1534
  }
1527
- function je(e, t) {
1535
+ function Me(e, t) {
1528
1536
  t.push(...y({
1529
1537
  normalized: e,
1530
1538
  field: "color",
@@ -1547,7 +1555,7 @@ function je(e, t) {
1547
1555
  defaultValue: ""
1548
1556
  }));
1549
1557
  }
1550
- function Me(e, t) {
1558
+ function Ne(e, t) {
1551
1559
  t.push(...y({
1552
1560
  normalized: e,
1553
1561
  field: "color",
@@ -1616,7 +1624,7 @@ function Me(e, t) {
1616
1624
  min: 0
1617
1625
  }));
1618
1626
  }
1619
- function Ne(e, t) {
1627
+ function Pe(e, t) {
1620
1628
  t.push(...m({
1621
1629
  normalized: e,
1622
1630
  field: "scale",
@@ -1660,14 +1668,14 @@ function Ne(e, t) {
1660
1668
  value: e.value ?? ""
1661
1669
  })) : [];
1662
1670
  }
1663
- var Pe = [0, 2147483647];
1664
- function j(e, t, n, r = "visibleRange") {
1671
+ var Fe = [0, 2147483647];
1672
+ function A(e, t, n, r = "visibleRange") {
1665
1673
  n.push(..._({
1666
1674
  normalized: t,
1667
1675
  field: r,
1668
1676
  value: e[r],
1669
1677
  length: 2,
1670
- defaultValue: [...Pe]
1678
+ defaultValue: [...Fe]
1671
1679
  }));
1672
1680
  let i = t[r];
1673
1681
  if (!Array.isArray(i) || i.length !== 2) return;
@@ -1682,7 +1690,7 @@ function j(e, t, n, r = "visibleRange") {
1682
1690
  }
1683
1691
  t[r] = [a, o];
1684
1692
  }
1685
- var M = [
1693
+ var j = [
1686
1694
  "default",
1687
1695
  "default1",
1688
1696
  "default2",
@@ -1705,13 +1713,13 @@ var M = [
1705
1713
  ];
1706
1714
  //#endregion
1707
1715
  //#region api/marker/iconMarker.js
1708
- function Fe(e) {
1716
+ function Ie(e) {
1709
1717
  let t = [], n = { ...e };
1710
1718
  if (n.id = e.id === void 0 || e.id === null || e.id === "" ? E() : e.id, t.push(...f(e.coordinates)), t.push(...g({
1711
1719
  normalized: n,
1712
1720
  field: "groupId",
1713
1721
  value: e.groupId
1714
- })), j(e, n, t), t.push(...b({
1722
+ })), A(e, n, t), t.push(...b({
1715
1723
  normalized: n,
1716
1724
  field: "isScreenSpace",
1717
1725
  value: e.isScreenSpace,
@@ -1724,7 +1732,7 @@ function Fe(e) {
1724
1732
  value: e.markerType,
1725
1733
  defaultValue: "default",
1726
1734
  type: "string",
1727
- list: M
1735
+ list: j
1728
1736
  })), e.recordData !== void 0) {
1729
1737
  let r = e.recordData;
1730
1738
  if (typeof r != "object" || !r || Array.isArray(r)) t.push("[recordData] 必须是对象类型");
@@ -1741,7 +1749,7 @@ function Fe(e) {
1741
1749
  }
1742
1750
  //#endregion
1743
1751
  //#region api/marker/followMarker.js
1744
- function Ie(e) {
1752
+ function Le(e) {
1745
1753
  let t = [], n = { ...e };
1746
1754
  if (n.id = e.id === void 0 || e.id === null || e.id === "" ? E() : e.id, t.push(...h({
1747
1755
  normalized: n,
@@ -1751,7 +1759,7 @@ function Ie(e) {
1751
1759
  normalized: n,
1752
1760
  field: "groupId",
1753
1761
  value: e.groupId
1754
- })), j(e, n, t), t.push(...b({
1762
+ })), A(e, n, t), t.push(...b({
1755
1763
  normalized: n,
1756
1764
  field: "isScreenSpace",
1757
1765
  value: e.isScreenSpace,
@@ -1764,7 +1772,7 @@ function Ie(e) {
1764
1772
  value: e.markerType,
1765
1773
  defaultValue: "default",
1766
1774
  type: "string",
1767
- list: M
1775
+ list: j
1768
1776
  })), e.recordData !== void 0) {
1769
1777
  let r = e.recordData;
1770
1778
  if (typeof r != "object" || !r || Array.isArray(r)) t.push("[recordData] 必须是对象类型");
@@ -1781,7 +1789,7 @@ function Ie(e) {
1781
1789
  }
1782
1790
  //#endregion
1783
1791
  //#region api/marker/removeMarker.js
1784
- function Le(e = {}) {
1792
+ function Re(e = {}) {
1785
1793
  let t = [], n = { ...e };
1786
1794
  return t.push(..._({
1787
1795
  normalized: n,
@@ -1795,7 +1803,7 @@ function Le(e = {}) {
1795
1803
  }
1796
1804
  //#endregion
1797
1805
  //#region api/marker/removeAllMarker.js
1798
- function Re(e) {
1806
+ function ze(e) {
1799
1807
  return {
1800
1808
  errors: [],
1801
1809
  normalized: { ...e }
@@ -1803,7 +1811,7 @@ function Re(e) {
1803
1811
  }
1804
1812
  //#endregion
1805
1813
  //#region api/marker/showMarker.js
1806
- function ze(e = {}) {
1814
+ function Be(e = {}) {
1807
1815
  let t = [], n = { ...e };
1808
1816
  return t.push(..._({
1809
1817
  normalized: n,
@@ -1817,7 +1825,7 @@ function ze(e = {}) {
1817
1825
  }
1818
1826
  //#endregion
1819
1827
  //#region api/marker/showAllMarker.js
1820
- function Be(e = {}) {
1828
+ function Ve(e = {}) {
1821
1829
  return {
1822
1830
  errors: [],
1823
1831
  normalized: { ...e }
@@ -1825,7 +1833,7 @@ function Be(e = {}) {
1825
1833
  }
1826
1834
  //#endregion
1827
1835
  //#region api/marker/hideMarker.js
1828
- function Ve(e = {}) {
1836
+ function He(e = {}) {
1829
1837
  let t = [], n = { ...e };
1830
1838
  return t.push(..._({
1831
1839
  normalized: n,
@@ -1839,7 +1847,7 @@ function Ve(e = {}) {
1839
1847
  }
1840
1848
  //#endregion
1841
1849
  //#region api/marker/hideAllMarker.js
1842
- function He(e = {}) {
1850
+ function Ue(e = {}) {
1843
1851
  return {
1844
1852
  errors: [],
1845
1853
  normalized: { ...e }
@@ -1847,7 +1855,7 @@ function He(e = {}) {
1847
1855
  }
1848
1856
  //#endregion
1849
1857
  //#region api/marker/iconUrlMarker.js
1850
- function Ue(e = {}) {
1858
+ function We(e = {}) {
1851
1859
  let t = [], n = { ...e };
1852
1860
  return t.push(...h({
1853
1861
  normalized: n,
@@ -1860,7 +1868,7 @@ function Ue(e = {}) {
1860
1868
  }
1861
1869
  //#endregion
1862
1870
  //#region api/marker/addClustering.js
1863
- function We(e) {
1871
+ function Ge(e) {
1864
1872
  let t = [], n = { ...e };
1865
1873
  t.push(...b({
1866
1874
  normalized: n,
@@ -1908,7 +1916,7 @@ function We(e) {
1908
1916
  }
1909
1917
  //#endregion
1910
1918
  //#region api/marker/removeClustering.js
1911
- function Ge(e) {
1919
+ function Ke(e) {
1912
1920
  let t = [], n = { ...e };
1913
1921
  return t.push(...b({
1914
1922
  normalized: n,
@@ -1932,13 +1940,13 @@ function Ge(e) {
1932
1940
  }
1933
1941
  //#endregion
1934
1942
  //#region api/marker/secondMarker.js
1935
- function Ke(e) {
1943
+ function qe(e) {
1936
1944
  let t = [], n = { ...e };
1937
1945
  n.id = e.id === void 0 || e.id === null || e.id === "" ? E() : e.id, t.push(...f(e.coordinates)), t.push(...g({
1938
1946
  normalized: n,
1939
1947
  field: "groupId",
1940
1948
  value: e.groupId
1941
- })), j(e, n, t), t.push(...b({
1949
+ })), A(e, n, t), t.push(...b({
1942
1950
  normalized: n,
1943
1951
  field: "isScreenSpace",
1944
1952
  value: e.isScreenSpace,
@@ -1975,7 +1983,7 @@ function Ke(e) {
1975
1983
  field: "title",
1976
1984
  value: r.title,
1977
1985
  defaultValue: ""
1978
- })), n.markerType === "popupCustom1" ? Ne(r, t) : (O(r, "titleStyle", t), O(r, "dataKeyStyle", t), O(r, "dataValueStyle", t), r.dataTexts = Array.isArray(r.dataTexts) ? r.dataTexts.filter((e) => e && typeof e == "object").map((e) => ({
1986
+ })), n.markerType === "popupCustom1" ? Pe(r, t) : (O(r, "titleStyle", t), O(r, "dataKeyStyle", t), O(r, "dataValueStyle", t), r.dataTexts = Array.isArray(r.dataTexts) ? r.dataTexts.filter((e) => e && typeof e == "object").map((e) => ({
1979
1987
  key: e.key ?? "",
1980
1988
  value: e.value ?? ""
1981
1989
  })) : []), e.recordData !== void 0) {
@@ -1994,23 +2002,23 @@ function Ke(e) {
1994
2002
  }
1995
2003
  //#endregion
1996
2004
  //#region api/marker/markerApi.js
1997
- var qe = r("marker", {
1998
- iconMarker: Fe,
1999
- followMarker: Ie,
2000
- removeMarker: Le,
2001
- removeAllMarker: Re,
2002
- showMarker: ze,
2003
- showAllMarker: Be,
2004
- hideMarker: Ve,
2005
- hideAllMarker: He,
2006
- iconUrlMarker: Ue,
2007
- addClustering: We,
2008
- removeClustering: Ge,
2009
- secondMarker: Ke
2005
+ var Je = r("marker", {
2006
+ iconMarker: Ie,
2007
+ followMarker: Le,
2008
+ removeMarker: Re,
2009
+ removeAllMarker: ze,
2010
+ showMarker: Be,
2011
+ showAllMarker: Ve,
2012
+ hideMarker: He,
2013
+ hideAllMarker: Ue,
2014
+ iconUrlMarker: We,
2015
+ addClustering: Ge,
2016
+ removeClustering: Ke,
2017
+ secondMarker: qe
2010
2018
  }, { getOptions: (e) => e === "iconUrlMarker" ? { timeout: 12e4 } : {} });
2011
2019
  //#endregion
2012
2020
  //#region api/floodPeak/getList.js
2013
- function Je(e) {
2021
+ function Ye(e) {
2014
2022
  return {
2015
2023
  errors: [],
2016
2024
  normalized: { ...e }
@@ -2018,7 +2026,7 @@ function Je(e) {
2018
2026
  }
2019
2027
  //#endregion
2020
2028
  //#region api/floodPeak/helpers.js
2021
- var Ye = (e, t, n) => {
2029
+ var Xe = (e, t, n) => {
2022
2030
  e && (n === "default" || n === "default1" || n === "default2" || n === "default3" || n === "default4" || n === "flashIcon") && (t.push(...y({
2023
2031
  normalized: e,
2024
2032
  field: "color",
@@ -2046,7 +2054,7 @@ var Ye = (e, t, n) => {
2046
2054
  };
2047
2055
  //#endregion
2048
2056
  //#region api/floodPeak/record.js
2049
- function Xe(e) {
2057
+ function Ze(e) {
2050
2058
  let t = [], n = { ...e };
2051
2059
  t.push(...h({
2052
2060
  normalized: n,
@@ -2073,14 +2081,14 @@ function Xe(e) {
2073
2081
  min: 0
2074
2082
  }));
2075
2083
  let r = n.materialType || e.materialType || "default";
2076
- return Ye(n.config, t, r), {
2084
+ return Xe(n.config, t, r), {
2077
2085
  errors: t,
2078
2086
  normalized: n
2079
2087
  };
2080
2088
  }
2081
2089
  //#endregion
2082
2090
  //#region api/floodPeak/offset.js
2083
- function Ze(e) {
2091
+ function Qe(e) {
2084
2092
  let t = [], n = { ...e };
2085
2093
  return t.push(...h({
2086
2094
  normalized: n,
@@ -2097,7 +2105,7 @@ function Ze(e) {
2097
2105
  }
2098
2106
  //#endregion
2099
2107
  //#region api/floodPeak/offsetReset.js
2100
- function Qe(e) {
2108
+ function $e(e) {
2101
2109
  let t = [], n = { ...e };
2102
2110
  return t.push(...h({
2103
2111
  normalized: n,
@@ -2110,7 +2118,7 @@ function Qe(e) {
2110
2118
  }
2111
2119
  //#endregion
2112
2120
  //#region api/floodPeak/setText.js
2113
- function $e(e) {
2121
+ function et(e) {
2114
2122
  let t = [], n = { ...e };
2115
2123
  t.push(...h({
2116
2124
  normalized: n,
@@ -2133,7 +2141,7 @@ function $e(e) {
2133
2141
  }
2134
2142
  //#endregion
2135
2143
  //#region api/floodPeak/close.js
2136
- function et(e) {
2144
+ function tt(e) {
2137
2145
  let t = [], n = { ...e };
2138
2146
  return t.push(...h({
2139
2147
  normalized: n,
@@ -2146,7 +2154,7 @@ function et(e) {
2146
2154
  }
2147
2155
  //#endregion
2148
2156
  //#region api/floodPeak/cameraFollow.js
2149
- function tt(e) {
2157
+ function nt(e) {
2150
2158
  let t = [], n = { ...e };
2151
2159
  t.push(...h({
2152
2160
  normalized: n,
@@ -2180,18 +2188,18 @@ function tt(e) {
2180
2188
  }
2181
2189
  //#endregion
2182
2190
  //#region api/floodPeak/floodPeakApi.js
2183
- var nt = r("floodPeak", {
2184
- getList: Je,
2185
- record: Xe,
2186
- offset: Ze,
2187
- offsetReset: Qe,
2188
- setText: $e,
2189
- close: et,
2190
- cameraFollow: tt
2191
+ var rt = r("floodPeak", {
2192
+ getList: Ye,
2193
+ record: Ze,
2194
+ offset: Qe,
2195
+ offsetReset: $e,
2196
+ setText: et,
2197
+ close: tt,
2198
+ cameraFollow: nt
2191
2199
  }, { getOptions: () => ({ timeout: 0 }) });
2192
2200
  //#endregion
2193
2201
  //#region api/animation/play.js
2194
- function rt(e = {}) {
2202
+ function it(e = {}) {
2195
2203
  let t = { ...e }, n = [];
2196
2204
  return n.push(...h({
2197
2205
  normalized: t,
@@ -2216,7 +2224,7 @@ function rt(e = {}) {
2216
2224
  }
2217
2225
  //#endregion
2218
2226
  //#region api/animation/carryOn.js
2219
- function it(e = {}) {
2227
+ function at(e = {}) {
2220
2228
  let t = { ...e };
2221
2229
  return {
2222
2230
  errors: [...h({
@@ -2229,7 +2237,7 @@ function it(e = {}) {
2229
2237
  }
2230
2238
  //#endregion
2231
2239
  //#region api/animation/pause.js
2232
- function at(e = {}) {
2240
+ function ot(e = {}) {
2233
2241
  let t = { ...e };
2234
2242
  return {
2235
2243
  errors: [...h({
@@ -2242,7 +2250,7 @@ function at(e = {}) {
2242
2250
  }
2243
2251
  //#endregion
2244
2252
  //#region api/animation/stop.js
2245
- function ot(e = {}) {
2253
+ function st(e = {}) {
2246
2254
  let t = { ...e };
2247
2255
  return {
2248
2256
  errors: [...h({
@@ -2255,7 +2263,7 @@ function ot(e = {}) {
2255
2263
  }
2256
2264
  //#endregion
2257
2265
  //#region api/animation/jumpToFrame.js
2258
- function st(e = {}) {
2266
+ function ct(e = {}) {
2259
2267
  let t = { ...e }, n = [];
2260
2268
  return n.push(...h({
2261
2269
  normalized: t,
@@ -2274,7 +2282,7 @@ function st(e = {}) {
2274
2282
  }
2275
2283
  //#endregion
2276
2284
  //#region api/animation/setPlaybackFrameRate.js
2277
- function ct(e = {}) {
2285
+ function lt(e = {}) {
2278
2286
  let t = { ...e }, n = [];
2279
2287
  return n.push(...h({
2280
2288
  normalized: t,
@@ -2293,7 +2301,7 @@ function ct(e = {}) {
2293
2301
  }
2294
2302
  //#endregion
2295
2303
  //#region api/animation/onData.js
2296
- function lt(e = {}) {
2304
+ function ut(e = {}) {
2297
2305
  let t = [];
2298
2306
  return e.onChange && typeof e.onChange != "function" && t.push("onChange 必须为函数"), {
2299
2307
  errors: t,
@@ -2302,18 +2310,18 @@ function lt(e = {}) {
2302
2310
  }
2303
2311
  //#endregion
2304
2312
  //#region api/animation/animationApi.js
2305
- var ut = r("animation", {
2306
- play: rt,
2307
- carryOn: it,
2308
- pause: at,
2309
- stop: ot,
2310
- jumpToFrame: st,
2311
- setPlaybackFrameRate: ct,
2312
- onData: lt
2313
+ var dt = r("animation", {
2314
+ play: it,
2315
+ carryOn: at,
2316
+ pause: ot,
2317
+ stop: st,
2318
+ jumpToFrame: ct,
2319
+ setPlaybackFrameRate: lt,
2320
+ onData: ut
2313
2321
  });
2314
2322
  //#endregion
2315
2323
  //#region api/hydrodynamicForce/create.js
2316
- function dt(e) {
2324
+ function ft(e) {
2317
2325
  let t = [], n = { ...e };
2318
2326
  return t.push(...p({
2319
2327
  normalized: n,
@@ -2369,7 +2377,7 @@ function dt(e) {
2369
2377
  }
2370
2378
  //#endregion
2371
2379
  //#region api/hydrodynamicForce/waterFlow.js
2372
- function ft(e) {
2380
+ function pt(e) {
2373
2381
  let t = [], n = { ...e };
2374
2382
  return t.push(...p({
2375
2383
  normalized: n,
@@ -2419,7 +2427,7 @@ function ft(e) {
2419
2427
  }
2420
2428
  //#endregion
2421
2429
  //#region api/hydrodynamicForce/waterDepth.js
2422
- function pt(e) {
2430
+ function mt(e) {
2423
2431
  let t = [], n = { ...e };
2424
2432
  return t.push(...p({
2425
2433
  normalized: n,
@@ -2462,7 +2470,7 @@ function pt(e) {
2462
2470
  }
2463
2471
  //#endregion
2464
2472
  //#region api/hydrodynamicForce/sediment.js
2465
- function mt(e) {
2473
+ function ht(e) {
2466
2474
  let t = [], n = { ...e };
2467
2475
  return t.push(...h({
2468
2476
  normalized: n,
@@ -2501,7 +2509,7 @@ function mt(e) {
2501
2509
  }
2502
2510
  //#endregion
2503
2511
  //#region api/hydrodynamicForce/materialParams.js
2504
- function ht(e = {}) {
2512
+ function gt(e = {}) {
2505
2513
  let t = [], n = { ...e };
2506
2514
  return t.push(...h({
2507
2515
  normalized: n,
@@ -2555,7 +2563,7 @@ function ht(e = {}) {
2555
2563
  }
2556
2564
  //#endregion
2557
2565
  //#region api/hydrodynamicForce/close.js
2558
- function gt(e) {
2566
+ function _t(e) {
2559
2567
  let t = [], n = { ...e };
2560
2568
  return t.push(...h({
2561
2569
  normalized: n,
@@ -2568,17 +2576,17 @@ function gt(e) {
2568
2576
  }
2569
2577
  //#endregion
2570
2578
  //#region api/hydrodynamicForce/hydrodynamicForceApi.js
2571
- var _t = r("hydrodynamicForce", {
2572
- create: dt,
2573
- waterFlow: ft,
2574
- waterDepth: pt,
2575
- sediment: mt,
2576
- materialParams: ht,
2577
- close: gt
2579
+ var vt = r("hydrodynamicForce", {
2580
+ create: ft,
2581
+ waterFlow: pt,
2582
+ waterDepth: mt,
2583
+ sediment: ht,
2584
+ materialParams: gt,
2585
+ close: _t
2578
2586
  });
2579
2587
  //#endregion
2580
2588
  //#region api/sceneModel/getById.js
2581
- function vt(e) {
2589
+ function yt(e) {
2582
2590
  let t = [], n = { ...e };
2583
2591
  return t.push(...h({
2584
2592
  normalized: n,
@@ -2591,7 +2599,7 @@ function vt(e) {
2591
2599
  }
2592
2600
  //#endregion
2593
2601
  //#region api/sceneModel/getByTag.js
2594
- function yt(e) {
2602
+ function bt(e) {
2595
2603
  let t = [], n = { ...e };
2596
2604
  return t.push(...h({
2597
2605
  normalized: n,
@@ -2604,9 +2612,9 @@ function yt(e) {
2604
2612
  }
2605
2613
  //#endregion
2606
2614
  //#region api/sceneModel/helpers.js
2607
- var N = (e) => e != null && e !== "";
2608
- function P(e, { id: t, tag: n }) {
2609
- let r = N(t), i = N(n);
2615
+ var M = (e) => e != null && e !== "";
2616
+ function N(e, { id: t, tag: n }) {
2617
+ let r = M(t), i = M(n);
2610
2618
  if (!r && !i) {
2611
2619
  e.push("[id]和[tag]必须提供其中一个");
2612
2620
  return;
@@ -2623,7 +2631,7 @@ function P(e, { id: t, tag: n }) {
2623
2631
  value: n
2624
2632
  }));
2625
2633
  }
2626
- function F(e, t, n) {
2634
+ function P(e, t, n) {
2627
2635
  if (e == null) return;
2628
2636
  if (typeof e != "object") {
2629
2637
  n.push(`[${t}]必须是对象类型`);
@@ -2652,17 +2660,17 @@ function F(e, t, n) {
2652
2660
  }));
2653
2661
  }
2654
2662
  }
2655
- function I(e, t, n) {
2656
- 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);
2663
+ function F(e, t, n) {
2664
+ let r = (t, n) => M(n) ? Array.isArray(n) ? n.length !== 0 || (e.push(`[${t}]不能为空数组`), !1) : (e.push(`[${t}]必须是数组类型`), !1) : !1, i = r("ids", t), a = r("tags", n);
2657
2665
  !i && !a ? e.push("[ids]和[tags]必须提供其中一个") : i && a && e.push("[ids]和[tags]不能同时提供");
2658
2666
  }
2659
- var bt = [
2667
+ var xt = [
2660
2668
  "None",
2661
2669
  "Color",
2662
2670
  "Texture",
2663
2671
  "Material"
2664
2672
  ];
2665
- function L(e, t, n, r, i) {
2673
+ function I(e, t, n, r, i) {
2666
2674
  if (r == null) {
2667
2675
  t[n] = i;
2668
2676
  return;
@@ -2675,9 +2683,9 @@ function L(e, t, n, r, i) {
2675
2683
  }
2676
2684
  //#endregion
2677
2685
  //#region api/sceneModel/setTransform.js
2678
- function xt(e) {
2686
+ function St(e) {
2679
2687
  let t = [], n = { ...e };
2680
- return P(t, e), F(e.rotation, "rotation", t), F(e.scale, "scale", t), F(e.translation, "translation", t), t.push(...m({
2688
+ return N(t, e), P(e.rotation, "rotation", t), P(e.scale, "scale", t), P(e.translation, "translation", t), t.push(...m({
2681
2689
  normalized: n,
2682
2690
  field: "duration",
2683
2691
  value: e.duration,
@@ -2688,7 +2696,7 @@ function xt(e) {
2688
2696
  t.push(`[list[${n}]]必须是对象类型`);
2689
2697
  return;
2690
2698
  }
2691
- F(e.rotation, `list[${n}].rotation`, t), F(e.scale, `list[${n}].scale`, t), F(e.translation, `list[${n}].translation`, t), t.push(...m({
2699
+ P(e.rotation, `list[${n}].rotation`, t), P(e.scale, `list[${n}].scale`, t), P(e.translation, `list[${n}].translation`, t), t.push(...m({
2692
2700
  normalized: e,
2693
2701
  field: "duration",
2694
2702
  value: e.duration,
@@ -2701,18 +2709,18 @@ function xt(e) {
2701
2709
  }
2702
2710
  //#endregion
2703
2711
  //#region api/sceneModel/clearTransform.js
2704
- function St(e) {
2712
+ function Ct(e) {
2705
2713
  let t = [], n = { ...e };
2706
- return P(t, e), {
2714
+ return N(t, e), {
2707
2715
  errors: t,
2708
2716
  normalized: n
2709
2717
  };
2710
2718
  }
2711
2719
  //#endregion
2712
2720
  //#region api/sceneModel/offset.js
2713
- function Ct(e) {
2721
+ function wt(e) {
2714
2722
  let t = [], n = { ...e };
2715
- return P(t, e), F(e.rotation, "rotation", t), F(e.scale, "scale", t), F(e.translation, "translation", t), t.push(...m({
2723
+ return N(t, e), P(e.rotation, "rotation", t), P(e.scale, "scale", t), P(e.translation, "translation", t), t.push(...m({
2716
2724
  normalized: n,
2717
2725
  field: "duration",
2718
2726
  value: e.duration,
@@ -2723,7 +2731,7 @@ function Ct(e) {
2723
2731
  t.push(`[list[${n}]]必须是对象类型`);
2724
2732
  return;
2725
2733
  }
2726
- F(e.rotation, `list[${n}].rotation`, t), F(e.scale, `list[${n}].scale`, t), F(e.translation, `list[${n}].translation`, t), t.push(...m({
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({
2727
2735
  normalized: e,
2728
2736
  field: "duration",
2729
2737
  value: e.duration,
@@ -2736,45 +2744,45 @@ function Ct(e) {
2736
2744
  }
2737
2745
  //#endregion
2738
2746
  //#region api/sceneModel/clearOffset.js
2739
- function wt(e) {
2747
+ function Tt(e) {
2740
2748
  let t = [], n = { ...e };
2741
- return P(t, e), {
2749
+ return N(t, e), {
2742
2750
  errors: t,
2743
2751
  normalized: n
2744
2752
  };
2745
2753
  }
2746
2754
  //#endregion
2747
2755
  //#region api/sceneModel/show.js
2748
- function Tt(e) {
2756
+ function Et(e) {
2749
2757
  let t = [], n = { ...e };
2750
- return I(t, e.ids, e.tags), {
2758
+ return F(t, e.ids, e.tags), {
2751
2759
  errors: t,
2752
2760
  normalized: n
2753
2761
  };
2754
2762
  }
2755
2763
  //#endregion
2756
2764
  //#region api/sceneModel/hide.js
2757
- function Et(e) {
2765
+ function Dt(e) {
2758
2766
  let t = [], n = { ...e };
2759
- return I(t, e.ids, e.tags), {
2767
+ return F(t, e.ids, e.tags), {
2760
2768
  errors: t,
2761
2769
  normalized: n
2762
2770
  };
2763
2771
  }
2764
2772
  //#endregion
2765
2773
  //#region api/sceneModel/showOnly.js
2766
- function Dt(e) {
2774
+ function Ot(e) {
2767
2775
  let t = [], n = { ...e };
2768
- return I(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, {
2776
+ return F(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, {
2769
2777
  errors: t,
2770
2778
  normalized: n
2771
2779
  };
2772
2780
  }
2773
2781
  //#endregion
2774
2782
  //#region api/sceneModel/highLight.js
2775
- function Ot(e) {
2783
+ function kt(e) {
2776
2784
  let t = [], n = { ...e };
2777
- return I(t, e.ids, e.tags), n.config ||= {}, t.push(...y({
2785
+ return F(t, e.ids, e.tags), n.config ||= {}, t.push(...y({
2778
2786
  normalized: n.config,
2779
2787
  field: "color",
2780
2788
  value: n.config.color,
@@ -2808,18 +2816,18 @@ function Ot(e) {
2808
2816
  }
2809
2817
  //#endregion
2810
2818
  //#region api/sceneModel/removeHighLight.js
2811
- function kt(e) {
2819
+ function At(e) {
2812
2820
  let t = [], n = { ...e };
2813
- return I(t, e.ids, e.tags), {
2821
+ return F(t, e.ids, e.tags), {
2814
2822
  errors: t,
2815
2823
  normalized: n
2816
2824
  };
2817
2825
  }
2818
2826
  //#endregion
2819
2827
  //#region api/sceneModel/setOpacity.js
2820
- function At(e) {
2828
+ function jt(e) {
2821
2829
  let t = [], n = { ...e };
2822
- return I(t, e.ids, e.tags), n.config ||= {}, t.push(...m({
2830
+ return F(t, e.ids, e.tags), n.config ||= {}, t.push(...m({
2823
2831
  normalized: n.config,
2824
2832
  field: "opacity",
2825
2833
  value: e.config?.opacity,
@@ -2844,9 +2852,9 @@ function At(e) {
2844
2852
  }
2845
2853
  //#endregion
2846
2854
  //#region api/sceneModel/outline.js
2847
- function jt(e) {
2855
+ function Mt(e) {
2848
2856
  let t = [], n = { ...e };
2849
- return I(t, e.ids, e.tags), n.config ||= {}, t.push(...y({
2857
+ return F(t, e.ids, e.tags), n.config ||= {}, t.push(...y({
2850
2858
  normalized: n.config,
2851
2859
  field: "color",
2852
2860
  value: n.config.color,
@@ -2888,16 +2896,16 @@ function jt(e) {
2888
2896
  }
2889
2897
  //#endregion
2890
2898
  //#region api/sceneModel/removeOutline.js
2891
- function Mt(e) {
2899
+ function Nt(e) {
2892
2900
  let t = [], n = { ...e };
2893
- return I(t, e.ids, e.tags), {
2901
+ return F(t, e.ids, e.tags), {
2894
2902
  errors: t,
2895
2903
  normalized: n
2896
2904
  };
2897
2905
  }
2898
2906
  //#endregion
2899
2907
  //#region api/sceneModel/removeAllOutline.js
2900
- function Nt(e) {
2908
+ function Pt(e) {
2901
2909
  return {
2902
2910
  errors: [],
2903
2911
  normalized: { ...e }
@@ -2905,7 +2913,7 @@ function Nt(e) {
2905
2913
  }
2906
2914
  //#endregion
2907
2915
  //#region api/sceneModel/openSlice.js
2908
- function Pt(e = {}) {
2916
+ function Ft(e = {}) {
2909
2917
  let t = [], n = { ...e };
2910
2918
  return t.push(...h({
2911
2919
  normalized: n,
@@ -2917,7 +2925,7 @@ function Pt(e = {}) {
2917
2925
  value: e.mode,
2918
2926
  defaultValue: "None",
2919
2927
  type: "string",
2920
- list: bt
2928
+ list: xt
2921
2929
  })), t.push(...y({
2922
2930
  normalized: n,
2923
2931
  field: "color",
@@ -2945,7 +2953,7 @@ function Pt(e = {}) {
2945
2953
  value: e.uvScale,
2946
2954
  length: 2,
2947
2955
  defaultValue: [1, 1]
2948
- })), L(t, n, "isWorldUV", e.isWorldUV, !1), t.push(..._({
2956
+ })), I(t, n, "isWorldUV", e.isWorldUV, !1), t.push(..._({
2949
2957
  normalized: n,
2950
2958
  field: "direction",
2951
2959
  value: e.direction,
@@ -2955,7 +2963,7 @@ function Pt(e = {}) {
2955
2963
  0,
2956
2964
  -1
2957
2965
  ]
2958
- })), L(t, n, "isWorldDirection", e.isWorldDirection, !1), t.push(...m({
2966
+ })), I(t, n, "isWorldDirection", e.isWorldDirection, !1), t.push(...m({
2959
2967
  normalized: n,
2960
2968
  field: "ratio",
2961
2969
  value: e.ratio,
@@ -2969,7 +2977,7 @@ function Pt(e = {}) {
2969
2977
  }
2970
2978
  //#endregion
2971
2979
  //#region api/sceneModel/closeSlice.js
2972
- function Ft(e = {}) {
2980
+ function It(e = {}) {
2973
2981
  let t = [], n = { ...e };
2974
2982
  return t.push(...h({
2975
2983
  normalized: n,
@@ -2982,7 +2990,7 @@ function Ft(e = {}) {
2982
2990
  }
2983
2991
  //#endregion
2984
2992
  //#region api/sceneModel/closeAllSlice.js
2985
- function It(e = {}) {
2993
+ function Lt(e = {}) {
2986
2994
  return {
2987
2995
  errors: [],
2988
2996
  normalized: { ...e }
@@ -2990,29 +2998,29 @@ function It(e = {}) {
2990
2998
  }
2991
2999
  //#endregion
2992
3000
  //#region api/sceneModel/sceneModelApi.js
2993
- var Lt = r("sceneModel", {
2994
- getById: vt,
2995
- getByTag: yt,
2996
- setTransform: xt,
2997
- clearTransform: St,
2998
- offset: Ct,
2999
- clearOffset: wt,
3000
- show: Tt,
3001
- hide: Et,
3002
- showOnly: Dt,
3003
- highLight: Ot,
3004
- removeHighLight: kt,
3005
- setOpacity: At,
3006
- outline: jt,
3007
- removeOutline: Mt,
3008
- removeAllOutline: Nt,
3009
- openSlice: Pt,
3010
- closeSlice: Ft,
3011
- closeAllSlice: It
3001
+ var Rt = r("sceneModel", {
3002
+ getById: yt,
3003
+ getByTag: bt,
3004
+ setTransform: St,
3005
+ clearTransform: Ct,
3006
+ offset: wt,
3007
+ clearOffset: Tt,
3008
+ show: Et,
3009
+ hide: Dt,
3010
+ showOnly: Ot,
3011
+ highLight: kt,
3012
+ removeHighLight: At,
3013
+ setOpacity: jt,
3014
+ outline: Mt,
3015
+ removeOutline: Nt,
3016
+ removeAllOutline: Pt,
3017
+ openSlice: Ft,
3018
+ closeSlice: It,
3019
+ closeAllSlice: Lt
3012
3020
  });
3013
3021
  //#endregion
3014
3022
  //#region api/atmosphericEffects/time.js
3015
- function Rt(e) {
3023
+ function zt(e) {
3016
3024
  let t = [], n = { ...e };
3017
3025
  return t.push(...p({
3018
3026
  normalized: n,
@@ -3027,7 +3035,7 @@ function Rt(e) {
3027
3035
  }
3028
3036
  //#endregion
3029
3037
  //#region api/atmosphericEffects/weather.js
3030
- function R(e) {
3038
+ function Bt(e) {
3031
3039
  let t = [], n = { ...e };
3032
3040
  return !e.type || typeof e.type != "string" ? t.push("[type]为必填项,且必须是字符串类型") : n.type = e.type, {
3033
3041
  errors: t,
@@ -3036,13 +3044,13 @@ function R(e) {
3036
3044
  }
3037
3045
  //#endregion
3038
3046
  //#region api/atmosphericEffects/atmosphericEffectsApi.js
3039
- var zt = r("atmosphericEffects", {
3040
- time: Rt,
3041
- weather: R
3047
+ var Vt = r("atmosphericEffects", {
3048
+ time: zt,
3049
+ weather: Bt
3042
3050
  });
3043
3051
  //#endregion
3044
3052
  //#region api/tool/onMouseClick.js
3045
- function Bt(e) {
3053
+ function Ht(e) {
3046
3054
  let t = [], n = { ...e };
3047
3055
  return t.push(...b({
3048
3056
  normalized: n,
@@ -3062,7 +3070,7 @@ function Bt(e) {
3062
3070
  }
3063
3071
  //#endregion
3064
3072
  //#region api/tool/offMouseClick.js
3065
- function Vt(e) {
3073
+ function Ut(e) {
3066
3074
  let t = [], n = { ...e };
3067
3075
  return t.push(...b({
3068
3076
  normalized: n,
@@ -3082,7 +3090,7 @@ function Vt(e) {
3082
3090
  }
3083
3091
  //#endregion
3084
3092
  //#region api/tool/onDistance.js
3085
- function Ht(e) {
3093
+ function L(e) {
3086
3094
  return {
3087
3095
  errors: [],
3088
3096
  normalized: { ...e }
@@ -3090,7 +3098,7 @@ function Ht(e) {
3090
3098
  }
3091
3099
  //#endregion
3092
3100
  //#region api/tool/offDistance.js
3093
- function Ut(e) {
3101
+ function Wt(e) {
3094
3102
  return {
3095
3103
  errors: [],
3096
3104
  normalized: { ...e }
@@ -3098,7 +3106,7 @@ function Ut(e) {
3098
3106
  }
3099
3107
  //#endregion
3100
3108
  //#region api/tool/editConfigFile.js
3101
- function Wt(e) {
3109
+ function Gt(e) {
3102
3110
  return {
3103
3111
  errors: [],
3104
3112
  normalized: { ...e }
@@ -3106,21 +3114,21 @@ function Wt(e) {
3106
3114
  }
3107
3115
  //#endregion
3108
3116
  //#region api/tool/toolApi.js
3109
- var Gt = r("tool", {
3110
- onMouseClick: Bt,
3111
- offMouseClick: Vt,
3112
- onDistance: Ht,
3113
- offDistance: Ut,
3114
- editConfigFile: Wt
3117
+ var Kt = r("tool", {
3118
+ onMouseClick: Ht,
3119
+ offMouseClick: Ut,
3120
+ onDistance: L,
3121
+ offDistance: Wt,
3122
+ editConfigFile: Gt
3115
3123
  });
3116
3124
  //#endregion
3117
3125
  //#region api/line/helpers.js
3118
- function Kt() {
3126
+ function qt() {
3119
3127
  return "line_" + Date.now() + "_" + Math.random().toString(36).substring(2, 9);
3120
3128
  }
3121
3129
  //#endregion
3122
3130
  //#region api/line/addLine.js
3123
- function qt(e) {
3131
+ function Jt(e) {
3124
3132
  let t = [], n = { ...e };
3125
3133
  if (!e.coordinates || !Array.isArray(e.coordinates)) t.push("[coordinates] 为必填项,且必须是数组类型");
3126
3134
  else if (e.coordinates.length < 2) t.push("[coordinates] 至少需要2个坐标点才能绘制线条");
@@ -3151,7 +3159,7 @@ function qt(e) {
3151
3159
  value: e.width,
3152
3160
  defaultValue: 1,
3153
3161
  min: .1
3154
- })), e.key === void 0 || e.key === null || e.key === "" ? n.key = Kt() : t.push(...g({
3162
+ })), e.key === void 0 || e.key === null || e.key === "" ? n.key = qt() : t.push(...g({
3155
3163
  normalized: n,
3156
3164
  field: "key",
3157
3165
  value: e.key
@@ -3191,7 +3199,7 @@ function qt(e) {
3191
3199
  }
3192
3200
  //#endregion
3193
3201
  //#region api/line/clearLine.js
3194
- function Jt(e) {
3202
+ function Yt(e) {
3195
3203
  let t = [], n = { ...e };
3196
3204
  if (!e.key || !Array.isArray(e.key)) t.push("[key] 为必填项,且必须是数组类型");
3197
3205
  else if (e.key.length === 0) t.push("[key] 至少需要一个线条标识");
@@ -3208,7 +3216,7 @@ function Jt(e) {
3208
3216
  }
3209
3217
  //#endregion
3210
3218
  //#region api/line/clearAllLine.js
3211
- function Yt(e) {
3219
+ function Xt(e) {
3212
3220
  return {
3213
3221
  errors: [],
3214
3222
  normalized: { ...e }
@@ -3216,14 +3224,14 @@ function Yt(e) {
3216
3224
  }
3217
3225
  //#endregion
3218
3226
  //#region api/line/lineApi.js
3219
- var Xt = r("line", {
3220
- addLine: qt,
3221
- clearLine: Jt,
3222
- clearAllLine: Yt
3227
+ var Zt = r("line", {
3228
+ addLine: Jt,
3229
+ clearLine: Yt,
3230
+ clearAllLine: Xt
3223
3231
  });
3224
3232
  //#endregion
3225
3233
  //#region api/level/switch.js
3226
- function Zt(e) {
3234
+ function Qt(e) {
3227
3235
  let t = [], n = { ...e };
3228
3236
  return t.push(...h({
3229
3237
  normalized: n,
@@ -3236,10 +3244,10 @@ function Zt(e) {
3236
3244
  }
3237
3245
  //#endregion
3238
3246
  //#region api/level/levelApi.js
3239
- var Qt = r("level", { switch: Zt });
3247
+ var $t = r("level", { switch: Qt });
3240
3248
  //#endregion
3241
3249
  //#region api/vtk/getInfo.js
3242
- function $t(e = {}) {
3250
+ function en(e = {}) {
3243
3251
  let t = [], n = { ...e };
3244
3252
  return t.push(...h({
3245
3253
  normalized: n,
@@ -3252,7 +3260,7 @@ function $t(e = {}) {
3252
3260
  }
3253
3261
  //#endregion
3254
3262
  //#region api/vtk/getFieldRange.js
3255
- function en(e = {}) {
3263
+ function tn(e = {}) {
3256
3264
  let t = [], n = { ...e };
3257
3265
  return t.push(...h({
3258
3266
  normalized: n,
@@ -3276,7 +3284,7 @@ function en(e = {}) {
3276
3284
  }
3277
3285
  //#endregion
3278
3286
  //#region api/vtk/helpers.js
3279
- function z(e, t, n, r, i) {
3287
+ function R(e, t, n, r, i) {
3280
3288
  let a = e[t];
3281
3289
  if (a == null || a === "") {
3282
3290
  i[t] = n;
@@ -3288,24 +3296,24 @@ function z(e, t, n, r, i) {
3288
3296
  }
3289
3297
  i[t] = a;
3290
3298
  }
3291
- function tn(e) {
3299
+ function nn(e) {
3292
3300
  let t = [];
3293
3301
  if (!e || !Array.isArray(e)) return t.push("[coordinates] 为必填项,且必须是数组类型"), t;
3294
3302
  if (e.length < 3) return t.push("[coordinates]包含:[x, y, z]"), t;
3295
3303
  let [n, r, i] = e;
3296
3304
  return d(n) || t.push("[coordinates[0]]必须是数字类型"), d(r) || t.push("[coordinates[1]]必须是数字类型"), d(i) || t.push("[coordinates[2]]必须是数字类型"), t;
3297
3305
  }
3298
- function nn(e, t, n) {
3306
+ function rn(e, t, n) {
3299
3307
  let r = e.coordinates;
3300
3308
  if (r == null || r === "" || Array.isArray(r) && r.length === 0) {
3301
3309
  n.coordinates = [];
3302
3310
  return;
3303
3311
  }
3304
- n.isUseUePos ? t.push(...tn(r)) : t.push(...f(r)), Array.isArray(r) && r.length >= 3 && (n.coordinates = r.slice(0, 3).map(Number));
3312
+ n.isUseUePos ? t.push(...nn(r)) : t.push(...f(r)), Array.isArray(r) && r.length >= 3 && (n.coordinates = r.slice(0, 3).map(Number));
3305
3313
  }
3306
3314
  //#endregion
3307
3315
  //#region api/vtk/create.js
3308
- function rn(e) {
3316
+ function an(e) {
3309
3317
  let t = [];
3310
3318
  if (!e || !Array.isArray(e)) t.push("[coordinates] 为必填项,且必须是数组类型");
3311
3319
  else if (e.length < 3) t.push("[coordinates]包含:[x, y, z]");
@@ -3315,7 +3323,7 @@ function rn(e) {
3315
3323
  }
3316
3324
  return t;
3317
3325
  }
3318
- function an(e = {}) {
3326
+ function on(e = {}) {
3319
3327
  let t = [], n = { ...e };
3320
3328
  return t.push(...h({
3321
3329
  normalized: n,
@@ -3325,7 +3333,7 @@ function an(e = {}) {
3325
3333
  normalized: n,
3326
3334
  field: "url",
3327
3335
  value: e.url
3328
- })), z(e, "isUseUePos", !1, t, n), n.isUseUePos ? (t.push(...rn(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({
3336
+ })), R(e, "isUseUePos", !1, t, n), n.isUseUePos ? (t.push(...an(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({
3329
3337
  normalized: n,
3330
3338
  field: "rotation",
3331
3339
  value: e.rotation,
@@ -3350,7 +3358,7 @@ function an(e = {}) {
3350
3358
  }
3351
3359
  //#endregion
3352
3360
  //#region api/vtk/close.js
3353
- function on(e = {}) {
3361
+ function sn(e = {}) {
3354
3362
  let t = [], n = { ...e };
3355
3363
  return t.push(...h({
3356
3364
  normalized: n,
@@ -3363,7 +3371,7 @@ function on(e = {}) {
3363
3371
  }
3364
3372
  //#endregion
3365
3373
  //#region api/vtk/allClose.js
3366
- function sn(e = {}) {
3374
+ function cn(e = {}) {
3367
3375
  return {
3368
3376
  errors: [],
3369
3377
  normalized: { ...e }
@@ -3371,7 +3379,7 @@ function sn(e = {}) {
3371
3379
  }
3372
3380
  //#endregion
3373
3381
  //#region api/vtk/clearCacheByUrl.js
3374
- function cn(e = {}) {
3382
+ function ln(e = {}) {
3375
3383
  let t = [], n = { ...e };
3376
3384
  return t.push(...h({
3377
3385
  normalized: n,
@@ -3384,15 +3392,15 @@ function cn(e = {}) {
3384
3392
  }
3385
3393
  //#endregion
3386
3394
  //#region api/vtk/clearAllCache.js
3387
- function ln(e = {}) {
3395
+ function un(e = {}) {
3388
3396
  return {
3389
3397
  errors: [],
3390
3398
  normalized: { ...e }
3391
3399
  };
3392
3400
  }
3393
3401
  //#endregion
3394
- //#region api/vtk/setField.js
3395
- function un(e = {}) {
3402
+ //#region api/vtk/setDisplacementScale.js
3403
+ function dn(e = {}) {
3396
3404
  let t = [], n = { ...e };
3397
3405
  return t.push(...h({
3398
3406
  normalized: n,
@@ -3402,7 +3410,13 @@ function un(e = {}) {
3402
3410
  normalized: n,
3403
3411
  field: "fieldName",
3404
3412
  value: e.fieldName
3405
- })), t.push(..._({
3413
+ })), t.push(...m({
3414
+ normalized: n,
3415
+ field: "scale",
3416
+ value: e.scale,
3417
+ defaultValue: 1,
3418
+ min: 1
3419
+ })), typeof n.scale == "number" && n.scale <= 0 && t.push("[scale]取值必须大于0"), t.push(..._({
3406
3420
  normalized: n,
3407
3421
  field: "indexList",
3408
3422
  value: e.indexList,
@@ -3415,32 +3429,62 @@ function un(e = {}) {
3415
3429
  };
3416
3430
  }
3417
3431
  //#endregion
3418
- //#region api/vtk/setMode.js
3419
- function dn(e = {}) {
3432
+ //#region api/vtk/closeDisplacementScale.js
3433
+ function fn(e = {}) {
3420
3434
  let t = [], n = { ...e };
3421
3435
  return t.push(...h({
3422
3436
  normalized: n,
3423
3437
  field: "id",
3424
3438
  value: e.id
3425
- })), t.push(...b({
3439
+ })), {
3440
+ errors: t,
3441
+ normalized: n
3442
+ };
3443
+ }
3444
+ //#endregion
3445
+ //#region api/vtk/onMouseClick.js
3446
+ function pn(e = {}) {
3447
+ let t = [], n = { ...e };
3448
+ return t.push(...h({
3426
3449
  normalized: n,
3427
- field: "mode",
3428
- value: e.mode,
3429
- defaultValue: "Heatmap",
3430
- type: "string",
3431
- list: [
3432
- "Heatmap",
3433
- "Wireframe",
3434
- "Mixed"
3435
- ]
3450
+ field: "id",
3451
+ value: e.id
3436
3452
  })), {
3437
3453
  errors: t,
3438
3454
  normalized: n
3439
3455
  };
3440
3456
  }
3441
3457
  //#endregion
3442
- //#region api/vtk/setCellOpacity.js
3443
- function fn(e = {}) {
3458
+ //#region api/vtk/offMouseClick.js
3459
+ function mn(e = {}) {
3460
+ let t = [], n = { ...e };
3461
+ return t.push(...h({
3462
+ normalized: n,
3463
+ field: "id",
3464
+ value: e.id
3465
+ })), {
3466
+ errors: t,
3467
+ normalized: n
3468
+ };
3469
+ }
3470
+ //#endregion
3471
+ //#region api/vtk/vtkSingleApi.js
3472
+ var hn = {
3473
+ getInfo: en,
3474
+ getFieldRange: tn,
3475
+ create: on,
3476
+ close: sn,
3477
+ allClose: cn,
3478
+ clearCacheByUrl: ln,
3479
+ clearAllCache: un,
3480
+ setDisplacementScale: dn,
3481
+ closeDisplacementScale: fn,
3482
+ onMouseClick: pn,
3483
+ offMouseClick: mn
3484
+ };
3485
+ //#endregion
3486
+ //#region api/vtk/setField.js
3487
+ function gn(e = {}) {
3444
3488
  let t = [], n = { ...e };
3445
3489
  return t.push(...h({
3446
3490
  normalized: n,
@@ -3452,57 +3496,52 @@ function fn(e = {}) {
3452
3496
  value: e.fieldName
3453
3497
  })), t.push(..._({
3454
3498
  normalized: n,
3455
- field: "cellTypes",
3456
- value: e.cellTypes,
3457
- required: !0,
3458
- minLength: 1
3459
- })), Array.isArray(n.cellTypes) && (n.cellTypes.forEach((e, n) => {
3460
- Number.isFinite(Number(e)) || t.push(`[cellTypes[${n}]]必须是数字`);
3461
- }), n.cellTypes = n.cellTypes.map(Number)), t.push(...m({
3462
- normalized: n,
3463
- field: "value",
3464
- value: e.value,
3465
- defaultValue: 0,
3466
- min: 0,
3467
- max: 1
3468
- })), {
3499
+ field: "indexList",
3500
+ value: e.indexList,
3501
+ defaultValue: []
3502
+ })), Array.isArray(n.indexList) && (n.indexList.forEach((e, n) => {
3503
+ Number.isFinite(Number(e)) || t.push(`[indexList[${n}]]必须是数字`);
3504
+ }), n.indexList = n.indexList.map(Number)), {
3469
3505
  errors: t,
3470
3506
  normalized: n
3471
3507
  };
3472
3508
  }
3473
3509
  //#endregion
3474
- //#region api/vtk/setColorRange.js
3475
- function pn(e = {}) {
3510
+ //#region api/vtk/setMode.js
3511
+ function _n(e = {}) {
3476
3512
  let t = [], n = { ...e };
3477
- if (t.push(...h({
3513
+ return t.push(...h({
3478
3514
  normalized: n,
3479
3515
  field: "id",
3480
3516
  value: e.id
3481
- })), e.list === void 0 || e.list === null || e.list === "") n.list = [0, 1];
3482
- else if (!Array.isArray(e.list) || e.list.length < 2) t.push("[list]必须是包含2个元素的数组");
3483
- else {
3484
- let r = e.list.slice(0, 2).map(Number);
3485
- if (!r.every((e) => Number.isFinite(e))) t.push("[list]数组元素必须是数字");
3486
- else {
3487
- let e = !0;
3488
- r[0] < 0 && (t.push("[list[0]]取值不能小于0"), e = !1), r[1] > 1 && (t.push("[list[1]]取值不能大于1"), e = !1), e && (n.list = r);
3489
- }
3490
- }
3491
- return {
3517
+ })), t.push(...b({
3518
+ normalized: n,
3519
+ field: "mode",
3520
+ value: e.mode,
3521
+ defaultValue: "Heatmap",
3522
+ type: "string",
3523
+ list: [
3524
+ "Heatmap",
3525
+ "Wireframe",
3526
+ "Mixed",
3527
+ "Contour",
3528
+ "ContourMixed"
3529
+ ]
3530
+ })), {
3492
3531
  errors: t,
3493
3532
  normalized: n
3494
3533
  };
3495
3534
  }
3496
3535
  //#endregion
3497
3536
  //#region api/vtk/setColorBar.js
3498
- var mn = {
3537
+ var vn = {
3499
3538
  0: "#0000FFFF",
3500
3539
  "0.25": "#00FFFFFF",
3501
3540
  "0.5": "#00FF00FF",
3502
3541
  "0.75": "#FFFF00FF",
3503
3542
  1: "#FF0000FF"
3504
3543
  };
3505
- function hn(e = {}) {
3544
+ function yn(e = {}) {
3506
3545
  let t = [], n = { ...e };
3507
3546
  t.push(...h({
3508
3547
  normalized: n,
@@ -3510,7 +3549,7 @@ function hn(e = {}) {
3510
3549
  value: e.id
3511
3550
  }));
3512
3551
  let r = e.colorBar;
3513
- if (r == null || r === "") n.colorBar = { ...mn };
3552
+ if (r == null || r === "") n.colorBar = { ...vn };
3514
3553
  else if (typeof r != "object" || Array.isArray(r)) t.push("[colorBar]必须是对象类型");
3515
3554
  else {
3516
3555
  let e = Object.keys(r);
@@ -3548,7 +3587,7 @@ function hn(e = {}) {
3548
3587
  }
3549
3588
  //#endregion
3550
3589
  //#region api/vtk/setOpacity.js
3551
- function gn(e = {}) {
3590
+ function bn(e = {}) {
3552
3591
  let t = [], n = { ...e };
3553
3592
  return t.push(...h({
3554
3593
  normalized: n,
@@ -3567,8 +3606,8 @@ function gn(e = {}) {
3567
3606
  };
3568
3607
  }
3569
3608
  //#endregion
3570
- //#region api/vtk/setDisplacementScale.js
3571
- function _n(e = {}) {
3609
+ //#region api/vtk/setCellOpacity.js
3610
+ function xn(e = {}) {
3572
3611
  let t = [], n = { ...e };
3573
3612
  return t.push(...h({
3574
3613
  normalized: n,
@@ -3578,66 +3617,143 @@ function _n(e = {}) {
3578
3617
  normalized: n,
3579
3618
  field: "fieldName",
3580
3619
  value: e.fieldName
3581
- })), t.push(...m({
3620
+ })), t.push(..._({
3582
3621
  normalized: n,
3583
- field: "scale",
3584
- value: e.scale,
3585
- defaultValue: 1,
3586
- min: 1
3587
- })), typeof n.scale == "number" && n.scale <= 0 && t.push("[scale]取值必须大于0"), t.push(..._({
3622
+ field: "cellTypes",
3623
+ value: e.cellTypes,
3624
+ required: !0,
3625
+ minLength: 1
3626
+ })), Array.isArray(n.cellTypes) && (n.cellTypes.forEach((e, n) => {
3627
+ Number.isFinite(Number(e)) || t.push(`[cellTypes[${n}]]必须是数字`);
3628
+ }), n.cellTypes = n.cellTypes.map(Number)), t.push(...m({
3588
3629
  normalized: n,
3589
- field: "indexList",
3590
- value: e.indexList,
3591
- defaultValue: []
3592
- })), Array.isArray(n.indexList) && (n.indexList.forEach((e, n) => {
3593
- Number.isFinite(Number(e)) || t.push(`[indexList[${n}]]必须是数字`);
3594
- }), n.indexList = n.indexList.map(Number)), {
3630
+ field: "value",
3631
+ value: e.value,
3632
+ defaultValue: 0,
3633
+ min: 0,
3634
+ max: 1
3635
+ })), {
3595
3636
  errors: t,
3596
3637
  normalized: n
3597
3638
  };
3598
3639
  }
3599
3640
  //#endregion
3600
- //#region api/vtk/closeDisplacementScale.js
3601
- function vn(e = {}) {
3641
+ //#region api/vtk/setColorRange.js
3642
+ function Sn(e = {}) {
3602
3643
  let t = [], n = { ...e };
3603
- return t.push(...h({
3644
+ if (t.push(...h({
3604
3645
  normalized: n,
3605
3646
  field: "id",
3606
3647
  value: e.id
3607
- })), {
3648
+ })), e.list === void 0 || e.list === null || e.list === "") n.list = [0, 1];
3649
+ else if (!Array.isArray(e.list) || e.list.length < 2) t.push("[list]必须是包含2个元素的数组");
3650
+ else {
3651
+ let r = e.list.slice(0, 2).map(Number);
3652
+ if (!r.every((e) => Number.isFinite(e))) t.push("[list]数组元素必须是数字");
3653
+ else {
3654
+ let e = !0;
3655
+ r[0] < 0 && (t.push("[list[0]]取值不能小于0"), e = !1), r[1] > 1 && (t.push("[list[1]]取值不能大于1"), e = !1), e && (n.list = r);
3656
+ }
3657
+ }
3658
+ return {
3608
3659
  errors: t,
3609
3660
  normalized: n
3610
3661
  };
3611
3662
  }
3612
3663
  //#endregion
3613
- //#region api/vtk/onMouseClick.js
3614
- function yn(e = {}) {
3664
+ //#region api/vtk/setClipPlane.js
3665
+ function z(e, t, n, r, i) {
3666
+ let a = e[t];
3667
+ if (a == null || a === "" || Array.isArray(a) && a.length === 0) {
3668
+ i[t] = [...n];
3669
+ return;
3670
+ }
3671
+ if (!Array.isArray(a) || a.length < 3) {
3672
+ r.push(`[${t}]必须是包含3个元素的数组`);
3673
+ return;
3674
+ }
3675
+ let o = a.slice(0, 3).map(Number);
3676
+ if (!o.every((e) => Number.isFinite(e))) {
3677
+ r.push(`[${t}]数组元素必须是数字`);
3678
+ return;
3679
+ }
3680
+ i[t] = o;
3681
+ }
3682
+ function Cn(e = {}) {
3615
3683
  let t = [], n = { ...e };
3616
3684
  return t.push(...h({
3617
3685
  normalized: n,
3618
3686
  field: "id",
3619
3687
  value: e.id
3620
- })), {
3688
+ })), R(e, "enable", !0, t, n), z(e, "planePoint", [
3689
+ 0,
3690
+ 0,
3691
+ 0
3692
+ ], t, n), z(e, "planeNormal", [
3693
+ 0,
3694
+ 0,
3695
+ -1
3696
+ ], t, n), {
3621
3697
  errors: t,
3622
3698
  normalized: n
3623
3699
  };
3624
3700
  }
3625
3701
  //#endregion
3626
- //#region api/vtk/offMouseClick.js
3627
- function bn(e = {}) {
3702
+ //#region api/vtk/setClipPlaneByRatio.js
3703
+ function wn(e, t, n, r, i) {
3704
+ let a = e[t];
3705
+ if (a == null || a === "" || Array.isArray(a) && a.length === 0) {
3706
+ i[t] = [...n];
3707
+ return;
3708
+ }
3709
+ if (!Array.isArray(a) || a.length < 3) {
3710
+ r.push(`[${t}]必须是包含3个元素的数组`);
3711
+ return;
3712
+ }
3713
+ let o = a.slice(0, 3).map(Number);
3714
+ if (!o.every((e) => Number.isFinite(e))) {
3715
+ r.push(`[${t}]数组元素必须是数字`);
3716
+ return;
3717
+ }
3718
+ i[t] = o;
3719
+ }
3720
+ function Tn(e = {}) {
3628
3721
  let t = [], n = { ...e };
3629
3722
  return t.push(...h({
3630
3723
  normalized: n,
3631
3724
  field: "id",
3632
3725
  value: e.id
3633
- })), {
3726
+ })), R(e, "enable", !0, t, n), t.push(...m({
3727
+ normalized: n,
3728
+ field: "clipRatio",
3729
+ value: e.clipRatio,
3730
+ defaultValue: .5,
3731
+ min: 0,
3732
+ max: 1
3733
+ })), wn(e, "planeNormal", [
3734
+ 0,
3735
+ 0,
3736
+ -1
3737
+ ], t, n), {
3634
3738
  errors: t,
3635
3739
  normalized: n
3636
3740
  };
3637
3741
  }
3638
3742
  //#endregion
3743
+ //#region api/vtk/vtkCommonApi.js
3744
+ var En = {
3745
+ setField: gn,
3746
+ setMode: _n,
3747
+ setColorBar: yn,
3748
+ setOpacity: bn,
3749
+ setCellOpacity: xn,
3750
+ setColorRange: Sn,
3751
+ setClipPlane: Cn,
3752
+ setClipPlaneByRatio: Tn
3753
+ };
3754
+ //#endregion
3639
3755
  //#region api/vtk/playSequence.js
3640
- function xn(e = {}) {
3756
+ function Dn(e = {}) {
3641
3757
  let t = [], n = { ...e };
3642
3758
  t.push(...h({
3643
3759
  normalized: n,
@@ -3671,7 +3787,7 @@ function xn(e = {}) {
3671
3787
  value: e.playbackSpeed,
3672
3788
  defaultValue: 1,
3673
3789
  min: 0
3674
- })), typeof n.playbackSpeed == "number" && n.playbackSpeed <= 0 && t.push("[playbackSpeed]取值必须大于0"), z(e, "isUseUePos", !1, t, n), nn(e, t, n), t.push(...v({
3790
+ })), typeof n.playbackSpeed == "number" && n.playbackSpeed <= 0 && t.push("[playbackSpeed]取值必须大于0"), R(e, "isUseUePos", !1, t, n), rn(e, t, n), t.push(...v({
3675
3791
  normalized: n,
3676
3792
  field: "rotation",
3677
3793
  value: e.rotation,
@@ -3696,7 +3812,7 @@ function xn(e = {}) {
3696
3812
  }
3697
3813
  //#endregion
3698
3814
  //#region api/vtk/pauseSequence.js
3699
- function Sn(e = {}) {
3815
+ function On(e = {}) {
3700
3816
  let t = [], n = { ...e };
3701
3817
  return t.push(...h({
3702
3818
  normalized: n,
@@ -3709,7 +3825,7 @@ function Sn(e = {}) {
3709
3825
  }
3710
3826
  //#endregion
3711
3827
  //#region api/vtk/stopSequence.js
3712
- function Cn(e = {}) {
3828
+ function kn(e = {}) {
3713
3829
  let t = [], n = { ...e };
3714
3830
  return t.push(...h({
3715
3831
  normalized: n,
@@ -3722,7 +3838,7 @@ function Cn(e = {}) {
3722
3838
  }
3723
3839
  //#endregion
3724
3840
  //#region api/vtk/setFrame.js
3725
- function wn(e = {}) {
3841
+ function An(e = {}) {
3726
3842
  let t = [], n = { ...e };
3727
3843
  return t.push(...h({
3728
3844
  normalized: n,
@@ -3741,7 +3857,7 @@ function wn(e = {}) {
3741
3857
  }
3742
3858
  //#endregion
3743
3859
  //#region api/vtk/setPlaybackSpeed.js
3744
- function Tn(e = {}) {
3860
+ function jn(e = {}) {
3745
3861
  let t = [], n = { ...e };
3746
3862
  return t.push(...h({
3747
3863
  normalized: n,
@@ -3760,57 +3876,44 @@ function Tn(e = {}) {
3760
3876
  }
3761
3877
  //#endregion
3762
3878
  //#region api/vtk/clearSequence.js
3763
- function En(e = {}) {
3879
+ function Mn(e = {}) {
3764
3880
  let t = [], n = { ...e };
3765
3881
  return t.push(...h({
3766
3882
  normalized: n,
3767
3883
  field: "id",
3768
3884
  value: e.id
3769
- })), z(e, "isClearCache", !0, t, n), {
3885
+ })), R(e, "isClearCache", !0, t, n), {
3770
3886
  errors: t,
3771
3887
  normalized: n
3772
3888
  };
3773
3889
  }
3774
3890
  //#endregion
3775
3891
  //#region api/vtk/clearAllSequence.js
3776
- function Dn(e = {}) {
3892
+ function Nn(e = {}) {
3777
3893
  let t = [], n = { ...e };
3778
- return z(e, "isClearCache", !0, t, n), {
3894
+ return R(e, "isClearCache", !0, t, n), {
3779
3895
  errors: t,
3780
3896
  normalized: n
3781
3897
  };
3782
3898
  }
3783
3899
  //#endregion
3784
- //#region api/vtk/vtkApi.js
3785
- var On = r("VTK", {
3786
- getInfo: $t,
3787
- getFieldRange: en,
3788
- create: an,
3789
- close: on,
3790
- allClose: sn,
3791
- clearCacheByUrl: cn,
3792
- clearAllCache: ln,
3793
- setField: un,
3794
- setMode: dn,
3795
- setCellOpacity: fn,
3796
- setColorRange: pn,
3797
- setColorBar: hn,
3798
- setOpacity: gn,
3799
- setDisplacementScale: _n,
3800
- closeDisplacementScale: vn,
3801
- onMouseClick: yn,
3802
- offMouseClick: bn,
3803
- playSequence: xn,
3804
- pauseSequence: Sn,
3805
- stopSequence: Cn,
3806
- setFrame: wn,
3807
- setPlaybackSpeed: Tn,
3808
- clearSequence: En,
3809
- clearAllSequence: Dn
3900
+ //#region api/vtk/vtkAnimationApi.js
3901
+ var Pn = {
3902
+ playSequence: Dn,
3903
+ pauseSequence: On,
3904
+ stopSequence: kn,
3905
+ setFrame: An,
3906
+ setPlaybackSpeed: jn,
3907
+ clearSequence: Mn,
3908
+ clearAllSequence: Nn
3909
+ }, Fn = r("VTK", {
3910
+ ...hn,
3911
+ ...En,
3912
+ ...Pn
3810
3913
  }, { getOptions: () => ({ timeout: 0 }) });
3811
3914
  //#endregion
3812
3915
  //#region api/videoFusion/open.js
3813
- function kn(e, t) {
3916
+ function In(e, t) {
3814
3917
  if (t === "Geographic") return f(e);
3815
3918
  let n = [];
3816
3919
  if (!e || !Array.isArray(e)) n.push("[coordinates] 为必填项,且必须是数组类型");
@@ -3821,7 +3924,7 @@ function kn(e, t) {
3821
3924
  }
3822
3925
  return n;
3823
3926
  }
3824
- function An(e = {}) {
3927
+ function Ln(e = {}) {
3825
3928
  let t = { ...e }, n = [];
3826
3929
  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({
3827
3930
  normalized: t,
@@ -3830,7 +3933,7 @@ function An(e = {}) {
3830
3933
  defaultValue: "Geographic",
3831
3934
  type: "string",
3832
3935
  list: ["UnrealWorld", "Geographic"]
3833
- })), n.push(...kn(e.coordinates, t.poseMode)), n.push(...h({
3936
+ })), n.push(...In(e.coordinates, t.poseMode)), n.push(...h({
3834
3937
  normalized: t,
3835
3938
  field: "url",
3836
3939
  value: e.url
@@ -3904,7 +4007,7 @@ function An(e = {}) {
3904
4007
  }
3905
4008
  //#endregion
3906
4009
  //#region api/videoFusion/close.js
3907
- function jn(e = {}) {
4010
+ function Rn(e = {}) {
3908
4011
  let t = { ...e };
3909
4012
  return {
3910
4013
  errors: [...h({
@@ -3917,7 +4020,7 @@ function jn(e = {}) {
3917
4020
  }
3918
4021
  //#endregion
3919
4022
  //#region api/videoFusion/closeAll.js
3920
- function Mn(e = {}) {
4023
+ function zn(e = {}) {
3921
4024
  return {
3922
4025
  errors: [],
3923
4026
  normalized: { ...e }
@@ -3925,7 +4028,7 @@ function Mn(e = {}) {
3925
4028
  }
3926
4029
  //#endregion
3927
4030
  //#region api/videoFusion/pause.js
3928
- function Nn(e = {}) {
4031
+ function Bn(e = {}) {
3929
4032
  let t = { ...e };
3930
4033
  return {
3931
4034
  errors: [...h({
@@ -3938,7 +4041,7 @@ function Nn(e = {}) {
3938
4041
  }
3939
4042
  //#endregion
3940
4043
  //#region api/videoFusion/resume.js
3941
- function Pn(e = {}) {
4044
+ function Vn(e = {}) {
3942
4045
  let t = { ...e };
3943
4046
  return {
3944
4047
  errors: [...h({
@@ -3951,7 +4054,7 @@ function Pn(e = {}) {
3951
4054
  }
3952
4055
  //#endregion
3953
4056
  //#region api/videoFusion/setPlaybackRate.js
3954
- function Fn(e = {}) {
4057
+ function Hn(e = {}) {
3955
4058
  let t = { ...e }, n = [];
3956
4059
  return n.push(...h({
3957
4060
  normalized: t,
@@ -3970,7 +4073,7 @@ function Fn(e = {}) {
3970
4073
  }
3971
4074
  //#endregion
3972
4075
  //#region api/videoFusion/seekToTime.js
3973
- function In(e = {}) {
4076
+ function Un(e = {}) {
3974
4077
  let t = { ...e }, n = [];
3975
4078
  return n.push(...h({
3976
4079
  normalized: t,
@@ -3989,14 +4092,14 @@ function In(e = {}) {
3989
4092
  }
3990
4093
  //#endregion
3991
4094
  //#region api/videoFusion/videoFusionApi.js
3992
- var Ln = r("videoFusion", {
3993
- open: An,
3994
- close: jn,
3995
- closeAll: Mn,
3996
- pause: Nn,
3997
- resume: Pn,
3998
- setPlaybackRate: Fn,
3999
- seekToTime: In
4095
+ var Wn = r("videoFusion", {
4096
+ open: Ln,
4097
+ close: Rn,
4098
+ closeAll: zn,
4099
+ pause: Bn,
4100
+ resume: Vn,
4101
+ setPlaybackRate: Hn,
4102
+ seekToTime: Un
4000
4103
  });
4001
4104
  //#endregion
4002
4105
  //#region api/other/otherApi.js
@@ -4015,20 +4118,20 @@ function B(e) {
4015
4118
  }
4016
4119
  //#endregion
4017
4120
  //#region api/index.js
4018
- var Rn = {
4121
+ var Gn = {
4019
4122
  camera: ue,
4020
4123
  cesium: Se,
4021
- marker: qe,
4022
- floodPeak: nt,
4023
- animation: ut,
4024
- hydrodynamicForce: _t,
4025
- sceneModel: Lt,
4026
- atmosphericEffects: zt,
4027
- tool: Gt,
4028
- line: Xt,
4029
- level: Qt,
4030
- VTK: On,
4031
- videoFusion: Ln,
4124
+ marker: Je,
4125
+ floodPeak: rt,
4126
+ animation: dt,
4127
+ hydrodynamicForce: vt,
4128
+ sceneModel: Rt,
4129
+ atmosphericEffects: Vt,
4130
+ tool: Kt,
4131
+ line: Zt,
4132
+ level: $t,
4133
+ VTK: Fn,
4134
+ videoFusion: Wn,
4032
4135
  oneDimensionalHydrodynamics: B("oneDimensionalHydrodynamics"),
4033
4136
  customDomain: B("customDomain"),
4034
4137
  arrow: B("arrow"),
@@ -4037,10 +4140,10 @@ var Rn = {
4037
4140
  }, V = class {
4038
4141
  constructor(e) {
4039
4142
  this._apis = {};
4040
- for (let [t, n] of Object.entries(Rn)) this._apis[t] = new n(e), this[t] = (e, n, r) => this._apis[t]._handleSend(e, n, r);
4143
+ for (let [t, n] of Object.entries(Gn)) this._apis[t] = new n(e), this[t] = (e, n, r) => this._apis[t]._handleSend(e, n, r);
4041
4144
  }
4042
4145
  }, H = !0;
4043
- function zn(e) {
4146
+ function Kn(e) {
4044
4147
  H = !!e;
4045
4148
  }
4046
4149
  function U(...e) {
@@ -4068,7 +4171,7 @@ function K(e) {
4068
4171
  return e == null ? "" : String(e);
4069
4172
  }).filter((e) => e !== "");
4070
4173
  }
4071
- function Bn(e, t, n) {
4174
+ function qn(e, t, n) {
4072
4175
  return {
4073
4176
  success: !0,
4074
4177
  message: e,
@@ -4198,7 +4301,7 @@ var Q = {
4198
4301
  };
4199
4302
  return U("消息下发成功:", s), this.transport.sendTextToDataChannel(JSON.stringify(s)), o.then((e) => {
4200
4303
  if (e && e.command && e.command === t) switch (e.status) {
4201
- case "info": return Bn("操作执行成功", e.data, t);
4304
+ case "info": return qn("操作执行成功", e.data, t);
4202
4305
  case "warn": return J(e.message, e.data, t);
4203
4306
  default: return q(e.message, e.data, t);
4204
4307
  }
@@ -4269,7 +4372,7 @@ var Q = {
4269
4372
  return e ? Array.isArray(e) ? (e.forEach((e) => this._executeCallback(e, t, n)), !0) : this._executeCallback(e, t, n) : !1;
4270
4373
  }
4271
4374
  };
4272
- function Vn(e) {
4375
+ function Jn(e) {
4273
4376
  if (!e) return "";
4274
4377
  try {
4275
4378
  return JSON.parse(String(e).trim())?.message || "";
@@ -4277,7 +4380,7 @@ function Vn(e) {
4277
4380
  return "";
4278
4381
  }
4279
4382
  }
4280
- function Hn(t = {}) {
4383
+ function Yn(t = {}) {
4281
4384
  let { sendText: n, commandTimeout: r = 3e3, onSceneInit: i } = t;
4282
4385
  if (typeof n != "function") throw Error("createGameSession: sendText 必须是函数");
4283
4386
  let a = null, o = !1, s = new $({
@@ -4289,7 +4392,7 @@ function Hn(t = {}) {
4289
4392
  }
4290
4393
  }, { timeout: r }), c = new V(s);
4291
4394
  function l(e, t) {
4292
- e && a && a(e), !o && Vn(e) === "The level has been initialized" && (o = !0, i ? i(t === void 0 ? e : t) : U("场景初始化加载成功", t === void 0 ? e : t));
4395
+ e && a && a(e), !o && Jn(e) === "The level has been initialized" && (o = !0, i ? i(t === void 0 ? e : t) : U("场景初始化加载成功", t === void 0 ? e : t));
4293
4396
  }
4294
4397
  return U(`插件初始化成功 [web3dlink@${e}]`), {
4295
4398
  gameAPI: c,
@@ -4300,7 +4403,7 @@ function Hn(t = {}) {
4300
4403
  }
4301
4404
  };
4302
4405
  }
4303
- function Un(e, t, n) {
4406
+ function Xn(e, t, n) {
4304
4407
  if (!(!e || !n)) {
4305
4408
  if (typeof e.off == "function") {
4306
4409
  e.off(t, n);
@@ -4309,10 +4412,10 @@ function Un(e, t, n) {
4309
4412
  typeof e.removeListener == "function" && e.removeListener(t, n);
4310
4413
  }
4311
4414
  }
4312
- function Wn(e = []) {
4313
- for (let { target: t, event: n, handler: r } of e) Un(t, n, r);
4415
+ function Zn(e = []) {
4416
+ for (let { target: t, event: n, handler: r } of e) Xn(t, n, r);
4314
4417
  }
4315
4418
  //#endregion
4316
- export { G as a, e as c, U as i, Wn as n, zn as o, $ as r, V as s, Hn as t };
4419
+ export { G as a, e as c, U as i, Zn as n, Kn as o, $ as r, V as s, Yn as t };
4317
4420
 
4318
- //# sourceMappingURL=createGameSession-BVx3-mqj.js.map
4421
+ //# sourceMappingURL=createGameSession-B7F0mf8j.js.map