@cesium/engine 20.0.2-ion.0 → 21.0.1-ion.0
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 +637 -0
- package/Build/Workers/{chunk-AFKNTEMH.js → chunk-26ZRRKTU.js} +16 -16
- package/Build/Workers/{chunk-NKKNQMEH.js → chunk-2PX2ULSM.js} +3 -3
- package/Build/Workers/{chunk-OIMV4OE5.js → chunk-3K4DRV7Y.js} +9 -9
- package/Build/Workers/{chunk-IS5FETN7.js → chunk-3XTJC4CV.js} +5 -5
- package/Build/Workers/{chunk-Z2W7ZIGV.js → chunk-6KX3IUUT.js} +2 -2
- package/Build/Workers/{chunk-BHAATGZA.js → chunk-75UG66GR.js} +5 -5
- package/Build/Workers/{chunk-YXTWHLJA.js → chunk-ADADBRLI.js} +4 -4
- package/Build/Workers/{chunk-CUU3WGXJ.js → chunk-AGT6W3JS.js} +6 -6
- package/Build/Workers/{chunk-QID3DXQA.js → chunk-AQ4A5CMC.js} +7 -7
- package/Build/Workers/{chunk-MTBXKKSQ.js → chunk-B56XVJRS.js} +12 -12
- package/Build/Workers/{chunk-VODCZKV2.js → chunk-DTYIUWZU.js} +4 -4
- package/Build/Workers/{chunk-VSMKMGX4.js → chunk-E6T4LSM6.js} +5 -5
- package/Build/Workers/{chunk-WZKTQZUW.js → chunk-EEDSGIH7.js} +6 -6
- package/Build/Workers/{chunk-FNUSHLOY.js → chunk-EHMAKCWQ.js} +1 -1
- package/Build/Workers/{chunk-CYC7JX3P.js → chunk-ESPNIYL5.js} +8 -8
- package/Build/Workers/{chunk-LS63ERFB.js → chunk-EZJXK2UP.js} +4 -4
- package/Build/Workers/{chunk-Q3OWKSC5.js → chunk-G5RX7BPJ.js} +10 -10
- package/Build/Workers/{chunk-FAQ2XNFV.js → chunk-G74UMFQ4.js} +5 -5
- package/Build/Workers/{chunk-YUHWFX5H.js → chunk-H3G7OYZY.js} +2 -2
- package/Build/Workers/{chunk-6LULWCX3.js → chunk-HDBIC7IL.js} +1 -1
- package/Build/Workers/{chunk-WORBFT5H.js → chunk-JESBYOH5.js} +9 -9
- package/Build/Workers/{chunk-P2V7PVDH.js → chunk-KGL66RWW.js} +8 -8
- package/Build/Workers/{chunk-USK6ZAY2.js → chunk-L73TRTIG.js} +1 -1
- package/Build/Workers/{chunk-VA7LWA5Q.js → chunk-LEFV6H2V.js} +9 -9
- package/Build/Workers/{chunk-23B3EYUM.js → chunk-LK7H6V2E.js} +4 -4
- package/Build/Workers/{chunk-JVG6T2WE.js → chunk-LSNF6CIP.js} +12 -12
- package/Build/Workers/{chunk-ABTG74AR.js → chunk-MBIUW42A.js} +1 -1
- package/Build/Workers/{chunk-VZNF2GT7.js → chunk-MFPT34BC.js} +4 -4
- package/Build/Workers/{chunk-X6GXYB3M.js → chunk-MIFUV36K.js} +1 -1
- package/Build/Workers/{chunk-K6THSIDU.js → chunk-MJWRSKJV.js} +2 -2
- package/Build/Workers/{chunk-FYYP46TF.js → chunk-NWJRIJQG.js} +2 -2
- package/Build/Workers/{chunk-H5IQLAJP.js → chunk-OLH67Z2S.js} +82 -54
- package/Build/Workers/{chunk-FHLPYFIW.js → chunk-OWCFUM4Z.js} +13 -13
- package/Build/Workers/{chunk-66MGJQFZ.js → chunk-PQW63B2T.js} +2 -2
- package/Build/Workers/{chunk-UR36KLNW.js → chunk-RFZAUDYZ.js} +4 -4
- package/Build/Workers/{chunk-XWRUYDF6.js → chunk-SDFGZML6.js} +2 -2
- package/Build/Workers/{chunk-AHFTST3Q.js → chunk-SF2XXYOB.js} +12 -12
- package/Build/Workers/{chunk-QZGZIAK2.js → chunk-SGEAS4NZ.js} +6 -6
- package/Build/Workers/{chunk-MFXTB5I4.js → chunk-T7WXNKIA.js} +11 -11
- package/Build/Workers/{chunk-H7HFDM3G.js → chunk-TXK2FF6N.js} +5 -5
- package/Build/Workers/{chunk-D4XRQNUO.js → chunk-UTL4WVC3.js} +5 -5
- package/Build/Workers/{chunk-V6ZGOX4I.js → chunk-UTTKH2UG.js} +7 -7
- package/Build/Workers/{chunk-X55ZOYMS.js → chunk-VIDWZGD6.js} +12 -12
- package/Build/Workers/{chunk-TZDR2BAP.js → chunk-WIPOMPA5.js} +6 -6
- package/Build/Workers/{chunk-CEA3L7M7.js → chunk-WJV24LAS.js} +4 -4
- package/Build/Workers/{chunk-F4PS6RFF.js → chunk-WMG6UOCJ.js} +10 -10
- package/Build/Workers/{chunk-XIDMFHR4.js → chunk-XFS2ORSO.js} +14 -14
- package/Build/Workers/{chunk-VLGVUVJY.js → chunk-XPTKQIVN.js} +6 -6
- package/Build/Workers/{chunk-D5X2LOJ2.js → chunk-XYBFMHXA.js} +7 -7
- package/Build/Workers/{chunk-YNPZU55A.js → chunk-YFZMB6FZ.js} +6 -6
- package/Build/Workers/{chunk-YSDOO7AG.js → chunk-ZOVMWDPW.js} +5 -5
- package/Build/Workers/{chunk-5DF5RVIO.js → chunk-ZTGZMKAB.js} +16 -16
- package/Build/Workers/combineGeometry.js +21 -21
- package/Build/Workers/createBoxGeometry.js +15 -15
- package/Build/Workers/createBoxOutlineGeometry.js +13 -13
- package/Build/Workers/createCircleGeometry.js +23 -23
- package/Build/Workers/createCircleOutlineGeometry.js +16 -16
- package/Build/Workers/createCoplanarPolygonGeometry.js +30 -30
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +28 -28
- package/Build/Workers/createCorridorGeometry.js +26 -26
- package/Build/Workers/createCorridorOutlineGeometry.js +25 -25
- package/Build/Workers/createCylinderGeometry.js +17 -17
- package/Build/Workers/createCylinderOutlineGeometry.js +15 -15
- package/Build/Workers/createEllipseGeometry.js +23 -23
- package/Build/Workers/createEllipseOutlineGeometry.js +16 -16
- package/Build/Workers/createEllipsoidGeometry.js +16 -16
- package/Build/Workers/createEllipsoidOutlineGeometry.js +15 -15
- package/Build/Workers/createFrustumGeometry.js +15 -15
- package/Build/Workers/createFrustumOutlineGeometry.js +15 -15
- package/Build/Workers/createGeometry.js +21 -21
- package/Build/Workers/createGroundPolylineGeometry.js +19 -19
- package/Build/Workers/createPlaneGeometry.js +13 -13
- package/Build/Workers/createPlaneOutlineGeometry.js +12 -12
- package/Build/Workers/createPolygonGeometry.js +29 -29
- package/Build/Workers/createPolygonOutlineGeometry.js +27 -27
- package/Build/Workers/createPolylineGeometry.js +22 -22
- package/Build/Workers/createPolylineVolumeGeometry.js +28 -28
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +24 -24
- package/Build/Workers/createRectangleGeometry.js +24 -24
- package/Build/Workers/createRectangleOutlineGeometry.js +17 -17
- package/Build/Workers/createSimplePolylineGeometry.js +20 -20
- package/Build/Workers/createSphereGeometry.js +16 -16
- package/Build/Workers/createSphereOutlineGeometry.js +15 -15
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +12 -12
- package/Build/Workers/createVectorTileGeometries.js +21 -21
- package/Build/Workers/createVectorTilePoints.js +11 -11
- package/Build/Workers/createVectorTilePolygons.js +19 -19
- package/Build/Workers/createVectorTilePolylines.js +12 -12
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +19 -19
- package/Build/Workers/createVerticesFromHeightmap.js +19 -19
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +16 -16
- package/Build/Workers/createWallGeometry.js +21 -21
- package/Build/Workers/createWallOutlineGeometry.js +20 -20
- package/Build/Workers/decodeDraco.js +10 -10
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +9 -9
- package/Build/Workers/gaussianSplatSorter.js +4 -4
- package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
- package/Build/Workers/transcodeKTX2.js +6 -6
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +19 -19
- package/Source/Core/Event.js +94 -53
- package/Source/Core/GoogleMaps.js +2 -2
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/IonResource.js +30 -4
- package/Source/Core/Resource.js +5 -1
- package/Source/DataSources/KmlDataSource.js +62 -63
- package/Source/DataSources/exportKml.js +27 -30
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/Azure2DImageryProvider.js +308 -0
- package/Source/Scene/Billboard.js +4 -0
- package/Source/Scene/BillboardCollection.js +9 -2
- package/Source/Scene/ClippingPlaneCollection.js +3 -3
- package/Source/Scene/ClippingPolygon.js +91 -2
- package/Source/Scene/CreditDisplay.js +1 -1
- package/Source/Scene/GaussianSplat3DTileContent.js +54 -9
- package/Source/Scene/GaussianSplatPrimitive.js +49 -50
- package/Source/Scene/Google2DImageryProvider.js +614 -0
- package/Source/Scene/IonImageryProvider.js +22 -1
- package/Source/Scene/LabelCollection.js +1 -0
- package/Source/Scene/Material.js +248 -80
- package/Source/Scene/Primitive.js +6 -0
- package/Source/Scene/PrimitiveState.js +123 -0
- package/Source/Scene/Scene.js +2 -2
- package/Source/Scene/VoxelBoundsCollection.js +494 -0
- package/Source/Scene/VoxelBoxShape.js +236 -101
- package/Source/Scene/VoxelCylinderShape.js +315 -204
- package/Source/Scene/VoxelEllipsoidShape.js +402 -119
- package/Source/Scene/VoxelPrimitive.js +119 -84
- package/Source/Scene/VoxelRenderResources.js +17 -10
- package/Source/Scene/VoxelShape.js +21 -6
- package/Source/Scene/buildVoxelDrawCommands.js +61 -20
- package/Source/Scene/createGooglePhotorealistic3DTileset.js +1 -1
- package/Source/Scene/getClippingFunction.js +79 -88
- package/Source/Shaders/BillboardCollectionVS.glsl +2 -0
- package/Source/Shaders/BillboardCollectionVS.js +2 -0
- package/Source/Shaders/Voxels/IntersectBox.glsl +20 -33
- package/Source/Shaders/Voxels/IntersectBox.js +20 -33
- package/Source/Shaders/Voxels/IntersectCylinder.glsl +28 -32
- package/Source/Shaders/Voxels/IntersectCylinder.js +28 -32
- package/Source/Shaders/Voxels/IntersectDepth.glsl +1 -4
- package/Source/Shaders/Voxels/IntersectDepth.js +1 -4
- package/Source/Shaders/Voxels/IntersectEllipsoid.glsl +12 -20
- package/Source/Shaders/Voxels/IntersectEllipsoid.js +12 -20
- package/Source/Shaders/Voxels/IntersectLongitude.glsl +21 -9
- package/Source/Shaders/Voxels/IntersectLongitude.js +21 -9
- package/Source/Shaders/Voxels/{IntersectClippingPlanes.glsl → IntersectPlane.glsl} +5 -3
- package/Source/Shaders/Voxels/{IntersectClippingPlanes.js → IntersectPlane.js} +5 -3
- package/Source/Shaders/Voxels/Intersection.glsl +3 -3
- package/Source/Shaders/Voxels/Intersection.js +3 -3
- package/Source/Shaders/Voxels/Octree.glsl +46 -51
- package/Source/Shaders/Voxels/Octree.js +46 -51
- package/Source/Shaders/Voxels/VoxelFS.glsl +50 -48
- package/Source/Shaders/Voxels/VoxelFS.js +50 -48
- package/Source/Shaders/Voxels/VoxelUtils.glsl +0 -19
- package/Source/Shaders/Voxels/VoxelUtils.js +0 -19
- package/Source/Shaders/Voxels/convertLocalToBoxUv.glsl +30 -0
- package/Source/Shaders/Voxels/convertLocalToBoxUv.js +32 -0
- package/Source/Shaders/Voxels/convertLocalToCylinderUv.glsl +97 -0
- package/Source/Shaders/Voxels/convertLocalToCylinderUv.js +99 -0
- package/Source/Shaders/Voxels/convertLocalToEllipsoidUv.glsl +193 -0
- package/Source/Shaders/Voxels/convertLocalToEllipsoidUv.js +195 -0
- package/Source/ThirdParty/Workers/zip-web-worker.js +1 -0
- package/Source/ThirdParty/zip-module.wasm +0 -0
- package/index.d.ts +317 -14
- package/index.js +177 -175
- package/package.json +2 -2
- package/Build/ThirdParty/Workers/pako_deflate.min.js +0 -503
- package/Build/ThirdParty/Workers/pako_inflate.min.js +0 -698
- package/Build/ThirdParty/Workers/z-worker-pako.js +0 -601
- package/Source/Core/defaultValue.js +0 -48
- package/Source/Shaders/Voxels/convertUvToBox.glsl +0 -45
- package/Source/Shaders/Voxels/convertUvToBox.js +0 -46
- package/Source/Shaders/Voxels/convertUvToCylinder.glsl +0 -99
- package/Source/Shaders/Voxels/convertUvToCylinder.js +0 -101
- package/Source/Shaders/Voxels/convertUvToEllipsoid.glsl +0 -139
- package/Source/Shaders/Voxels/convertUvToEllipsoid.js +0 -141
- package/Source/ThirdParty/Workers/pako_deflate.min.js +0 -2
- package/Source/ThirdParty/Workers/pako_inflate.min.js +0 -2
- package/Source/ThirdParty/Workers/z-worker-pako.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.134.1-ion.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
createTaskProcessorWorker_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-H3G7OYZY.js";
|
|
29
29
|
import {
|
|
30
30
|
RuntimeError_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-NWJRIJQG.js";
|
|
32
32
|
import {
|
|
33
33
|
Check_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-PQW63B2T.js";
|
|
35
35
|
import {
|
|
36
36
|
__commonJS,
|
|
37
37
|
__toESM,
|
|
38
38
|
defined_default
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-L73TRTIG.js";
|
|
40
40
|
|
|
41
41
|
// node_modules/pako/lib/zlib/adler32.js
|
|
42
42
|
var require_adler32 = __commonJS({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.134.1-ion.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,32 +25,32 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
require_draco_decoder_nodejs
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-SDFGZML6.js";
|
|
29
29
|
import {
|
|
30
30
|
Color_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ZOVMWDPW.js";
|
|
32
32
|
import {
|
|
33
33
|
createTaskProcessorWorker_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-H3G7OYZY.js";
|
|
35
35
|
import {
|
|
36
36
|
WebMercatorProjection_default
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-75UG66GR.js";
|
|
38
38
|
import {
|
|
39
39
|
Cartesian3_default,
|
|
40
40
|
Cartographic_default,
|
|
41
41
|
Ellipsoid_default,
|
|
42
42
|
Matrix3_default
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-EZJXK2UP.js";
|
|
44
44
|
import {
|
|
45
45
|
Math_default
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-2PX2ULSM.js";
|
|
47
47
|
import {
|
|
48
48
|
Check_default
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-PQW63B2T.js";
|
|
50
50
|
import {
|
|
51
51
|
__toESM,
|
|
52
52
|
defined_default
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-L73TRTIG.js";
|
|
54
54
|
|
|
55
55
|
// packages/engine/Source/Workers/decodeI3S.js
|
|
56
56
|
var import_draco_decoder_nodejs = __toESM(require_draco_decoder_nodejs(), 1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.134.1-ion.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
import {
|
|
27
27
|
initSync,
|
|
28
28
|
radix_sort_gaussians_indexes
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-MIFUV36K.js";
|
|
30
30
|
import {
|
|
31
31
|
createTaskProcessorWorker_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-H3G7OYZY.js";
|
|
33
33
|
import {
|
|
34
34
|
defined_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-L73TRTIG.js";
|
|
36
36
|
|
|
37
37
|
// packages/engine/Source/Workers/gaussianSplatSorter.js
|
|
38
38
|
async function initWorker(parameters, transferableObjects) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.134.1-ion.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
import {
|
|
27
27
|
generate_splat_texture,
|
|
28
28
|
initSync
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-MIFUV36K.js";
|
|
30
30
|
import {
|
|
31
31
|
createTaskProcessorWorker_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-H3G7OYZY.js";
|
|
33
33
|
import {
|
|
34
34
|
defined_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-L73TRTIG.js";
|
|
36
36
|
|
|
37
37
|
// packages/engine/Source/Workers/gaussianSplatTextureGenerator.js
|
|
38
38
|
async function initWorker(parameters, transferableObjects) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.134.1-ion.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,22 +25,22 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
createTaskProcessorWorker_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-H3G7OYZY.js";
|
|
29
29
|
import {
|
|
30
30
|
WebGLConstants_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-HDBIC7IL.js";
|
|
32
32
|
import {
|
|
33
33
|
RuntimeError_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-NWJRIJQG.js";
|
|
35
35
|
import {
|
|
36
36
|
Check_default
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-PQW63B2T.js";
|
|
38
38
|
import {
|
|
39
39
|
__commonJS,
|
|
40
40
|
__require,
|
|
41
41
|
__toESM,
|
|
42
42
|
defined_default
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-L73TRTIG.js";
|
|
44
44
|
|
|
45
45
|
// packages/engine/Source/ThirdParty/Workers/basis_transcoder.js
|
|
46
46
|
var require_basis_transcoder = __commonJS({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.134.1-ion.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -26,48 +26,48 @@
|
|
|
26
26
|
import {
|
|
27
27
|
EllipsoidalOccluder_default,
|
|
28
28
|
TerrainEncoding_default
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-JESBYOH5.js";
|
|
30
30
|
import {
|
|
31
31
|
createTaskProcessorWorker_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-H3G7OYZY.js";
|
|
33
33
|
import {
|
|
34
34
|
OrientedBoundingBox_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-3K4DRV7Y.js";
|
|
36
36
|
import {
|
|
37
37
|
AttributeCompression_default
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-UTTKH2UG.js";
|
|
39
|
+
import "./chunk-KGL66RWW.js";
|
|
40
|
+
import "./chunk-G74UMFQ4.js";
|
|
41
|
+
import "./chunk-EEDSGIH7.js";
|
|
42
|
+
import "./chunk-YFZMB6FZ.js";
|
|
43
43
|
import {
|
|
44
44
|
IndexDatatype_default
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-3XTJC4CV.js";
|
|
46
46
|
import {
|
|
47
47
|
BoundingSphere_default
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-SGEAS4NZ.js";
|
|
49
49
|
import {
|
|
50
50
|
Rectangle_default
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import "./chunk-
|
|
51
|
+
} from "./chunk-OLH67Z2S.js";
|
|
52
|
+
import "./chunk-ADADBRLI.js";
|
|
53
53
|
import {
|
|
54
54
|
Cartesian2_default,
|
|
55
55
|
Cartesian3_default,
|
|
56
56
|
Cartographic_default,
|
|
57
57
|
Ellipsoid_default
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-EZJXK2UP.js";
|
|
59
59
|
import {
|
|
60
60
|
Math_default
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
61
|
+
} from "./chunk-2PX2ULSM.js";
|
|
62
|
+
import "./chunk-HDBIC7IL.js";
|
|
63
|
+
import "./chunk-NWJRIJQG.js";
|
|
64
64
|
import {
|
|
65
65
|
Check_default,
|
|
66
66
|
DeveloperError_default
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-PQW63B2T.js";
|
|
68
68
|
import {
|
|
69
69
|
defined_default
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-L73TRTIG.js";
|
|
71
71
|
|
|
72
72
|
// packages/engine/Source/Core/Intersections2D.js
|
|
73
73
|
var Intersections2D = {};
|
package/Source/Core/Event.js
CHANGED
|
@@ -22,10 +22,23 @@ import defined from "./defined.js";
|
|
|
22
22
|
* evt.removeEventListener(MyObject.prototype.myListener);
|
|
23
23
|
*/
|
|
24
24
|
function Event() {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
/**
|
|
26
|
+
* @type {Map<Listener,Set<object>>}
|
|
27
|
+
* @private
|
|
28
|
+
*/
|
|
29
|
+
this._listeners = new Map();
|
|
30
|
+
/**
|
|
31
|
+
* @type {Map<Listener,Set<object>>}
|
|
32
|
+
* @private
|
|
33
|
+
*/
|
|
34
|
+
this._toRemove = new Map();
|
|
35
|
+
/**
|
|
36
|
+
* @type {Map<Listener,Set<object>>}
|
|
37
|
+
* @private
|
|
38
|
+
*/
|
|
39
|
+
this._toAdd = new Map();
|
|
40
|
+
this._invokingListeners = false;
|
|
41
|
+
this._listenerCount = 0; // Tracks number of listener + scope pairs
|
|
29
42
|
}
|
|
30
43
|
|
|
31
44
|
Object.defineProperties(Event.prototype, {
|
|
@@ -37,7 +50,7 @@ Object.defineProperties(Event.prototype, {
|
|
|
37
50
|
*/
|
|
38
51
|
numberOfListeners: {
|
|
39
52
|
get: function () {
|
|
40
|
-
return this.
|
|
53
|
+
return this._listenerCount;
|
|
41
54
|
},
|
|
42
55
|
},
|
|
43
56
|
});
|
|
@@ -59,16 +72,34 @@ Event.prototype.addEventListener = function (listener, scope) {
|
|
|
59
72
|
//>>includeStart('debug', pragmas.debug);
|
|
60
73
|
Check.typeOf.func("listener", listener);
|
|
61
74
|
//>>includeEnd('debug');
|
|
75
|
+
const event = this;
|
|
62
76
|
|
|
63
|
-
|
|
64
|
-
|
|
77
|
+
const listenerMap = event._invokingListeners
|
|
78
|
+
? event._toAdd
|
|
79
|
+
: event._listeners;
|
|
80
|
+
const added = addEventListener(this, listenerMap, listener, scope);
|
|
81
|
+
if (added) {
|
|
82
|
+
event._listenerCount++;
|
|
83
|
+
}
|
|
65
84
|
|
|
66
|
-
const event = this;
|
|
67
85
|
return function () {
|
|
68
86
|
event.removeEventListener(listener, scope);
|
|
69
87
|
};
|
|
70
88
|
};
|
|
71
89
|
|
|
90
|
+
function addEventListener(event, listenerMap, listener, scope) {
|
|
91
|
+
if (!listenerMap.has(listener)) {
|
|
92
|
+
listenerMap.set(listener, new Set());
|
|
93
|
+
}
|
|
94
|
+
const scopes = listenerMap.get(listener);
|
|
95
|
+
if (!scopes.has(scope)) {
|
|
96
|
+
scopes.add(scope);
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
|
|
72
103
|
/**
|
|
73
104
|
* Unregisters a previously registered callback.
|
|
74
105
|
*
|
|
@@ -84,37 +115,46 @@ Event.prototype.removeEventListener = function (listener, scope) {
|
|
|
84
115
|
Check.typeOf.func("listener", listener);
|
|
85
116
|
//>>includeEnd('debug');
|
|
86
117
|
|
|
87
|
-
const
|
|
88
|
-
|
|
118
|
+
const removedFromListeners = removeEventListener(
|
|
119
|
+
this,
|
|
120
|
+
this._listeners,
|
|
121
|
+
listener,
|
|
122
|
+
scope,
|
|
123
|
+
);
|
|
124
|
+
const removedFromToAdd = removeEventListener(
|
|
125
|
+
this,
|
|
126
|
+
this._toAdd,
|
|
127
|
+
listener,
|
|
128
|
+
scope,
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
const removed = removedFromListeners || removedFromToAdd;
|
|
132
|
+
if (removed) {
|
|
133
|
+
this._listenerCount--;
|
|
134
|
+
}
|
|
89
135
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
136
|
+
return removed;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
function removeEventListener(event, listenerMap, listener, scope) {
|
|
140
|
+
const scopes = listenerMap.get(listener);
|
|
141
|
+
if (!scopes || !scopes.has(scope)) {
|
|
142
|
+
return false;
|
|
96
143
|
}
|
|
97
144
|
|
|
98
|
-
if (
|
|
99
|
-
if (
|
|
100
|
-
//
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
listeners.splice(index, 1);
|
|
108
|
-
scopes.splice(index, 1);
|
|
145
|
+
if (event._invokingListeners) {
|
|
146
|
+
if (!addEventListener(event, event._toRemove, listener, scope)) {
|
|
147
|
+
// Already marked for removal
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
} else {
|
|
151
|
+
scopes.delete(scope);
|
|
152
|
+
if (scopes.size === 0) {
|
|
153
|
+
listenerMap.delete(listener);
|
|
109
154
|
}
|
|
110
|
-
return true;
|
|
111
155
|
}
|
|
112
156
|
|
|
113
|
-
return
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
function compareNumber(a, b) {
|
|
117
|
-
return b - a;
|
|
157
|
+
return true;
|
|
118
158
|
}
|
|
119
159
|
|
|
120
160
|
/**
|
|
@@ -126,34 +166,35 @@ function compareNumber(a, b) {
|
|
|
126
166
|
* @see Event#removeEventListener
|
|
127
167
|
*/
|
|
128
168
|
Event.prototype.raiseEvent = function () {
|
|
129
|
-
this.
|
|
169
|
+
this._invokingListeners = true;
|
|
130
170
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
171
|
+
for (const [listener, scopes] of this._listeners.entries()) {
|
|
172
|
+
if (!defined(listener)) {
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
135
175
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
if (defined(listener)) {
|
|
139
|
-
listeners[i].apply(scopes[i], arguments);
|
|
176
|
+
for (const scope of scopes) {
|
|
177
|
+
listener.apply(scope, arguments);
|
|
140
178
|
}
|
|
141
179
|
}
|
|
142
180
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
const index = toRemove[i];
|
|
150
|
-
listeners.splice(index, 1);
|
|
151
|
-
scopes.splice(index, 1);
|
|
181
|
+
this._invokingListeners = false;
|
|
182
|
+
|
|
183
|
+
// Actually add items marked for addition
|
|
184
|
+
for (const [listener, scopes] of this._toAdd.entries()) {
|
|
185
|
+
for (const scope of scopes) {
|
|
186
|
+
addEventListener(this, this._listeners, listener, scope);
|
|
152
187
|
}
|
|
153
|
-
toRemove.length = 0;
|
|
154
188
|
}
|
|
189
|
+
this._toAdd.clear();
|
|
155
190
|
|
|
156
|
-
|
|
191
|
+
// Actually remove items marked for removal
|
|
192
|
+
for (const [listener, scopes] of this._toRemove.entries()) {
|
|
193
|
+
for (const scope of scopes) {
|
|
194
|
+
removeEventListener(this, this._listeners, listener, scope);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
this._toRemove.clear();
|
|
157
198
|
};
|
|
158
199
|
|
|
159
200
|
/**
|
|
@@ -25,10 +25,10 @@ GoogleMaps.defaultApiKey = undefined;
|
|
|
25
25
|
* Gets or sets the default Google Map Tiles API endpoint.
|
|
26
26
|
*
|
|
27
27
|
* @type {string|Resource}
|
|
28
|
-
* @default https://tile.googleapis.com/
|
|
28
|
+
* @default https://tile.googleapis.com/
|
|
29
29
|
*/
|
|
30
30
|
GoogleMaps.mapTilesApiEndpoint = new Resource({
|
|
31
|
-
url: "https://tile.googleapis.com/
|
|
31
|
+
url: "https://tile.googleapis.com/",
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
GoogleMaps.getDefaultCredit = function () {
|
package/Source/Core/Ion.js
CHANGED
|
@@ -4,7 +4,7 @@ import Resource from "./Resource.js";
|
|
|
4
4
|
|
|
5
5
|
let defaultTokenCredit;
|
|
6
6
|
const defaultAccessToken =
|
|
7
|
-
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
|
|
7
|
+
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJjNjI5ZTViNy0wY2FhLTQ0ZDUtYTIzMi0wMWEyMzZkYWYwYWYiLCJpZCI6MjU5LCJpYXQiOjE3NTkzNDcyNDZ9.xyOPig1igKFQvOTaXfTE0KQ7dU7jyn_c3OQPaQ1hEiI";
|
|
8
8
|
/**
|
|
9
9
|
* Default settings for accessing the Cesium ion API.
|
|
10
10
|
*
|
|
@@ -39,6 +39,12 @@ function IonResource(endpoint, endpointResource) {
|
|
|
39
39
|
retryAttempts: 1,
|
|
40
40
|
retryCallback: retryCallback,
|
|
41
41
|
};
|
|
42
|
+
} else if (["GOOGLE_2D_MAPS", "AZURE_MAPS"].includes(externalType)) {
|
|
43
|
+
options = {
|
|
44
|
+
url: endpoint.options.url,
|
|
45
|
+
retryAttempts: 1,
|
|
46
|
+
retryCallback: retryCallback,
|
|
47
|
+
};
|
|
42
48
|
} else if (
|
|
43
49
|
externalType === "3DTILES" ||
|
|
44
50
|
externalType === "STK_TERRAIN_SERVER"
|
|
@@ -84,7 +90,7 @@ if (defined(Object.create)) {
|
|
|
84
90
|
* @param {object} [options] An object with the following properties:
|
|
85
91
|
* @param {string} [options.accessToken=Ion.defaultAccessToken] The access token to use.
|
|
86
92
|
* @param {string|Resource} [options.server=Ion.defaultServer] The resource to the Cesium ion API server.
|
|
87
|
-
* @returns {Promise<IonResource>} A Promise to
|
|
93
|
+
* @returns {Promise<IonResource>} A Promise to an instance representing the Cesium ion Asset.
|
|
88
94
|
*
|
|
89
95
|
* @example
|
|
90
96
|
* // Load a Cesium3DTileset with asset ID of 124624234
|
|
@@ -207,7 +213,7 @@ IonResource.prototype._makeRequest = function (options) {
|
|
|
207
213
|
|
|
208
214
|
/**
|
|
209
215
|
* @private
|
|
210
|
-
|
|
216
|
+
**/
|
|
211
217
|
IonResource._createEndpointResource = function (assetId, options) {
|
|
212
218
|
//>>includeStart('debug', pragmas.debug);
|
|
213
219
|
Check.defined("assetId", assetId);
|
|
@@ -226,6 +232,13 @@ IonResource._createEndpointResource = function (assetId, options) {
|
|
|
226
232
|
resourceOptions.queryParameters = { access_token: accessToken };
|
|
227
233
|
}
|
|
228
234
|
|
|
235
|
+
if (defined(options.queryParameters)) {
|
|
236
|
+
resourceOptions.queryParameters = {
|
|
237
|
+
...resourceOptions.queryParameters,
|
|
238
|
+
...options.queryParameters,
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
|
|
229
242
|
addClientHeaders(resourceOptions);
|
|
230
243
|
|
|
231
244
|
return server.getDerivedResource(resourceOptions);
|
|
@@ -267,9 +280,21 @@ function retryCallback(that, error) {
|
|
|
267
280
|
ionRoot._pendingPromise = endpointResource
|
|
268
281
|
.fetchJson()
|
|
269
282
|
.then(function (newEndpoint) {
|
|
270
|
-
//Set the token for root resource so new derived resources automatically pick it up
|
|
283
|
+
// Set the token for root resource so new derived resources automatically pick it up
|
|
271
284
|
ionRoot._ionEndpoint = newEndpoint;
|
|
272
|
-
|
|
285
|
+
// Reset the session token for Google 2D imagery
|
|
286
|
+
if (newEndpoint.externalType === "GOOGLE_2D_MAPS") {
|
|
287
|
+
ionRoot.setQueryParameters({
|
|
288
|
+
session: newEndpoint.options.session,
|
|
289
|
+
key: newEndpoint.options.key,
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
if (newEndpoint.externalType === "AZURE_MAPS") {
|
|
293
|
+
ionRoot.setQueryParameters({
|
|
294
|
+
"subscription-key": newEndpoint.options["subscription-key"],
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
return ionRoot._ionEndpoint;
|
|
273
298
|
})
|
|
274
299
|
.finally(function (newEndpoint) {
|
|
275
300
|
// Pass or fail, we're done with this promise, the next failure should use a new one.
|
|
@@ -284,4 +309,5 @@ function retryCallback(that, error) {
|
|
|
284
309
|
return true;
|
|
285
310
|
});
|
|
286
311
|
}
|
|
312
|
+
|
|
287
313
|
export default IonResource;
|
package/Source/Core/Resource.js
CHANGED
|
@@ -231,6 +231,8 @@ Resource.supportsImageBitmapOptions = function () {
|
|
|
231
231
|
})
|
|
232
232
|
.then(function (blob) {
|
|
233
233
|
const imageBitmapOptions = {
|
|
234
|
+
// 'from-image' is deprecated, new option is 'none'. However, we still need to support older browsers,
|
|
235
|
+
// and there's no good way to detect support for these options. For now, continue to use 'from-image'. See: https://github.com/CesiumGS/cesium/issues/12846
|
|
234
236
|
imageOrientation: "flipY", // default is "from-image"
|
|
235
237
|
premultiplyAlpha: "none", // default is "default"
|
|
236
238
|
colorSpaceConversion: "none", // default is "default"
|
|
@@ -2036,7 +2038,9 @@ Resource.createImageBitmapFromBlob = function (blob, options) {
|
|
|
2036
2038
|
);
|
|
2037
2039
|
|
|
2038
2040
|
return createImageBitmap(blob, {
|
|
2039
|
-
|
|
2041
|
+
// 'from-image' is deprecated, new option is 'none'. However, we still need to support older browsers,
|
|
2042
|
+
// and there's no good way to detect support for these options. For now, continue to use 'from-image'. See: https://github.com/CesiumGS/cesium/issues/12846
|
|
2043
|
+
imageOrientation: options.flipY ? "flipY" : "none",
|
|
2040
2044
|
premultiplyAlpha: options.premultiplyAlpha ? "premultiply" : "none",
|
|
2041
2045
|
colorSpaceConversion: options.skipColorSpaceConversion ? "none" : "default",
|
|
2042
2046
|
});
|