mars3d-cesium 1.96.4 → 1.96.7
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/Cesium/Cesium.d.ts +144 -269
- package/Build/Cesium/Cesium.js +583 -582
- package/Build/Cesium/README.md +13 -0
- package/Build/Cesium/ThirdParty/Workers/basis_transcoder.js +1 -1
- package/Build/Cesium/ThirdParty/Workers/draco_decoder_nodejs.js +1 -1
- package/Build/Cesium/ThirdParty/Workers/package.js +1 -1
- package/Build/Cesium/ThirdParty/Workers/pako_deflate.min.js +1 -1
- package/Build/Cesium/ThirdParty/Workers/pako_inflate.min.js +1 -1
- package/Build/Cesium/ThirdParty/Workers/z-worker-pako.js +2 -2
- package/Build/Cesium/ThirdParty/google-earth-dbroot-parser.js +1 -1
- package/Build/Cesium/Workers/{ArcType-2a3adffe.js → ArcType-08a03e11.js} +1 -1
- package/Build/Cesium/Workers/ArcType-8a3a359b.js +1 -1
- package/Build/Cesium/Workers/AttributeCompression-18035d40.js +26 -0
- package/Build/Cesium/Workers/AttributeCompression-857bc071.js +25 -0
- package/Build/Cesium/Workers/{AxisAlignedBoundingBox-f7daa7b3.js → AxisAlignedBoundingBox-9370e41b.js} +2 -2
- package/Build/Cesium/Workers/AxisAlignedBoundingBox-ca05cfa4.js +26 -0
- package/Build/Cesium/Workers/BoundingRectangle-a2ace56e.js +26 -0
- package/Build/Cesium/Workers/{BoundingRectangle-32cfbde7.js → BoundingRectangle-e2d7a766.js} +2 -2
- package/Build/Cesium/Workers/{BoxGeometry-5923382d.js → BoxGeometry-267165b6.js} +2 -2
- package/Build/Cesium/Workers/BoxGeometry-ef98ea8e.js +26 -0
- package/Build/Cesium/Workers/Color-2af17825.js +26 -0
- package/Build/Cesium/Workers/{Color-12a018a9.js → Color-7c70ee41.js} +2 -2
- package/Build/Cesium/Workers/{ComponentDatatype-98788316.js → ComponentDatatype-438cad2a.js} +2 -2
- package/Build/Cesium/Workers/{ComponentDatatype-94a172c0.js → ComponentDatatype-cb7120fd.js} +2 -2
- package/Build/Cesium/Workers/CoplanarPolygonGeometryLibrary-439554e8.js +26 -0
- package/Build/Cesium/Workers/{CoplanarPolygonGeometryLibrary-c2f2cb73.js → CoplanarPolygonGeometryLibrary-a0c77862.js} +2 -2
- package/Build/Cesium/Workers/{CorridorGeometryLibrary-55a354d3.js → CorridorGeometryLibrary-45bbd272.js} +2 -2
- package/Build/Cesium/Workers/CorridorGeometryLibrary-c263be65.js +26 -0
- package/Build/Cesium/Workers/CylinderGeometry-0ffc7ef5.js +26 -0
- package/Build/Cesium/Workers/{CylinderGeometry-79e44bab.js → CylinderGeometry-97bb7e50.js} +2 -2
- package/Build/Cesium/Workers/{CylinderGeometryLibrary-d4a4174d.js → CylinderGeometryLibrary-37f2ca9d.js} +2 -2
- package/Build/Cesium/Workers/{CylinderGeometryLibrary-8ab6de01.js → CylinderGeometryLibrary-eb8570d0.js} +2 -2
- package/Build/Cesium/Workers/{EllipseGeometry-7b3fe578.js → EllipseGeometry-bf751fdd.js} +2 -2
- package/Build/Cesium/Workers/EllipseGeometry-cb625fa5.js +26 -0
- package/Build/Cesium/Workers/{EllipseGeometryLibrary-ad4a5b4c.js → EllipseGeometryLibrary-461ff9ca.js} +2 -2
- package/Build/Cesium/Workers/EllipseGeometryLibrary-5f21f480.js +26 -0
- package/Build/Cesium/Workers/EllipseOutlineGeometry-bf79daa0.js +26 -0
- package/Build/Cesium/Workers/{EllipseOutlineGeometry-3068b696.js → EllipseOutlineGeometry-d49f5b3c.js} +2 -2
- package/Build/Cesium/Workers/EllipsoidGeodesic-0454f1c2.js +26 -0
- package/Build/Cesium/Workers/{EllipsoidGeodesic-11e914fe.js → EllipsoidGeodesic-dc777b49.js} +2 -2
- package/Build/Cesium/Workers/{EllipsoidGeometry-32972807.js → EllipsoidGeometry-5f67ae07.js} +2 -2
- package/Build/Cesium/Workers/EllipsoidGeometry-7909d903.js +26 -0
- package/Build/Cesium/Workers/EllipsoidOutlineGeometry-17b3e928.js +26 -0
- package/Build/Cesium/Workers/{EllipsoidOutlineGeometry-ec57863c.js → EllipsoidOutlineGeometry-78afd83e.js} +2 -2
- package/Build/Cesium/Workers/EllipsoidRhumbLine-248c8a1e.js +26 -0
- package/Build/Cesium/Workers/{EllipsoidRhumbLine-49eb2f6d.js → EllipsoidRhumbLine-9457c601.js} +2 -2
- package/Build/Cesium/Workers/EllipsoidTangentPlane-100869c1.js +26 -0
- package/Build/Cesium/Workers/{EllipsoidTangentPlane-ecc006c3.js → EllipsoidTangentPlane-28ea5df2.js} +2 -2
- package/Build/Cesium/Workers/EncodedCartesian3-b59dee27.js +26 -0
- package/Build/Cesium/Workers/{EncodedCartesian3-222548c7.js → EncodedCartesian3-f4bbf636.js} +2 -2
- package/Build/Cesium/Workers/FrustumGeometry-68f2152a.js +26 -0
- package/Build/Cesium/Workers/{FrustumGeometry-5b18c3b7.js → FrustumGeometry-6ebade62.js} +2 -2
- package/Build/Cesium/Workers/GeometryAttribute-2cdece80.js +26 -0
- package/Build/Cesium/Workers/{GeometryAttribute-4daab906.js → GeometryAttribute-7b85a4f4.js} +2 -2
- package/Build/Cesium/Workers/GeometryAttributes-98e858da.js +1 -1
- package/Build/Cesium/Workers/{GeometryAttributes-a490dcf1.js → GeometryAttributes-9da88d6e.js} +2 -2
- package/Build/Cesium/Workers/{GeometryInstance-19520f53.js → GeometryInstance-5be181eb.js} +2 -2
- package/Build/Cesium/Workers/GeometryInstance-bbed0de0.js +26 -0
- package/Build/Cesium/Workers/GeometryOffsetAttribute-116f8293.js +26 -0
- package/Build/Cesium/Workers/{GeometryOffsetAttribute-62f885db.js → GeometryOffsetAttribute-a6457b88.js} +1 -1
- package/Build/Cesium/Workers/{GeometryPipeline-f0a1ad88.js → GeometryPipeline-b0b332fc.js} +2 -2
- package/Build/Cesium/Workers/GeometryPipeline-d062bcb6.js +26 -0
- package/Build/Cesium/Workers/IndexDatatype-5062f28c.js +25 -0
- package/Build/Cesium/Workers/{IndexDatatype-be82b350.js → IndexDatatype-dfa09980.js} +2 -2
- package/Build/Cesium/Workers/IntersectionTests-54d7f8a4.js +26 -0
- package/Build/Cesium/Workers/{IntersectionTests-8b7c8657.js → IntersectionTests-a8d45b72.js} +2 -2
- package/Build/Cesium/Workers/Matrix2-4706dd70.js +32 -0
- package/Build/Cesium/Workers/{Matrix2-c788e106.js → Matrix2-f4a72982.js} +2 -2
- package/Build/Cesium/Workers/OrientedBoundingBox-1ead2ca7.js +26 -0
- package/Build/Cesium/Workers/{OrientedBoundingBox-917a4be5.js → OrientedBoundingBox-993c42bb.js} +2 -2
- package/Build/Cesium/Workers/{Plane-f81558db.js → Plane-7efd9975.js} +2 -2
- package/Build/Cesium/Workers/Plane-f4cd36d8.js +26 -0
- package/Build/Cesium/Workers/{PolygonGeometryLibrary-343a1da6.js → PolygonGeometryLibrary-6306e6e0.js} +2 -2
- package/Build/Cesium/Workers/PolygonGeometryLibrary-b10640f5.js +26 -0
- package/Build/Cesium/Workers/{PolygonPipeline-38b4288d.js → PolygonPipeline-bdb47718.js} +2 -2
- package/Build/Cesium/Workers/PolygonPipeline-ec925640.js +26 -0
- package/Build/Cesium/Workers/PolylinePipeline-52ab0181.js +26 -0
- package/Build/Cesium/Workers/{PolylinePipeline-91ecbec7.js → PolylinePipeline-f14a929f.js} +2 -2
- package/Build/Cesium/Workers/PolylineVolumeGeometryLibrary-c7bd0e64.js +26 -0
- package/Build/Cesium/Workers/{PolylineVolumeGeometryLibrary-eae5ef7f.js → PolylineVolumeGeometryLibrary-d1616a52.js} +2 -2
- package/Build/Cesium/Workers/PrimitivePipeline-6af778fc.js +26 -0
- package/Build/Cesium/Workers/{PrimitivePipeline-98819346.js → PrimitivePipeline-94215433.js} +2 -2
- package/Build/Cesium/Workers/RectangleGeometryLibrary-625692af.js +26 -0
- package/Build/Cesium/Workers/{RectangleGeometryLibrary-46c88be3.js → RectangleGeometryLibrary-db12a2fa.js} +2 -2
- package/Build/Cesium/Workers/RuntimeError-a977b8e0.js +1 -1
- package/Build/Cesium/Workers/{RuntimeError-50f3c270.js → RuntimeError-ed67c927.js} +2 -2
- package/Build/Cesium/Workers/{TerrainEncoding-fef638a6.js → TerrainEncoding-4bb009a9.js} +2 -2
- package/Build/Cesium/Workers/TerrainEncoding-dd4228a5.js +26 -0
- package/Build/Cesium/Workers/Transforms-66eda18c.js +62 -0
- package/Build/Cesium/Workers/Transforms-e2b46a6c.js +63 -0
- package/Build/Cesium/Workers/VertexFormat-3518f543.js +1 -1
- package/Build/Cesium/Workers/{VertexFormat-a34558d6.js → VertexFormat-a6a7080e.js} +2 -2
- package/Build/Cesium/Workers/WallGeometryLibrary-683d8796.js +25 -0
- package/Build/Cesium/Workers/WallGeometryLibrary-f709492a.js +26 -0
- package/Build/Cesium/Workers/WebGLConstants-0ff1ce58.js +1 -1
- package/Build/Cesium/Workers/{WebGLConstants-cbf0dab7.js → WebGLConstants-dc5a5fcc.js} +1 -1
- package/Build/Cesium/Workers/{WebMercatorProjection-3ff867a8.js → WebMercatorProjection-9ab65454.js} +2 -2
- package/Build/Cesium/Workers/WebMercatorProjection-9bd06b6c.js +26 -0
- package/Build/Cesium/Workers/_commonjsHelpers-3aae1032-f55dc0c4.js +1 -1
- package/Build/Cesium/Workers/{_commonjsHelpers-d90b2ade.js → _commonjsHelpers-b40762ca.js} +1 -1
- package/Build/Cesium/Workers/{arrayRemoveDuplicates-568a8f01.js → arrayRemoveDuplicates-ca6f0282.js} +2 -2
- package/Build/Cesium/Workers/arrayRemoveDuplicates-cb6282cf.js +25 -0
- package/Build/Cesium/Workers/cesiumWorkerBootstrapper.js +1 -1
- package/Build/Cesium/Workers/combine-13bb426d.js +1 -1
- package/Build/Cesium/Workers/{combine-4bf14979.js → combine-36f11d2f.js} +2 -2
- package/Build/Cesium/Workers/combineGeometry.js +2 -2
- package/Build/Cesium/Workers/createBoxGeometry.js +2 -2
- package/Build/Cesium/Workers/createBoxOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCircleGeometry.js +2 -2
- package/Build/Cesium/Workers/createCircleOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCoplanarPolygonGeometry.js +2 -2
- package/Build/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCorridorGeometry.js +2 -2
- package/Build/Cesium/Workers/createCorridorOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCylinderGeometry.js +2 -2
- package/Build/Cesium/Workers/createCylinderOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipseGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipseOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipsoidGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipsoidOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createFrustumGeometry.js +2 -2
- package/Build/Cesium/Workers/createFrustumOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createGeometry.js +2 -2
- package/Build/Cesium/Workers/createGroundPolylineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPlaneGeometry.js +2 -2
- package/Build/Cesium/Workers/createPlaneOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolygonGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolygonOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolylineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolylineVolumeGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createRectangleGeometry.js +2 -2
- package/Build/Cesium/Workers/createRectangleOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createSimplePolylineGeometry.js +2 -2
- package/Build/Cesium/Workers/createSphereGeometry.js +2 -2
- package/Build/Cesium/Workers/createSphereOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createTaskProcessorWorker.js +2 -2
- package/Build/Cesium/Workers/createVectorTileClampedPolylines.js +2 -2
- package/Build/Cesium/Workers/createVectorTileGeometries.js +2 -2
- package/Build/Cesium/Workers/createVectorTilePoints.js +2 -2
- package/Build/Cesium/Workers/createVectorTilePolygons.js +2 -2
- package/Build/Cesium/Workers/createVectorTilePolylines.js +2 -2
- package/Build/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
- package/Build/Cesium/Workers/createVerticesFromHeightmap.js +3 -3
- package/Build/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -2
- package/Build/Cesium/Workers/createWallGeometry.js +2 -2
- package/Build/Cesium/Workers/createWallOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/decodeDraco.js +2 -2
- package/Build/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
- package/Build/Cesium/Workers/defaultValue-028a8a27.js +1 -1
- package/Build/Cesium/Workers/{defaultValue-77c08f32.js → defaultValue-ff4e651f.js} +1 -1
- package/Build/Cesium/Workers/package.js +1 -1
- package/Build/Cesium/Workers/transcodeKTX2.js +2 -2
- package/Build/Cesium/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Cesium/Workers/upsampleQuantizedTerrainMesh.js +2 -2
- package/Build/Cesium/index.cjs +532 -531
- package/Build/Cesium/index.js +586 -585
- package/package.json +11 -6
- package/Build/Cesium/Workers/AttributeCompression-62b0e919.js +0 -25
- package/Build/Cesium/Workers/GeometryOffsetAttribute-da11568b.js +0 -26
- package/Build/Cesium/Workers/IndexDatatype-33d13dff.js +0 -25
- package/Build/Cesium/Workers/Transforms-fae4cdf7.js +0 -63
- package/Build/Cesium/Workers/WallGeometryLibrary-91f03d48.js +0 -25
- package/Build/Cesium/Workers/arrayRemoveDuplicates-50333467.js +0 -25
package/Build/Cesium/Cesium.d.ts
CHANGED
|
@@ -16769,28 +16769,6 @@ export class TileProviderError {
|
|
|
16769
16769
|
* The error or exception that occurred, if any.
|
|
16770
16770
|
*/
|
|
16771
16771
|
error: Error;
|
|
16772
|
-
/**
|
|
16773
|
-
* Reports an error in an {@link ImageryProvider} or {@link TerrainProvider} by raising an event if it has any listeners, or by
|
|
16774
|
-
logging the error to the console if the event has no listeners. This method also tracks the number
|
|
16775
|
-
of times the operation has been retried.
|
|
16776
|
-
* @param previousError - The error instance returned by this function the last
|
|
16777
|
-
time it was called for this error, or undefined if this is the first time this error has
|
|
16778
|
-
occurred.
|
|
16779
|
-
* @param provider - The imagery or terrain provider that encountered the error.
|
|
16780
|
-
* @param event - The event to raise to inform listeners of the error.
|
|
16781
|
-
* @param message - The message describing the error.
|
|
16782
|
-
* @param x - The X coordinate of the tile that experienced the error, or undefined if the
|
|
16783
|
-
error is not specific to a particular tile.
|
|
16784
|
-
* @param y - The Y coordinate of the tile that experienced the error, or undefined if the
|
|
16785
|
-
error is not specific to a particular tile.
|
|
16786
|
-
* @param level - The level-of-detail of the tile that experienced the error, or undefined if the
|
|
16787
|
-
error is not specific to a particular tile.
|
|
16788
|
-
* @param [errorDetails] - The error or exception that occurred, if any.
|
|
16789
|
-
* @returns The error instance that was passed to the event listeners and that
|
|
16790
|
-
should be passed to this function the next time it is called for the same error in order
|
|
16791
|
-
to track retry counts.
|
|
16792
|
-
*/
|
|
16793
|
-
static reportError(previousError: TileProviderError, provider: ImageryProvider | TerrainProvider, event: Event, message: string, x: number, y: number, level: number, errorDetails?: Error): TileProviderError;
|
|
16794
16772
|
/**
|
|
16795
16773
|
* Handles an error in an {@link ImageryProvider} or {@link TerrainProvider} by raising an event if it has any listeners, or by
|
|
16796
16774
|
logging the error to the console if the event has no listeners. This method also tracks the number
|
|
@@ -16816,13 +16794,6 @@ export class TileProviderError {
|
|
|
16816
16794
|
to track retry counts.
|
|
16817
16795
|
*/
|
|
16818
16796
|
static handleError(previousError: TileProviderError, provider: ImageryProvider | TerrainProvider, event: Event, message: string, x: number, y: number, level: number, retryFunction: TileProviderError.RetryFunction, errorDetails?: Error): TileProviderError;
|
|
16819
|
-
/**
|
|
16820
|
-
* Reports success of an operation by resetting the retry count of a previous error, if any. This way,
|
|
16821
|
-
if the error occurs again in the future, the listeners will be informed that it has not yet been retried.
|
|
16822
|
-
* @param previousError - The previous error, or undefined if this operation has
|
|
16823
|
-
not previously resulted in an error.
|
|
16824
|
-
*/
|
|
16825
|
-
static reportSuccess(previousError: TileProviderError): void;
|
|
16826
16797
|
/**
|
|
16827
16798
|
* Handles success of an operation by resetting the retry count of a previous error, if any. This way,
|
|
16828
16799
|
if the error occurs again in the future, the listeners will be informed that it has not yet been retried.
|
|
@@ -22496,7 +22467,7 @@ export class ModelVisualizer {
|
|
|
22496
22467
|
constructor(scene: Scene, entityCollection: EntityCollection);
|
|
22497
22468
|
/**
|
|
22498
22469
|
* Updates models created this visualizer to match their
|
|
22499
|
-
|
|
22470
|
+
Entity counterpart at the given time.
|
|
22500
22471
|
* @param time - The time to update to.
|
|
22501
22472
|
* @returns This function always returns true.
|
|
22502
22473
|
*/
|
|
@@ -27798,9 +27769,7 @@ const tileset = scene.primitives.add(new Cesium.Cesium3DTileset({
|
|
|
27798
27769
|
* @param [options.lightColor] - The light color when shading models. When <code>undefined</code> the scene's light color is used instead.
|
|
27799
27770
|
* @param [options.imageBasedLighting] - The properties for managing image-based lighting for this tileset.
|
|
27800
27771
|
* @param [options.backFaceCulling = true] - Whether to cull back-facing geometry. When true, back face culling is determined by the glTF material's doubleSided property; when false, back face culling is disabled.
|
|
27801
|
-
* @param [options.enableShowOutline = true] - Whether to enable outlines for models using the {@link https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline|CESIUM_primitive_outline} extension. This can be set to false to avoid the additional processing of geometry at load time. When false, the showOutlines and outlineColor options are ignored.
|
|
27802
27772
|
* @param [options.showOutline = true] - Whether to display the outline for models using the {@link https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline|CESIUM_primitive_outline} extension. When true, outlines are displayed. When false, outlines are not displayed.
|
|
27803
|
-
* @param [options.outlineColor = Color.BLACK] - The color to use when rendering outlines.
|
|
27804
27773
|
* @param [options.vectorClassificationOnly = false] - Indicates that only the tileset's vector tiles should be used for classification.
|
|
27805
27774
|
* @param [options.vectorKeepDecodedPositions = false] - Whether vector tiles should keep decoded positions in memory. This is used with {@link Cesium3DTileFeature.getPolylinePositions}.
|
|
27806
27775
|
* @param [options.featureIdLabel = "featureId_0"] - Label of the feature ID set to use for picking and styling. For EXT_mesh_features, this is the feature ID's label property, or "featureId_N" (where N is the index in the featureIds array) when not specified. EXT_feature_metadata did not have a label field, so such feature ID sets are always labeled "featureId_N" where N is the index in the list of all feature Ids, where feature ID attributes are listed before feature ID textures. If featureIdLabel is an integer N, it is converted to the string "featureId_N" automatically. If both per-primitive and per-instance feature IDs are present, the instance feature IDs take priority.
|
|
@@ -27860,9 +27829,7 @@ export class Cesium3DTileset {
|
|
|
27860
27829
|
lightColor?: Cartesian3;
|
|
27861
27830
|
imageBasedLighting?: ImageBasedLighting;
|
|
27862
27831
|
backFaceCulling?: boolean;
|
|
27863
|
-
enableShowOutline?: boolean;
|
|
27864
27832
|
showOutline?: boolean;
|
|
27865
|
-
outlineColor?: Color;
|
|
27866
27833
|
vectorClassificationOnly?: boolean;
|
|
27867
27834
|
vectorKeepDecodedPositions?: boolean;
|
|
27868
27835
|
featureIdLabel?: string | number;
|
|
@@ -28186,18 +28153,8 @@ export class Cesium3DTileset {
|
|
|
28186
28153
|
* Whether to display the outline for models using the
|
|
28187
28154
|
{@link https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline|CESIUM_primitive_outline} extension.
|
|
28188
28155
|
When true, outlines are displayed. When false, outlines are not displayed.
|
|
28189
|
-
<p>
|
|
28190
|
-
When enableModelExperimental is set to true, this property can be toggled
|
|
28191
|
-
at runtime. However, when enableModelExperimental is false, this property
|
|
28192
|
-
is readonly (it can only be set in the constructor).
|
|
28193
|
-
</p>
|
|
28194
28156
|
*/
|
|
28195
|
-
showOutline: boolean;
|
|
28196
|
-
/**
|
|
28197
|
-
* The color to use when rendering outlines. This option is only used
|
|
28198
|
-
when enableModelExperimental is set to true.
|
|
28199
|
-
*/
|
|
28200
|
-
outlineColor: Color;
|
|
28157
|
+
readonly showOutline: boolean;
|
|
28201
28158
|
/**
|
|
28202
28159
|
* The {@link SplitDirection} to apply to this tileset.
|
|
28203
28160
|
*/
|
|
@@ -30053,14 +30010,12 @@ viewer.scene.primitives.add(Cesium.createOsmBuildings({
|
|
|
30053
30010
|
specified, a default style is used which gives each building or building part a
|
|
30054
30011
|
color inferred from its OpenStreetMap <code>tags</code>. If no color can be inferred,
|
|
30055
30012
|
<code>options.defaultColor</code> is used.
|
|
30056
|
-
* @param [options.enableShowOutline = true] - If true, enable rendering outlines. This can be set to false to avoid the additional processing of geometry at load time.
|
|
30057
30013
|
* @param [options.showOutline = true] - Whether to show outlines around buildings. When true,
|
|
30058
30014
|
outlines are displayed. When false, outlines are not displayed.
|
|
30059
30015
|
*/
|
|
30060
30016
|
export function createOsmBuildings(options?: {
|
|
30061
30017
|
defaultColor?: Color;
|
|
30062
30018
|
style?: Cesium3DTileStyle;
|
|
30063
|
-
enableShowOutline?: boolean;
|
|
30064
30019
|
showOutline?: boolean;
|
|
30065
30020
|
}): Cesium3DTileset;
|
|
30066
30021
|
|
|
@@ -34886,7 +34841,7 @@ relative to a local origin.
|
|
|
34886
34841
|
* @param [options.silhouetteColor = Color.RED] - The silhouette color. If more than 256 models have silhouettes enabled, there is a small chance that overlapping models will have minor artifacts.
|
|
34887
34842
|
* @param [options.silhouetteSize = 0.0] - The size of the silhouette in pixels.
|
|
34888
34843
|
* @param [options.clippingPlanes] - The {@link ClippingPlaneCollection} used to selectively disable rendering the model.
|
|
34889
|
-
* @param [options.dequantizeInShader = true] - Determines if a {@link https://github.com/google/draco|Draco} encoded model is dequantized on the GPU. This decreases total memory usage for encoded models. Deprecated in CesiumJS 1.94, will be removed in CesiumJS 1.
|
|
34844
|
+
* @param [options.dequantizeInShader = true] - Determines if a {@link https://github.com/google/draco|Draco} encoded model is dequantized on the GPU. This decreases total memory usage for encoded models. Deprecated in CesiumJS 1.94, will be removed in CesiumJS 1.96.
|
|
34890
34845
|
* @param [options.lightColor] - The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
34891
34846
|
* @param [options.imageBasedLighting] - The properties for managing image-based lighting on this model.
|
|
34892
34847
|
* @param [options.credit] - A credit for the data source, which is displayed on the canvas.
|
|
@@ -35224,7 +35179,7 @@ export class Model {
|
|
|
35224
35179
|
* @param [options.silhouetteColor = Color.RED] - The silhouette color. If more than 256 models have silhouettes enabled, there is a small chance that overlapping models will have minor artifacts.
|
|
35225
35180
|
* @param [options.silhouetteSize = 0.0] - The size of the silhouette in pixels.
|
|
35226
35181
|
* @param [options.clippingPlanes] - The {@link ClippingPlaneCollection} used to selectively disable rendering the model.
|
|
35227
|
-
* @param [options.dequantizeInShader = true] - Determines if a {@link https://github.com/google/draco|Draco} encoded model is dequantized on the GPU. This decreases total memory usage for encoded models. Deprecated in CesiumJS 1.94, will be removed in CesiumJS 1.
|
|
35182
|
+
* @param [options.dequantizeInShader = true] - Determines if a {@link https://github.com/google/draco|Draco} encoded model is dequantized on the GPU. This decreases total memory usage for encoded models. Deprecated in CesiumJS 1.94, will be removed in CesiumJS 1.96.
|
|
35228
35183
|
* @param [options.lightColor] - The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
35229
35184
|
* @param [options.imageBasedLighting] - The properties for managing image-based lighting for this tileset.
|
|
35230
35185
|
* @param [options.credit] - A credit for the model, which is displayed on the canvas.
|
|
@@ -35851,9 +35806,6 @@ the Model from your source data type.
|
|
|
35851
35806
|
* @param [options.colorBlendAmount = 0.5] - Value used to determine the color strength when the <code>colorBlendMode</code> is <code>MIX</code>. A value of 0.0 results in the model's rendered color while a value of 1.0 results in a solid color, with any value in-between resulting in a mix of the two.
|
|
35852
35807
|
* @param [options.silhouetteColor = Color.RED] - The silhouette color. If more than 256 models have silhouettes enabled, there is a small chance that overlapping models will have minor artifacts.
|
|
35853
35808
|
* @param [options.silhouetteSize = 0.0] - The size of the silhouette in pixels.
|
|
35854
|
-
* @param [options.enableShowOutline = true] - Whether to enable outlines for models using the {@link https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline|CESIUM_primitive_outline} extension. This can be set to false to avoid the additional processing of geometry at load time. When false, the showOutlines and outlineColor options are ignored.
|
|
35855
|
-
* @param [options.showOutline = true] - Whether to display the outline for models using the {@link https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline|CESIUM_primitive_outline} extension. When true, outlines are displayed. When false, outlines are not displayed.
|
|
35856
|
-
* @param [options.outlineColor = Color.BLACK] - The color to use when rendering outlines.
|
|
35857
35809
|
* @param [options.clippingPlanes] - The {@link ClippingPlaneCollection} used to selectively disable rendering the model.
|
|
35858
35810
|
* @param [options.lightColor] - The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
35859
35811
|
* @param [options.imageBasedLighting] - The properties for managing image-based lighting on this model.
|
|
@@ -35893,9 +35845,6 @@ export class ModelExperimental {
|
|
|
35893
35845
|
colorBlendAmount?: number;
|
|
35894
35846
|
silhouetteColor?: Color;
|
|
35895
35847
|
silhouetteSize?: number;
|
|
35896
|
-
enableShowOutline?: boolean;
|
|
35897
|
-
showOutline?: boolean;
|
|
35898
|
-
outlineColor?: Color;
|
|
35899
35848
|
clippingPlanes?: ClippingPlaneCollection;
|
|
35900
35849
|
lightColor?: Cartesian3;
|
|
35901
35850
|
imageBasedLighting?: ImageBasedLighting;
|
|
@@ -36089,17 +36038,6 @@ export class ModelExperimental {
|
|
|
36089
36038
|
* The {@link SplitDirection} to apply to this model.
|
|
36090
36039
|
*/
|
|
36091
36040
|
splitDirection: SplitDirection;
|
|
36092
|
-
/**
|
|
36093
|
-
* Returns the node with the given <code>name</code> in the glTF. This is used to
|
|
36094
|
-
modify a node's transform for user-defined animation.
|
|
36095
|
-
* @example
|
|
36096
|
-
* // Apply non-uniform scale to node "Hand"
|
|
36097
|
-
const node = model.getNode("Hand");
|
|
36098
|
-
node.matrix = Cesium.Matrix4.fromScale(new Cesium.Cartesian3(5.0, 1.0, 1.0), node.matrix);
|
|
36099
|
-
* @param name - The name of the node in the glTF.
|
|
36100
|
-
* @returns The node, or <code>undefined</code> if no node with the <code>name</code> exists.
|
|
36101
|
-
*/
|
|
36102
|
-
getNode(name: string): ModelExperimentalNode;
|
|
36103
36041
|
/**
|
|
36104
36042
|
* Sets the current value of an articulation stage. After setting one or
|
|
36105
36043
|
multiple stage values, call ModelExperimental.applyArticulations() to
|
|
@@ -36184,9 +36122,6 @@ export class ModelExperimental {
|
|
|
36184
36122
|
* @param [options.colorBlendAmount = 0.5] - Value used to determine the color strength when the <code>colorBlendMode</code> is <code>MIX</code>. A value of 0.0 results in the model's rendered color while a value of 1.0 results in a solid color, with any value in-between resulting in a mix of the two.
|
|
36185
36123
|
* @param [options.silhouetteColor = Color.RED] - The silhouette color. If more than 256 models have silhouettes enabled, there is a small chance that overlapping models will have minor artifacts.
|
|
36186
36124
|
* @param [options.silhouetteSize = 0.0] - The size of the silhouette in pixels.
|
|
36187
|
-
* @param [options.enableShowOutline = true] - Whether to enable outlines for models using the {@link https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline|CESIUM_primitive_outline} extension. This can be set false to avoid post-processing geometry at load time. When false, the showOutlines and outlineColor options are ignored.
|
|
36188
|
-
* @param [options.showOutline = true] - Whether to display the outline for models using the {@link https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline|CESIUM_primitive_outline} extension. When true, outlines are displayed. When false, outlines are not displayed.
|
|
36189
|
-
* @param [options.outlineColor = Color.BLACK] - The color to use when rendering outlines.
|
|
36190
36125
|
* @param [options.clippingPlanes] - The {@link ClippingPlaneCollection} used to selectively disable rendering the model.
|
|
36191
36126
|
* @param [options.lightColor] - The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
36192
36127
|
* @param [options.imageBasedLighting] - The properties for managing image-based lighting on this model.
|
|
@@ -36232,9 +36167,6 @@ export class ModelExperimental {
|
|
|
36232
36167
|
colorBlendAmount?: number;
|
|
36233
36168
|
silhouetteColor?: Color;
|
|
36234
36169
|
silhouetteSize?: number;
|
|
36235
|
-
enableShowOutline?: boolean;
|
|
36236
|
-
showOutline?: boolean;
|
|
36237
|
-
outlineColor?: Color;
|
|
36238
36170
|
clippingPlanes?: ClippingPlaneCollection;
|
|
36239
36171
|
lightColor?: Cartesian3;
|
|
36240
36172
|
imageBasedLighting?: ImageBasedLighting;
|
|
@@ -36260,18 +36192,6 @@ m.modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(origin);
|
|
|
36260
36192
|
*/
|
|
36261
36193
|
export var modelMatrix: Matrix4;
|
|
36262
36194
|
|
|
36263
|
-
/**
|
|
36264
|
-
* Whether to display the outline for models using the
|
|
36265
|
-
{@link https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline|CESIUM_primitive_outline} extension.
|
|
36266
|
-
When true, outlines are displayed. When false, outlines are not displayed.
|
|
36267
|
-
*/
|
|
36268
|
-
export var showOutline: boolean;
|
|
36269
|
-
|
|
36270
|
-
/**
|
|
36271
|
-
* The color to use when rendering outlines.
|
|
36272
|
-
*/
|
|
36273
|
-
export var outlineColor: Color;
|
|
36274
|
-
|
|
36275
36195
|
/**
|
|
36276
36196
|
* An active animation derived from a glTF asset. An active animation is an
|
|
36277
36197
|
animation that is either currently playing or scheduled to be played due to
|
|
@@ -36574,49 +36494,9 @@ export class ModelExperimentalAnimationCollection {
|
|
|
36574
36494
|
}
|
|
36575
36495
|
|
|
36576
36496
|
/**
|
|
36577
|
-
*
|
|
36578
|
-
own animations. While a model's asset can contain animations that target
|
|
36579
|
-
a node's transform, this class allows users to change a node's transform
|
|
36580
|
-
externally. In this way, animation can be driven by another source, not
|
|
36581
|
-
just by the model's asset.
|
|
36582
|
-
<p>
|
|
36583
|
-
Use {@link ModelExperimental#getNode} to get an instance from a loaded model.
|
|
36584
|
-
</p>
|
|
36585
|
-
* @example
|
|
36586
|
-
* const node = model.getNode("Hand");
|
|
36587
|
-
node.matrix = Cesium.Matrix4.fromScale(new Cesium.Cartesian3(5.0, 1.0, 1.0), node.matrix);
|
|
36497
|
+
* The indices of the children of this node in the scene graph.
|
|
36588
36498
|
*/
|
|
36589
|
-
export
|
|
36590
|
-
/**
|
|
36591
|
-
* The value of the <code>name</code> property of this node.
|
|
36592
|
-
*/
|
|
36593
|
-
readonly name: string;
|
|
36594
|
-
/**
|
|
36595
|
-
* The index of the node in the glTF.
|
|
36596
|
-
*/
|
|
36597
|
-
readonly id: number;
|
|
36598
|
-
/**
|
|
36599
|
-
* Determines if this node and its children will be shown.
|
|
36600
|
-
*/
|
|
36601
|
-
show: boolean;
|
|
36602
|
-
/**
|
|
36603
|
-
* The node's 4x4 matrix transform from its local coordinates to
|
|
36604
|
-
its parent's. Setting the matrix to undefined will restore the
|
|
36605
|
-
node's original transform, and allow the node to be animated by
|
|
36606
|
-
any animations in the model again.
|
|
36607
|
-
<p>
|
|
36608
|
-
For changes to take effect, this property must be assigned to;
|
|
36609
|
-
setting individual elements of the matrix will not work.
|
|
36610
|
-
</p>
|
|
36611
|
-
*/
|
|
36612
|
-
matrix: Matrix4;
|
|
36613
|
-
/**
|
|
36614
|
-
* Gets the node's original 4x4 matrix transform from its local
|
|
36615
|
-
coordinates to its parent's, without any node transformations
|
|
36616
|
-
or articulations applied.
|
|
36617
|
-
*/
|
|
36618
|
-
originalMatrix: Matrix4;
|
|
36619
|
-
}
|
|
36499
|
+
export const children: number[];
|
|
36620
36500
|
|
|
36621
36501
|
/**
|
|
36622
36502
|
* A feature of a {@link ModelExperimental}.
|
|
@@ -38934,88 +38814,88 @@ export enum PostProcessStageSampleMode {
|
|
|
38934
38814
|
|
|
38935
38815
|
/**
|
|
38936
38816
|
* A primitive represents geometry in the {@link Scene}. The geometry can be from a single {@link GeometryInstance}
|
|
38937
|
-
|
|
38938
|
-
|
|
38939
|
-
|
|
38940
|
-
|
|
38941
|
-
|
|
38942
|
-
|
|
38943
|
-
|
|
38944
|
-
|
|
38945
|
-
|
|
38946
|
-
|
|
38947
|
-
|
|
38948
|
-
|
|
38949
|
-
|
|
38950
|
-
|
|
38951
|
-
|
|
38952
|
-
|
|
38953
|
-
|
|
38954
|
-
|
|
38817
|
+
as shown in example 1 below, or from an array of instances, even if the geometry is from different
|
|
38818
|
+
geometry types, e.g., an {@link RectangleGeometry} and an {@link EllipsoidGeometry} as shown in Code Example 2.
|
|
38819
|
+
<p>
|
|
38820
|
+
A primitive combines geometry instances with an {@link Appearance} that describes the full shading, including
|
|
38821
|
+
{@link Material} and {@link RenderState}. Roughly, the geometry instance defines the structure and placement,
|
|
38822
|
+
and the appearance defines the visual characteristics. Decoupling geometry and appearance allows us to mix
|
|
38823
|
+
and match most of them and add a new geometry or appearance independently of each other.
|
|
38824
|
+
</p>
|
|
38825
|
+
<p>
|
|
38826
|
+
Combining multiple instances into one primitive is called batching, and significantly improves performance for static data.
|
|
38827
|
+
Instances can be individually picked; {@link Scene#pick} returns their {@link GeometryInstance#id}. Using
|
|
38828
|
+
per-instance appearances like {@link PerInstanceColorAppearance}, each instance can also have a unique color.
|
|
38829
|
+
</p>
|
|
38830
|
+
<p>
|
|
38831
|
+
{@link Geometry} can either be created and batched on a web worker or the main thread. The first two examples
|
|
38832
|
+
show geometry that will be created on a web worker by using the descriptions of the geometry. The third example
|
|
38833
|
+
shows how to create the geometry on the main thread by explicitly calling the <code>createGeometry</code> method.
|
|
38834
|
+
</p>
|
|
38955
38835
|
* @example
|
|
38956
38836
|
* // 1. Draw a translucent ellipse on the surface with a checkerboard pattern
|
|
38957
|
-
|
|
38958
|
-
|
|
38959
|
-
|
|
38960
|
-
|
|
38961
|
-
|
|
38962
|
-
|
|
38963
|
-
|
|
38964
|
-
|
|
38965
|
-
|
|
38966
|
-
|
|
38967
|
-
|
|
38968
|
-
|
|
38969
|
-
|
|
38970
|
-
|
|
38971
|
-
|
|
38972
|
-
|
|
38837
|
+
const instance = new Cesium.GeometryInstance({
|
|
38838
|
+
geometry : new Cesium.EllipseGeometry({
|
|
38839
|
+
center : Cesium.Cartesian3.fromDegrees(-100.0, 20.0),
|
|
38840
|
+
semiMinorAxis : 500000.0,
|
|
38841
|
+
semiMajorAxis : 1000000.0,
|
|
38842
|
+
rotation : Cesium.Math.PI_OVER_FOUR,
|
|
38843
|
+
vertexFormat : Cesium.VertexFormat.POSITION_AND_ST
|
|
38844
|
+
}),
|
|
38845
|
+
id : 'object returned when this instance is picked and to get/set per-instance attributes'
|
|
38846
|
+
});
|
|
38847
|
+
scene.primitives.add(new Cesium.Primitive({
|
|
38848
|
+
geometryInstances : instance,
|
|
38849
|
+
appearance : new Cesium.EllipsoidSurfaceAppearance({
|
|
38850
|
+
material : Cesium.Material.fromType('Checkerboard')
|
|
38851
|
+
})
|
|
38852
|
+
}));
|
|
38973
38853
|
* @example
|
|
38974
38854
|
* // 2. Draw different instances each with a unique color
|
|
38975
|
-
|
|
38976
|
-
|
|
38977
|
-
|
|
38978
|
-
|
|
38979
|
-
|
|
38980
|
-
|
|
38981
|
-
|
|
38982
|
-
|
|
38983
|
-
|
|
38984
|
-
|
|
38985
|
-
|
|
38986
|
-
|
|
38987
|
-
|
|
38988
|
-
|
|
38989
|
-
|
|
38990
|
-
|
|
38991
|
-
|
|
38992
|
-
|
|
38993
|
-
|
|
38994
|
-
|
|
38995
|
-
|
|
38996
|
-
|
|
38997
|
-
|
|
38998
|
-
|
|
38999
|
-
|
|
39000
|
-
|
|
38855
|
+
const rectangleInstance = new Cesium.GeometryInstance({
|
|
38856
|
+
geometry : new Cesium.RectangleGeometry({
|
|
38857
|
+
rectangle : Cesium.Rectangle.fromDegrees(-140.0, 30.0, -100.0, 40.0),
|
|
38858
|
+
vertexFormat : Cesium.PerInstanceColorAppearance.VERTEX_FORMAT
|
|
38859
|
+
}),
|
|
38860
|
+
id : 'rectangle',
|
|
38861
|
+
attributes : {
|
|
38862
|
+
color : new Cesium.ColorGeometryInstanceAttribute(0.0, 1.0, 1.0, 0.5)
|
|
38863
|
+
}
|
|
38864
|
+
});
|
|
38865
|
+
const ellipsoidInstance = new Cesium.GeometryInstance({
|
|
38866
|
+
geometry : new Cesium.EllipsoidGeometry({
|
|
38867
|
+
radii : new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
|
|
38868
|
+
vertexFormat : Cesium.VertexFormat.POSITION_AND_NORMAL
|
|
38869
|
+
}),
|
|
38870
|
+
modelMatrix : Cesium.Matrix4.multiplyByTranslation(Cesium.Transforms.eastNorthUpToFixedFrame(
|
|
38871
|
+
Cesium.Cartesian3.fromDegrees(-95.59777, 40.03883)), new Cesium.Cartesian3(0.0, 0.0, 500000.0), new Cesium.Matrix4()),
|
|
38872
|
+
id : 'ellipsoid',
|
|
38873
|
+
attributes : {
|
|
38874
|
+
color : Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.AQUA)
|
|
38875
|
+
}
|
|
38876
|
+
});
|
|
38877
|
+
scene.primitives.add(new Cesium.Primitive({
|
|
38878
|
+
geometryInstances : [rectangleInstance, ellipsoidInstance],
|
|
38879
|
+
appearance : new Cesium.PerInstanceColorAppearance()
|
|
38880
|
+
}));
|
|
39001
38881
|
* @example
|
|
39002
38882
|
* // 3. Create the geometry on the main thread.
|
|
39003
|
-
|
|
39004
|
-
|
|
39005
|
-
|
|
39006
|
-
|
|
39007
|
-
|
|
39008
|
-
|
|
39009
|
-
|
|
39010
|
-
|
|
39011
|
-
|
|
39012
|
-
|
|
39013
|
-
|
|
39014
|
-
|
|
39015
|
-
|
|
39016
|
-
|
|
39017
|
-
|
|
39018
|
-
|
|
38883
|
+
scene.primitives.add(new Cesium.Primitive({
|
|
38884
|
+
geometryInstances : new Cesium.GeometryInstance({
|
|
38885
|
+
geometry : Cesium.EllipsoidGeometry.createGeometry(new Cesium.EllipsoidGeometry({
|
|
38886
|
+
radii : new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
|
|
38887
|
+
vertexFormat : Cesium.VertexFormat.POSITION_AND_NORMAL
|
|
38888
|
+
})),
|
|
38889
|
+
modelMatrix : Cesium.Matrix4.multiplyByTranslation(Cesium.Transforms.eastNorthUpToFixedFrame(
|
|
38890
|
+
Cesium.Cartesian3.fromDegrees(-95.59777, 40.03883)), new Cesium.Cartesian3(0.0, 0.0, 500000.0), new Cesium.Matrix4()),
|
|
38891
|
+
id : 'ellipsoid',
|
|
38892
|
+
attributes : {
|
|
38893
|
+
color : Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.AQUA)
|
|
38894
|
+
}
|
|
38895
|
+
}),
|
|
38896
|
+
appearance : new Cesium.PerInstanceColorAppearance(),
|
|
38897
|
+
asynchronous : false
|
|
38898
|
+
}));
|
|
39019
38899
|
* @param [options] - Object with the following properties:
|
|
39020
38900
|
* @param [options.geometryInstances] - The geometry instances - or a single geometry instance - to render.
|
|
39021
38901
|
* @param [options.appearance] - The appearance used to render the primitive.
|
|
@@ -39051,67 +38931,67 @@ export class Primitive {
|
|
|
39051
38931
|
});
|
|
39052
38932
|
/**
|
|
39053
38933
|
* The geometry instances rendered with this primitive. This may
|
|
39054
|
-
|
|
39055
|
-
|
|
39056
|
-
|
|
39057
|
-
|
|
39058
|
-
|
|
38934
|
+
be <code>undefined</code> if <code>options.releaseGeometryInstances</code>
|
|
38935
|
+
is <code>true</code> when the primitive is constructed.
|
|
38936
|
+
<p>
|
|
38937
|
+
Changing this property after the primitive is rendered has no effect.
|
|
38938
|
+
</p>
|
|
39059
38939
|
*/
|
|
39060
38940
|
readonly geometryInstances: GeometryInstance[] | GeometryInstance;
|
|
39061
38941
|
/**
|
|
39062
38942
|
* The {@link Appearance} used to shade this primitive. Each geometry
|
|
39063
|
-
|
|
39064
|
-
|
|
39065
|
-
|
|
38943
|
+
instance is shaded with the same appearance. Some appearances, like
|
|
38944
|
+
{@link PerInstanceColorAppearance} allow giving each instance unique
|
|
38945
|
+
properties.
|
|
39066
38946
|
*/
|
|
39067
38947
|
appearance: Appearance;
|
|
39068
38948
|
/**
|
|
39069
38949
|
* The {@link Appearance} used to shade this primitive when it fails the depth test. Each geometry
|
|
39070
|
-
|
|
39071
|
-
|
|
39072
|
-
|
|
39073
|
-
|
|
39074
|
-
|
|
39075
|
-
|
|
39076
|
-
|
|
39077
|
-
|
|
39078
|
-
|
|
39079
|
-
|
|
39080
|
-
|
|
39081
|
-
|
|
39082
|
-
|
|
38950
|
+
instance is shaded with the same appearance. Some appearances, like
|
|
38951
|
+
{@link PerInstanceColorAppearance} allow giving each instance unique
|
|
38952
|
+
properties.
|
|
38953
|
+
|
|
38954
|
+
<p>
|
|
38955
|
+
When using an appearance that requires a color attribute, like PerInstanceColorAppearance,
|
|
38956
|
+
add a depthFailColor per-instance attribute instead.
|
|
38957
|
+
</p>
|
|
38958
|
+
|
|
38959
|
+
<p>
|
|
38960
|
+
Requires the EXT_frag_depth WebGL extension to render properly. If the extension is not supported,
|
|
38961
|
+
there may be artifacts.
|
|
38962
|
+
</p>
|
|
39083
38963
|
*/
|
|
39084
38964
|
depthFailAppearance: Appearance;
|
|
39085
38965
|
/**
|
|
39086
38966
|
* The 4x4 transformation matrix that transforms the primitive (all geometry instances) from model to world coordinates.
|
|
39087
|
-
|
|
39088
|
-
|
|
39089
|
-
|
|
39090
|
-
|
|
39091
|
-
|
|
39092
|
-
|
|
39093
|
-
|
|
38967
|
+
When this is the identity matrix, the primitive is drawn in world coordinates, i.e., Earth's WGS84 coordinates.
|
|
38968
|
+
Local reference frames can be used by providing a different transformation matrix, like that returned
|
|
38969
|
+
by {@link Transforms.eastNorthUpToFixedFrame}.
|
|
38970
|
+
|
|
38971
|
+
<p>
|
|
38972
|
+
This property is only supported in 3D mode.
|
|
38973
|
+
</p>
|
|
39094
38974
|
* @example
|
|
39095
38975
|
* const origin = Cesium.Cartesian3.fromDegrees(-95.0, 40.0, 200000.0);
|
|
39096
|
-
|
|
38976
|
+
p.modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(origin);
|
|
39097
38977
|
*/
|
|
39098
38978
|
modelMatrix: Matrix4;
|
|
39099
38979
|
/**
|
|
39100
38980
|
* Determines if the primitive will be shown. This affects all geometry
|
|
39101
|
-
|
|
38981
|
+
instances in the primitive.
|
|
39102
38982
|
*/
|
|
39103
38983
|
show: boolean;
|
|
39104
38984
|
/**
|
|
39105
38985
|
* When <code>true</code>, the renderer frustum culls and horizon culls the primitive's commands
|
|
39106
|
-
|
|
39107
|
-
|
|
38986
|
+
based on their bounding volume. Set this to <code>false</code> for a small performance gain
|
|
38987
|
+
if you are manually culling the primitive.
|
|
39108
38988
|
*/
|
|
39109
38989
|
cull: boolean;
|
|
39110
38990
|
/**
|
|
39111
38991
|
* This property is for debugging only; it is not for production use nor is it optimized.
|
|
39112
|
-
|
|
39113
|
-
|
|
39114
|
-
|
|
38992
|
+
<p>
|
|
38993
|
+
Draws the bounding sphere for each draw command in the primitive.
|
|
38994
|
+
</p>
|
|
39115
38995
|
*/
|
|
39116
38996
|
debugShowBoundingVolume: boolean;
|
|
39117
38997
|
/**
|
|
@@ -39144,8 +39024,8 @@ export class Primitive {
|
|
|
39144
39024
|
readonly compressVertices: boolean;
|
|
39145
39025
|
/**
|
|
39146
39026
|
* Determines if the primitive is complete and ready to render. If this property is
|
|
39147
|
-
|
|
39148
|
-
|
|
39027
|
+
true, the primitive will be rendered the next time that {@link Primitive#update}
|
|
39028
|
+
is called.
|
|
39149
39029
|
*/
|
|
39150
39030
|
readonly ready: boolean;
|
|
39151
39031
|
/**
|
|
@@ -39154,42 +39034,42 @@ export class Primitive {
|
|
|
39154
39034
|
readonly readyPromise: Promise<Primitive>;
|
|
39155
39035
|
/**
|
|
39156
39036
|
* Called when {@link Viewer} or {@link CesiumWidget} render the scene to
|
|
39157
|
-
|
|
39158
|
-
|
|
39159
|
-
|
|
39160
|
-
|
|
39161
|
-
|
|
39037
|
+
get the draw commands needed to render this primitive.
|
|
39038
|
+
<p>
|
|
39039
|
+
Do not call this function directly. This is documented just to
|
|
39040
|
+
list the exceptions that may be propagated when the scene is rendered:
|
|
39041
|
+
</p>
|
|
39162
39042
|
*/
|
|
39163
39043
|
update(): void;
|
|
39164
39044
|
/**
|
|
39165
39045
|
* Returns the modifiable per-instance attributes for a {@link GeometryInstance}.
|
|
39166
39046
|
* @example
|
|
39167
39047
|
* const attributes = primitive.getGeometryInstanceAttributes('an id');
|
|
39168
|
-
|
|
39169
|
-
|
|
39170
|
-
|
|
39171
|
-
|
|
39048
|
+
attributes.color = Cesium.ColorGeometryInstanceAttribute.toValue(Cesium.Color.AQUA);
|
|
39049
|
+
attributes.show = Cesium.ShowGeometryInstanceAttribute.toValue(true);
|
|
39050
|
+
attributes.distanceDisplayCondition = Cesium.DistanceDisplayConditionGeometryInstanceAttribute.toValue(100.0, 10000.0);
|
|
39051
|
+
attributes.offset = Cesium.OffsetGeometryInstanceAttribute.toValue(Cartesian3.IDENTITY);
|
|
39172
39052
|
* @param id - The id of the {@link GeometryInstance}.
|
|
39173
39053
|
* @returns The typed array in the attribute's format or undefined if the is no instance with id.
|
|
39174
39054
|
*/
|
|
39175
39055
|
getGeometryInstanceAttributes(id: any): any;
|
|
39176
39056
|
/**
|
|
39177
39057
|
* Returns true if this object was destroyed; otherwise, false.
|
|
39178
|
-
|
|
39179
|
-
|
|
39180
|
-
|
|
39181
|
-
|
|
39058
|
+
<p>
|
|
39059
|
+
If this object was destroyed, it should not be used; calling any function other than
|
|
39060
|
+
<code>isDestroyed</code> will result in a {@link DeveloperError} exception.
|
|
39061
|
+
</p>
|
|
39182
39062
|
* @returns <code>true</code> if this object was destroyed; otherwise, <code>false</code>.
|
|
39183
39063
|
*/
|
|
39184
39064
|
isDestroyed(): boolean;
|
|
39185
39065
|
/**
|
|
39186
39066
|
* Destroys the WebGL resources held by this object. Destroying an object allows for deterministic
|
|
39187
|
-
|
|
39188
|
-
|
|
39189
|
-
|
|
39190
|
-
|
|
39191
|
-
|
|
39192
|
-
|
|
39067
|
+
release of WebGL resources, instead of relying on the garbage collector to destroy this object.
|
|
39068
|
+
<p>
|
|
39069
|
+
Once an object is destroyed, it should not be used; calling any function other than
|
|
39070
|
+
<code>isDestroyed</code> will result in a {@link DeveloperError} exception. Therefore,
|
|
39071
|
+
assign the return value (<code>undefined</code>) to the object as done in the example.
|
|
39072
|
+
</p>
|
|
39193
39073
|
* @example
|
|
39194
39074
|
* e = e && e.destroy();
|
|
39195
39075
|
*/
|
|
@@ -42367,9 +42247,9 @@ const widget = new Cesium.Animation('animationContainer', viewModel);
|
|
|
42367
42247
|
|
|
42368
42248
|
function tick() {
|
|
42369
42249
|
clock.tick();
|
|
42370
|
-
requestAnimationFrame(tick);
|
|
42250
|
+
Cesium.requestAnimationFrame(tick);
|
|
42371
42251
|
}
|
|
42372
|
-
requestAnimationFrame(tick);
|
|
42252
|
+
Cesium.requestAnimationFrame(tick);
|
|
42373
42253
|
* @param container - The DOM element or ID that will contain the widget.
|
|
42374
42254
|
* @param viewModel - The view model used by this widget.
|
|
42375
42255
|
*/
|
|
@@ -43331,7 +43211,6 @@ const widget2 = new Cesium.CesiumWidget('cesiumContainer', {
|
|
|
43331
43211
|
* @param [options.shadows = false] - Determines if shadows are cast by light sources.
|
|
43332
43212
|
* @param [options.terrainShadows = ShadowMode.RECEIVE_ONLY] - Determines if the terrain casts or receives shadows from light sources.
|
|
43333
43213
|
* @param [options.mapMode2D = MapMode2D.INFINITE_SCROLL] - Determines if the 2D map is rotatable or can be scrolled infinitely in the horizontal direction.
|
|
43334
|
-
* @param [options.blurActiveElementOnCanvasFocus = true] - If true, the active element will blur when the viewer's canvas is clicked. Setting this to false is useful for cases when the canvas is clicked only for retrieving position or an entity data without actually meaning to set the canvas to be the active element.
|
|
43335
43214
|
* @param [options.requestRenderMode = false] - If true, rendering a frame will only occur when needed as determined by changes within the scene. Enabling improves performance of the application, but requires using {@link Scene#requestRender} to render a new frame explicitly in this mode. This will be necessary in many cases after making changes to the scene in other parts of the API. See {@link https://cesium.com/blog/2018/01/24/cesium-scene-rendering-performance/|Improving Performance with Explicit Rendering}.
|
|
43336
43215
|
* @param [options.maximumRenderTimeChange = 0.0] - If requestRenderMode is true, this value defines the maximum change in simulation time allowed before a render is requested. See {@link https://cesium.com/blog/2018/01/24/cesium-scene-rendering-performance/|Improving Performance with Explicit Rendering}.
|
|
43337
43216
|
* @param [options.msaaSamples = 1] - If provided, this value controls the rate of multisample antialiasing. Typical multisampling rates are 2, 4, and sometimes 8 samples per pixel. Higher sampling rates of MSAA may impact performance in exchange for improved visual quality. This value only applies to WebGL2 contexts that support multisample render targets.
|
|
@@ -43358,7 +43237,6 @@ export class CesiumWidget {
|
|
|
43358
43237
|
shadows?: boolean;
|
|
43359
43238
|
terrainShadows?: ShadowMode;
|
|
43360
43239
|
mapMode2D?: MapMode2D;
|
|
43361
|
-
blurActiveElementOnCanvasFocus?: boolean;
|
|
43362
43240
|
requestRenderMode?: boolean;
|
|
43363
43241
|
maximumRenderTimeChange?: number;
|
|
43364
43242
|
msaaSamples?: number;
|
|
@@ -43405,14 +43283,14 @@ export class CesiumWidget {
|
|
|
43405
43283
|
readonly screenSpaceEventHandler: ScreenSpaceEventHandler;
|
|
43406
43284
|
/**
|
|
43407
43285
|
* Gets or sets the target frame rate of the widget when <code>useDefaultRenderLoop</code>
|
|
43408
|
-
is true. If undefined, the browser's requestAnimationFrame implementation
|
|
43286
|
+
is true. If undefined, the browser's {@link requestAnimationFrame} implementation
|
|
43409
43287
|
determines the frame rate. If defined, this value must be greater than 0. A value higher
|
|
43410
43288
|
than the underlying requestAnimationFrame implementation will have no effect.
|
|
43411
43289
|
*/
|
|
43412
43290
|
targetFrameRate: number;
|
|
43413
43291
|
/**
|
|
43414
43292
|
* Gets or sets whether or not this widget should control the render loop.
|
|
43415
|
-
If true the widget will use requestAnimationFrame to
|
|
43293
|
+
If set to true the widget will use {@link requestAnimationFrame} to
|
|
43416
43294
|
perform rendering and resizing of the widget, as well as drive the
|
|
43417
43295
|
simulation clock. If set to false, you must manually call the
|
|
43418
43296
|
<code>resize</code>, <code>render</code> methods as part of a custom
|
|
@@ -44464,7 +44342,6 @@ export namespace Viewer {
|
|
|
44464
44342
|
* @property [terrainShadows = ShadowMode.RECEIVE_ONLY] - Determines if the terrain casts or receives shadows from light sources.
|
|
44465
44343
|
* @property [mapMode2D = MapMode2D.INFINITE_SCROLL] - Determines if the 2D map is rotatable or can be scrolled infinitely in the horizontal direction.
|
|
44466
44344
|
* @property [projectionPicker = false] - If set to true, the ProjectionPicker widget will be created.
|
|
44467
|
-
* @property [blurActiveElementOnCanvasFocus = true] - If true, the active element will blur when the viewer's canvas is clicked. Setting this to false is useful for cases when the canvas is clicked only for retrieving position or an entity data without actually meaning to set the canvas to be the active element.
|
|
44468
44345
|
* @property [requestRenderMode = false] - If true, rendering a frame will only occur when needed as determined by changes within the scene. Enabling reduces the CPU/GPU usage of your application and uses less battery on mobile, but requires using {@link Scene#requestRender} to render a new frame explicitly in this mode. This will be necessary in many cases after making changes to the scene in other parts of the API. See {@link https://cesium.com/blog/2018/01/24/cesium-scene-rendering-performance/|Improving Performance with Explicit Rendering}.
|
|
44469
44346
|
* @property [maximumRenderTimeChange = 0.0] - If requestRenderMode is true, this value defines the maximum change in simulation time allowed before a render is requested. See {@link https://cesium.com/blog/2018/01/24/cesium-scene-rendering-performance/|Improving Performance with Explicit Rendering}.
|
|
44470
44347
|
* @property [depthPlaneEllipsoidOffset = 0.0] - Adjust the DepthPlane to address rendering artefacts below ellipsoid zero elevation.
|
|
@@ -44512,7 +44389,6 @@ export namespace Viewer {
|
|
|
44512
44389
|
terrainShadows?: ShadowMode;
|
|
44513
44390
|
mapMode2D?: MapMode2D;
|
|
44514
44391
|
projectionPicker?: boolean;
|
|
44515
|
-
blurActiveElementOnCanvasFocus?: boolean;
|
|
44516
44392
|
requestRenderMode?: boolean;
|
|
44517
44393
|
maximumRenderTimeChange?: number;
|
|
44518
44394
|
depthPlaneEllipsoidOffset?: number;
|
|
@@ -44693,14 +44569,14 @@ export class Viewer {
|
|
|
44693
44569
|
readonly screenSpaceEventHandler: ScreenSpaceEventHandler;
|
|
44694
44570
|
/**
|
|
44695
44571
|
* Gets or sets the target frame rate of the widget when <code>useDefaultRenderLoop</code>
|
|
44696
|
-
is true. If undefined, the browser's requestAnimationFrame implementation
|
|
44572
|
+
is true. If undefined, the browser's {@link requestAnimationFrame} implementation
|
|
44697
44573
|
determines the frame rate. If defined, this value must be greater than 0. A value higher
|
|
44698
44574
|
than the underlying requestAnimationFrame implementation will have no effect.
|
|
44699
44575
|
*/
|
|
44700
44576
|
targetFrameRate: number;
|
|
44701
44577
|
/**
|
|
44702
44578
|
* Gets or sets whether or not this widget should control the render loop.
|
|
44703
|
-
If true the widget will use requestAnimationFrame to
|
|
44579
|
+
If set to true the widget will use {@link requestAnimationFrame} to
|
|
44704
44580
|
perform rendering and resizing of the widget, as well as drive the
|
|
44705
44581
|
simulation clock. If set to false, you must manually call the
|
|
44706
44582
|
<code>resize</code>, <code>render</code> methods
|
|
@@ -45368,7 +45244,6 @@ declare module "cesium/Source/Scene/ModelExperimental/CustomShader" { import { C
|
|
|
45368
45244
|
declare module "cesium/Source/Scene/ModelExperimental/ModelExperimental" { import { ModelExperimental } from 'mars3d-cesium'; export default ModelExperimental; }
|
|
45369
45245
|
declare module "cesium/Source/Scene/ModelExperimental/ModelExperimentalAnimation" { import { ModelExperimentalAnimation } from 'mars3d-cesium'; export default ModelExperimentalAnimation; }
|
|
45370
45246
|
declare module "cesium/Source/Scene/ModelExperimental/ModelExperimentalAnimationCollection" { import { ModelExperimentalAnimationCollection } from 'mars3d-cesium'; export default ModelExperimentalAnimationCollection; }
|
|
45371
|
-
declare module "cesium/Source/Scene/ModelExperimental/ModelExperimentalNode" { import { ModelExperimentalNode } from 'mars3d-cesium'; export default ModelExperimentalNode; }
|
|
45372
45247
|
declare module "cesium/Source/Scene/ModelExperimental/ModelFeature" { import { ModelFeature } from 'mars3d-cesium'; export default ModelFeature; }
|
|
45373
45248
|
declare module "cesium/Source/Scene/ModelExperimental/TextureUniform" { import { TextureUniform } from 'mars3d-cesium'; export default TextureUniform; }
|
|
45374
45249
|
declare module "cesium/Source/Widgets/Animation/Animation" { import { Animation } from 'mars3d-cesium'; export default Animation; }
|