@cesium/engine 0.1.0 → 1.1.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/{AttributeCompression-4589338a.js → AttributeCompression-b646d393.js} +1 -1
- package/Build/Workers/{AxisAlignedBoundingBox-bfb1234f.js → AxisAlignedBoundingBox-a4321399.js} +1 -1
- package/Build/Workers/{BoundingRectangle-7ffc2153.js → BoundingRectangle-80d8801f.js} +1 -1
- package/Build/Workers/{BoxGeometry-93f344a3.js → BoxGeometry-33c10a4f.js} +1 -1
- package/Build/Workers/{Color-0c5aaf47.js → Color-1bf9a6e0.js} +1 -1
- package/Build/Workers/{CoplanarPolygonGeometryLibrary-6597982a.js → CoplanarPolygonGeometryLibrary-5c5b981b.js} +1 -1
- package/Build/Workers/{CorridorGeometryLibrary-2119580e.js → CorridorGeometryLibrary-7cbae7a0.js} +1 -1
- package/Build/Workers/{CylinderGeometry-f9503c6d.js → CylinderGeometry-42740df0.js} +1 -1
- package/Build/Workers/{EllipseGeometry-fedf72d5.js → EllipseGeometry-49a3ac21.js} +1 -1
- package/Build/Workers/{EllipseGeometryLibrary-4ea68687.js → EllipseGeometryLibrary-b891b2f8.js} +1 -1
- package/Build/Workers/{EllipseOutlineGeometry-e2ae6a35.js → EllipseOutlineGeometry-fbd72e07.js} +1 -1
- package/Build/Workers/{EllipsoidGeodesic-16de63ea.js → EllipsoidGeodesic-98c62a56.js} +1 -1
- package/Build/Workers/{EllipsoidGeometry-95c0330e.js → EllipsoidGeometry-a351dba8.js} +1 -1
- package/Build/Workers/{EllipsoidOutlineGeometry-d6d2ceec.js → EllipsoidOutlineGeometry-3e8779bf.js} +1 -1
- package/Build/Workers/{EllipsoidRhumbLine-ae5e65e0.js → EllipsoidRhumbLine-19756602.js} +1 -1
- package/Build/Workers/{EllipsoidTangentPlane-bfc674bf.js → EllipsoidTangentPlane-cfb50678.js} +1 -1
- package/Build/Workers/{EncodedCartesian3-f473ea18.js → EncodedCartesian3-81f70735.js} +1 -1
- package/Build/Workers/{FrustumGeometry-3bf2e4eb.js → FrustumGeometry-c5754412.js} +1 -1
- package/Build/Workers/{GeometryAttribute-df5f473e.js → GeometryAttribute-0bfd05e8.js} +1 -1
- package/Build/Workers/{GeometryInstance-aa75b4cf.js → GeometryInstance-451dc1cd.js} +1 -1
- package/Build/Workers/{GeometryPipeline-f0e46c42.js → GeometryPipeline-0166905d.js} +1 -1
- package/Build/Workers/{IntersectionTests-9de29d51.js → IntersectionTests-a93d3de9.js} +1 -1
- package/Build/Workers/{Matrix2-ce637455.js → Matrix2-13178034.js} +4 -2
- package/Build/Workers/{Matrix3-4f4df527.js → Matrix3-315394f6.js} +2 -1
- package/Build/Workers/{OrientedBoundingBox-d3ff3d4d.js → OrientedBoundingBox-b450cb61.js} +5 -5
- package/Build/Workers/{Plane-b81241c2.js → Plane-900aa728.js} +1 -1
- package/Build/Workers/{PolygonGeometryLibrary-6f4937bb.js → PolygonGeometryLibrary-f918ac26.js} +1 -1
- package/Build/Workers/PolygonPipeline-f59a8f0a.js +1345 -0
- package/Build/Workers/{PolylinePipeline-2e2b015c.js → PolylinePipeline-d8e6bd9b.js} +1 -1
- package/Build/Workers/{PolylineVolumeGeometryLibrary-7ee1d449.js → PolylineVolumeGeometryLibrary-125d2edf.js} +1 -1
- package/Build/Workers/{PrimitivePipeline-a9b7aae0.js → PrimitivePipeline-0d7b5ed4.js} +1 -1
- package/Build/Workers/{RectangleGeometryLibrary-9aa6c8f6.js → RectangleGeometryLibrary-0768db63.js} +1 -1
- package/Build/Workers/{TerrainEncoding-b52dcfc5.js → TerrainEncoding-06470d7f.js} +1 -1
- package/Build/Workers/{Transforms-2f755df8.js → Transforms-26539bce.js} +97 -83
- package/Build/Workers/{WallGeometryLibrary-ab19a93d.js → WallGeometryLibrary-6167b0fc.js} +1 -1
- package/Build/Workers/{WebMercatorProjection-9f25de49.js → WebMercatorProjection-13a90d41.js} +1 -1
- package/Build/Workers/cesiumWorkerBootstrapper.js +25 -1
- package/Build/Workers/combineGeometry.js +1 -1
- package/Build/Workers/createBoxGeometry.js +1 -1
- package/Build/Workers/createBoxOutlineGeometry.js +1 -1
- package/Build/Workers/createCircleGeometry.js +1 -1
- package/Build/Workers/createCircleOutlineGeometry.js +1 -1
- package/Build/Workers/createCoplanarPolygonGeometry.js +1 -1
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
- package/Build/Workers/createCorridorGeometry.js +1 -1
- package/Build/Workers/createCorridorOutlineGeometry.js +1 -1
- package/Build/Workers/createCylinderGeometry.js +1 -1
- package/Build/Workers/createCylinderOutlineGeometry.js +1 -1
- package/Build/Workers/createEllipseGeometry.js +1 -1
- package/Build/Workers/createEllipseOutlineGeometry.js +1 -1
- package/Build/Workers/createEllipsoidGeometry.js +1 -1
- package/Build/Workers/createEllipsoidOutlineGeometry.js +1 -1
- package/Build/Workers/createFrustumGeometry.js +1 -1
- package/Build/Workers/createFrustumOutlineGeometry.js +1 -1
- package/Build/Workers/createGeometry.js +1 -1
- package/Build/Workers/createGroundPolylineGeometry.js +1 -1
- package/Build/Workers/createPlaneGeometry.js +1 -1
- package/Build/Workers/createPlaneOutlineGeometry.js +1 -1
- package/Build/Workers/createPolygonGeometry.js +1 -1
- package/Build/Workers/createPolygonOutlineGeometry.js +1 -1
- package/Build/Workers/createPolylineGeometry.js +1 -1
- package/Build/Workers/createPolylineVolumeGeometry.js +1 -1
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +1 -1
- package/Build/Workers/createRectangleGeometry.js +1 -1
- package/Build/Workers/createRectangleOutlineGeometry.js +1 -1
- package/Build/Workers/createSimplePolylineGeometry.js +1 -1
- package/Build/Workers/createSphereGeometry.js +1 -1
- package/Build/Workers/createSphereOutlineGeometry.js +1 -1
- package/Build/Workers/createVectorTileClampedPolylines.js +1 -1
- package/Build/Workers/createVectorTileGeometries.js +1 -1
- package/Build/Workers/createVectorTilePoints.js +1 -1
- package/Build/Workers/createVectorTilePolygons.js +1 -1
- package/Build/Workers/createVectorTilePolylines.js +1 -1
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -1
- package/Build/Workers/createVerticesFromHeightmap.js +7 -3
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -1
- package/Build/Workers/createWallGeometry.js +1 -1
- package/Build/Workers/createWallOutlineGeometry.js +1 -1
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +95 -76
- package/Build/Workers/decodeI3S.js +1 -1
- package/Build/Workers/package.js +25 -1
- package/Build/Workers/transferTypedArrayTest.js +25 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +1 -1
- package/README.md +9 -9
- package/Source/Core/EarthOrientationParameters.js +67 -63
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/Matrix2.js +2 -1
- package/Source/Core/Matrix3.js +2 -1
- package/Source/Core/Matrix4.js +1 -0
- package/Source/Core/OrientedBoundingBox.js +4 -4
- package/Source/Core/S2Cell.js +3 -3
- package/Source/Core/Transforms.js +3 -7
- package/Source/DataSources/GpxDataSource.js +4 -6
- package/Source/DataSources/KmlDataSource.js +3 -5
- package/Source/Renderer/Context.js +230 -177
- package/Source/Renderer/Pass.js +3 -2
- package/Source/Scene/Cesium3DTileContentType.js +19 -0
- package/Source/Scene/Cesium3DTilesVoxelProvider.js +482 -0
- package/Source/Scene/Cesium3DTilesetMetadata.js +2 -2
- package/Source/Scene/ContentMetadata.js +2 -2
- package/Source/Scene/DerivedCommand.js +7 -0
- package/Source/Scene/Expression.js +1 -1
- package/Source/Scene/Globe.js +10 -0
- package/Source/Scene/GlobeSurfaceTileProvider.js +7 -0
- package/Source/Scene/GltfImageLoader.js +1 -1
- package/Source/Scene/GltfVertexBufferLoader.js +10 -2
- package/Source/Scene/GroupMetadata.js +2 -2
- package/Source/Scene/I3SDataProvider.js +2 -1
- package/Source/Scene/I3SFeature.js +1 -1
- package/Source/Scene/I3SLayer.js +64 -2
- package/Source/Scene/I3SNode.js +50 -6
- package/Source/Scene/ImplicitMetadataView.js +2 -2
- package/Source/Scene/ImplicitSubtreeCache.js +127 -0
- package/Source/Scene/ImplicitSubtreeMetadata.js +2 -2
- package/Source/Scene/ImplicitTileset.js +3 -2
- package/Source/Scene/KeyframeNode.js +47 -0
- package/Source/Scene/Megatexture.js +490 -0
- package/Source/Scene/MetadataClass.js +60 -25
- package/Source/Scene/MetadataClassProperty.js +132 -68
- package/Source/Scene/MetadataComponentType.js +78 -57
- package/Source/Scene/MetadataEnum.js +59 -23
- package/Source/Scene/MetadataEnumValue.js +49 -15
- package/Source/Scene/MetadataSchema.js +53 -24
- package/Source/Scene/MetadataSchemaLoader.js +2 -2
- package/Source/Scene/MetadataTableProperty.js +2 -2
- package/Source/Scene/MetadataType.js +6 -14
- package/Source/Scene/Model/GeoJsonLoader.js +1 -1
- package/Source/Scene/Model/Model.js +38 -6
- package/Source/Scene/Model/buildDrawCommand.js +19 -11
- package/Source/Scene/PointCloud.js +1 -1
- package/Source/Scene/PropertyAttribute.js +2 -2
- package/Source/Scene/PropertyAttributeProperty.js +2 -2
- package/Source/Scene/PropertyTable.js +2 -2
- package/Source/Scene/PropertyTexture.js +2 -2
- package/Source/Scene/PropertyTextureProperty.js +2 -2
- package/Source/Scene/ResourceCache.js +9 -1
- package/Source/Scene/ResourceCacheKey.js +9 -1
- package/Source/Scene/Scene.js +20 -50
- package/Source/Scene/SpatialNode.js +375 -0
- package/Source/Scene/StructuralMetadata.js +2 -2
- package/Source/Scene/TileMetadata.js +2 -2
- package/Source/Scene/TilesetMetadata.js +2 -2
- package/Source/Scene/VoxelBoxShape.js +527 -0
- package/Source/Scene/VoxelContent.js +169 -0
- package/Source/Scene/VoxelCylinderShape.js +937 -0
- package/Source/Scene/VoxelEllipsoidShape.js +937 -0
- package/Source/Scene/VoxelPrimitive.js +1919 -0
- package/Source/Scene/VoxelProvider.js +255 -0
- package/Source/Scene/VoxelRenderResources.js +224 -0
- package/Source/Scene/VoxelShape.js +152 -0
- package/Source/Scene/VoxelShapeType.js +105 -0
- package/Source/Scene/VoxelTraversal.js +1144 -0
- package/Source/Scene/buildVoxelDrawCommands.js +116 -0
- package/Source/Scene/parseBatchTable.js +18 -2
- package/Source/Scene/preprocess3DTileContent.js +8 -0
- package/Source/Scene/processVoxelProperties.js +455 -0
- package/Source/Shaders/BillboardCollectionVS.glsl +1 -1
- package/Source/Shaders/BillboardCollectionVS.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/passVoxels.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passVoxels.js +11 -0
- package/Source/Shaders/Builtin/CzmBuiltins.js +2 -0
- package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.glsl +55 -43
- package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.js +55 -43
- package/Source/Shaders/GlobeFS.glsl +2 -1
- package/Source/Shaders/GlobeFS.js +2 -1
- package/Source/Shaders/PointPrimitiveCollectionVS.glsl +5 -2
- package/Source/Shaders/PointPrimitiveCollectionVS.js +5 -2
- package/Source/Shaders/Voxels/IntersectBox.glsl +79 -0
- package/Source/Shaders/Voxels/IntersectBox.js +81 -0
- package/Source/Shaders/Voxels/IntersectClippingPlanes.glsl +70 -0
- package/Source/Shaders/Voxels/IntersectClippingPlanes.js +72 -0
- package/Source/Shaders/Voxels/IntersectCylinder.glsl +273 -0
- package/Source/Shaders/Voxels/IntersectCylinder.js +275 -0
- package/Source/Shaders/Voxels/IntersectDepth.glsl +23 -0
- package/Source/Shaders/Voxels/IntersectDepth.js +25 -0
- package/Source/Shaders/Voxels/IntersectEllipsoid.glsl +337 -0
- package/Source/Shaders/Voxels/IntersectEllipsoid.js +339 -0
- package/Source/Shaders/Voxels/Intersection.glsl +54 -0
- package/Source/Shaders/Voxels/Intersection.js +56 -0
- package/Source/Shaders/Voxels/IntersectionUtils.glsl +151 -0
- package/Source/Shaders/Voxels/IntersectionUtils.js +153 -0
- package/Source/Shaders/Voxels/Megatexture.glsl +136 -0
- package/Source/Shaders/Voxels/Megatexture.js +138 -0
- package/Source/Shaders/Voxels/Octree.glsl +221 -0
- package/Source/Shaders/Voxels/Octree.js +223 -0
- package/Source/Shaders/Voxels/VoxelFS.glsl +150 -0
- package/Source/Shaders/Voxels/VoxelFS.js +152 -0
- package/Source/Shaders/Voxels/VoxelVS.glsl +11 -0
- package/Source/Shaders/Voxels/VoxelVS.js +13 -0
- package/Source/Shaders/Voxels/convertUvToBox.glsl +16 -0
- package/Source/Shaders/Voxels/convertUvToBox.js +18 -0
- package/Source/Shaders/Voxels/convertUvToCylinder.glsl +79 -0
- package/Source/Shaders/Voxels/convertUvToCylinder.js +81 -0
- package/Source/Shaders/Voxels/convertUvToEllipsoid.glsl +133 -0
- package/Source/Shaders/Voxels/convertUvToEllipsoid.js +135 -0
- package/Source/ThirdParty/Workers/draco_decoder_nodejs.js +100 -101
- package/Source/ThirdParty/Workers/pako_deflate.min.js +2 -2
- package/Source/ThirdParty/Workers/pako_inflate.min.js +2 -2
- package/Source/ThirdParty/draco_decoder.wasm +0 -0
- package/Source/Widget/CesiumWidget.js +1 -1
- package/index.d.ts +961 -56
- package/index.js +92 -60
- package/package.json +6 -4
- package/Build/ThirdParty/Workers/basis_transcoder.js +0 -2233
- package/Build/ThirdParty/Workers/draco_decoder_nodejs.js +0 -1872
- package/Build/ThirdParty/Workers/package.json +0 -1
- package/Build/ThirdParty/Workers/pako_deflate.min.js +0 -589
- package/Build/ThirdParty/Workers/pako_inflate.min.js +0 -798
- package/Build/ThirdParty/Workers/z-worker-pako.js +0 -503
- package/Build/ThirdParty/basis_transcoder.wasm +0 -0
- package/Build/ThirdParty/draco_decoder.wasm +0 -0
- package/Build/ThirdParty/google-earth-dbroot-parser.js +0 -8019
- package/Build/Widget/CesiumWidget.css +0 -120
- package/Build/Widget/lighter.css +0 -13
- package/Build/Workers/PolygonPipeline-774a8aaf.js +0 -1341
|
@@ -362,8 +362,8 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
362
362
|
// 3. This notice may not be removed or altered from any source distribution.
|
|
363
363
|
|
|
364
364
|
// See state defs from inflate.js
|
|
365
|
-
const BAD$1 =
|
|
366
|
-
const TYPE$1 =
|
|
365
|
+
const BAD$1 = 16209; /* got a data error -- remain here until reset */
|
|
366
|
+
const TYPE$1 = 16191; /* i: waiting for type bits, including last-flag bit */
|
|
367
367
|
|
|
368
368
|
/*
|
|
369
369
|
Decode literal, length, and distance codes and write out the resulting
|
|
@@ -755,13 +755,11 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
755
755
|
let mask; /* mask for low root bits */
|
|
756
756
|
let next; /* next available space in table */
|
|
757
757
|
let base = null; /* base value table to use */
|
|
758
|
-
let base_index = 0;
|
|
759
758
|
// let shoextra; /* extra bits table to use */
|
|
760
|
-
let
|
|
759
|
+
let match; /* use base and extra for symbol >= match */
|
|
761
760
|
const count = new Uint16Array(MAXBITS + 1); //[MAXBITS+1]; /* number of codes of each length */
|
|
762
761
|
const offs = new Uint16Array(MAXBITS + 1); //[MAXBITS+1]; /* offsets in table for each length */
|
|
763
762
|
let extra = null;
|
|
764
|
-
let extra_index = 0;
|
|
765
763
|
|
|
766
764
|
let here_bits, here_op, here_val;
|
|
767
765
|
|
|
@@ -896,19 +894,17 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
896
894
|
// to avoid deopts in old v8
|
|
897
895
|
if (type === CODES$1) {
|
|
898
896
|
base = extra = work; /* dummy value--not used */
|
|
899
|
-
|
|
897
|
+
match = 20;
|
|
900
898
|
|
|
901
899
|
} else if (type === LENS$1) {
|
|
902
900
|
base = lbase;
|
|
903
|
-
base_index -= 257;
|
|
904
901
|
extra = lext;
|
|
905
|
-
|
|
906
|
-
end = 256;
|
|
902
|
+
match = 257;
|
|
907
903
|
|
|
908
904
|
} else { /* DISTS */
|
|
909
905
|
base = dbase;
|
|
910
906
|
extra = dext;
|
|
911
|
-
|
|
907
|
+
match = 0;
|
|
912
908
|
}
|
|
913
909
|
|
|
914
910
|
/* initialize opts for loop */
|
|
@@ -932,13 +928,13 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
932
928
|
for (;;) {
|
|
933
929
|
/* create table entry */
|
|
934
930
|
here_bits = len - drop;
|
|
935
|
-
if (work[sym] <
|
|
931
|
+
if (work[sym] + 1 < match) {
|
|
936
932
|
here_op = 0;
|
|
937
933
|
here_val = work[sym];
|
|
938
934
|
}
|
|
939
|
-
else if (work[sym]
|
|
940
|
-
here_op = extra[
|
|
941
|
-
here_val = base[
|
|
935
|
+
else if (work[sym] >= match) {
|
|
936
|
+
here_op = extra[work[sym] - match];
|
|
937
|
+
here_val = base[work[sym] - match];
|
|
942
938
|
}
|
|
943
939
|
else {
|
|
944
940
|
here_op = 32 + 64; /* end of block */
|
|
@@ -1137,38 +1133,38 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1137
1133
|
/* ===========================================================================*/
|
|
1138
1134
|
|
|
1139
1135
|
|
|
1140
|
-
const HEAD =
|
|
1141
|
-
const FLAGS =
|
|
1142
|
-
const TIME =
|
|
1143
|
-
const OS =
|
|
1144
|
-
const EXLEN =
|
|
1145
|
-
const EXTRA =
|
|
1146
|
-
const NAME =
|
|
1147
|
-
const COMMENT =
|
|
1148
|
-
const HCRC =
|
|
1149
|
-
const DICTID =
|
|
1150
|
-
const DICT =
|
|
1151
|
-
const TYPE =
|
|
1152
|
-
const TYPEDO =
|
|
1153
|
-
const STORED =
|
|
1154
|
-
const COPY_ =
|
|
1155
|
-
const COPY =
|
|
1156
|
-
const TABLE =
|
|
1157
|
-
const LENLENS =
|
|
1158
|
-
const CODELENS =
|
|
1159
|
-
const LEN_ =
|
|
1160
|
-
const LEN =
|
|
1161
|
-
const LENEXT =
|
|
1162
|
-
const DIST =
|
|
1163
|
-
const DISTEXT =
|
|
1164
|
-
const MATCH =
|
|
1165
|
-
const LIT =
|
|
1166
|
-
const CHECK =
|
|
1167
|
-
const LENGTH =
|
|
1168
|
-
const DONE =
|
|
1169
|
-
const BAD =
|
|
1170
|
-
const MEM =
|
|
1171
|
-
const SYNC =
|
|
1136
|
+
const HEAD = 16180; /* i: waiting for magic header */
|
|
1137
|
+
const FLAGS = 16181; /* i: waiting for method and flags (gzip) */
|
|
1138
|
+
const TIME = 16182; /* i: waiting for modification time (gzip) */
|
|
1139
|
+
const OS = 16183; /* i: waiting for extra flags and operating system (gzip) */
|
|
1140
|
+
const EXLEN = 16184; /* i: waiting for extra length (gzip) */
|
|
1141
|
+
const EXTRA = 16185; /* i: waiting for extra bytes (gzip) */
|
|
1142
|
+
const NAME = 16186; /* i: waiting for end of file name (gzip) */
|
|
1143
|
+
const COMMENT = 16187; /* i: waiting for end of comment (gzip) */
|
|
1144
|
+
const HCRC = 16188; /* i: waiting for header crc (gzip) */
|
|
1145
|
+
const DICTID = 16189; /* i: waiting for dictionary check value */
|
|
1146
|
+
const DICT = 16190; /* waiting for inflateSetDictionary() call */
|
|
1147
|
+
const TYPE = 16191; /* i: waiting for type bits, including last-flag bit */
|
|
1148
|
+
const TYPEDO = 16192; /* i: same, but skip check to exit inflate on new block */
|
|
1149
|
+
const STORED = 16193; /* i: waiting for stored size (length and complement) */
|
|
1150
|
+
const COPY_ = 16194; /* i/o: same as COPY below, but only first time in */
|
|
1151
|
+
const COPY = 16195; /* i/o: waiting for input or output to copy stored block */
|
|
1152
|
+
const TABLE = 16196; /* i: waiting for dynamic block table lengths */
|
|
1153
|
+
const LENLENS = 16197; /* i: waiting for code length code lengths */
|
|
1154
|
+
const CODELENS = 16198; /* i: waiting for length/lit and distance code lengths */
|
|
1155
|
+
const LEN_ = 16199; /* i: same as LEN below, but only first time in */
|
|
1156
|
+
const LEN = 16200; /* i: waiting for length/lit/eob code */
|
|
1157
|
+
const LENEXT = 16201; /* i: waiting for length extra bits */
|
|
1158
|
+
const DIST = 16202; /* i: waiting for distance code */
|
|
1159
|
+
const DISTEXT = 16203; /* i: waiting for distance extra bits */
|
|
1160
|
+
const MATCH = 16204; /* o: waiting for output space to copy string */
|
|
1161
|
+
const LIT = 16205; /* o: waiting for output space to write literal */
|
|
1162
|
+
const CHECK = 16206; /* i: waiting for 32-bit check value */
|
|
1163
|
+
const LENGTH = 16207; /* i: waiting for 32-bit length (gzip) */
|
|
1164
|
+
const DONE = 16208; /* finished check, done -- remain here until reset */
|
|
1165
|
+
const BAD = 16209; /* got a data error -- remain here until reset */
|
|
1166
|
+
const MEM = 16210; /* got an inflate() memory error -- remain here until reset */
|
|
1167
|
+
const SYNC = 16211; /* looking for synchronization bytes to restart inflate() */
|
|
1172
1168
|
|
|
1173
1169
|
/* ===========================================================================*/
|
|
1174
1170
|
|
|
@@ -1193,11 +1189,14 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1193
1189
|
|
|
1194
1190
|
|
|
1195
1191
|
function InflateState() {
|
|
1196
|
-
this.
|
|
1192
|
+
this.strm = null; /* pointer back to this zlib stream */
|
|
1193
|
+
this.mode = 0; /* current inflate mode */
|
|
1197
1194
|
this.last = false; /* true if processing last block */
|
|
1198
|
-
this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip
|
|
1195
|
+
this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip,
|
|
1196
|
+
bit 2 true to validate check value */
|
|
1199
1197
|
this.havedict = false; /* true if dictionary provided */
|
|
1200
|
-
this.flags = 0; /* gzip header method and flags (0 if zlib)
|
|
1198
|
+
this.flags = 0; /* gzip header method and flags (0 if zlib), or
|
|
1199
|
+
-1 if raw or no header yet */
|
|
1201
1200
|
this.dmax = 0; /* zlib header max distance (INFLATE_STRICT) */
|
|
1202
1201
|
this.check = 0; /* protected copy of check value */
|
|
1203
1202
|
this.total = 0; /* protected copy of output count */
|
|
@@ -1251,9 +1250,23 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1251
1250
|
}
|
|
1252
1251
|
|
|
1253
1252
|
|
|
1253
|
+
const inflateStateCheck = (strm) => {
|
|
1254
|
+
|
|
1255
|
+
if (!strm) {
|
|
1256
|
+
return 1;
|
|
1257
|
+
}
|
|
1258
|
+
const state = strm.state;
|
|
1259
|
+
if (!state || state.strm !== strm ||
|
|
1260
|
+
state.mode < HEAD || state.mode > SYNC) {
|
|
1261
|
+
return 1;
|
|
1262
|
+
}
|
|
1263
|
+
return 0;
|
|
1264
|
+
};
|
|
1265
|
+
|
|
1266
|
+
|
|
1254
1267
|
const inflateResetKeep = (strm) => {
|
|
1255
1268
|
|
|
1256
|
-
if (
|
|
1269
|
+
if (inflateStateCheck(strm)) { return Z_STREAM_ERROR$1; }
|
|
1257
1270
|
const state = strm.state;
|
|
1258
1271
|
strm.total_in = strm.total_out = state.total = 0;
|
|
1259
1272
|
strm.msg = ''; /*Z_NULL*/
|
|
@@ -1263,6 +1276,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1263
1276
|
state.mode = HEAD;
|
|
1264
1277
|
state.last = 0;
|
|
1265
1278
|
state.havedict = 0;
|
|
1279
|
+
state.flags = -1;
|
|
1266
1280
|
state.dmax = 32768;
|
|
1267
1281
|
state.head = null/*Z_NULL*/;
|
|
1268
1282
|
state.hold = 0;
|
|
@@ -1280,7 +1294,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1280
1294
|
|
|
1281
1295
|
const inflateReset = (strm) => {
|
|
1282
1296
|
|
|
1283
|
-
if (
|
|
1297
|
+
if (inflateStateCheck(strm)) { return Z_STREAM_ERROR$1; }
|
|
1284
1298
|
const state = strm.state;
|
|
1285
1299
|
state.wsize = 0;
|
|
1286
1300
|
state.whave = 0;
|
|
@@ -1294,7 +1308,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1294
1308
|
let wrap;
|
|
1295
1309
|
|
|
1296
1310
|
/* get the state */
|
|
1297
|
-
if (
|
|
1311
|
+
if (inflateStateCheck(strm)) { return Z_STREAM_ERROR$1; }
|
|
1298
1312
|
const state = strm.state;
|
|
1299
1313
|
|
|
1300
1314
|
/* extract wrap request from windowBits parameter */
|
|
@@ -1303,7 +1317,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1303
1317
|
windowBits = -windowBits;
|
|
1304
1318
|
}
|
|
1305
1319
|
else {
|
|
1306
|
-
wrap = (windowBits >> 4) +
|
|
1320
|
+
wrap = (windowBits >> 4) + 5;
|
|
1307
1321
|
if (windowBits < 48) {
|
|
1308
1322
|
windowBits &= 15;
|
|
1309
1323
|
}
|
|
@@ -1334,7 +1348,9 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1334
1348
|
//if (state === Z_NULL) return Z_MEM_ERROR;
|
|
1335
1349
|
//Tracev((stderr, "inflate: allocated\n"));
|
|
1336
1350
|
strm.state = state;
|
|
1351
|
+
state.strm = strm;
|
|
1337
1352
|
state.window = null/*Z_NULL*/;
|
|
1353
|
+
state.mode = HEAD; /* to pass state test in inflateReset2() */
|
|
1338
1354
|
const ret = inflateReset2(strm, windowBits);
|
|
1339
1355
|
if (ret !== Z_OK$1) {
|
|
1340
1356
|
strm.state = null/*Z_NULL*/;
|
|
@@ -1483,7 +1499,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1483
1499
|
new Uint8Array([ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 ]);
|
|
1484
1500
|
|
|
1485
1501
|
|
|
1486
|
-
if (
|
|
1502
|
+
if (inflateStateCheck(strm) || !strm.output ||
|
|
1487
1503
|
(!strm.input && strm.avail_in !== 0)) {
|
|
1488
1504
|
return Z_STREAM_ERROR$1;
|
|
1489
1505
|
}
|
|
@@ -1524,6 +1540,9 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1524
1540
|
}
|
|
1525
1541
|
//===//
|
|
1526
1542
|
if ((state.wrap & 2) && hold === 0x8b1f) { /* gzip header */
|
|
1543
|
+
if (state.wbits === 0) {
|
|
1544
|
+
state.wbits = 15;
|
|
1545
|
+
}
|
|
1527
1546
|
state.check = 0/*crc32(0L, Z_NULL, 0)*/;
|
|
1528
1547
|
//=== CRC2(state.check, hold);
|
|
1529
1548
|
hbuf[0] = hold & 0xff;
|
|
@@ -1538,7 +1557,6 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1538
1557
|
state.mode = FLAGS;
|
|
1539
1558
|
break;
|
|
1540
1559
|
}
|
|
1541
|
-
state.flags = 0; /* expect zlib header */
|
|
1542
1560
|
if (state.head) {
|
|
1543
1561
|
state.head.done = false;
|
|
1544
1562
|
}
|
|
@@ -1561,7 +1579,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1561
1579
|
if (state.wbits === 0) {
|
|
1562
1580
|
state.wbits = len;
|
|
1563
1581
|
}
|
|
1564
|
-
|
|
1582
|
+
if (len > 15 || len > state.wbits) {
|
|
1565
1583
|
strm.msg = 'invalid window size';
|
|
1566
1584
|
state.mode = BAD;
|
|
1567
1585
|
break;
|
|
@@ -1572,6 +1590,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1572
1590
|
state.dmax = 1 << state.wbits;
|
|
1573
1591
|
//state.dmax = 1 << len;
|
|
1574
1592
|
|
|
1593
|
+
state.flags = 0; /* indicate zlib header */
|
|
1575
1594
|
//Tracev((stderr, "inflate: zlib header ok\n"));
|
|
1576
1595
|
strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;
|
|
1577
1596
|
state.mode = hold & 0x200 ? DICTID : TYPE;
|
|
@@ -1603,7 +1622,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1603
1622
|
if (state.head) {
|
|
1604
1623
|
state.head.text = ((hold >> 8) & 1);
|
|
1605
1624
|
}
|
|
1606
|
-
if (state.flags & 0x0200) {
|
|
1625
|
+
if ((state.flags & 0x0200) && (state.wrap & 4)) {
|
|
1607
1626
|
//=== CRC2(state.check, hold);
|
|
1608
1627
|
hbuf[0] = hold & 0xff;
|
|
1609
1628
|
hbuf[1] = (hold >>> 8) & 0xff;
|
|
@@ -1628,7 +1647,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1628
1647
|
if (state.head) {
|
|
1629
1648
|
state.head.time = hold;
|
|
1630
1649
|
}
|
|
1631
|
-
if (state.flags & 0x0200) {
|
|
1650
|
+
if ((state.flags & 0x0200) && (state.wrap & 4)) {
|
|
1632
1651
|
//=== CRC4(state.check, hold)
|
|
1633
1652
|
hbuf[0] = hold & 0xff;
|
|
1634
1653
|
hbuf[1] = (hold >>> 8) & 0xff;
|
|
@@ -1656,7 +1675,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1656
1675
|
state.head.xflags = (hold & 0xff);
|
|
1657
1676
|
state.head.os = (hold >> 8);
|
|
1658
1677
|
}
|
|
1659
|
-
if (state.flags & 0x0200) {
|
|
1678
|
+
if ((state.flags & 0x0200) && (state.wrap & 4)) {
|
|
1660
1679
|
//=== CRC2(state.check, hold);
|
|
1661
1680
|
hbuf[0] = hold & 0xff;
|
|
1662
1681
|
hbuf[1] = (hold >>> 8) & 0xff;
|
|
@@ -1683,7 +1702,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1683
1702
|
if (state.head) {
|
|
1684
1703
|
state.head.extra_len = hold;
|
|
1685
1704
|
}
|
|
1686
|
-
if (state.flags & 0x0200) {
|
|
1705
|
+
if ((state.flags & 0x0200) && (state.wrap & 4)) {
|
|
1687
1706
|
//=== CRC2(state.check, hold);
|
|
1688
1707
|
hbuf[0] = hold & 0xff;
|
|
1689
1708
|
hbuf[1] = (hold >>> 8) & 0xff;
|
|
@@ -1725,7 +1744,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1725
1744
|
// len + copy > state.head.extra_max ?
|
|
1726
1745
|
// state.head.extra_max - len : copy);
|
|
1727
1746
|
}
|
|
1728
|
-
if (state.flags & 0x0200) {
|
|
1747
|
+
if ((state.flags & 0x0200) && (state.wrap & 4)) {
|
|
1729
1748
|
state.check = crc32(state.check, input, copy, next);
|
|
1730
1749
|
}
|
|
1731
1750
|
have -= copy;
|
|
@@ -1751,7 +1770,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1751
1770
|
}
|
|
1752
1771
|
} while (len && copy < have);
|
|
1753
1772
|
|
|
1754
|
-
if (state.flags & 0x0200) {
|
|
1773
|
+
if ((state.flags & 0x0200) && (state.wrap & 4)) {
|
|
1755
1774
|
state.check = crc32(state.check, input, copy, next);
|
|
1756
1775
|
}
|
|
1757
1776
|
have -= copy;
|
|
@@ -1776,7 +1795,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1776
1795
|
state.head.comment += String.fromCharCode(len);
|
|
1777
1796
|
}
|
|
1778
1797
|
} while (len && copy < have);
|
|
1779
|
-
if (state.flags & 0x0200) {
|
|
1798
|
+
if ((state.flags & 0x0200) && (state.wrap & 4)) {
|
|
1780
1799
|
state.check = crc32(state.check, input, copy, next);
|
|
1781
1800
|
}
|
|
1782
1801
|
have -= copy;
|
|
@@ -1798,7 +1817,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
1798
1817
|
bits += 8;
|
|
1799
1818
|
}
|
|
1800
1819
|
//===//
|
|
1801
|
-
if (hold !== (state.check & 0xffff)) {
|
|
1820
|
+
if ((state.wrap & 4) && hold !== (state.check & 0xffff)) {
|
|
1802
1821
|
strm.msg = 'header crc mismatch';
|
|
1803
1822
|
state.mode = BAD;
|
|
1804
1823
|
break;
|
|
@@ -2451,15 +2470,15 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
2451
2470
|
_out -= left;
|
|
2452
2471
|
strm.total_out += _out;
|
|
2453
2472
|
state.total += _out;
|
|
2454
|
-
if (_out) {
|
|
2473
|
+
if ((state.wrap & 4) && _out) {
|
|
2455
2474
|
strm.adler = state.check =
|
|
2456
|
-
/*
|
|
2475
|
+
/*UPDATE_CHECK(state.check, put - _out, _out);*/
|
|
2457
2476
|
(state.flags ? crc32(state.check, output, _out, put - _out) : adler32(state.check, output, _out, put - _out));
|
|
2458
2477
|
|
|
2459
2478
|
}
|
|
2460
2479
|
_out = left;
|
|
2461
2480
|
// NB: crc32 stored as signed 32-bit int, zswap32 returns signed too
|
|
2462
|
-
if ((state.flags ? hold : zswap32(hold)) !== state.check) {
|
|
2481
|
+
if ((state.wrap & 4) && (state.flags ? hold : zswap32(hold)) !== state.check) {
|
|
2463
2482
|
strm.msg = 'incorrect data check';
|
|
2464
2483
|
state.mode = BAD;
|
|
2465
2484
|
break;
|
|
@@ -2482,7 +2501,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
2482
2501
|
bits += 8;
|
|
2483
2502
|
}
|
|
2484
2503
|
//===//
|
|
2485
|
-
if (hold !== (state.total & 0xffffffff)) {
|
|
2504
|
+
if ((state.wrap & 4) && hold !== (state.total & 0xffffffff)) {
|
|
2486
2505
|
strm.msg = 'incorrect length check';
|
|
2487
2506
|
state.mode = BAD;
|
|
2488
2507
|
break;
|
|
@@ -2537,8 +2556,8 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
2537
2556
|
strm.total_in += _in;
|
|
2538
2557
|
strm.total_out += _out;
|
|
2539
2558
|
state.total += _out;
|
|
2540
|
-
if (state.wrap && _out) {
|
|
2541
|
-
strm.adler = state.check = /*
|
|
2559
|
+
if ((state.wrap & 4) && _out) {
|
|
2560
|
+
strm.adler = state.check = /*UPDATE_CHECK(state.check, strm.next_out - _out, _out);*/
|
|
2542
2561
|
(state.flags ? crc32(state.check, output, _out, strm.next_out - _out) : adler32(state.check, output, _out, strm.next_out - _out));
|
|
2543
2562
|
}
|
|
2544
2563
|
strm.data_type = state.bits + (state.last ? 64 : 0) +
|
|
@@ -2553,7 +2572,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
2553
2572
|
|
|
2554
2573
|
const inflateEnd = (strm) => {
|
|
2555
2574
|
|
|
2556
|
-
if (
|
|
2575
|
+
if (inflateStateCheck(strm)) {
|
|
2557
2576
|
return Z_STREAM_ERROR$1;
|
|
2558
2577
|
}
|
|
2559
2578
|
|
|
@@ -2569,7 +2588,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
2569
2588
|
const inflateGetHeader = (strm, head) => {
|
|
2570
2589
|
|
|
2571
2590
|
/* check state */
|
|
2572
|
-
if (
|
|
2591
|
+
if (inflateStateCheck(strm)) { return Z_STREAM_ERROR$1; }
|
|
2573
2592
|
const state = strm.state;
|
|
2574
2593
|
if ((state.wrap & 2) === 0) { return Z_STREAM_ERROR$1; }
|
|
2575
2594
|
|
|
@@ -2588,7 +2607,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
2588
2607
|
let ret;
|
|
2589
2608
|
|
|
2590
2609
|
/* check state */
|
|
2591
|
-
if (
|
|
2610
|
+
if (inflateStateCheck(strm)) { return Z_STREAM_ERROR$1; }
|
|
2592
2611
|
state = strm.state;
|
|
2593
2612
|
|
|
2594
2613
|
if (state.wrap !== 0 && state.mode !== DICT) {
|
|
@@ -3320,7 +3339,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
3320
3339
|
|
|
3321
3340
|
/**
|
|
3322
3341
|
* inflate(data[, options]) -> Uint8Array|String
|
|
3323
|
-
* - data (Uint8Array): input data to decompress.
|
|
3342
|
+
* - data (Uint8Array|ArrayBuffer): input data to decompress.
|
|
3324
3343
|
* - options (Object): zlib inflate options.
|
|
3325
3344
|
*
|
|
3326
3345
|
* Decompress `data` with inflate/ungzip and `options`. Autodetect
|
|
@@ -3371,7 +3390,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
3371
3390
|
|
|
3372
3391
|
/**
|
|
3373
3392
|
* inflateRaw(data[, options]) -> Uint8Array|String
|
|
3374
|
-
* - data (Uint8Array): input data to decompress.
|
|
3393
|
+
* - data (Uint8Array|ArrayBuffer): input data to decompress.
|
|
3375
3394
|
* - options (Object): zlib inflate options.
|
|
3376
3395
|
*
|
|
3377
3396
|
* The same as [[inflate]], but creates raw data, without wrapper
|
|
@@ -3386,7 +3405,7 @@ define(['./Check-666ab1a0', './RuntimeError-06c93819', './defaultValue-0a909f67'
|
|
|
3386
3405
|
|
|
3387
3406
|
/**
|
|
3388
3407
|
* ungzip(data[, options]) -> Uint8Array|String
|
|
3389
|
-
* - data (Uint8Array): input data to decompress.
|
|
3408
|
+
* - data (Uint8Array|ArrayBuffer): input data to decompress.
|
|
3390
3409
|
* - options (Object): zlib inflate options.
|
|
3391
3410
|
*
|
|
3392
3411
|
* Just shortcut to [[inflate]], because it autodetects format
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['./createTaskProcessorWorker', './defaultValue-0a909f67', './WebMercatorProjection-
|
|
1
|
+
define(['./createTaskProcessorWorker', './defaultValue-0a909f67', './WebMercatorProjection-13a90d41', './Matrix3-315394f6', './Math-2dbd6b93', './Check-666ab1a0'], (function (createTaskProcessorWorker, defaultValue, WebMercatorProjection, Matrix3, Math$1, Check) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/* global require */
|
|
4
4
|
|
package/Build/Workers/package.js
CHANGED
|
@@ -1,2 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.101
|
|
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
|
+
|
|
2
26
|
module.exports = { type: "commonjs" };
|
|
@@ -1,4 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.101
|
|
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
|
+
|
|
2
26
|
if (typeof self === "undefined") {
|
|
3
27
|
self = {};
|
|
4
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['./AttributeCompression-
|
|
1
|
+
define(['./AttributeCompression-b646d393', './Transforms-26539bce', './Matrix2-13178034', './Matrix3-315394f6', './defaultValue-0a909f67', './TerrainEncoding-06470d7f', './IndexDatatype-a55ceaa1', './Check-666ab1a0', './Math-2dbd6b93', './OrientedBoundingBox-b450cb61', './createTaskProcessorWorker', './ComponentDatatype-f7b11d02', './WebGLConstants-a8cc3e8c', './combine-ca22a614', './RuntimeError-06c93819', './EllipsoidTangentPlane-cfb50678', './AxisAlignedBoundingBox-a4321399', './IntersectionTests-a93d3de9', './Plane-900aa728'], (function (AttributeCompression, Transforms, Matrix2, Matrix3, defaultValue, TerrainEncoding, IndexDatatype, Check, Math$1, OrientedBoundingBox, createTaskProcessorWorker, ComponentDatatype, WebGLConstants, combine, RuntimeError, EllipsoidTangentPlane, AxisAlignedBoundingBox, IntersectionTests, Plane) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Contains functions for operating on 2D triangles.
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|

|
|
4
4
|
|
|
5
5
|
[](https://travis-ci.com/CesiumGS/cesium)
|
|
6
|
-
[](https://www.npmjs.com/package
|
|
6
|
+
[](https://www.npmjs.com/package/@cesium/engine)
|
|
7
7
|
[](https://cesium.com/learn/)
|
|
8
8
|
|
|
9
9
|
CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin. It uses WebGL for hardware-accelerated graphics, and is cross-platform, cross-browser, and tuned for dynamic-data visualization.
|
|
@@ -17,33 +17,33 @@ CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web bro
|
|
|
17
17
|
|
|
18
18
|
Install with npm:
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
```sh
|
|
21
21
|
npm install @cesium/engine --save
|
|
22
|
-
|
|
22
|
+
```
|
|
23
23
|
|
|
24
24
|
Or, install with yarn:
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
```sh
|
|
27
27
|
yarn add @cesium/engine
|
|
28
|
-
|
|
28
|
+
```
|
|
29
29
|
|
|
30
30
|
## Usage
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
```js
|
|
33
33
|
import * as Cesium from "@cesium/engine";
|
|
34
34
|
import "@cesium/engine/Source/Widget/CesiumWidget.css";
|
|
35
35
|
|
|
36
36
|
const cesiumWidget = new Cesium.CesiumWidget("cesiumContainer");
|
|
37
|
-
|
|
37
|
+
```
|
|
38
38
|
|
|
39
39
|
Or, import individual modules to benefit from tree shaking optmtimizations through most build tools:
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
```js
|
|
42
42
|
import { CesiumWidget } from "@cesium/engine";
|
|
43
43
|
import "@cesium/engine/Source/Widget/CesiumWidget.css";
|
|
44
44
|
|
|
45
45
|
const cesiumWidget = new CesiumWidget("cesiumContainer");
|
|
46
|
-
|
|
46
|
+
```
|
|
47
47
|
|
|
48
48
|
See our [Quickstart Guide](https://cesium.com/learn/cesiumjs-learn/cesiumjs-quickstart/) for more information on getting a Cesium app up and running.
|
|
49
49
|
|