@cesium/engine 21.0.1-ion.0 → 22.0.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/Workers/{chunk-LSNF6CIP.js → chunk-2D3GLFZD.js} +12 -12
- package/Build/Workers/chunk-34YXP222.js +352 -0
- package/Build/Workers/{chunk-OLH67Z2S.js → chunk-3GL53OCU.js} +17 -18
- package/Build/Workers/{chunk-WIPOMPA5.js → chunk-5B7VZQZY.js} +6 -6
- package/Build/Workers/{chunk-NWJRIJQG.js → chunk-5T5SY63I.js} +2 -2
- package/Build/Workers/{chunk-DTYIUWZU.js → chunk-5ZF53EY6.js} +4 -4
- package/Build/Workers/{chunk-UTTKH2UG.js → chunk-6HBKE43B.js} +7 -7
- package/Build/Workers/{chunk-ZTGZMKAB.js → chunk-726NINF5.js} +16 -16
- package/Build/Workers/{chunk-L73TRTIG.js → chunk-75HAJIDT.js} +1 -1
- package/Build/Workers/{chunk-G5RX7BPJ.js → chunk-7KAXDKRU.js} +10 -10
- package/Build/Workers/chunk-7XEJGXX2.js +2759 -0
- package/Build/Workers/{chunk-ZOVMWDPW.js → chunk-A4DPJIWS.js} +18 -10
- package/Build/Workers/{chunk-UTL4WVC3.js → chunk-A6JAFSZT.js} +5 -5
- package/Build/Workers/{chunk-E6T4LSM6.js → chunk-AARZSH4V.js} +5 -5
- package/Build/Workers/{chunk-EEDSGIH7.js → chunk-AOM3FHBN.js} +6 -6
- package/Build/Workers/{chunk-WJV24LAS.js → chunk-BJSNGGBM.js} +4 -4
- package/Build/Workers/{chunk-VIDWZGD6.js → chunk-ECHAJNQJ.js} +12 -12
- package/Build/Workers/{chunk-MIFUV36K.js → chunk-EJO3NKMS.js} +1 -1
- package/Build/Workers/{chunk-ADADBRLI.js → chunk-EZ7NJXQN.js} +4 -4
- package/Build/Workers/{chunk-MJWRSKJV.js → chunk-FA3SCJDX.js} +2 -2
- package/Build/Workers/{chunk-XFS2ORSO.js → chunk-GYRDA3XK.js} +14 -14
- package/Build/Workers/{chunk-3XTJC4CV.js → chunk-H7B7FU2U.js} +7 -7
- package/Build/Workers/{chunk-HDBIC7IL.js → chunk-IGX772ZQ.js} +1 -1
- package/Build/Workers/{chunk-EHMAKCWQ.js → chunk-JDJAPBZP.js} +1 -1
- package/Build/Workers/{chunk-LK7H6V2E.js → chunk-JZFU2LEM.js} +4 -4
- package/Build/Workers/{chunk-3K4DRV7Y.js → chunk-KGLDJRSO.js} +9 -9
- package/Build/Workers/{chunk-LEFV6H2V.js → chunk-KUB64XW6.js} +11 -11
- package/Build/Workers/{chunk-26ZRRKTU.js → chunk-L7U26FFD.js} +16 -16
- package/Build/Workers/{chunk-T7WXNKIA.js → chunk-LEFQBK6H.js} +11 -11
- package/Build/Workers/{chunk-75UG66GR.js → chunk-LWJXCI3F.js} +5 -5
- package/Build/Workers/{chunk-ESPNIYL5.js → chunk-M7HRE4QR.js} +8 -8
- package/Build/Workers/{chunk-SGEAS4NZ.js → chunk-MXHRZHDF.js} +6 -6
- package/Build/Workers/{chunk-YFZMB6FZ.js → chunk-N52ZRKUE.js} +6 -6
- package/Build/Workers/{chunk-AQ4A5CMC.js → chunk-NE5JTQJP.js} +7 -7
- package/Build/Workers/{chunk-G74UMFQ4.js → chunk-NGKF5NTR.js} +5 -5
- package/Build/Workers/{chunk-TXK2FF6N.js → chunk-NHZNMTIR.js} +5 -5
- package/Build/Workers/{chunk-2PX2ULSM.js → chunk-OE22564R.js} +3 -3
- package/Build/Workers/{chunk-AGT6W3JS.js → chunk-OUBBMEWX.js} +6 -6
- package/Build/Workers/{chunk-JESBYOH5.js → chunk-P2H75UV5.js} +67 -33
- package/Build/Workers/{chunk-B56XVJRS.js → chunk-QCMRUVVF.js} +12 -12
- package/Build/Workers/{chunk-SDFGZML6.js → chunk-QSMIHPUM.js} +2 -2
- package/Build/Workers/{chunk-SF2XXYOB.js → chunk-RCCYW6E7.js} +12 -12
- package/Build/Workers/{chunk-EZJXK2UP.js → chunk-RQRODXVN.js} +4 -4
- package/Build/Workers/{chunk-WMG6UOCJ.js → chunk-SZN34LQ5.js} +10 -10
- package/Build/Workers/{chunk-XYBFMHXA.js → chunk-U4XMLGSR.js} +7 -7
- package/Build/Workers/{chunk-KGL66RWW.js → chunk-U7CX3HHE.js} +8 -8
- package/Build/Workers/{chunk-MFPT34BC.js → chunk-VCVA7BMD.js} +4 -4
- package/Build/Workers/{chunk-H3G7OYZY.js → chunk-VVZ667H6.js} +2 -2
- package/Build/Workers/{chunk-PQW63B2T.js → chunk-W4PIP5PG.js} +2 -2
- package/Build/Workers/{chunk-XPTKQIVN.js → chunk-XPVZWY4A.js} +8 -8
- package/Build/Workers/{chunk-OWCFUM4Z.js → chunk-XQ347YWU.js} +13 -13
- package/Build/Workers/{chunk-MBIUW42A.js → chunk-XZO6F23E.js} +1 -1
- package/Build/Workers/{chunk-6KX3IUUT.js → chunk-YLILBDWK.js} +2 -2
- package/Build/Workers/{chunk-RFZAUDYZ.js → chunk-YLXWC7OW.js} +4 -4
- 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 +24 -22
- 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/createVerticesFromCesium3DTilesTerrain.js +88 -0
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +21 -21
- package/Build/Workers/createVerticesFromHeightmap.js +21 -21
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +19 -277
- 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/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +92 -0
- package/Source/Core/ArcGISTiledElevationTerrainProvider.js +2 -2
- package/Source/Core/Cesium3DTilesTerrainData.js +930 -0
- package/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js +1866 -0
- package/Source/Core/Cesium3DTilesTerrainProvider.js +1052 -0
- package/Source/Core/CesiumTerrainProvider.js +2 -2
- package/Source/Core/Color.js +23 -6
- package/Source/Core/EllipsoidalOccluder.js +2 -2
- package/Source/Core/FeatureDetection.js +0 -2
- package/Source/Core/GoogleEarthEnterpriseMetadata.js +1 -1
- package/Source/Core/GoogleEarthEnterpriseTerrainData.js +1 -1
- package/Source/Core/GoogleEarthEnterpriseTerrainProvider.js +1 -1
- package/Source/Core/HeightmapTerrainData.js +10 -22
- package/Source/Core/HilbertOrder.js +0 -6
- package/Source/Core/ITwinPlatform.js +6 -6
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/IonResource.js +35 -27
- package/Source/Core/PixelFormat.js +2 -2
- package/Source/Core/QuantizedMeshTerrainData.js +23 -57
- package/Source/Core/Resource.js +15 -11
- package/Source/Core/S2Cell.js +6 -18
- package/Source/Core/TaskProcessor.js +1 -1
- package/Source/Core/TerrainData.js +2 -1
- package/Source/Core/TerrainEncoding.js +215 -38
- package/Source/Core/TerrainMesh.js +8 -8
- package/Source/Core/TerrainProvider.js +151 -0
- package/Source/Core/VRTheWorldTerrainProvider.js +2 -2
- package/Source/Core/binarySearch.js +1 -1
- package/Source/Core/createWorldBathymetryAsync.js +2 -2
- package/Source/Core/createWorldTerrainAsync.js +3 -3
- package/Source/Core/loadImageFromTypedArray.js +9 -3
- package/Source/Core/mergeSort.js +1 -1
- package/Source/DataSources/PropertyArray.js +2 -2
- package/Source/Renderer/AutomaticUniforms.js +61 -0
- package/Source/Renderer/Context.js +13 -7
- package/Source/Renderer/Pass.js +10 -9
- package/Source/Renderer/UniformState.js +12 -0
- package/Source/Renderer/VertexArray.js +1 -1
- package/Source/Scene/ArcGisMapServerImageryProvider.js +1 -1
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/Azure2DImageryProvider.js +7 -5
- package/Source/Scene/BatchTable.js +2 -2
- package/Source/Scene/BillboardCollection.js +25 -21
- package/Source/Scene/BingMapsImageryProvider.js +1 -1
- package/Source/Scene/BoundingVolumeSemantics.js +54 -62
- package/Source/Scene/Cesium3DTile.js +3 -3
- package/Source/Scene/Cesium3DTilesVoxelProvider.js +1 -1
- package/Source/Scene/Cesium3DTileset.js +1 -1
- package/Source/Scene/EdgeFramebuffer.js +245 -0
- package/Source/Scene/FrameState.js +12 -0
- package/Source/Scene/GaussianSplat3DTileContent.js +12 -16
- package/Source/Scene/GaussianSplatPrimitive.js +12 -8
- package/Source/Scene/GaussianSplatSorter.js +2 -2
- package/Source/Scene/Globe.js +1 -1
- package/Source/Scene/GlobeSurfaceTile.js +10 -4
- package/Source/Scene/GltfBufferViewLoader.js +18 -0
- package/Source/Scene/GltfLoader.js +46 -8
- package/Source/Scene/Google2DImageryProvider.js +39 -27
- package/Source/Scene/GoogleEarthEnterpriseMapsProvider.js +1 -1
- package/Source/Scene/I3SDataProvider.js +1 -1
- package/Source/Scene/I3SDecoder.js +3 -3
- package/Source/Scene/ITwinData.js +4 -4
- package/Source/Scene/ImageryLayer.js +1 -1
- package/Source/Scene/Implicit3DTileContent.js +18 -7
- package/Source/Scene/ImplicitSubtree.js +3 -3
- package/Source/Scene/ImplicitTileset.js +2 -2
- package/Source/Scene/IonImageryProvider.js +15 -84
- package/Source/Scene/IonImageryProviderFactory.js +194 -0
- package/Source/Scene/LabelCollection.js +54 -36
- package/Source/Scene/MetadataComponentType.js +5 -5
- package/Source/Scene/MetadataTableProperty.js +3 -9
- package/Source/Scene/Model/EdgeDetectionPipelineStage.js +42 -0
- package/Source/Scene/Model/EdgeVisibilityPipelineStage.js +800 -0
- package/Source/Scene/Model/MetadataPipelineStage.js +7 -7
- package/Source/Scene/Model/ModelDrawCommand.js +69 -0
- package/Source/Scene/Model/ModelImagery.js +4 -0
- package/Source/Scene/Model/ModelRuntimeNode.js +2 -2
- package/Source/Scene/Model/ModelRuntimePrimitive.js +13 -2
- package/Source/Scene/Model/ModelSceneGraph.js +15 -3
- package/Source/Scene/Model/ModelUtility.js +0 -1
- package/Source/Scene/Model/NodeRenderResources.js +1 -1
- package/Source/Scene/Model/PrimitiveRenderResources.js +1 -1
- package/Source/Scene/OIT.js +11 -1
- package/Source/Scene/PickFramebuffer.js +13 -17
- package/Source/Scene/Picking.js +104 -80
- package/Source/Scene/QuadtreePrimitive.js +34 -26
- package/Source/Scene/QuadtreeTile.js +66 -46
- package/Source/Scene/ResourceLoaderState.js +1 -1
- package/Source/Scene/Scene.js +124 -12
- package/Source/Scene/ScreenSpaceCameraController.js +1 -1
- package/Source/Scene/SensorVolumePortionToDisplay.js +6 -6
- package/Source/Scene/SingleTileImageryProvider.js +3 -3
- package/Source/Scene/Terrain.js +5 -5
- package/Source/Scene/TileMapServiceImageryProvider.js +2 -2
- package/Source/Scene/UrlTemplateImageryProvider.js +1 -1
- package/Source/Scene/View.js +3 -0
- package/Source/Scene/VoxelPrimitive.js +196 -189
- package/Source/Scene/VoxelShape.js +2 -0
- package/Source/Scene/createWorldImageryAsync.js +1 -1
- package/Source/Shaders/BillboardCollectionFS.glsl +102 -62
- package/Source/Shaders/BillboardCollectionFS.js +102 -63
- package/Source/Shaders/BillboardCollectionVS.glsl +44 -37
- package/Source/Shaders/BillboardCollectionVS.js +45 -38
- package/Source/Shaders/Builtin/Constants/passCesium3DTile.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTile.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassification.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassification.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassificationIgnoreShow.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassificationIgnoreShow.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileEdges.glsl +10 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTileEdges.js +12 -0
- package/Source/Shaders/Builtin/Constants/passGaussianSplats.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passGaussianSplats.js +1 -1
- package/Source/Shaders/Builtin/Constants/passOpaque.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passOpaque.js +1 -1
- package/Source/Shaders/Builtin/Constants/passOverlay.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passOverlay.js +1 -1
- package/Source/Shaders/Builtin/Constants/passTranslucent.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passTranslucent.js +1 -1
- package/Source/Shaders/Builtin/Constants/passVoxels.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passVoxels.js +1 -1
- package/Source/Shaders/Builtin/CzmBuiltins.js +2 -0
- package/Source/Shaders/GlobeVS.glsl +1 -1
- package/Source/Shaders/GlobeVS.js +1 -1
- package/Source/Shaders/Model/EdgeDetectionStageFS.glsl +58 -0
- package/Source/Shaders/Model/EdgeDetectionStageFS.js +60 -0
- package/Source/Shaders/Model/EdgeVisibilityStageFS.glsl +83 -0
- package/Source/Shaders/Model/EdgeVisibilityStageFS.js +85 -0
- package/Source/Shaders/Model/ModelFS.glsl +5 -0
- package/Source/Shaders/Model/ModelFS.js +5 -0
- package/Source/Shaders/Model/PrimitiveOutlineStageFS.glsl +0 -1
- package/Source/Shaders/Model/PrimitiveOutlineStageFS.js +0 -1
- package/Source/Shaders/ShadowVolumeAppearanceFS.glsl +7 -15
- package/Source/Shaders/ShadowVolumeAppearanceFS.js +7 -15
- package/Source/Workers/createVerticesFromCesium3DTilesTerrain.js +46 -0
- package/Source/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +55 -0
- package/index.d.ts +281 -27
- package/index.js +176 -166
- package/package.json +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.135.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,41 +25,41 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
EllipseGeometryLibrary_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BJSNGGBM.js";
|
|
29
29
|
import {
|
|
30
30
|
GeometryOffsetAttribute_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-JDJAPBZP.js";
|
|
32
32
|
import {
|
|
33
33
|
IndexDatatype_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-H7B7FU2U.js";
|
|
35
35
|
import {
|
|
36
36
|
GeometryAttributes_default
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-YLILBDWK.js";
|
|
38
38
|
import {
|
|
39
39
|
GeometryAttribute_default,
|
|
40
40
|
Geometry_default,
|
|
41
41
|
PrimitiveType_default
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-XPVZWY4A.js";
|
|
43
43
|
import {
|
|
44
44
|
BoundingSphere_default
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-MXHRZHDF.js";
|
|
46
46
|
import {
|
|
47
47
|
ComponentDatatype_default
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-EZ7NJXQN.js";
|
|
49
49
|
import {
|
|
50
50
|
Cartesian3_default,
|
|
51
51
|
Ellipsoid_default,
|
|
52
52
|
Frozen_default
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-RQRODXVN.js";
|
|
54
54
|
import {
|
|
55
55
|
Math_default
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-OE22564R.js";
|
|
57
57
|
import {
|
|
58
58
|
DeveloperError_default
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-W4PIP5PG.js";
|
|
60
60
|
import {
|
|
61
61
|
defined_default
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-75HAJIDT.js";
|
|
63
63
|
|
|
64
64
|
// packages/engine/Source/Core/EllipseOutlineGeometry.js
|
|
65
65
|
var scratchCartesian1 = new Cartesian3_default();
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.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
|
+
IndexDatatype_default
|
|
28
|
+
} from "./chunk-H7B7FU2U.js";
|
|
29
|
+
import {
|
|
30
|
+
Math_default
|
|
31
|
+
} from "./chunk-OE22564R.js";
|
|
32
|
+
import {
|
|
33
|
+
DeveloperError_default
|
|
34
|
+
} from "./chunk-W4PIP5PG.js";
|
|
35
|
+
import {
|
|
36
|
+
defined_default
|
|
37
|
+
} from "./chunk-75HAJIDT.js";
|
|
38
|
+
|
|
39
|
+
// packages/engine/Source/Core/TerrainProvider.js
|
|
40
|
+
function TerrainProvider() {
|
|
41
|
+
DeveloperError_default.throwInstantiationError();
|
|
42
|
+
}
|
|
43
|
+
Object.defineProperties(TerrainProvider.prototype, {
|
|
44
|
+
/**
|
|
45
|
+
* Gets an event that is raised when the terrain provider encounters an asynchronous error. By subscribing
|
|
46
|
+
* to the event, you will be notified of the error and can potentially recover from it. Event listeners
|
|
47
|
+
* are passed an instance of {@link TileProviderError}.
|
|
48
|
+
* @memberof TerrainProvider.prototype
|
|
49
|
+
* @type {Event<TerrainProvider.ErrorEvent>}
|
|
50
|
+
* @readonly
|
|
51
|
+
*/
|
|
52
|
+
errorEvent: {
|
|
53
|
+
get: DeveloperError_default.throwInstantiationError
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* Gets the credit to display when this terrain provider is active. Typically this is used to credit
|
|
57
|
+
* the source of the terrain.
|
|
58
|
+
* @memberof TerrainProvider.prototype
|
|
59
|
+
* @type {Credit}
|
|
60
|
+
* @readonly
|
|
61
|
+
*/
|
|
62
|
+
credit: {
|
|
63
|
+
get: DeveloperError_default.throwInstantiationError
|
|
64
|
+
},
|
|
65
|
+
/**
|
|
66
|
+
* Gets the tiling scheme used by the provider.
|
|
67
|
+
* @memberof TerrainProvider.prototype
|
|
68
|
+
* @type {TilingScheme}
|
|
69
|
+
* @readonly
|
|
70
|
+
*/
|
|
71
|
+
tilingScheme: {
|
|
72
|
+
get: DeveloperError_default.throwInstantiationError
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* Gets a value indicating whether or not the provider includes a water mask. The water mask
|
|
76
|
+
* indicates which areas of the globe are water rather than land, so they can be rendered
|
|
77
|
+
* as a reflective surface with animated waves.
|
|
78
|
+
* @memberof TerrainProvider.prototype
|
|
79
|
+
* @type {boolean}
|
|
80
|
+
* @readonly
|
|
81
|
+
*/
|
|
82
|
+
hasWaterMask: {
|
|
83
|
+
get: DeveloperError_default.throwInstantiationError
|
|
84
|
+
},
|
|
85
|
+
/**
|
|
86
|
+
* Gets a value indicating whether or not the requested tiles include vertex normals.
|
|
87
|
+
* @memberof TerrainProvider.prototype
|
|
88
|
+
* @type {boolean}
|
|
89
|
+
* @readonly
|
|
90
|
+
*/
|
|
91
|
+
hasVertexNormals: {
|
|
92
|
+
get: DeveloperError_default.throwInstantiationError
|
|
93
|
+
},
|
|
94
|
+
/**
|
|
95
|
+
* Gets an object that can be used to determine availability of terrain from this provider, such as
|
|
96
|
+
* at points and in rectangles. This property may be undefined if availability
|
|
97
|
+
* information is not available.
|
|
98
|
+
* @memberof TerrainProvider.prototype
|
|
99
|
+
* @type {TileAvailability|undefined}
|
|
100
|
+
* @readonly
|
|
101
|
+
*/
|
|
102
|
+
availability: {
|
|
103
|
+
get: DeveloperError_default.throwInstantiationError
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
var regularGridIndicesCache = [];
|
|
107
|
+
TerrainProvider.getRegularGridIndices = function(width, height) {
|
|
108
|
+
if (width * height >= Math_default.FOUR_GIGABYTES) {
|
|
109
|
+
throw new DeveloperError_default(
|
|
110
|
+
"The total number of vertices (width * height) must be less than 4,294,967,296."
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
let byWidth = regularGridIndicesCache[width];
|
|
114
|
+
if (!defined_default(byWidth)) {
|
|
115
|
+
regularGridIndicesCache[width] = byWidth = [];
|
|
116
|
+
}
|
|
117
|
+
let indices = byWidth[height];
|
|
118
|
+
if (!defined_default(indices)) {
|
|
119
|
+
if (width * height < Math_default.SIXTY_FOUR_KILOBYTES) {
|
|
120
|
+
indices = byWidth[height] = new Uint16Array(
|
|
121
|
+
(width - 1) * (height - 1) * 6
|
|
122
|
+
);
|
|
123
|
+
} else {
|
|
124
|
+
indices = byWidth[height] = new Uint32Array(
|
|
125
|
+
(width - 1) * (height - 1) * 6
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
addRegularGridIndices(width, height, indices, 0);
|
|
129
|
+
}
|
|
130
|
+
return indices;
|
|
131
|
+
};
|
|
132
|
+
var regularGridAndEdgeIndicesCache = [];
|
|
133
|
+
TerrainProvider.getRegularGridIndicesAndEdgeIndices = function(width, height) {
|
|
134
|
+
if (width * height >= Math_default.FOUR_GIGABYTES) {
|
|
135
|
+
throw new DeveloperError_default(
|
|
136
|
+
"The total number of vertices (width * height) must be less than 4,294,967,296."
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
let byWidth = regularGridAndEdgeIndicesCache[width];
|
|
140
|
+
if (!defined_default(byWidth)) {
|
|
141
|
+
regularGridAndEdgeIndicesCache[width] = byWidth = [];
|
|
142
|
+
}
|
|
143
|
+
let indicesAndEdges = byWidth[height];
|
|
144
|
+
if (!defined_default(indicesAndEdges)) {
|
|
145
|
+
const indices = TerrainProvider.getRegularGridIndices(width, height);
|
|
146
|
+
const edgeIndices = getEdgeIndices(width, height);
|
|
147
|
+
const westIndicesSouthToNorth = edgeIndices.westIndicesSouthToNorth;
|
|
148
|
+
const southIndicesEastToWest = edgeIndices.southIndicesEastToWest;
|
|
149
|
+
const eastIndicesNorthToSouth = edgeIndices.eastIndicesNorthToSouth;
|
|
150
|
+
const northIndicesWestToEast = edgeIndices.northIndicesWestToEast;
|
|
151
|
+
indicesAndEdges = byWidth[height] = {
|
|
152
|
+
indices,
|
|
153
|
+
westIndicesSouthToNorth,
|
|
154
|
+
southIndicesEastToWest,
|
|
155
|
+
eastIndicesNorthToSouth,
|
|
156
|
+
northIndicesWestToEast
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
return indicesAndEdges;
|
|
160
|
+
};
|
|
161
|
+
var regularGridAndSkirtAndEdgeIndicesCache = [];
|
|
162
|
+
TerrainProvider.getRegularGridAndSkirtIndicesAndEdgeIndices = function(width, height) {
|
|
163
|
+
if (width * height >= Math_default.FOUR_GIGABYTES) {
|
|
164
|
+
throw new DeveloperError_default(
|
|
165
|
+
"The total number of vertices (width * height) must be less than 4,294,967,296."
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
let byWidth = regularGridAndSkirtAndEdgeIndicesCache[width];
|
|
169
|
+
if (!defined_default(byWidth)) {
|
|
170
|
+
regularGridAndSkirtAndEdgeIndicesCache[width] = byWidth = [];
|
|
171
|
+
}
|
|
172
|
+
let indicesAndEdges = byWidth[height];
|
|
173
|
+
if (!defined_default(indicesAndEdges)) {
|
|
174
|
+
const gridVertexCount = width * height;
|
|
175
|
+
const gridIndexCount = (width - 1) * (height - 1) * 6;
|
|
176
|
+
const edgeVertexCount = width * 2 + height * 2;
|
|
177
|
+
const edgeIndexCount = Math.max(0, edgeVertexCount - 4) * 6;
|
|
178
|
+
const vertexCount = gridVertexCount + edgeVertexCount;
|
|
179
|
+
const indexCount = gridIndexCount + edgeIndexCount;
|
|
180
|
+
const edgeIndices = getEdgeIndices(width, height);
|
|
181
|
+
const westIndicesSouthToNorth = edgeIndices.westIndicesSouthToNorth;
|
|
182
|
+
const southIndicesEastToWest = edgeIndices.southIndicesEastToWest;
|
|
183
|
+
const eastIndicesNorthToSouth = edgeIndices.eastIndicesNorthToSouth;
|
|
184
|
+
const northIndicesWestToEast = edgeIndices.northIndicesWestToEast;
|
|
185
|
+
const indices = IndexDatatype_default.createTypedArray(vertexCount, indexCount);
|
|
186
|
+
addRegularGridIndices(width, height, indices, 0);
|
|
187
|
+
TerrainProvider.addSkirtIndices(
|
|
188
|
+
westIndicesSouthToNorth,
|
|
189
|
+
southIndicesEastToWest,
|
|
190
|
+
eastIndicesNorthToSouth,
|
|
191
|
+
northIndicesWestToEast,
|
|
192
|
+
gridVertexCount,
|
|
193
|
+
indices,
|
|
194
|
+
gridIndexCount
|
|
195
|
+
);
|
|
196
|
+
indicesAndEdges = byWidth[height] = {
|
|
197
|
+
indices,
|
|
198
|
+
westIndicesSouthToNorth,
|
|
199
|
+
southIndicesEastToWest,
|
|
200
|
+
eastIndicesNorthToSouth,
|
|
201
|
+
northIndicesWestToEast,
|
|
202
|
+
indexCountWithoutSkirts: gridIndexCount
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
return indicesAndEdges;
|
|
206
|
+
};
|
|
207
|
+
TerrainProvider.getSkirtVertexCount = function(westIndicesSouthToNorth, southIndicesEastToWest, eastIndicesNorthToSouth, northIndicesWestToEast) {
|
|
208
|
+
return westIndicesSouthToNorth.length + southIndicesEastToWest.length + eastIndicesNorthToSouth.length + northIndicesWestToEast.length;
|
|
209
|
+
};
|
|
210
|
+
TerrainProvider.getSkirtIndexCount = function(skirtVertexCount) {
|
|
211
|
+
return (skirtVertexCount - 4) * 2 * 3;
|
|
212
|
+
};
|
|
213
|
+
TerrainProvider.getSkirtIndexCountWithFilledCorners = function(skirtVertexCount) {
|
|
214
|
+
return ((skirtVertexCount - 4) * 2 + 4) * 3;
|
|
215
|
+
};
|
|
216
|
+
TerrainProvider.addSkirtIndices = function(westIndicesSouthToNorth, southIndicesEastToWest, eastIndicesNorthToSouth, northIndicesWestToEast, vertexCount, indices, offset) {
|
|
217
|
+
let vertexIndex = vertexCount;
|
|
218
|
+
offset = addSkirtIndices(
|
|
219
|
+
westIndicesSouthToNorth,
|
|
220
|
+
vertexIndex,
|
|
221
|
+
indices,
|
|
222
|
+
offset
|
|
223
|
+
);
|
|
224
|
+
vertexIndex += westIndicesSouthToNorth.length;
|
|
225
|
+
offset = addSkirtIndices(
|
|
226
|
+
southIndicesEastToWest,
|
|
227
|
+
vertexIndex,
|
|
228
|
+
indices,
|
|
229
|
+
offset
|
|
230
|
+
);
|
|
231
|
+
vertexIndex += southIndicesEastToWest.length;
|
|
232
|
+
offset = addSkirtIndices(
|
|
233
|
+
eastIndicesNorthToSouth,
|
|
234
|
+
vertexIndex,
|
|
235
|
+
indices,
|
|
236
|
+
offset
|
|
237
|
+
);
|
|
238
|
+
vertexIndex += eastIndicesNorthToSouth.length;
|
|
239
|
+
addSkirtIndices(northIndicesWestToEast, vertexIndex, indices, offset);
|
|
240
|
+
};
|
|
241
|
+
TerrainProvider.addSkirtIndicesWithFilledCorners = function(westIndicesSouthToNorth, southIndicesEastToWest, eastIndicesNorthToSouth, northIndicesWestToEast, vertexCount, indices, offset) {
|
|
242
|
+
TerrainProvider.addSkirtIndices(
|
|
243
|
+
westIndicesSouthToNorth,
|
|
244
|
+
southIndicesEastToWest,
|
|
245
|
+
eastIndicesNorthToSouth,
|
|
246
|
+
northIndicesWestToEast,
|
|
247
|
+
vertexCount,
|
|
248
|
+
indices,
|
|
249
|
+
offset
|
|
250
|
+
);
|
|
251
|
+
const skirtVertexCount = TerrainProvider.getSkirtVertexCount(
|
|
252
|
+
westIndicesSouthToNorth,
|
|
253
|
+
southIndicesEastToWest,
|
|
254
|
+
eastIndicesNorthToSouth,
|
|
255
|
+
northIndicesWestToEast
|
|
256
|
+
);
|
|
257
|
+
const skirtIndexCountWithoutCaps = TerrainProvider.getSkirtIndexCount(skirtVertexCount);
|
|
258
|
+
const cornerStartIdx = offset + skirtIndexCountWithoutCaps;
|
|
259
|
+
const cornerSWIndex = westIndicesSouthToNorth[0];
|
|
260
|
+
const cornerNWIndex = northIndicesWestToEast[0];
|
|
261
|
+
const cornerNEIndex = eastIndicesNorthToSouth[0];
|
|
262
|
+
const cornerSEIndex = southIndicesEastToWest[0];
|
|
263
|
+
const westSouthIndex = vertexCount;
|
|
264
|
+
const westNorthIndex = westSouthIndex + westIndicesSouthToNorth.length - 1;
|
|
265
|
+
const southEastIndex = westNorthIndex + 1;
|
|
266
|
+
const southWestIndex = southEastIndex + southIndicesEastToWest.length - 1;
|
|
267
|
+
const eastNorthIndex = southWestIndex + 1;
|
|
268
|
+
const eastSouthIndex = eastNorthIndex + eastIndicesNorthToSouth.length - 1;
|
|
269
|
+
const northWestIndex = eastSouthIndex + 1;
|
|
270
|
+
const northEastIndex = northWestIndex + northIndicesWestToEast.length - 1;
|
|
271
|
+
indices[cornerStartIdx + 0] = cornerSWIndex;
|
|
272
|
+
indices[cornerStartIdx + 1] = westSouthIndex;
|
|
273
|
+
indices[cornerStartIdx + 2] = southWestIndex;
|
|
274
|
+
indices[cornerStartIdx + 3] = cornerSEIndex;
|
|
275
|
+
indices[cornerStartIdx + 4] = southEastIndex;
|
|
276
|
+
indices[cornerStartIdx + 5] = eastSouthIndex;
|
|
277
|
+
indices[cornerStartIdx + 6] = cornerNEIndex;
|
|
278
|
+
indices[cornerStartIdx + 7] = eastNorthIndex;
|
|
279
|
+
indices[cornerStartIdx + 8] = northEastIndex;
|
|
280
|
+
indices[cornerStartIdx + 9] = cornerNWIndex;
|
|
281
|
+
indices[cornerStartIdx + 10] = northWestIndex;
|
|
282
|
+
indices[cornerStartIdx + 11] = westNorthIndex;
|
|
283
|
+
};
|
|
284
|
+
function getEdgeIndices(width, height) {
|
|
285
|
+
const westIndicesSouthToNorth = new Array(height);
|
|
286
|
+
const southIndicesEastToWest = new Array(width);
|
|
287
|
+
const eastIndicesNorthToSouth = new Array(height);
|
|
288
|
+
const northIndicesWestToEast = new Array(width);
|
|
289
|
+
let i;
|
|
290
|
+
for (i = 0; i < width; ++i) {
|
|
291
|
+
northIndicesWestToEast[i] = i;
|
|
292
|
+
southIndicesEastToWest[i] = width * height - 1 - i;
|
|
293
|
+
}
|
|
294
|
+
for (i = 0; i < height; ++i) {
|
|
295
|
+
eastIndicesNorthToSouth[i] = (i + 1) * width - 1;
|
|
296
|
+
westIndicesSouthToNorth[i] = (height - i - 1) * width;
|
|
297
|
+
}
|
|
298
|
+
return {
|
|
299
|
+
westIndicesSouthToNorth,
|
|
300
|
+
southIndicesEastToWest,
|
|
301
|
+
eastIndicesNorthToSouth,
|
|
302
|
+
northIndicesWestToEast
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
function addRegularGridIndices(width, height, indices, offset) {
|
|
306
|
+
let index = 0;
|
|
307
|
+
for (let j = 0; j < height - 1; ++j) {
|
|
308
|
+
for (let i = 0; i < width - 1; ++i) {
|
|
309
|
+
const upperLeft = index;
|
|
310
|
+
const lowerLeft = upperLeft + width;
|
|
311
|
+
const lowerRight = lowerLeft + 1;
|
|
312
|
+
const upperRight = upperLeft + 1;
|
|
313
|
+
indices[offset++] = upperLeft;
|
|
314
|
+
indices[offset++] = lowerLeft;
|
|
315
|
+
indices[offset++] = upperRight;
|
|
316
|
+
indices[offset++] = upperRight;
|
|
317
|
+
indices[offset++] = lowerLeft;
|
|
318
|
+
indices[offset++] = lowerRight;
|
|
319
|
+
++index;
|
|
320
|
+
}
|
|
321
|
+
++index;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
function addSkirtIndices(edgeIndices, vertexIndex, indices, offset) {
|
|
325
|
+
let previousIndex = edgeIndices[0];
|
|
326
|
+
const length = edgeIndices.length;
|
|
327
|
+
for (let i = 1; i < length; ++i) {
|
|
328
|
+
const index = edgeIndices[i];
|
|
329
|
+
indices[offset++] = previousIndex;
|
|
330
|
+
indices[offset++] = index;
|
|
331
|
+
indices[offset++] = vertexIndex;
|
|
332
|
+
indices[offset++] = vertexIndex;
|
|
333
|
+
indices[offset++] = index;
|
|
334
|
+
indices[offset++] = vertexIndex + 1;
|
|
335
|
+
previousIndex = index;
|
|
336
|
+
++vertexIndex;
|
|
337
|
+
}
|
|
338
|
+
return offset;
|
|
339
|
+
}
|
|
340
|
+
TerrainProvider.heightmapTerrainQuality = 0.25;
|
|
341
|
+
TerrainProvider.getEstimatedLevelZeroGeometricErrorForAHeightmap = function(ellipsoid, tileImageWidth, numberOfTilesAtLevelZero) {
|
|
342
|
+
return ellipsoid.maximumRadius * 2 * Math.PI * TerrainProvider.heightmapTerrainQuality / (tileImageWidth * numberOfTilesAtLevelZero);
|
|
343
|
+
};
|
|
344
|
+
TerrainProvider.prototype.requestTileGeometry = DeveloperError_default.throwInstantiationError;
|
|
345
|
+
TerrainProvider.prototype.getLevelMaximumGeometricError = DeveloperError_default.throwInstantiationError;
|
|
346
|
+
TerrainProvider.prototype.getTileDataAvailable = DeveloperError_default.throwInstantiationError;
|
|
347
|
+
TerrainProvider.prototype.loadTileDataAvailability = DeveloperError_default.throwInstantiationError;
|
|
348
|
+
var TerrainProvider_default = TerrainProvider;
|
|
349
|
+
|
|
350
|
+
export {
|
|
351
|
+
TerrainProvider_default
|
|
352
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.135.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -23,6 +23,9 @@
|
|
|
23
23
|
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
+
import {
|
|
27
|
+
RuntimeError_default
|
|
28
|
+
} from "./chunk-5T5SY63I.js";
|
|
26
29
|
import {
|
|
27
30
|
Cartesian2_default,
|
|
28
31
|
Cartesian3_default,
|
|
@@ -31,23 +34,20 @@ import {
|
|
|
31
34
|
FeatureDetection_default,
|
|
32
35
|
Frozen_default,
|
|
33
36
|
Matrix3_default
|
|
34
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-RQRODXVN.js";
|
|
35
38
|
import {
|
|
36
39
|
Math_default
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import {
|
|
39
|
-
RuntimeError_default
|
|
40
|
-
} from "./chunk-NWJRIJQG.js";
|
|
40
|
+
} from "./chunk-OE22564R.js";
|
|
41
41
|
import {
|
|
42
42
|
Check_default,
|
|
43
43
|
DeveloperError_default
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-W4PIP5PG.js";
|
|
45
45
|
import {
|
|
46
46
|
__commonJS,
|
|
47
47
|
__require,
|
|
48
48
|
__toESM,
|
|
49
49
|
defined_default
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-75HAJIDT.js";
|
|
51
51
|
|
|
52
52
|
// node_modules/urijs/src/punycode.js
|
|
53
53
|
var require_punycode = __commonJS({
|
|
@@ -6951,7 +6951,7 @@ Resource.prototype.fetchImage = function(options) {
|
|
|
6951
6951
|
const skipColorSpaceConversion = options.skipColorSpaceConversion ?? false;
|
|
6952
6952
|
checkAndResetRequest(this.request);
|
|
6953
6953
|
if (!xhrBlobSupported || this.isDataUri || this.isBlobUri || !this.hasHeaders && !preferBlob) {
|
|
6954
|
-
return
|
|
6954
|
+
return this._fetchImage({
|
|
6955
6955
|
resource: this,
|
|
6956
6956
|
flipY,
|
|
6957
6957
|
skipColorSpaceConversion,
|
|
@@ -6986,8 +6986,7 @@ Resource.prototype.fetchImage = function(options) {
|
|
|
6986
6986
|
generatedBlobResource = new Resource({
|
|
6987
6987
|
url: blobUrl
|
|
6988
6988
|
});
|
|
6989
|
-
return
|
|
6990
|
-
resource: generatedBlobResource,
|
|
6989
|
+
return generatedBlobResource._fetchImage({
|
|
6991
6990
|
flipY,
|
|
6992
6991
|
skipColorSpaceConversion,
|
|
6993
6992
|
preferImageBitmap: false
|
|
@@ -7010,8 +7009,8 @@ Resource.prototype.fetchImage = function(options) {
|
|
|
7010
7009
|
return Promise.reject(error);
|
|
7011
7010
|
});
|
|
7012
7011
|
};
|
|
7013
|
-
function
|
|
7014
|
-
const resource =
|
|
7012
|
+
Resource.prototype._fetchImage = function(options) {
|
|
7013
|
+
const resource = this;
|
|
7015
7014
|
const flipY = options.flipY;
|
|
7016
7015
|
const skipColorSpaceConversion = options.skipColorSpaceConversion;
|
|
7017
7016
|
const preferImageBitmap = options.preferImageBitmap;
|
|
@@ -7045,8 +7044,7 @@ function fetchImage(options) {
|
|
|
7045
7044
|
if (retry) {
|
|
7046
7045
|
request.state = RequestState_default.UNISSUED;
|
|
7047
7046
|
request.deferred = void 0;
|
|
7048
|
-
return
|
|
7049
|
-
resource,
|
|
7047
|
+
return resource._fetchImage({
|
|
7050
7048
|
flipY,
|
|
7051
7049
|
skipColorSpaceConversion,
|
|
7052
7050
|
preferImageBitmap
|
|
@@ -7055,7 +7053,7 @@ function fetchImage(options) {
|
|
|
7055
7053
|
return Promise.reject(e);
|
|
7056
7054
|
});
|
|
7057
7055
|
});
|
|
7058
|
-
}
|
|
7056
|
+
};
|
|
7059
7057
|
Resource.fetchImage = function(options) {
|
|
7060
7058
|
const resource = new Resource(options);
|
|
7061
7059
|
return resource.fetchImage({
|
|
@@ -7381,7 +7379,7 @@ Resource._Implementations.loadImageElement = function(url, crossOrigin, deferred
|
|
|
7381
7379
|
}
|
|
7382
7380
|
image.src = url;
|
|
7383
7381
|
};
|
|
7384
|
-
Resource._Implementations.createImage = function(request, crossOrigin, deferred, flipY, skipColorSpaceConversion, preferImageBitmap) {
|
|
7382
|
+
Resource._Implementations.createImage = function(request, crossOrigin, deferred, flipY, skipColorSpaceConversion, preferImageBitmap, headers) {
|
|
7385
7383
|
const url = request.url;
|
|
7386
7384
|
Resource.supportsImageBitmapOptions().then(function(supportsImageBitmap) {
|
|
7387
7385
|
if (!(supportsImageBitmap && preferImageBitmap)) {
|
|
@@ -7396,7 +7394,7 @@ Resource._Implementations.createImage = function(request, crossOrigin, deferred,
|
|
|
7396
7394
|
responseType,
|
|
7397
7395
|
method,
|
|
7398
7396
|
void 0,
|
|
7399
|
-
|
|
7397
|
+
headers,
|
|
7400
7398
|
xhrDeferred,
|
|
7401
7399
|
void 0,
|
|
7402
7400
|
void 0,
|
|
@@ -10358,6 +10356,7 @@ var Matrix2_default = Matrix2;
|
|
|
10358
10356
|
export {
|
|
10359
10357
|
Cartesian4_default,
|
|
10360
10358
|
Matrix4_default,
|
|
10359
|
+
binarySearch_default,
|
|
10361
10360
|
combine_default,
|
|
10362
10361
|
Resource_default,
|
|
10363
10362
|
buildModuleUrl_default,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.135.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
PolylinePipeline_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-7KAXDKRU.js";
|
|
29
29
|
import {
|
|
30
30
|
arrayRemoveDuplicates_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VCVA7BMD.js";
|
|
32
32
|
import {
|
|
33
33
|
Cartesian3_default,
|
|
34
34
|
Cartographic_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RQRODXVN.js";
|
|
36
36
|
import {
|
|
37
37
|
Math_default
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-OE22564R.js";
|
|
39
39
|
import {
|
|
40
40
|
defined_default
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-75HAJIDT.js";
|
|
42
42
|
|
|
43
43
|
// packages/engine/Source/Core/WallGeometryLibrary.js
|
|
44
44
|
var WallGeometryLibrary = {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.135.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
defined_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-75HAJIDT.js";
|
|
29
29
|
|
|
30
30
|
// packages/engine/Source/Core/RuntimeError.js
|
|
31
31
|
function RuntimeError(message) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.135.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
Cartesian3_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-RQRODXVN.js";
|
|
29
29
|
import {
|
|
30
30
|
Check_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-W4PIP5PG.js";
|
|
32
32
|
import {
|
|
33
33
|
defined_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-75HAJIDT.js";
|
|
35
35
|
|
|
36
36
|
// packages/engine/Source/Core/EncodedCartesian3.js
|
|
37
37
|
function EncodedCartesian3() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.135.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -27,25 +27,25 @@ import {
|
|
|
27
27
|
Cartesian4_default,
|
|
28
28
|
Matrix2_default,
|
|
29
29
|
Matrix4_default
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-3GL53OCU.js";
|
|
31
31
|
import {
|
|
32
32
|
ComponentDatatype_default
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-EZ7NJXQN.js";
|
|
34
34
|
import {
|
|
35
35
|
Cartesian2_default,
|
|
36
36
|
Cartesian3_default,
|
|
37
37
|
Matrix3_default
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-RQRODXVN.js";
|
|
39
39
|
import {
|
|
40
40
|
Math_default
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-OE22564R.js";
|
|
42
42
|
import {
|
|
43
43
|
Check_default,
|
|
44
44
|
DeveloperError_default
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-W4PIP5PG.js";
|
|
46
46
|
import {
|
|
47
47
|
defined_default
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-75HAJIDT.js";
|
|
49
49
|
|
|
50
50
|
// packages/engine/Source/Scene/AttributeType.js
|
|
51
51
|
var AttributeType = {
|