@hztxi/cesium-engine 25.0.2 → 25.0.3
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/Build/ThirdParty/Workers/zip-web-worker.js +761 -520
- package/Build/Workers/chunk-2KZP32NE.js +3201 -0
- package/Build/Workers/chunk-2P5SGQUU.js +44 -0
- package/Build/Workers/chunk-2PFSIZOR.js +959 -0
- package/Build/Workers/chunk-2RC5GQMH.js +82 -0
- package/Build/Workers/chunk-2TM5FET3.js +241 -0
- package/Build/Workers/chunk-2ZYMQXBB.js +519 -0
- package/Build/Workers/chunk-37IVAHRF.js +3201 -0
- package/Build/Workers/chunk-3CSWK42O.js +3648 -0
- package/Build/Workers/chunk-3GDVUAIX.js +1287 -0
- package/Build/Workers/chunk-3L5NZHVW.js +288 -0
- package/Build/Workers/chunk-3LQDIJFX.js +2719 -0
- package/Build/Workers/chunk-3WIDW5QO.js +1800 -0
- package/Build/Workers/chunk-4L4ZXXL7.js +57 -0
- package/Build/Workers/chunk-4QK5RZ5I.js +171 -0
- package/Build/Workers/chunk-4RWSLDVO.js +198 -0
- package/Build/Workers/chunk-53HFLKT5.js +76 -0
- package/Build/Workers/chunk-5DJBLQEH.js +56 -0
- package/Build/Workers/chunk-5FNZGB4U.js +368 -0
- package/Build/Workers/chunk-5KOCUIKQ.js +476 -0
- package/Build/Workers/chunk-5PK42ITB.js +219 -0
- package/Build/Workers/chunk-5SGB3BKM.js +73 -0
- package/Build/Workers/chunk-5ZWRS2E6.js +280 -0
- package/Build/Workers/chunk-6FU5LWYG.js +352 -0
- package/Build/Workers/chunk-6IYEGXEW.js +1344 -0
- package/Build/Workers/chunk-6KWWDFT4.js +278 -0
- package/Build/Workers/chunk-73DJHI53.js +398 -0
- package/Build/Workers/chunk-73OT3YBQ.js +1054 -0
- package/Build/Workers/chunk-73T2E2OA.js +454 -0
- package/Build/Workers/chunk-752QDGCS.js +778 -0
- package/Build/Workers/chunk-76HD3HYN.js +2342 -0
- package/Build/Workers/chunk-7I4AKIEV.js +58 -0
- package/Build/Workers/chunk-7ZYD7GL6.js +414 -0
- package/Build/Workers/chunk-ALJYMECF.js +973 -0
- package/Build/Workers/chunk-ANGZAKVP.js +257 -0
- package/Build/Workers/chunk-ATT5UEK6.js +97 -0
- package/Build/Workers/chunk-AW3UT5RP.js +97 -0
- package/Build/Workers/chunk-AZGPL6BR.js +38 -0
- package/Build/Workers/chunk-B7SMDRPA.js +476 -0
- package/Build/Workers/chunk-BADQ2G5E.js +837 -0
- package/Build/Workers/chunk-BAPOWX62.js +368 -0
- package/Build/Workers/chunk-BE5ULV4I.js +1800 -0
- package/Build/Workers/chunk-BII4UB3C.js +476 -0
- package/Build/Workers/chunk-BPL3HT2R.js +837 -0
- package/Build/Workers/chunk-BVAMP4M3.js +101 -0
- package/Build/Workers/chunk-BVFS5LSK.js +1067 -0
- package/Build/Workers/chunk-CKWUU4JK.js +138 -0
- package/Build/Workers/chunk-CMMHWVUF.js +2719 -0
- package/Build/Workers/chunk-CQNFIAZU.js +56 -0
- package/Build/Workers/chunk-CSUBL77L.js +140 -0
- package/Build/Workers/chunk-DHCQSFRN.js +301 -0
- package/Build/Workers/chunk-DKFSOFKR.js +241 -0
- package/Build/Workers/chunk-DLHFYNG6.js +52 -0
- package/Build/Workers/chunk-ETABYWY4.js +973 -0
- package/Build/Workers/chunk-EYVCQUVQ.js +1067 -0
- package/Build/Workers/chunk-FE7VHPNW.js +102 -0
- package/Build/Workers/chunk-FFEVCOBU.js +387 -0
- package/Build/Workers/chunk-FWABE4BL.js +305 -0
- package/Build/Workers/chunk-GC24BPCQ.js +305 -0
- package/Build/Workers/chunk-GCTHMF35.js +387 -0
- package/Build/Workers/chunk-GDHSPLWC.js +9237 -0
- package/Build/Workers/chunk-GGK7SA4Y.js +414 -0
- package/Build/Workers/chunk-GGVG7G5Z.js +1483 -0
- package/Build/Workers/chunk-GL7W3I3A.js +959 -0
- package/Build/Workers/chunk-H52M4HMP.js +9230 -0
- package/Build/Workers/chunk-H7QGY7HB.js +1054 -0
- package/Build/Workers/chunk-H7ZXQIV2.js +398 -0
- package/Build/Workers/chunk-HBJKIDKK.js +76 -0
- package/Build/Workers/chunk-HERVRBJW.js +76 -0
- package/Build/Workers/chunk-HFMS7MXO.js +511 -0
- package/Build/Workers/chunk-HH6PJ22V.js +455 -0
- package/Build/Workers/chunk-HQ2PXPP7.js +102 -0
- package/Build/Workers/chunk-HTO45L3X.js +454 -0
- package/Build/Workers/chunk-HW5TLMPQ.js +57 -0
- package/Build/Workers/chunk-IC3HVJBG.js +301 -0
- package/Build/Workers/chunk-IEKP7CEH.js +387 -0
- package/Build/Workers/chunk-ILUFUAF3.js +1992 -0
- package/Build/Workers/chunk-ILX5N5QR.js +2342 -0
- package/Build/Workers/chunk-IRSD4EJW.js +630 -0
- package/Build/Workers/chunk-J3A3XMTG.js +672 -0
- package/Build/Workers/chunk-JK54NBBO.js +778 -0
- package/Build/Workers/chunk-JSFKPEFK.js +352 -0
- package/Build/Workers/chunk-JTSSQ3RH.js +147 -0
- package/Build/Workers/chunk-JZVZDHC2.js +288 -0
- package/Build/Workers/chunk-K724BR5O.js +455 -0
- package/Build/Workers/chunk-KJOVSN7J.js +56 -0
- package/Build/Workers/chunk-KKEMKV5G.js +44 -0
- package/Build/Workers/chunk-KXNXQXP5.js +682 -0
- package/Build/Workers/chunk-KYXZ3XTC.js +497 -0
- package/Build/Workers/chunk-L65LWRUE.js +3648 -0
- package/Build/Workers/chunk-LAN4XQR6.js +162 -0
- package/Build/Workers/chunk-LVO4J36T.js +1800 -0
- package/Build/Workers/chunk-LY5KUQ2L.js +57 -0
- package/Build/Workers/chunk-M2XWG5VC.js +124 -0
- package/Build/Workers/chunk-MUPWJMPP.js +44 -0
- package/Build/Workers/chunk-MVBEMXN4.js +163 -0
- package/Build/Workers/chunk-MVQYVX6D.js +511 -0
- package/Build/Workers/chunk-N4RF6TUL.js +301 -0
- package/Build/Workers/chunk-NCH4P66E.js +219 -0
- package/Build/Workers/chunk-NCL22ZUX.js +56 -0
- package/Build/Workers/chunk-NNJDVVEG.js +3794 -0
- package/Build/Workers/chunk-NYQSZLRF.js +78 -0
- package/Build/Workers/chunk-O2V4I3I5.js +682 -0
- package/Build/Workers/chunk-O453S45W.js +1483 -0
- package/Build/Workers/chunk-O5CYW2IR.js +1046 -0
- package/Build/Workers/chunk-OJ7O7DKV.js +973 -0
- package/Build/Workers/chunk-OJK33YVT.js +171 -0
- package/Build/Workers/chunk-OKFC4PDV.js +1344 -0
- package/Build/Workers/chunk-OKUXJIW3.js +124 -0
- package/Build/Workers/chunk-OWDZ5BX4.js +280 -0
- package/Build/Workers/chunk-PCERHV4S.js +198 -0
- package/Build/Workers/chunk-PJT22BD4.js +352 -0
- package/Build/Workers/chunk-PKV3R77E.js +672 -0
- package/Build/Workers/chunk-PQ2MGY7X.js +162 -0
- package/Build/Workers/chunk-PR62UBKE.js +693 -0
- package/Build/Workers/chunk-QJJ3GXSH.js +140 -0
- package/Build/Workers/chunk-QM4HZZYW.js +219 -0
- package/Build/Workers/chunk-QQ2BBL7Z.js +162 -0
- package/Build/Workers/chunk-QYC6Y25A.js +124 -0
- package/Build/Workers/chunk-RBAZR7R2.js +280 -0
- package/Build/Workers/chunk-REZJEC6F.js +241 -0
- package/Build/Workers/chunk-RS3LRHOK.js +73 -0
- package/Build/Workers/chunk-S2WTOFGB.js +102 -0
- package/Build/Workers/chunk-SGLJWWWY.js +352 -0
- package/Build/Workers/chunk-SJZMU3OS.js +2342 -0
- package/Build/Workers/chunk-SMZXVFCA.js +1344 -0
- package/Build/Workers/chunk-SND4KNB6.js +754 -0
- package/Build/Workers/chunk-SRH2XIWS.js +1067 -0
- package/Build/Workers/chunk-SXSP3JHS.js +38 -0
- package/Build/Workers/chunk-T6SVKD76.js +511 -0
- package/Build/Workers/chunk-TA3PH4Q7.js +519 -0
- package/Build/Workers/chunk-TDJ2NSYJ.js +171 -0
- package/Build/Workers/chunk-TJCD5NV5.js +837 -0
- package/Build/Workers/chunk-TXBADNRA.js +9237 -0
- package/Build/Workers/chunk-TYW2D7VU.js +2719 -0
- package/Build/Workers/chunk-U3KB4HMG.js +1054 -0
- package/Build/Workers/chunk-U6OMVSBY.js +368 -0
- package/Build/Workers/chunk-UAVMVBMC.js +754 -0
- package/Build/Workers/chunk-UCOZLNHF.js +1284 -0
- package/Build/Workers/chunk-UDKEO3UF.js +163 -0
- package/Build/Workers/chunk-UIQUUY4A.js +73 -0
- package/Build/Workers/chunk-ULY2FDDP.js +454 -0
- package/Build/Workers/chunk-UT7YX565.js +1992 -0
- package/Build/Workers/chunk-UTOYFI3Q.js +1992 -0
- package/Build/Workers/chunk-UUXWWJI7.js +101 -0
- package/Build/Workers/chunk-V5AWAGL2.js +97 -0
- package/Build/Workers/chunk-V5AXOGPW.js +682 -0
- package/Build/Workers/chunk-VAUX2Q2X.js +138 -0
- package/Build/Workers/chunk-VDX4SJKV.js +58 -0
- package/Build/Workers/chunk-W7WEPLZL.js +414 -0
- package/Build/Workers/chunk-WNAG4FHY.js +305 -0
- package/Build/Workers/chunk-WNQX2CP3.js +455 -0
- package/Build/Workers/chunk-XCASHPVG.js +778 -0
- package/Build/Workers/chunk-XJUIVTHG.js +1483 -0
- package/Build/Workers/chunk-XQVSSVT2.js +140 -0
- package/Build/Workers/chunk-Y5E2LVSX.js +138 -0
- package/Build/Workers/chunk-YEMKJOOG.js +352 -0
- package/Build/Workers/chunk-YGFVAGYF.js +630 -0
- package/Build/Workers/chunk-YNWTO2WN.js +147 -0
- package/Build/Workers/chunk-YZAMLSIA.js +352 -0
- package/Build/Workers/chunk-Z6LUW5FN.js +198 -0
- package/Build/Workers/chunk-ZDUCDVKX.js +288 -0
- package/Build/Workers/chunk-ZEEPTE4R.js +147 -0
- package/Build/Workers/chunk-ZIBW2BFB.js +1284 -0
- package/Build/Workers/chunk-ZOYVNCFZ.js +754 -0
- package/Build/Workers/chunk-ZSWY7UNG.js +3201 -0
- package/Build/Workers/chunk-ZXRWKKJP.js +398 -0
- package/Build/Workers/combineGeometry.js +24 -24
- package/Build/Workers/createBoxGeometry.js +18 -18
- package/Build/Workers/createBoxOutlineGeometry.js +16 -16
- package/Build/Workers/createCircleGeometry.js +26 -26
- package/Build/Workers/createCircleOutlineGeometry.js +19 -19
- package/Build/Workers/createCoplanarPolygonGeometry.js +33 -33
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +31 -31
- package/Build/Workers/createCorridorGeometry.js +29 -29
- package/Build/Workers/createCorridorOutlineGeometry.js +28 -28
- package/Build/Workers/createCylinderGeometry.js +20 -20
- package/Build/Workers/createCylinderOutlineGeometry.js +18 -18
- package/Build/Workers/createEllipseGeometry.js +26 -26
- package/Build/Workers/createEllipseOutlineGeometry.js +19 -19
- package/Build/Workers/createEllipsoidGeometry.js +19 -19
- package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -18
- package/Build/Workers/createFrustumGeometry.js +18 -18
- package/Build/Workers/createFrustumOutlineGeometry.js +18 -18
- package/Build/Workers/createGeometry.js +24 -24
- package/Build/Workers/createGroundPolylineGeometry.js +23 -23
- package/Build/Workers/createMvtTile.js +1815 -0
- package/Build/Workers/createPlaneGeometry.js +16 -16
- package/Build/Workers/createPlaneOutlineGeometry.js +15 -15
- package/Build/Workers/createPolygonGeometry.js +32 -32
- package/Build/Workers/createPolygonOutlineGeometry.js +30 -30
- package/Build/Workers/createPolylineGeometry.js +25 -25
- package/Build/Workers/createPolylineVolumeGeometry.js +31 -31
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +27 -27
- package/Build/Workers/createRectangleGeometry.js +27 -27
- package/Build/Workers/createRectangleOutlineGeometry.js +20 -20
- package/Build/Workers/createSimplePolylineGeometry.js +23 -23
- package/Build/Workers/createSphereGeometry.js +19 -19
- package/Build/Workers/createSphereOutlineGeometry.js +18 -18
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
- package/Build/Workers/createVectorTileGeometries.js +24 -24
- package/Build/Workers/createVectorTilePoints.js +13 -13
- package/Build/Workers/createVectorTilePolygons.js +22 -22
- package/Build/Workers/createVectorTilePolylines.js +14 -14
- package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +26 -26
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +23 -23
- package/Build/Workers/createVerticesFromHeightmap.js +25 -25
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +21 -21
- package/Build/Workers/createWallGeometry.js +24 -24
- package/Build/Workers/createWallOutlineGeometry.js +23 -23
- package/Build/Workers/decodeDraco.js +10 -10
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +58 -44
- package/Build/Workers/decodeI3S.js +10 -10
- package/Build/Workers/gaussianSplatSorter.js +4 -4
- package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
- package/Build/Workers/incrementallyBuildTerrainPicker.js +10 -10
- package/Build/Workers/transcodeKTX2.js +7 -7
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +23 -23
- package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +26 -26
- package/Source/Core/ScreenSpaceEventHandler.js +19 -0
- package/Source/ThirdParty/Workers/zip-web-worker.js +1 -1
- package/Source/ThirdParty/zip-module.wasm +0 -0
- package/index.d.ts +48305 -0
- package/index.js +373 -373
- package/package.json +10 -10
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.144.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import {
|
|
27
|
+
Matrix4_default
|
|
28
|
+
} from "./chunk-ZSWY7UNG.js";
|
|
29
|
+
import {
|
|
30
|
+
Frozen_default
|
|
31
|
+
} from "./chunk-76HD3HYN.js";
|
|
32
|
+
import {
|
|
33
|
+
DeveloperError_default
|
|
34
|
+
} from "./chunk-UDKEO3UF.js";
|
|
35
|
+
import {
|
|
36
|
+
defined_default
|
|
37
|
+
} from "./chunk-NYQSZLRF.js";
|
|
38
|
+
|
|
39
|
+
// packages/engine/Source/Core/GeometryInstance.js
|
|
40
|
+
function GeometryInstance(options) {
|
|
41
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
42
|
+
if (!defined_default(options.geometry)) {
|
|
43
|
+
throw new DeveloperError_default("options.geometry is required.");
|
|
44
|
+
}
|
|
45
|
+
this.geometry = options.geometry;
|
|
46
|
+
this.modelMatrix = Matrix4_default.clone(options.modelMatrix ?? Matrix4_default.IDENTITY);
|
|
47
|
+
this.id = options.id;
|
|
48
|
+
this.pickPrimitive = options.pickPrimitive;
|
|
49
|
+
this.attributes = options.attributes ?? {};
|
|
50
|
+
this.westHemisphereGeometry = void 0;
|
|
51
|
+
this.eastHemisphereGeometry = void 0;
|
|
52
|
+
}
|
|
53
|
+
var GeometryInstance_default = GeometryInstance;
|
|
54
|
+
|
|
55
|
+
export {
|
|
56
|
+
GeometryInstance_default
|
|
57
|
+
};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.144.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import {
|
|
27
|
+
Cartesian4_default,
|
|
28
|
+
Matrix4_default
|
|
29
|
+
} from "./chunk-ZSWY7UNG.js";
|
|
30
|
+
import {
|
|
31
|
+
Cartesian3_default
|
|
32
|
+
} from "./chunk-76HD3HYN.js";
|
|
33
|
+
import {
|
|
34
|
+
Math_default
|
|
35
|
+
} from "./chunk-TA3PH4Q7.js";
|
|
36
|
+
import {
|
|
37
|
+
Check_default,
|
|
38
|
+
DeveloperError_default
|
|
39
|
+
} from "./chunk-UDKEO3UF.js";
|
|
40
|
+
import {
|
|
41
|
+
defined_default
|
|
42
|
+
} from "./chunk-NYQSZLRF.js";
|
|
43
|
+
|
|
44
|
+
// packages/engine/Source/Core/Plane.js
|
|
45
|
+
function Plane(normal, distance) {
|
|
46
|
+
Check_default.typeOf.object("normal", normal);
|
|
47
|
+
if (!Math_default.equalsEpsilon(
|
|
48
|
+
Cartesian3_default.magnitude(normal),
|
|
49
|
+
1,
|
|
50
|
+
Math_default.EPSILON6
|
|
51
|
+
)) {
|
|
52
|
+
throw new DeveloperError_default("normal must be normalized.");
|
|
53
|
+
}
|
|
54
|
+
Check_default.typeOf.number("distance", distance);
|
|
55
|
+
this.normal = Cartesian3_default.clone(normal);
|
|
56
|
+
this.distance = distance;
|
|
57
|
+
}
|
|
58
|
+
Plane.fromPointNormal = function(point, normal, result) {
|
|
59
|
+
Check_default.typeOf.object("point", point);
|
|
60
|
+
Check_default.typeOf.object("normal", normal);
|
|
61
|
+
if (!Math_default.equalsEpsilon(
|
|
62
|
+
Cartesian3_default.magnitude(normal),
|
|
63
|
+
1,
|
|
64
|
+
Math_default.EPSILON6
|
|
65
|
+
)) {
|
|
66
|
+
throw new DeveloperError_default("normal must be normalized.");
|
|
67
|
+
}
|
|
68
|
+
const distance = -Cartesian3_default.dot(normal, point);
|
|
69
|
+
if (!defined_default(result)) {
|
|
70
|
+
return new Plane(normal, distance);
|
|
71
|
+
}
|
|
72
|
+
Cartesian3_default.clone(normal, result.normal);
|
|
73
|
+
result.distance = distance;
|
|
74
|
+
return result;
|
|
75
|
+
};
|
|
76
|
+
var scratchNormal = new Cartesian3_default();
|
|
77
|
+
Plane.fromCartesian4 = function(coefficients, result) {
|
|
78
|
+
Check_default.typeOf.object("coefficients", coefficients);
|
|
79
|
+
const normal = Cartesian3_default.fromCartesian4(coefficients, scratchNormal);
|
|
80
|
+
const distance = coefficients.w;
|
|
81
|
+
if (!Math_default.equalsEpsilon(
|
|
82
|
+
Cartesian3_default.magnitude(normal),
|
|
83
|
+
1,
|
|
84
|
+
Math_default.EPSILON6
|
|
85
|
+
)) {
|
|
86
|
+
throw new DeveloperError_default("normal must be normalized.");
|
|
87
|
+
}
|
|
88
|
+
if (!defined_default(result)) {
|
|
89
|
+
return new Plane(normal, distance);
|
|
90
|
+
}
|
|
91
|
+
Cartesian3_default.clone(normal, result.normal);
|
|
92
|
+
result.distance = distance;
|
|
93
|
+
return result;
|
|
94
|
+
};
|
|
95
|
+
Plane.getPointDistance = function(plane, point) {
|
|
96
|
+
Check_default.typeOf.object("plane", plane);
|
|
97
|
+
Check_default.typeOf.object("point", point);
|
|
98
|
+
return Cartesian3_default.dot(plane.normal, point) + plane.distance;
|
|
99
|
+
};
|
|
100
|
+
var scratchCartesian = new Cartesian3_default();
|
|
101
|
+
Plane.projectPointOntoPlane = function(plane, point, result) {
|
|
102
|
+
Check_default.typeOf.object("plane", plane);
|
|
103
|
+
Check_default.typeOf.object("point", point);
|
|
104
|
+
if (!defined_default(result)) {
|
|
105
|
+
result = new Cartesian3_default();
|
|
106
|
+
}
|
|
107
|
+
const pointDistance = Plane.getPointDistance(plane, point);
|
|
108
|
+
const scaledNormal = Cartesian3_default.multiplyByScalar(
|
|
109
|
+
plane.normal,
|
|
110
|
+
pointDistance,
|
|
111
|
+
scratchCartesian
|
|
112
|
+
);
|
|
113
|
+
return Cartesian3_default.subtract(point, scaledNormal, result);
|
|
114
|
+
};
|
|
115
|
+
var scratchInverseTranspose = new Matrix4_default();
|
|
116
|
+
var scratchPlaneCartesian4 = new Cartesian4_default();
|
|
117
|
+
var scratchTransformNormal = new Cartesian3_default();
|
|
118
|
+
Plane.transform = function(plane, transform, result) {
|
|
119
|
+
Check_default.typeOf.object("plane", plane);
|
|
120
|
+
Check_default.typeOf.object("transform", transform);
|
|
121
|
+
const normal = plane.normal;
|
|
122
|
+
const distance = plane.distance;
|
|
123
|
+
const inverseTranspose = Matrix4_default.inverseTranspose(
|
|
124
|
+
transform,
|
|
125
|
+
scratchInverseTranspose
|
|
126
|
+
);
|
|
127
|
+
let planeAsCartesian4 = Cartesian4_default.fromElements(
|
|
128
|
+
normal.x,
|
|
129
|
+
normal.y,
|
|
130
|
+
normal.z,
|
|
131
|
+
distance,
|
|
132
|
+
scratchPlaneCartesian4
|
|
133
|
+
);
|
|
134
|
+
planeAsCartesian4 = Matrix4_default.multiplyByVector(
|
|
135
|
+
inverseTranspose,
|
|
136
|
+
planeAsCartesian4,
|
|
137
|
+
planeAsCartesian4
|
|
138
|
+
);
|
|
139
|
+
const transformedNormal = Cartesian3_default.fromCartesian4(
|
|
140
|
+
planeAsCartesian4,
|
|
141
|
+
scratchTransformNormal
|
|
142
|
+
);
|
|
143
|
+
planeAsCartesian4 = Cartesian4_default.divideByScalar(
|
|
144
|
+
planeAsCartesian4,
|
|
145
|
+
Cartesian3_default.magnitude(transformedNormal),
|
|
146
|
+
planeAsCartesian4
|
|
147
|
+
);
|
|
148
|
+
return Plane.fromCartesian4(planeAsCartesian4, result);
|
|
149
|
+
};
|
|
150
|
+
Plane.clone = function(plane, result) {
|
|
151
|
+
Check_default.typeOf.object("plane", plane);
|
|
152
|
+
if (!defined_default(result)) {
|
|
153
|
+
return new Plane(plane.normal, plane.distance);
|
|
154
|
+
}
|
|
155
|
+
Cartesian3_default.clone(plane.normal, result.normal);
|
|
156
|
+
result.distance = plane.distance;
|
|
157
|
+
return result;
|
|
158
|
+
};
|
|
159
|
+
Plane.equals = function(left, right) {
|
|
160
|
+
Check_default.typeOf.object("left", left);
|
|
161
|
+
Check_default.typeOf.object("right", right);
|
|
162
|
+
return left.distance === right.distance && Cartesian3_default.equals(left.normal, right.normal);
|
|
163
|
+
};
|
|
164
|
+
Plane.ORIGIN_XY_PLANE = Object.freeze(new Plane(Cartesian3_default.UNIT_Z, 0));
|
|
165
|
+
Plane.ORIGIN_YZ_PLANE = Object.freeze(new Plane(Cartesian3_default.UNIT_X, 0));
|
|
166
|
+
Plane.ORIGIN_ZX_PLANE = Object.freeze(new Plane(Cartesian3_default.UNIT_Y, 0));
|
|
167
|
+
var Plane_default = Plane;
|
|
168
|
+
|
|
169
|
+
export {
|
|
170
|
+
Plane_default
|
|
171
|
+
};
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.144.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import {
|
|
27
|
+
PolylinePipeline_default
|
|
28
|
+
} from "./chunk-7ZYD7GL6.js";
|
|
29
|
+
import {
|
|
30
|
+
arrayRemoveDuplicates_default
|
|
31
|
+
} from "./chunk-AW3UT5RP.js";
|
|
32
|
+
import {
|
|
33
|
+
Cartographic_default
|
|
34
|
+
} from "./chunk-UTOYFI3Q.js";
|
|
35
|
+
import {
|
|
36
|
+
Cartesian3_default
|
|
37
|
+
} from "./chunk-SJZMU3OS.js";
|
|
38
|
+
import {
|
|
39
|
+
Math_default
|
|
40
|
+
} from "./chunk-2ZYMQXBB.js";
|
|
41
|
+
import {
|
|
42
|
+
defined_default
|
|
43
|
+
} from "./chunk-NYQSZLRF.js";
|
|
44
|
+
|
|
45
|
+
// packages/engine/Source/Core/WallGeometryLibrary.js
|
|
46
|
+
var WallGeometryLibrary = {};
|
|
47
|
+
function latLonEquals(c0, c1) {
|
|
48
|
+
return Math_default.equalsEpsilon(c0.latitude, c1.latitude, Math_default.EPSILON10) && Math_default.equalsEpsilon(c0.longitude, c1.longitude, Math_default.EPSILON10);
|
|
49
|
+
}
|
|
50
|
+
var scratchCartographic1 = new Cartographic_default();
|
|
51
|
+
var scratchCartographic2 = new Cartographic_default();
|
|
52
|
+
function removeDuplicates(ellipsoid, positions, topHeights, bottomHeights) {
|
|
53
|
+
positions = arrayRemoveDuplicates_default(positions, Cartesian3_default.equalsEpsilon);
|
|
54
|
+
const length = positions.length;
|
|
55
|
+
if (length < 2) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const hasBottomHeights = defined_default(bottomHeights);
|
|
59
|
+
const hasTopHeights = defined_default(topHeights);
|
|
60
|
+
const cleanedPositions = new Array(length);
|
|
61
|
+
const cleanedTopHeights = new Array(length);
|
|
62
|
+
const cleanedBottomHeights = new Array(length);
|
|
63
|
+
const v0 = positions[0];
|
|
64
|
+
cleanedPositions[0] = v0;
|
|
65
|
+
const c0 = ellipsoid.cartesianToCartographic(v0, scratchCartographic1);
|
|
66
|
+
if (hasTopHeights) {
|
|
67
|
+
c0.height = topHeights[0];
|
|
68
|
+
}
|
|
69
|
+
cleanedTopHeights[0] = c0.height;
|
|
70
|
+
if (hasBottomHeights) {
|
|
71
|
+
cleanedBottomHeights[0] = bottomHeights[0];
|
|
72
|
+
} else {
|
|
73
|
+
cleanedBottomHeights[0] = 0;
|
|
74
|
+
}
|
|
75
|
+
const startTopHeight = cleanedTopHeights[0];
|
|
76
|
+
const startBottomHeight = cleanedBottomHeights[0];
|
|
77
|
+
let hasAllSameHeights = startTopHeight === startBottomHeight;
|
|
78
|
+
let index = 1;
|
|
79
|
+
for (let i = 1; i < length; ++i) {
|
|
80
|
+
const v1 = positions[i];
|
|
81
|
+
const c1 = ellipsoid.cartesianToCartographic(v1, scratchCartographic2);
|
|
82
|
+
if (hasTopHeights) {
|
|
83
|
+
c1.height = topHeights[i];
|
|
84
|
+
}
|
|
85
|
+
hasAllSameHeights = hasAllSameHeights && c1.height === 0;
|
|
86
|
+
if (!latLonEquals(c0, c1)) {
|
|
87
|
+
cleanedPositions[index] = v1;
|
|
88
|
+
cleanedTopHeights[index] = c1.height;
|
|
89
|
+
if (hasBottomHeights) {
|
|
90
|
+
cleanedBottomHeights[index] = bottomHeights[i];
|
|
91
|
+
} else {
|
|
92
|
+
cleanedBottomHeights[index] = 0;
|
|
93
|
+
}
|
|
94
|
+
hasAllSameHeights = hasAllSameHeights && cleanedTopHeights[index] === cleanedBottomHeights[index];
|
|
95
|
+
Cartographic_default.clone(c1, c0);
|
|
96
|
+
++index;
|
|
97
|
+
} else if (c0.height < c1.height) {
|
|
98
|
+
cleanedTopHeights[index - 1] = c1.height;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
if (hasAllSameHeights || index < 2) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
cleanedPositions.length = index;
|
|
105
|
+
cleanedTopHeights.length = index;
|
|
106
|
+
cleanedBottomHeights.length = index;
|
|
107
|
+
return {
|
|
108
|
+
positions: cleanedPositions,
|
|
109
|
+
topHeights: cleanedTopHeights,
|
|
110
|
+
bottomHeights: cleanedBottomHeights
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
var positionsArrayScratch = new Array(2);
|
|
114
|
+
var heightsArrayScratch = new Array(2);
|
|
115
|
+
var generateArcOptionsScratch = {
|
|
116
|
+
positions: void 0,
|
|
117
|
+
height: void 0,
|
|
118
|
+
granularity: void 0,
|
|
119
|
+
ellipsoid: void 0
|
|
120
|
+
};
|
|
121
|
+
WallGeometryLibrary.computePositions = function(ellipsoid, wallPositions, maximumHeights, minimumHeights, granularity, duplicateCorners) {
|
|
122
|
+
const o = removeDuplicates(
|
|
123
|
+
ellipsoid,
|
|
124
|
+
wallPositions,
|
|
125
|
+
maximumHeights,
|
|
126
|
+
minimumHeights
|
|
127
|
+
);
|
|
128
|
+
if (!defined_default(o)) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
wallPositions = o.positions;
|
|
132
|
+
maximumHeights = o.topHeights;
|
|
133
|
+
minimumHeights = o.bottomHeights;
|
|
134
|
+
const length = wallPositions.length;
|
|
135
|
+
const numCorners = length - 2;
|
|
136
|
+
let topPositions;
|
|
137
|
+
let bottomPositions;
|
|
138
|
+
const minDistance = Math_default.chordLength(
|
|
139
|
+
granularity,
|
|
140
|
+
ellipsoid.maximumRadius
|
|
141
|
+
);
|
|
142
|
+
const generateArcOptions = generateArcOptionsScratch;
|
|
143
|
+
generateArcOptions.minDistance = minDistance;
|
|
144
|
+
generateArcOptions.ellipsoid = ellipsoid;
|
|
145
|
+
if (duplicateCorners) {
|
|
146
|
+
let count = 0;
|
|
147
|
+
let i;
|
|
148
|
+
for (i = 0; i < length - 1; i++) {
|
|
149
|
+
count += PolylinePipeline_default.numberOfPoints(
|
|
150
|
+
wallPositions[i],
|
|
151
|
+
wallPositions[i + 1],
|
|
152
|
+
minDistance
|
|
153
|
+
) + 1;
|
|
154
|
+
}
|
|
155
|
+
topPositions = new Float64Array(count * 3);
|
|
156
|
+
bottomPositions = new Float64Array(count * 3);
|
|
157
|
+
const generateArcPositions = positionsArrayScratch;
|
|
158
|
+
const generateArcHeights = heightsArrayScratch;
|
|
159
|
+
generateArcOptions.positions = generateArcPositions;
|
|
160
|
+
generateArcOptions.height = generateArcHeights;
|
|
161
|
+
let offset = 0;
|
|
162
|
+
for (i = 0; i < length - 1; i++) {
|
|
163
|
+
generateArcPositions[0] = wallPositions[i];
|
|
164
|
+
generateArcPositions[1] = wallPositions[i + 1];
|
|
165
|
+
generateArcHeights[0] = maximumHeights[i];
|
|
166
|
+
generateArcHeights[1] = maximumHeights[i + 1];
|
|
167
|
+
const pos = PolylinePipeline_default.generateArc(generateArcOptions);
|
|
168
|
+
topPositions.set(pos, offset);
|
|
169
|
+
generateArcHeights[0] = minimumHeights[i];
|
|
170
|
+
generateArcHeights[1] = minimumHeights[i + 1];
|
|
171
|
+
bottomPositions.set(
|
|
172
|
+
PolylinePipeline_default.generateArc(generateArcOptions),
|
|
173
|
+
offset
|
|
174
|
+
);
|
|
175
|
+
offset += pos.length;
|
|
176
|
+
}
|
|
177
|
+
} else {
|
|
178
|
+
generateArcOptions.positions = wallPositions;
|
|
179
|
+
generateArcOptions.height = maximumHeights;
|
|
180
|
+
topPositions = new Float64Array(
|
|
181
|
+
PolylinePipeline_default.generateArc(generateArcOptions)
|
|
182
|
+
);
|
|
183
|
+
generateArcOptions.height = minimumHeights;
|
|
184
|
+
bottomPositions = new Float64Array(
|
|
185
|
+
PolylinePipeline_default.generateArc(generateArcOptions)
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
return {
|
|
189
|
+
bottomPositions,
|
|
190
|
+
topPositions,
|
|
191
|
+
numCorners
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
var WallGeometryLibrary_default = WallGeometryLibrary;
|
|
195
|
+
|
|
196
|
+
export {
|
|
197
|
+
WallGeometryLibrary_default
|
|
198
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.141.3
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import {
|
|
27
|
+
Cartographic_default
|
|
28
|
+
} from "./chunk-ILUFUAF3.js";
|
|
29
|
+
import {
|
|
30
|
+
Cartesian3_default
|
|
31
|
+
} from "./chunk-ILX5N5QR.js";
|
|
32
|
+
import {
|
|
33
|
+
DeveloperError_default
|
|
34
|
+
} from "./chunk-MVBEMXN4.js";
|
|
35
|
+
import {
|
|
36
|
+
defined_default
|
|
37
|
+
} from "./chunk-2RC5GQMH.js";
|
|
38
|
+
|
|
39
|
+
// packages/engine/Source/Core/VerticalExaggeration.js
|
|
40
|
+
var VerticalExaggeration = {};
|
|
41
|
+
VerticalExaggeration.getHeight = function(height, scale, relativeHeight) {
|
|
42
|
+
if (!Number.isFinite(scale)) {
|
|
43
|
+
throw new DeveloperError_default("scale must be a finite number.");
|
|
44
|
+
}
|
|
45
|
+
if (!Number.isFinite(relativeHeight)) {
|
|
46
|
+
throw new DeveloperError_default("relativeHeight must be a finite number.");
|
|
47
|
+
}
|
|
48
|
+
return (height - relativeHeight) * scale + relativeHeight;
|
|
49
|
+
};
|
|
50
|
+
var scratchCartographic = new Cartographic_default();
|
|
51
|
+
VerticalExaggeration.getPosition = function(position, ellipsoid, verticalExaggeration, verticalExaggerationRelativeHeight, result) {
|
|
52
|
+
const cartographic = ellipsoid.cartesianToCartographic(
|
|
53
|
+
position,
|
|
54
|
+
scratchCartographic
|
|
55
|
+
);
|
|
56
|
+
if (!defined_default(cartographic)) {
|
|
57
|
+
return Cartesian3_default.clone(position, result);
|
|
58
|
+
}
|
|
59
|
+
const newHeight = VerticalExaggeration.getHeight(
|
|
60
|
+
cartographic.height,
|
|
61
|
+
verticalExaggeration,
|
|
62
|
+
verticalExaggerationRelativeHeight
|
|
63
|
+
);
|
|
64
|
+
return Cartesian3_default.fromRadians(
|
|
65
|
+
cartographic.longitude,
|
|
66
|
+
cartographic.latitude,
|
|
67
|
+
newHeight,
|
|
68
|
+
ellipsoid,
|
|
69
|
+
result
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
var VerticalExaggeration_default = VerticalExaggeration;
|
|
73
|
+
|
|
74
|
+
export {
|
|
75
|
+
VerticalExaggeration_default
|
|
76
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.141.3
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
// packages/engine/Source/Core/ArcType.js
|
|
28
|
+
var ArcType = {
|
|
29
|
+
/**
|
|
30
|
+
* Straight line that does not conform to the surface of the ellipsoid.
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @constant
|
|
34
|
+
*/
|
|
35
|
+
NONE: 0,
|
|
36
|
+
/**
|
|
37
|
+
* Follow geodesic path.
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @constant
|
|
41
|
+
*/
|
|
42
|
+
GEODESIC: 1,
|
|
43
|
+
/**
|
|
44
|
+
* Follow rhumb or loxodrome path.
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @constant
|
|
48
|
+
*/
|
|
49
|
+
RHUMB: 2
|
|
50
|
+
};
|
|
51
|
+
Object.freeze(ArcType);
|
|
52
|
+
var ArcType_default = ArcType;
|
|
53
|
+
|
|
54
|
+
export {
|
|
55
|
+
ArcType_default
|
|
56
|
+
};
|