mars3d-cesium 1.93.0 → 1.94.2

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.
Files changed (94) hide show
  1. package/Build/Cesium/Cesium.d.ts +216 -179
  2. package/Build/Cesium/Cesium.js +6 -6
  3. package/Build/Cesium/Widgets/CesiumInspector/CesiumInspector.css +1 -1
  4. package/Build/Cesium/Widgets/widgets.css +1 -1
  5. package/Build/Cesium/Workers/{AttributeCompression-6e71d14f.js → AttributeCompression-4c4a8822.js} +1 -1
  6. package/Build/Cesium/Workers/{AxisAlignedBoundingBox-5ba8fa79.js → AxisAlignedBoundingBox-e89a3bd3.js} +1 -1
  7. package/Build/Cesium/Workers/{BoundingRectangle-00ff5b29.js → BoundingRectangle-e2b9571d.js} +1 -1
  8. package/Build/Cesium/Workers/{BoxGeometry-769f040a.js → BoxGeometry-d2742d52.js} +1 -1
  9. package/Build/Cesium/Workers/{Color-451a8720.js → Color-4cbe9dde.js} +1 -1
  10. package/Build/Cesium/Workers/{ComponentDatatype-a9820060.js → ComponentDatatype-07fbb0d4.js} +0 -0
  11. package/Build/Cesium/Workers/{CoplanarPolygonGeometryLibrary-5f6be5a7.js → CoplanarPolygonGeometryLibrary-f62a086d.js} +1 -1
  12. package/Build/Cesium/Workers/{CorridorGeometryLibrary-0cda5b97.js → CorridorGeometryLibrary-8d94bd35.js} +1 -1
  13. package/Build/Cesium/Workers/{CylinderGeometry-723ca1ba.js → CylinderGeometry-4376f4a9.js} +1 -1
  14. package/Build/Cesium/Workers/CylinderGeometryLibrary-3c958a1d.js +1 -0
  15. package/Build/Cesium/Workers/{EllipseGeometry-43f9e5b7.js → EllipseGeometry-3718e431.js} +1 -1
  16. package/Build/Cesium/Workers/{EllipseGeometryLibrary-2b119a38.js → EllipseGeometryLibrary-7d9d8578.js} +1 -1
  17. package/Build/Cesium/Workers/{EllipseOutlineGeometry-5a39395e.js → EllipseOutlineGeometry-cf92ef99.js} +1 -1
  18. package/Build/Cesium/Workers/{EllipsoidGeodesic-f4459924.js → EllipsoidGeodesic-1ab9765d.js} +1 -1
  19. package/Build/Cesium/Workers/{EllipsoidGeometry-418f414a.js → EllipsoidGeometry-84420be2.js} +1 -1
  20. package/Build/Cesium/Workers/{EllipsoidOutlineGeometry-1081cab8.js → EllipsoidOutlineGeometry-1c25041e.js} +1 -1
  21. package/Build/Cesium/Workers/{EllipsoidRhumbLine-94e77fa4.js → EllipsoidRhumbLine-001b8738.js} +1 -1
  22. package/Build/Cesium/Workers/{EllipsoidTangentPlane-01395a15.js → EllipsoidTangentPlane-d431886c.js} +1 -1
  23. package/Build/Cesium/Workers/{EncodedCartesian3-20914bf5.js → EncodedCartesian3-8da855cc.js} +1 -1
  24. package/Build/Cesium/Workers/{FrustumGeometry-a1fefbf4.js → FrustumGeometry-3d1c78a9.js} +1 -1
  25. package/Build/Cesium/Workers/{GeometryAttribute-b7edcc35.js → GeometryAttribute-ad6fe63d.js} +1 -1
  26. package/Build/Cesium/Workers/{GeometryInstance-19ac39d5.js → GeometryInstance-5555f2e4.js} +1 -1
  27. package/Build/Cesium/Workers/{GeometryPipeline-311a1f9e.js → GeometryPipeline-58ed3258.js} +1 -1
  28. package/Build/Cesium/Workers/IndexDatatype-0b020dfb.js +1 -0
  29. package/Build/Cesium/Workers/{IntersectionTests-94cb8698.js → IntersectionTests-c9a542c8.js} +1 -1
  30. package/Build/Cesium/Workers/{Matrix2-e6265fb0.js → Matrix2-1ba2543c.js} +1 -1
  31. package/Build/Cesium/Workers/{OrientedBoundingBox-0f36ec8f.js → OrientedBoundingBox-87e36f5f.js} +1 -1
  32. package/Build/Cesium/Workers/{Plane-042297c7.js → Plane-faef0199.js} +1 -1
  33. package/Build/Cesium/Workers/PolygonGeometryLibrary-cc36562e.js +1 -0
  34. package/Build/Cesium/Workers/PolygonPipeline-b1cbbe6f.js +1 -0
  35. package/Build/Cesium/Workers/{PolylinePipeline-256ec228.js → PolylinePipeline-7325c7b6.js} +1 -1
  36. package/Build/Cesium/Workers/{PolylineVolumeGeometryLibrary-c9777b58.js → PolylineVolumeGeometryLibrary-c43e3160.js} +1 -1
  37. package/Build/Cesium/Workers/{PrimitivePipeline-9bc85f23.js → PrimitivePipeline-7250dfa5.js} +1 -1
  38. package/Build/Cesium/Workers/{RectangleGeometryLibrary-dfe005a4.js → RectangleGeometryLibrary-3e108daf.js} +1 -1
  39. package/Build/Cesium/Workers/{TerrainEncoding-7f4829f1.js → TerrainEncoding-96ae0eb9.js} +1 -1
  40. package/Build/Cesium/Workers/{Transforms-06c05e21.js → Transforms-3afcc791.js} +1 -1
  41. package/Build/Cesium/Workers/{WallGeometryLibrary-0ff0aa92.js → WallGeometryLibrary-2fbfc076.js} +1 -1
  42. package/Build/Cesium/Workers/{WebMercatorProjection-50f5da31.js → WebMercatorProjection-7e95daf8.js} +1 -1
  43. package/Build/Cesium/Workers/arrayRemoveDuplicates-7d5d09a3.js +1 -0
  44. package/Build/Cesium/Workers/combineGeometry.js +1 -1
  45. package/Build/Cesium/Workers/createBoxGeometry.js +1 -1
  46. package/Build/Cesium/Workers/createBoxOutlineGeometry.js +1 -1
  47. package/Build/Cesium/Workers/createCircleGeometry.js +1 -1
  48. package/Build/Cesium/Workers/createCircleOutlineGeometry.js +1 -1
  49. package/Build/Cesium/Workers/createCoplanarPolygonGeometry.js +1 -1
  50. package/Build/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
  51. package/Build/Cesium/Workers/createCorridorGeometry.js +1 -1
  52. package/Build/Cesium/Workers/createCorridorOutlineGeometry.js +1 -1
  53. package/Build/Cesium/Workers/createCylinderGeometry.js +1 -1
  54. package/Build/Cesium/Workers/createCylinderOutlineGeometry.js +1 -1
  55. package/Build/Cesium/Workers/createEllipseGeometry.js +1 -1
  56. package/Build/Cesium/Workers/createEllipseOutlineGeometry.js +1 -1
  57. package/Build/Cesium/Workers/createEllipsoidGeometry.js +1 -1
  58. package/Build/Cesium/Workers/createEllipsoidOutlineGeometry.js +1 -1
  59. package/Build/Cesium/Workers/createFrustumGeometry.js +1 -1
  60. package/Build/Cesium/Workers/createFrustumOutlineGeometry.js +1 -1
  61. package/Build/Cesium/Workers/createGeometry.js +1 -1
  62. package/Build/Cesium/Workers/createGroundPolylineGeometry.js +1 -1
  63. package/Build/Cesium/Workers/createPlaneGeometry.js +1 -1
  64. package/Build/Cesium/Workers/createPlaneOutlineGeometry.js +1 -1
  65. package/Build/Cesium/Workers/createPolygonGeometry.js +1 -1
  66. package/Build/Cesium/Workers/createPolygonOutlineGeometry.js +1 -1
  67. package/Build/Cesium/Workers/createPolylineGeometry.js +1 -1
  68. package/Build/Cesium/Workers/createPolylineVolumeGeometry.js +1 -1
  69. package/Build/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +1 -1
  70. package/Build/Cesium/Workers/createRectangleGeometry.js +1 -1
  71. package/Build/Cesium/Workers/createRectangleOutlineGeometry.js +1 -1
  72. package/Build/Cesium/Workers/createSimplePolylineGeometry.js +1 -1
  73. package/Build/Cesium/Workers/createSphereGeometry.js +1 -1
  74. package/Build/Cesium/Workers/createSphereOutlineGeometry.js +1 -1
  75. package/Build/Cesium/Workers/createVectorTileClampedPolylines.js +1 -1
  76. package/Build/Cesium/Workers/createVectorTileGeometries.js +1 -1
  77. package/Build/Cesium/Workers/createVectorTilePoints.js +1 -1
  78. package/Build/Cesium/Workers/createVectorTilePolygons.js +1 -1
  79. package/Build/Cesium/Workers/createVectorTilePolylines.js +1 -1
  80. package/Build/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -1
  81. package/Build/Cesium/Workers/createVerticesFromHeightmap.js +1 -1
  82. package/Build/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -1
  83. package/Build/Cesium/Workers/createWallGeometry.js +1 -1
  84. package/Build/Cesium/Workers/createWallOutlineGeometry.js +1 -1
  85. package/Build/Cesium/Workers/decodeDraco.js +1 -1
  86. package/Build/Cesium/Workers/upsampleQuantizedTerrainMesh.js +1 -1
  87. package/Build/package.json +1 -0
  88. package/LICENSE.md +26 -84
  89. package/package.json +7 -4
  90. package/Build/Cesium/Workers/CylinderGeometryLibrary-fe5ec654.js +0 -1
  91. package/Build/Cesium/Workers/IndexDatatype-1cbc8622.js +0 -1
  92. package/Build/Cesium/Workers/PolygonGeometryLibrary-a64b67ab.js +0 -1
  93. package/Build/Cesium/Workers/PolygonPipeline-1015dc5c.js +0 -1
  94. package/Build/Cesium/Workers/arrayRemoveDuplicates-fe254feb.js +0 -1
@@ -4576,6 +4576,7 @@ export class ConstantSpline {
4576
4576
  * @param [options.stRotation = 0.0] - The rotation of the texture coordinates, in radians. A positive rotation is counter-clockwise.
4577
4577
  * @param [options.vertexFormat = VertexFormat.DEFAULT] - The vertex attributes to be computed.
4578
4578
  * @param [options.ellipsoid = Ellipsoid.WGS84] - The ellipsoid to be used as a reference.
4579
+ * @param [options.textureCoordinates] - Texture coordinates as a {@link PolygonHierarchy} of {@link Cartesian2} points.
4579
4580
  */
4580
4581
  export class CoplanarPolygonGeometry {
4581
4582
  constructor(options: {
@@ -4583,6 +4584,7 @@ export class CoplanarPolygonGeometry {
4583
4584
  stRotation?: number;
4584
4585
  vertexFormat?: VertexFormat;
4585
4586
  ellipsoid?: Ellipsoid;
4587
+ textureCoordinates?: PolygonHierarchy;
4586
4588
  });
4587
4589
  /**
4588
4590
  * The number of elements used to pack the object into an array.
@@ -4607,12 +4609,14 @@ export class CoplanarPolygonGeometry {
4607
4609
  * @param [options.vertexFormat = VertexFormat.DEFAULT] - The vertex attributes to be computed.
4608
4610
  * @param [options.stRotation = 0.0] - The rotation of the texture coordinates, in radians. A positive rotation is counter-clockwise.
4609
4611
  * @param [options.ellipsoid = Ellipsoid.WGS84] - The ellipsoid to be used as a reference.
4612
+ * @param [options.textureCoordinates] - Texture coordinates as a {@link PolygonHierarchy} of {@link Cartesian2} points.
4610
4613
  */
4611
4614
  static fromPositions(options: {
4612
4615
  positions: Cartesian3[];
4613
4616
  vertexFormat?: VertexFormat;
4614
4617
  stRotation?: number;
4615
4618
  ellipsoid?: Ellipsoid;
4619
+ textureCoordinates?: PolygonHierarchy;
4616
4620
  }): CoplanarPolygonGeometry;
4617
4621
  /**
4618
4622
  * Stores the provided instance into the provided array.
@@ -13010,6 +13014,7 @@ const geometry = Cesium.PolygonGeometry.createGeometry(extrudedPolygon);
13010
13014
  * @param [options.closeTop = true] - When false, leaves off the top of an extruded polygon open.
13011
13015
  * @param [options.closeBottom = true] - When false, leaves off the bottom of an extruded polygon open.
13012
13016
  * @param [options.arcType = ArcType.GEODESIC] - The type of line the polygon edges must follow. Valid options are {@link ArcType.GEODESIC} and {@link ArcType.RHUMB}.
13017
+ * @param [options.textureCoordinates] - Texture coordinates as a {@link PolygonHierarchy} of {@link Cartesian2} points. Has no effect for ground primitives.
13013
13018
  */
13014
13019
  export class PolygonGeometry {
13015
13020
  constructor(options: {
@@ -13024,6 +13029,7 @@ export class PolygonGeometry {
13024
13029
  closeTop?: boolean;
13025
13030
  closeBottom?: boolean;
13026
13031
  arcType?: ArcType;
13032
+ textureCoordinates?: PolygonHierarchy;
13027
13033
  });
13028
13034
  /**
13029
13035
  * The number of elements used to pack the object into an array.
@@ -13055,6 +13061,7 @@ export class PolygonGeometry {
13055
13061
  * @param [options.closeTop = true] - When false, leaves off the top of an extruded polygon open.
13056
13062
  * @param [options.closeBottom = true] - When false, leaves off the bottom of an extruded polygon open.
13057
13063
  * @param [options.arcType = ArcType.GEODESIC] - The type of line the polygon edges must follow. Valid options are {@link ArcType.GEODESIC} and {@link ArcType.RHUMB}.
13064
+ * @param [options.textureCoordinates] - Texture coordinates as a {@link PolygonHierarchy} of {@link Cartesian2} points. Has no effect for ground primitives.
13058
13065
  */
13059
13066
  static fromPositions(options: {
13060
13067
  positions: Cartesian3[];
@@ -13068,6 +13075,7 @@ export class PolygonGeometry {
13068
13075
  closeTop?: boolean;
13069
13076
  closeBottom?: boolean;
13070
13077
  arcType?: ArcType;
13078
+ textureCoordinates?: PolygonHierarchy;
13071
13079
  }): PolygonGeometry;
13072
13080
  /**
13073
13081
  * Stores the provided instance into the provided array.
@@ -22893,7 +22901,7 @@ export namespace PolygonGraphics {
22893
22901
  * @property [heightReference = HeightReference.NONE] - A Property specifying what the height is relative to.
22894
22902
  * @property [extrudedHeight] - A numeric Property specifying the altitude of the polygon's extruded face relative to the ellipsoid surface.
22895
22903
  * @property [extrudedHeightReference = HeightReference.NONE] - A Property specifying what the extrudedHeight is relative to.
22896
- * @property [stRotation = 0.0] - A numeric property specifying the rotation of the polygon texture counter-clockwise from north.
22904
+ * @property [stRotation = 0.0] - A numeric property specifying the rotation of the polygon texture counter-clockwise from north. Only has an effect if textureCoordinates is not defined.
22897
22905
  * @property [granularity = Cesium.Math.RADIANS_PER_DEGREE] - A numeric Property specifying the angular distance between each latitude and longitude point.
22898
22906
  * @property [fill = true] - A boolean Property specifying whether the polygon is filled with the provided material.
22899
22907
  * @property [material = Color.WHITE] - A Property specifying the material used to fill the polygon.
@@ -22908,6 +22916,7 @@ export namespace PolygonGraphics {
22908
22916
  * @property [distanceDisplayCondition] - A Property specifying at what distance from the camera that this polygon will be displayed.
22909
22917
  * @property [classificationType = ClassificationType.BOTH] - An enum Property specifying whether this polygon will classify terrain, 3D Tiles, or both when on the ground.
22910
22918
  * @property [zIndex = 0] - A property specifying the zIndex used for ordering ground geometry. Only has an effect if the polygon is constant and neither height or extrudedHeight are specified.
22919
+ * @property [textureCoordinates] - A Property specifying texture coordinates as a {@link PolygonHierarchy} of {@link Cartesian2} points. Has no effect for ground primitives.
22911
22920
  */
22912
22921
  type ConstructorOptions = {
22913
22922
  show?: Property | boolean;
@@ -22931,6 +22940,7 @@ export namespace PolygonGraphics {
22931
22940
  distanceDisplayCondition?: Property | DistanceDisplayCondition;
22932
22941
  classificationType?: Property | ClassificationType;
22933
22942
  zIndex?: ConstantProperty | number;
22943
+ textureCoordinates?: Property | PolygonHierarchy;
22934
22944
  };
22935
22945
  }
22936
22946
 
@@ -22973,7 +22983,7 @@ export class PolygonGraphics {
22973
22983
  */
22974
22984
  extrudedHeightReference: Property | undefined;
22975
22985
  /**
22976
- * Gets or sets the numeric property specifying the rotation of the polygon texture counter-clockwise from north.
22986
+ * Gets or sets the numeric property specifying the rotation of the polygon texture counter-clockwise from north. Only has an effect if textureCoordinates is not defined.
22977
22987
  */
22978
22988
  stRotation: Property | undefined;
22979
22989
  /**
@@ -23038,6 +23048,10 @@ export class PolygonGraphics {
23038
23048
  * Gets or sets the zIndex Prperty specifying the ordering of ground geometry. Only has an effect if the polygon is constant and neither height or extrudedHeight are specified.
23039
23049
  */
23040
23050
  zIndex: ConstantProperty | undefined;
23051
+ /**
23052
+ * A Property specifying texture coordinates as a {@link PolygonHierarchy} of {@link Cartesian2} points. Has no effect for ground primitives.
23053
+ */
23054
+ textureCoordinates: Property | undefined;
23041
23055
  /**
23042
23056
  * Duplicates this instance.
23043
23057
  * @param [result] - The object onto which to store the result.
@@ -26338,14 +26352,14 @@ export type DirectionUp = {
26338
26352
 
26339
26353
  /**
26340
26354
  * An orientation given by numeric heading, pitch, and roll
26341
- * @property heading - The heading in radians
26342
- * @property pitch - The pitch in radians
26343
- * @property roll - The roll in meters
26355
+ * @property [heading = 0.0] - The heading in radians
26356
+ * @property [pitch = -Math.PI_OVER_TWO] - The pitch in radians
26357
+ * @property [roll = 0.0] - The roll in meters
26344
26358
  */
26345
26359
  export type HeadingPitchRollValues = {
26346
- heading: number;
26347
- pitch: number;
26348
- roll: number;
26360
+ heading?: number;
26361
+ pitch?: number;
26362
+ roll?: number;
26349
26363
  };
26350
26364
 
26351
26365
  /**
@@ -27234,7 +27248,9 @@ export class Cesium3DTileContent {
27234
27248
  */
27235
27249
  readonly texturesByteLength: number;
27236
27250
  /**
27237
- * Gets the amount of memory used by the batch table textures, in bytes.
27251
+ * Gets the amount of memory used by the batch table textures and any binary
27252
+ metadata properties not accounted for in geometryByteLength or
27253
+ texturesByteLength
27238
27254
  */
27239
27255
  readonly batchTableByteLength: number;
27240
27256
  /**
@@ -27303,7 +27319,7 @@ handler.setInputAction(function(movement) {
27303
27319
  const length = propertyNames.length;
27304
27320
  for (let i = 0; i < length; ++i) {
27305
27321
  const propertyName = propertyNames[i];
27306
- console.log(propertyName + ': ' + feature.getProperty(propertyName));
27322
+ console.log(`{propertyName}: ${feature.getProperty(propertyName)}`);
27307
27323
  }
27308
27324
  }
27309
27325
  }, Cesium.ScreenSpaceEventType.MOUSE_MOVE);
@@ -27365,7 +27381,7 @@ export class Cesium3DTileFeature {
27365
27381
  const length = propertyNames.length;
27366
27382
  for (let i = 0; i < length; ++i) {
27367
27383
  const propertyName = propertyNames[i];
27368
- console.log(propertyName + ': ' + feature.getProperty(propertyName));
27384
+ console.log(`{propertyName}: ${feature.getProperty(propertyName)}`);
27369
27385
  }
27370
27386
  * @param name - The case-sensitive name of the property.
27371
27387
  * @returns The value of the property or <code>undefined</code> if the feature does not have this property.
@@ -27451,7 +27467,7 @@ handler.setInputAction(function(movement) {
27451
27467
  const length = propertyNames.length;
27452
27468
  for (let i = 0; i < length; ++i) {
27453
27469
  const propertyName = propertyNames[i];
27454
- console.log(propertyName + ': ' + feature.getProperty(propertyName));
27470
+ console.log(`{propertyName}: ${feature.getProperty(propertyName)}`);
27455
27471
  }
27456
27472
  }
27457
27473
  }, Cesium.ScreenSpaceEventType.MOUSE_MOVE);
@@ -27641,7 +27657,7 @@ export class Cesium3DTilePointFeature {
27641
27657
  const length = propertyNames.length;
27642
27658
  for (let i = 0; i < length; ++i) {
27643
27659
  const propertyName = propertyNames[i];
27644
- console.log(propertyName + ': ' + feature.getProperty(propertyName));
27660
+ console.log(`{propertyName} : ${feature.getProperty(propertyName)}`);
27645
27661
  }
27646
27662
  * @param name - The case-sensitive name of the property.
27647
27663
  * @returns The value of the property or <code>undefined</code> if the feature does not have this property.
@@ -27700,6 +27716,8 @@ const tileset = scene.primitives.add(new Cesium.Cesium3DTileset({
27700
27716
  * @param options.url - The url to a tileset JSON file.
27701
27717
  * @param [options.show = true] - Determines if the tileset will be shown.
27702
27718
  * @param [options.modelMatrix = Matrix4.IDENTITY] - A 4x4 transformation matrix that transforms the tileset's root tile.
27719
+ * @param [options.modelUpAxis = Axis.Y] - Which axis is considered up when loading models for tile contents.
27720
+ * @param [options.modelForwardAxis = Axis.X] - Which axis is considered forward when loading models for tile contents.
27703
27721
  * @param [options.shadows = ShadowMode.ENABLED] - Determines whether the tileset casts or receives shadows from light sources.
27704
27722
  * @param [options.maximumScreenSpaceError = 16] - The maximum screen space error used to drive level of detail refinement.
27705
27723
  * @param [options.maximumMemoryUsage = 512] - The maximum amount of memory in MB that can be used by the tileset.
@@ -27731,10 +27749,6 @@ const tileset = scene.primitives.add(new Cesium.Cesium3DTileset({
27731
27749
  * @param [options.pointCloudShading] - Options for constructing a {@link PointCloudShading} object to control point attenuation based on geometric error and lighting.
27732
27750
  * @param [options.lightColor] - The light color when shading models. When <code>undefined</code> the scene's light color is used instead.
27733
27751
  * @param [options.imageBasedLighting] - The properties for managing image-based lighting for this tileset.
27734
- * @param [options.imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - Scales the diffuse and specular image-based lighting from the earth, sky, atmosphere and star skybox. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
27735
- * @param [options.luminanceAtZenith = 0.2] - The sun's luminance at the zenith in kilo candela per meter squared to use for this model's procedural environment map. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
27736
- * @param [options.sphericalHarmonicCoefficients] - The third order spherical harmonic coefficients used for the diffuse color of image-based lighting. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
27737
- * @param [options.specularEnvironmentMaps] - A URL to a KTX2 file that contains a cube map of the specular lighting and the convoluted specular mipmaps. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
27738
27752
  * @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.
27739
27753
  * @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.
27740
27754
  * @param [options.vectorClassificationOnly = false] - Indicates that only the tileset's vector tiles should be used for classification.
@@ -27743,9 +27757,11 @@ const tileset = scene.primitives.add(new Cesium.Cesium3DTileset({
27743
27757
  * @param [options.instanceFeatureIdLabel = "instanceFeatureId_0"] - Label of the instance feature ID set used for picking and styling. If instanceFeatureIdLabel is set to an integer N, it is converted to the string "instanceFeatureId_N" automatically. If both per-primitive and per-instance feature IDs are present, the instance feature IDs take priority.
27744
27758
  * @param [options.showCreditsOnScreen = false] - Whether to display the credits of this tileset on screen.
27745
27759
  * @param [options.splitDirection = SplitDirection.NONE] - The {@link SplitDirection} split to apply to this tileset.
27760
+ * @param [options.projectTo2D = false] - Whether to accurately project the tileset to 2D. If this is true, the tileset will be projected accurately to 2D, but it will use more memory to do so. If this is false, the tileset will use less memory and will still render in 2D / CV mode, but its projected positions may be inaccurate. This cannot be set after the tileset has loaded.
27746
27761
  * @param [options.debugHeatmapTilePropertyName] - The tile variable to colorize as a heatmap. All rendered tiles will be colorized relative to each other's specified variable value.
27747
27762
  * @param [options.debugFreezeFrame = false] - For debugging only. Determines if only the tiles from last frame should be used for rendering.
27748
27763
  * @param [options.debugColorizeTiles = false] - For debugging only. When true, assigns a random color to each tile.
27764
+ * @param [options.enableDebugWireframe] - For debugging only. This must be true for debugWireframe to work for ModelExperimental in WebGL1. This cannot be set after the tileset has loaded.
27749
27765
  * @param [options.debugWireframe = false] - For debugging only. When true, render's each tile's content as a wireframe.
27750
27766
  * @param [options.debugShowBoundingVolume = false] - For debugging only. When true, renders the bounding volume for each tile.
27751
27767
  * @param [options.debugShowContentBoundingVolume = false] - For debugging only. When true, renders the bounding volume for each tile's content.
@@ -27760,6 +27776,8 @@ export class Cesium3DTileset {
27760
27776
  url: Resource | string | Promise<Resource> | Promise<string>;
27761
27777
  show?: boolean;
27762
27778
  modelMatrix?: Matrix4;
27779
+ modelUpAxis?: Axis;
27780
+ modelForwardAxis?: Axis;
27763
27781
  shadows?: ShadowMode;
27764
27782
  maximumScreenSpaceError?: number;
27765
27783
  maximumMemoryUsage?: number;
@@ -27791,10 +27809,6 @@ export class Cesium3DTileset {
27791
27809
  pointCloudShading?: any;
27792
27810
  lightColor?: Cartesian3;
27793
27811
  imageBasedLighting?: ImageBasedLighting;
27794
- imageBasedLightingFactor?: Cartesian2;
27795
- luminanceAtZenith?: number;
27796
- sphericalHarmonicCoefficients?: Cartesian3[];
27797
- specularEnvironmentMaps?: string;
27798
27812
  backFaceCulling?: boolean;
27799
27813
  showOutline?: boolean;
27800
27814
  vectorClassificationOnly?: boolean;
@@ -27803,9 +27817,11 @@ export class Cesium3DTileset {
27803
27817
  instanceFeatureIdLabel?: string | number;
27804
27818
  showCreditsOnScreen?: boolean;
27805
27819
  splitDirection?: SplitDirection;
27820
+ projectTo2D?: boolean;
27806
27821
  debugHeatmapTilePropertyName?: string;
27807
27822
  debugFreezeFrame?: boolean;
27808
27823
  debugColorizeTiles?: boolean;
27824
+ enableDebugWireframe?: boolean;
27809
27825
  debugWireframe?: boolean;
27810
27826
  debugShowBoundingVolume?: boolean;
27811
27827
  debugShowContentBoundingVolume?: boolean;
@@ -27938,7 +27954,7 @@ export class Cesium3DTileset {
27938
27954
  return;
27939
27955
  }
27940
27956
 
27941
- console.log('Loading: requests: ' + numberOfPendingRequests + ', processing: ' + numberOfTilesProcessing);
27957
+ console.log(`Loading: requests: ${numberOfPendingRequests}, processing: ${numberOfTilesProcessing}`);
27942
27958
  });
27943
27959
  */
27944
27960
  loadProgress: Event;
@@ -28014,8 +28030,8 @@ export class Cesium3DTileset {
28014
28030
  </p>
28015
28031
  * @example
28016
28032
  * tileset.tileFailed.addEventListener(function(error) {
28017
- console.log('An error occurred loading tile: ' + error.url);
28018
- console.log('Error: ' + error.message);
28033
+ console.log(`An error occurred loading tile: ${error.url}`);
28034
+ console.log(`Error: ${error.message}`);
28019
28035
  });
28020
28036
  */
28021
28037
  tileFailed: Event;
@@ -28103,8 +28119,9 @@ export class Cesium3DTileset {
28103
28119
  /**
28104
28120
  * The light color when shading models. When <code>undefined</code> the scene's light color is used instead.
28105
28121
  <p>
28106
- For example, disabling additional light sources by setting <code>model.imageBasedLighting.imageBasedLightingFactor = new Cartesian2(0.0, 0.0)</code> will make the
28107
- model much darker. Here, increasing the intensity of the light source will make the model brighter.
28122
+ For example, disabling additional light sources by setting
28123
+ <code>tileset.imageBasedLighting.imageBasedLightingFactor = new Cartesian2(0.0, 0.0)</code>
28124
+ will make the tileset much darker. Here, increasing the intensity of the light source will make the tileset brighter.
28108
28125
  </p>
28109
28126
  */
28110
28127
  lightColor: Cartesian3;
@@ -28227,8 +28244,8 @@ export class Cesium3DTileset {
28227
28244
  in the 3D Tiles spec for the full set of properties.
28228
28245
  </p>
28229
28246
  * @example
28230
- * console.log('Maximum building height: ' + tileset.properties.height.maximum);
28231
- console.log('Minimum building height: ' + tileset.properties.height.minimum);
28247
+ * console.log(`Maximum building height: ${tileset.properties.height.maximum}`);
28248
+ console.log(`Minimum building height: ${tileset.properties.height.minimum}`);
28232
28249
  */
28233
28250
  readonly properties: any;
28234
28251
  /**
@@ -28386,8 +28403,7 @@ export class Cesium3DTileset {
28386
28403
  readonly timeSinceLoad: number;
28387
28404
  /**
28388
28405
  * The total amount of GPU memory in bytes used by the tileset. This value is estimated from
28389
- geometry, texture, and batch table textures of loaded tiles. For point clouds, this value also
28390
- includes per-point metadata.
28406
+ geometry, texture, batch table textures, and binary metadata of loaded tiles.
28391
28407
  */
28392
28408
  readonly totalMemoryUsageInBytes: number;
28393
28409
  /**
@@ -28434,33 +28450,6 @@ export class Cesium3DTileset {
28434
28450
  * The properties for managing image-based lighting on this tileset.
28435
28451
  */
28436
28452
  imageBasedLighting: ImageBasedLighting;
28437
- /**
28438
- * Cesium adds lighting from the earth, sky, atmosphere, and star skybox. This cartesian is used to scale the final
28439
- diffuse and specular lighting contribution from those sources to the final color. A value of 0.0 will disable those light sources.
28440
- */
28441
- imageBasedLightingFactor: Cartesian2;
28442
- /**
28443
- * The sun's luminance at the zenith in kilo candela per meter squared to use for this model's procedural environment map.
28444
- This is used when {@link Cesium3DTileset#specularEnvironmentMaps} and {@link Cesium3DTileset#sphericalHarmonicCoefficients} are not defined.
28445
- */
28446
- luminanceAtZenith: number;
28447
- /**
28448
- * The third order spherical harmonic coefficients used for the diffuse color of image-based lighting. When <code>undefined</code>, a diffuse irradiance
28449
- computed from the atmosphere color is used.
28450
- <p>
28451
- There are nine <code>Cartesian3</code> coefficients.
28452
- The order of the coefficients is: L<sub>0,0</sub>, L<sub>1,-1</sub>, L<sub>1,0</sub>, L<sub>1,1</sub>, L<sub>2,-2</sub>, L<sub>2,-1</sub>, L<sub>2,0</sub>, L<sub>2,1</sub>, L<sub>2,2</sub>
28453
- </p>
28454
-
28455
- These values can be obtained by preprocessing the environment map using the <code>cmgen</code> tool of
28456
- {@link https://github.com/google/filament/releases|Google's Filament project}. This will also generate a KTX file that can be
28457
- supplied to {@link Cesium3DTileset#specularEnvironmentMaps}.
28458
- */
28459
- sphericalHarmonicCoefficients: Cartesian3[];
28460
- /**
28461
- * A URL to a KTX file that contains a cube map of the specular lighting and the convoluted specular mipmaps.
28462
- */
28463
- specularEnvironmentMaps: string;
28464
28453
  /**
28465
28454
  * Indicates that only the tileset's vector tiles should be used for classification.
28466
28455
  */
@@ -28587,10 +28576,10 @@ Evaluates an expression defined using the
28587
28576
  color : 'vec4(${Temperature})',
28588
28577
  pointSize : '${Temperature} * 2.0'
28589
28578
  });
28590
- * @param [style] - The url of a style or an object defining a style.
28579
+ * @param [style] - An object defining a style.
28591
28580
  */
28592
28581
  export class Cesium3DTileStyle {
28593
- constructor(style?: Resource | string | any);
28582
+ constructor(style?: any);
28594
28583
  /**
28595
28584
  * Gets the object defining the style using the
28596
28585
  {@link https://github.com/CesiumGS/3d-tiles/tree/main/specification/Styling|3D Tiles Styling language}.
@@ -28881,7 +28870,7 @@ export class Cesium3DTileStyle {
28881
28870
  </p>
28882
28871
  * @example
28883
28872
  * const style = new Cesium3DTileStyle({
28884
- labelStyle : '(${Temperature} > 90) ? ' + LabelStyle.FILL_AND_OUTLINE + ' : ' + LabelStyle.FILL
28873
+ labelStyle : `(\${Temperature} > 90) ? ${LabelStyle.FILL_AND_OUTLINE} : ${LabelStyle.FILL}`
28885
28874
  });
28886
28875
  style.labelStyle.evaluate(feature); // returns a LabelStyle
28887
28876
  * @example
@@ -32865,9 +32854,9 @@ export class ImageryLayerCollection {
32865
32854
  } else {
32866
32855
  Promise.resolve(featuresPromise).then(function(features) {
32867
32856
  // This function is called asynchronously when the list if picked features is available.
32868
- console.log('Number of features: ' + features.length);
32857
+ console.log(`Number of features: ${features.length}`);
32869
32858
  if (features.length > 0) {
32870
- console.log('First feature name: ' + features[0].name);
32859
+ console.log(`First feature name: ${features[0].name}`);
32871
32860
  }
32872
32861
  });
32873
32862
  }
@@ -33125,12 +33114,6 @@ export class ImageryProvider {
33125
33114
  static loadImage(imageryProvider: ImageryProvider, url: Resource | string): Promise<ImageryTypes | CompressedTextureBuffer> | undefined;
33126
33115
  }
33127
33116
 
33128
- /**
33129
- * This enumeration is deprecated. Use {@link SplitPosition} instead.
33130
- */
33131
- export enum ImagerySplitDirection {
33132
- }
33133
-
33134
33117
  export namespace IonImageryProvider {
33135
33118
  /**
33136
33119
  * Initialization options for the TileMapServiceImageryProvider constructor
@@ -34839,13 +34822,9 @@ relative to a local origin.
34839
34822
  * @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.
34840
34823
  * @param [options.silhouetteSize = 0.0] - The size of the silhouette in pixels.
34841
34824
  * @param [options.clippingPlanes] - The {@link ClippingPlaneCollection} used to selectively disable rendering the model.
34842
- * @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.
34825
+ * @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.95.
34843
34826
  * @param [options.lightColor] - The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
34844
34827
  * @param [options.imageBasedLighting] - The properties for managing image-based lighting on this model.
34845
- * @param [options.imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - Scales diffuse and specular image-based lighting from the earth, sky, atmosphere and star skybox. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
34846
- * @param [options.luminanceAtZenith = 0.2] - The sun's luminance at the zenith in kilo candela per meter squared to use for this model's procedural environment map. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
34847
- * @param [options.sphericalHarmonicCoefficients] - The third order spherical harmonic coefficients used for the diffuse color of image-based lighting. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
34848
- * @param [options.specularEnvironmentMaps] - A URL to a KTX2 file that contains a cube map of the specular lighting and the convoluted specular mipmaps. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
34849
34828
  * @param [options.credit] - A credit for the data source, which is displayed on the canvas.
34850
34829
  * @param [options.showCreditsOnScreen = false] - Whether to display the credits of this model on screen.
34851
34830
  * @param [options.backFaceCulling = true] - Whether to cull back-facing geometry. When true, back face culling is determined by the material's doubleSided property; when false, back face culling is disabled. Back faces are not culled if {@link Model#color} is translucent or {@link Model#silhouetteSize} is greater than 0.0.
@@ -34881,10 +34860,6 @@ export class Model {
34881
34860
  dequantizeInShader?: boolean;
34882
34861
  lightColor?: Cartesian3;
34883
34862
  imageBasedLighting?: ImageBasedLighting;
34884
- imageBasedLightingFactor?: Cartesian2;
34885
- luminanceAtZenith?: number;
34886
- sphericalHarmonicCoefficients?: Cartesian3[];
34887
- specularEnvironmentMaps?: string;
34888
34863
  credit?: Credit | string;
34889
34864
  showCreditsOnScreen?: boolean;
34890
34865
  backFaceCulling?: boolean;
@@ -35069,8 +35044,9 @@ export class Model {
35069
35044
  /**
35070
35045
  * The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
35071
35046
  <p>
35072
- For example, disabling additional light sources by setting <code>model.imageBasedLightingFactor = new Cesium.Cartesian2(0.0, 0.0)</code> will make the
35073
- model much darker. Here, increasing the intensity of the light source will make the model brighter.
35047
+ For example, disabling additional light sources by setting
35048
+ <code>model.imageBasedLighting.imageBasedLightingFactor = new Cesium.Cartesian2(0.0, 0.0)</code>
35049
+ will make the model much darker. Here, increasing the intensity of the light source will make the model brighter.
35074
35050
  </p>
35075
35051
  */
35076
35052
  lightColor: Cartesian3;
@@ -35078,33 +35054,6 @@ export class Model {
35078
35054
  * The properties for managing image-based lighting on this model.
35079
35055
  */
35080
35056
  imageBasedLighting: ImageBasedLighting;
35081
- /**
35082
- * Cesium adds lighting from the earth, sky, atmosphere, and star skybox. This cartesian is used to scale the final
35083
- diffuse and specular lighting contribution from those sources to the final color. A value of 0.0 will disable those light sources.
35084
- */
35085
- imageBasedLightingFactor: Cartesian2;
35086
- /**
35087
- * The sun's luminance at the zenith in kilo candela per meter squared to use for this model's procedural environment map.
35088
- This is used when {@link Model#specularEnvironmentMaps} and {@link Model#sphericalHarmonicCoefficients} are not defined.
35089
- */
35090
- luminanceAtZenith: number;
35091
- /**
35092
- * The third order spherical harmonic coefficients used for the diffuse color of image-based lighting. When <code>undefined</code>, a diffuse irradiance
35093
- computed from the atmosphere color is used.
35094
- <p>
35095
- There are nine <code>Cartesian3</code> coefficients.
35096
- The order of the coefficients is: L<sub>0,0</sub>, L<sub>1,-1</sub>, L<sub>1,0</sub>, L<sub>1,1</sub>, L<sub>2,-2</sub>, L<sub>2,-1</sub>, L<sub>2,0</sub>, L<sub>2,1</sub>, L<sub>2,2</sub>
35097
- </p>
35098
-
35099
- These values can be obtained by preprocessing the environment map using the <code>cmgen</code> tool of
35100
- {@link https://github.com/google/filament/releases|Google's Filament project}. This will also generate a KTX file that can be
35101
- supplied to {@link Model#specularEnvironmentMaps}.
35102
- */
35103
- sphericalHarmonicCoefficients: Cartesian3[];
35104
- /**
35105
- * A URL to a KTX2 file that contains a cube map of the specular lighting and the convoluted specular mipmaps.
35106
- */
35107
- specularEnvironmentMaps: string;
35108
35057
  /**
35109
35058
  * Gets the credit that will be displayed for the model
35110
35059
  */
@@ -35211,13 +35160,9 @@ export class Model {
35211
35160
  * @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.
35212
35161
  * @param [options.silhouetteSize = 0.0] - The size of the silhouette in pixels.
35213
35162
  * @param [options.clippingPlanes] - The {@link ClippingPlaneCollection} used to selectively disable rendering the model.
35214
- * @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.
35163
+ * @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.95.
35215
35164
  * @param [options.lightColor] - The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
35216
35165
  * @param [options.imageBasedLighting] - The properties for managing image-based lighting for this tileset.
35217
- * @param [options.imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - Scales diffuse and specular image-based lighting from the earth, sky, atmosphere and star skybox. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
35218
- * @param [options.luminanceAtZenith = 0.2] - The sun's luminance at the zenith in kilo candela per meter squared to use for this model's procedural environment map. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
35219
- * @param [options.sphericalHarmonicCoefficients] - The third order spherical harmonic coefficients used for the diffuse color of image-based lighting. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
35220
- * @param [options.specularEnvironmentMaps] - A URL to a KTX2 file that contains a cube map of the specular lighting and the convoluted specular mipmaps. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
35221
35166
  * @param [options.credit] - A credit for the model, which is displayed on the canvas.
35222
35167
  * @param [options.showCreditsOnScreen = false] - Whether to display the credits of this model on screen.
35223
35168
  * @param [options.backFaceCulling = true] - Whether to cull back-facing geometry. When true, back face culling is determined by the material's doubleSided property; when false, back face culling is disabled. Back faces are not culled if {@link Model#color} is translucent or {@link Model#silhouetteSize} is greater than 0.0.
@@ -35252,10 +35197,6 @@ export class Model {
35252
35197
  dequantizeInShader?: boolean;
35253
35198
  lightColor?: Cartesian3;
35254
35199
  imageBasedLighting?: ImageBasedLighting;
35255
- imageBasedLightingFactor?: Cartesian2;
35256
- luminanceAtZenith?: number;
35257
- sphericalHarmonicCoefficients?: Cartesian3[];
35258
- specularEnvironmentMaps?: string;
35259
35200
  credit?: Credit | string;
35260
35201
  showCreditsOnScreen?: boolean;
35261
35202
  backFaceCulling?: boolean;
@@ -35352,7 +35293,7 @@ export class ModelAnimation {
35352
35293
  </p>
35353
35294
  * @example
35354
35295
  * animation.start.addEventListener(function(model, animation) {
35355
- console.log('Animation started: ' + animation.name);
35296
+ console.log(`Animation started: ${animation.name}`);
35356
35297
  });
35357
35298
  */
35358
35299
  start: Event;
@@ -35366,7 +35307,7 @@ export class ModelAnimation {
35366
35307
  </p>
35367
35308
  * @example
35368
35309
  * animation.update.addEventListener(function(model, animation, time) {
35369
- console.log('Animation updated: ' + animation.name + '. glTF animation time: ' + time);
35310
+ console.log(`Animation updated: ${animation.name}. glTF animation time: ${time}`);
35370
35311
  });
35371
35312
  */
35372
35313
  update: Event;
@@ -35378,7 +35319,7 @@ export class ModelAnimation {
35378
35319
  </p>
35379
35320
  * @example
35380
35321
  * animation.stop.addEventListener(function(model, animation) {
35381
- console.log('Animation stopped: ' + animation.name);
35322
+ console.log(`Animation stopped: ${animation.name}`);
35382
35323
  });
35383
35324
  */
35384
35325
  stop: Event;
@@ -35417,6 +35358,30 @@ export class ModelAnimation {
35417
35358
  * Determines if and how the animation is looped.
35418
35359
  */
35419
35360
  readonly loop: ModelAnimationLoop;
35361
+ /**
35362
+ * If this is defined, it will be used to compute the local animation time
35363
+ instead of the scene's time.
35364
+ */
35365
+ animationTime: ModelAnimation.AnimationTimeCallback;
35366
+ }
35367
+
35368
+ export namespace ModelAnimation {
35369
+ /**
35370
+ * A function used to compute the local animation time for a ModelAnimation.
35371
+ * @example
35372
+ * // Use real time for model animation (assuming animateWhilePaused was set to true)
35373
+ function animationTime(duration) {
35374
+ return Date.now() / 1000 / duration;
35375
+ }
35376
+ * @example
35377
+ * // Offset the phase of the animation, so it starts halfway through its cycle.
35378
+ function animationTime(duration, seconds) {
35379
+ return seconds / duration + 0.5;
35380
+ }
35381
+ * @param duration - The animation's original duration in seconds.
35382
+ * @param seconds - The seconds since the animation started, in scene time.
35383
+ */
35384
+ type AnimationTimeCallback = (duration: number, seconds: number) => number;
35420
35385
  }
35421
35386
 
35422
35387
  /**
@@ -35429,7 +35394,7 @@ export class ModelAnimationCollection {
35429
35394
  example, to keep a UI in sync.
35430
35395
  * @example
35431
35396
  * model.activeAnimations.animationAdded.addEventListener(function(model, animation) {
35432
- console.log('Animation added: ' + animation.name);
35397
+ console.log(`Animation added: ${animation.name}`);
35433
35398
  });
35434
35399
  */
35435
35400
  animationAdded: Event;
@@ -35438,10 +35403,17 @@ export class ModelAnimationCollection {
35438
35403
  example, to keep a UI in sync.
35439
35404
  * @example
35440
35405
  * model.activeAnimations.animationRemoved.addEventListener(function(model, animation) {
35441
- console.log('Animation removed: ' + animation.name);
35406
+ console.log(`Animation removed: ${animation.name}`);
35442
35407
  });
35443
35408
  */
35444
35409
  animationRemoved: Event;
35410
+ /**
35411
+ * When true, the animation will play even when the scene time is paused. However,
35412
+ whether animation takes place will depend on the animationTime functions assigned
35413
+ to the model's animations. By default, this is based on scene time, so models using
35414
+ the default will not animate regardless of this setting.
35415
+ */
35416
+ animateWhilePaused: boolean;
35445
35417
  /**
35446
35418
  * The number of animations in the collection.
35447
35419
  */
@@ -35477,13 +35449,13 @@ export class ModelAnimationCollection {
35477
35449
  });
35478
35450
 
35479
35451
  animation.start.addEventListener(function(model, animation) {
35480
- console.log('Animation started: ' + animation.name);
35452
+ console.log(`Animation started: ${animation.name}`);
35481
35453
  });
35482
35454
  animation.update.addEventListener(function(model, animation, time) {
35483
- console.log('Animation updated: ' + animation.name + '. glTF animation time: ' + time);
35455
+ console.log(`Animation updated: ${animation.name}. glTF animation time: ${time}`);
35484
35456
  });
35485
35457
  animation.stop.addEventListener(function(model, animation) {
35486
- console.log('Animation stopped: ' + animation.name);
35458
+ console.log(`Animation stopped: ${animation.name}`);
35487
35459
  });
35488
35460
  * @param options - Object with the following properties:
35489
35461
  * @param [options.name] - The glTF animation name that identifies the animation. Must be defined if <code>options.index</code> is <code>undefined</code>.
@@ -35495,6 +35467,7 @@ export class ModelAnimationCollection {
35495
35467
  * @param [options.multiplier = 1.0] - Values greater than <code>1.0</code> increase the speed that the animation is played relative to the scene clock speed; values less than <code>1.0</code> decrease the speed.
35496
35468
  * @param [options.reverse = false] - When <code>true</code>, the animation is played in reverse.
35497
35469
  * @param [options.loop = ModelAnimationLoop.NONE] - Determines if and how the animation is looped.
35470
+ * @param [options.animationTime] - If defined, computes the local animation time for this animation.
35498
35471
  * @returns The animation that was added to the collection.
35499
35472
  */
35500
35473
  add(options: {
@@ -35507,6 +35480,7 @@ export class ModelAnimationCollection {
35507
35480
  multiplier?: number;
35508
35481
  reverse?: boolean;
35509
35482
  loop?: ModelAnimationLoop;
35483
+ animationTime?: ModelAnimation.AnimationTimeCallback;
35510
35484
  }): ModelAnimation;
35511
35485
  /**
35512
35486
  * Creates and adds an animation with the specified initial properties to the collection
@@ -35527,6 +35501,7 @@ export class ModelAnimationCollection {
35527
35501
  * @param [options.multiplier = 1.0] - Values greater than <code>1.0</code> increase the speed that the animations play relative to the scene clock speed; values less than <code>1.0</code> decrease the speed.
35528
35502
  * @param [options.reverse = false] - When <code>true</code>, the animations are played in reverse.
35529
35503
  * @param [options.loop = ModelAnimationLoop.NONE] - Determines if and how the animations are looped.
35504
+ * @param [options.animationTime] - If defined, computes the local animation time for all of the animations.
35530
35505
  * @returns An array of {@link ModelAnimation} objects, one for each animation added to the collection. If there are no glTF animations, the array is empty.
35531
35506
  */
35532
35507
  addAll(options?: {
@@ -35537,6 +35512,7 @@ export class ModelAnimationCollection {
35537
35512
  multiplier?: number;
35538
35513
  reverse?: boolean;
35539
35514
  loop?: ModelAnimationLoop;
35515
+ animationTime?: ModelAnimation.AnimationTimeCallback;
35540
35516
  }): ModelAnimation[];
35541
35517
  /**
35542
35518
  * Removes an animation from the collection.
@@ -35787,19 +35763,22 @@ the Model from your source data type.
35787
35763
  </p>
35788
35764
  * @param options - Object with the following properties:
35789
35765
  * @param options.resource - The Resource to the 3D model.
35766
+ * @param [options.show = true] - Whether or not to render the model.
35790
35767
  * @param [options.modelMatrix = Matrix4.IDENTITY] - The 4x4 transformation matrix that transforms the model from model to world coordinates.
35791
35768
  * @param [options.scale = 1.0] - A uniform scale applied to this model.
35792
35769
  * @param [options.minimumPixelSize = 0.0] - The approximate minimum pixel size of the model regardless of zoom.
35793
35770
  * @param [options.maximumScale] - The maximum scale size of a model. An upper limit for minimumPixelSize.
35794
35771
  * @param [options.clampAnimations = true] - Determines if the model's animations should hold a pose over frames where no keyframes are specified.
35795
35772
  * @param [options.debugShowBoundingVolume = false] - For debugging only. Draws the bounding sphere for each draw command in the model.
35796
- * @param [options.debugWireframe = false] - For debugging only. Draws the model in wireframe.
35773
+ * @param [options.enableDebugWireframe = false] - For debugging only. This must be set to true for debugWireframe to work in WebGL1. This cannot be set after the model has loaded.
35774
+ * @param [options.debugWireframe = false] - For debugging only. Draws the model in wireframe. Will only work for WebGL1 if enableDebugWireframe is set to true.
35797
35775
  * @param [options.cull = true] - Whether or not to cull the model using frustum/horizon culling. If the model is part of a 3D Tiles tileset, this property will always be false, since the 3D Tiles culling system is used.
35798
35776
  * @param [options.opaquePass = Pass.OPAQUE] - The pass to use in the {@link DrawCommand} for the opaque portions of the model.
35799
35777
  * @param [options.allowPicking = true] - When <code>true</code>, each primitive is pickable with {@link Scene#pick}.
35800
35778
  * @param [options.customShader] - A custom shader. This will add user-defined GLSL code to the vertex and fragment shaders. Using custom shaders with a {@link Cesium3DTileStyle} may lead to undefined behavior.
35801
35779
  * @param [options.content] - The tile content this model belongs to. This property will be undefined if model is not loaded as part of a tileset.
35802
- * @param [options.show = true] - Whether or not to render the model.
35780
+ * @param [options.heightReference = HeightReference.NONE] - Determines how the model is drawn relative to terrain.
35781
+ * @param [options.scene] - Must be passed in for models that use the height reference property.
35803
35782
  * @param [options.color] - A color that blends with the model's rendered color.
35804
35783
  * @param [options.colorBlendMode = ColorBlendMode.HIGHLIGHT] - Defines how the color blends with the model.
35805
35784
  * @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.
@@ -35813,23 +35792,27 @@ the Model from your source data type.
35813
35792
  * @param [options.shadows = ShadowMode.ENABLED] - Determines whether the model casts or receives shadows from light sources.
35814
35793
  * @param [options.showCreditsOnScreen = false] - Whether to display the credits of this model on screen.
35815
35794
  * @param [options.splitDirection = SplitDirection.NONE] - The {@link SplitDirection} split to apply to this model.
35795
+ * @param [options.projectTo2D = false] - Whether to accurately project the model's positions in 2D. If this is true, the model will be projected accurately to 2D, but it will use more memory to do so. If this is false, the model will use less memory and will still render in 2D / CV mode, but its positions may be inaccurate. This disables minimumPixelSize and prevents future modification to the model matrix. This also cannot be set after the model has loaded.
35816
35796
  */
35817
35797
  export class ModelExperimental {
35818
35798
  constructor(options: {
35819
35799
  resource: Resource;
35800
+ show?: boolean;
35820
35801
  modelMatrix?: Matrix4;
35821
35802
  scale?: number;
35822
35803
  minimumPixelSize?: number;
35823
35804
  maximumScale?: number;
35824
35805
  clampAnimations?: boolean;
35825
35806
  debugShowBoundingVolume?: boolean;
35807
+ enableDebugWireframe?: boolean;
35826
35808
  debugWireframe?: boolean;
35827
35809
  cull?: boolean;
35828
35810
  opaquePass?: boolean;
35829
35811
  allowPicking?: boolean;
35830
35812
  customShader?: CustomShader;
35831
35813
  content?: Cesium3DTileContent;
35832
- show?: boolean;
35814
+ heightReference?: HeightReference;
35815
+ scene?: Scene;
35833
35816
  color?: Color;
35834
35817
  colorBlendMode?: ColorBlendMode;
35835
35818
  colorBlendAmount?: number;
@@ -35843,6 +35826,7 @@ export class ModelExperimental {
35843
35826
  shadows?: ShadowMode;
35844
35827
  showCreditsOnScreen?: boolean;
35845
35828
  splitDirection?: SplitDirection;
35829
+ projectTo2D?: boolean;
35846
35830
  });
35847
35831
  /**
35848
35832
  * When <code>true</code>, this model is ready to render, i.e., the external binary, image,
@@ -35877,6 +35861,15 @@ export class ModelExperimental {
35877
35861
  may lead to undefined behavior.
35878
35862
  */
35879
35863
  customShader: CustomShader;
35864
+ /**
35865
+ * The height reference of the model, which determines how the model is drawn
35866
+ relative to terrain.
35867
+ */
35868
+ heightReference: HeightReference;
35869
+ /**
35870
+ * The style to apply the to the features in the model. Cannot be applied if a {@link CustomShader} is also applied.
35871
+ */
35872
+ style: Cesium3DTileStyle;
35880
35873
  /**
35881
35874
  * The color to blend with the model's rendered color.
35882
35875
  */
@@ -35890,9 +35883,9 @@ export class ModelExperimental {
35890
35883
  */
35891
35884
  colorBlendAmount: number;
35892
35885
  /**
35893
- * Gets the model's bounding sphere in its local coordinate system. This does not
35894
- take into account glTF animations, skins, or morph targets. It also does not
35895
- account for {@link ModelExperimental#minimumPixelSize}.
35886
+ * Gets the model's bounding sphere in world space. This does not take into account
35887
+ glTF animations, skins, or morph targets. It also does not account for
35888
+ {@link ModelExperimental#minimumPixelSize}.
35896
35889
  */
35897
35890
  readonly boundingSphere: BoundingSphere;
35898
35891
  /**
@@ -35948,8 +35941,9 @@ export class ModelExperimental {
35948
35941
  /**
35949
35942
  * The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
35950
35943
  <p>
35951
- Disabling additional light sources by setting <code>model.imageBasedLightingFactor = new Cartesian2(0.0, 0.0)</code> will make the
35952
- model much darker. Here, increasing the intensity of the light source will make the model brighter.
35944
+ Disabling additional light sources by setting
35945
+ <code>model.imageBasedLighting.imageBasedLightingFactor = new Cartesian2(0.0, 0.0)</code>
35946
+ will make the model much darker. Here, increasing the intensity of the light source will make the model brighter.
35953
35947
  </p>
35954
35948
  */
35955
35949
  lightColor: Cartesian3;
@@ -36030,8 +36024,9 @@ export class ModelExperimental {
36030
36024
  <p>
36031
36025
  The model can be a traditional glTF asset with a .gltf extension or a Binary glTF using the .glb extension.
36032
36026
  * @param options - Object with the following properties:
36033
- * @param options.gltf - A Resource/URL to a glTF/glb file, a binary glTF buffer, or a JSON object containing the glTF contents
36027
+ * @param options.url - The url to the .gltf or .glb file.
36034
36028
  * @param [options.basePath = ''] - The base path that paths in the glTF JSON are relative to.
36029
+ * @param [options.show = true] - Whether or not to render the model.
36035
36030
  * @param [options.modelMatrix = Matrix4.IDENTITY] - The 4x4 transformation matrix that transforms the model from model to world coordinates.
36036
36031
  * @param [options.scale = 1.0] - A uniform scale applied to this model.
36037
36032
  * @param [options.minimumPixelSize = 0.0] - The approximate minimum pixel size of the model regardless of zoom.
@@ -36039,7 +36034,8 @@ export class ModelExperimental {
36039
36034
  * @param [options.incrementallyLoadTextures = true] - Determine if textures may continue to stream in after the model is loaded.
36040
36035
  * @param [options.releaseGltfJson = false] - When true, the glTF JSON is released once the glTF is loaded. This is is especially useful for cases like 3D Tiles, where each .gltf model is unique and caching the glTF JSON is not effective.
36041
36036
  * @param [options.debugShowBoundingVolume = false] - For debugging only. Draws the bounding sphere for each draw command in the model.
36042
- * @param [options.debugWireframe = false] - For debugging only. Draws the model in wireframe.
36037
+ * @param [options.enableDebugWireframe = false] - For debugging only. This must be set to true for debugWireframe to work in WebGL1. This cannot be set after the model has loaded.
36038
+ * @param [options.debugWireframe = false] - For debugging only. Draws the model in wireframe. Will only work for WebGL1 if enableDebugWireframe is set to true.
36043
36039
  * @param [options.cull = true] - Whether or not to cull the model using frustum/horizon culling. If the model is part of a 3D Tiles tileset, this property will always be false, since the 3D Tiles culling system is used.
36044
36040
  * @param [options.opaquePass = Pass.OPAQUE] - The pass to use in the {@link DrawCommand} for the opaque portions of the model.
36045
36041
  * @param [options.upAxis = Axis.Y] - The up-axis of the glTF model.
@@ -36047,7 +36043,8 @@ export class ModelExperimental {
36047
36043
  * @param [options.allowPicking = true] - When <code>true</code>, each primitive is pickable with {@link Scene#pick}.
36048
36044
  * @param [options.customShader] - A custom shader. This will add user-defined GLSL code to the vertex and fragment shaders. Using custom shaders with a {@link Cesium3DTileStyle} may lead to undefined behavior.
36049
36045
  * @param [options.content] - The tile content this model belongs to. This property will be undefined if model is not loaded as part of a tileset.
36050
- * @param [options.show = true] - Whether or not to render the model.
36046
+ * @param [options.heightReference = HeightReference.NONE] - Determines how the model is drawn relative to terrain.
36047
+ * @param [options.scene] - Must be passed in for models that use the height reference property.
36051
36048
  * @param [options.color] - A color that blends with the model's rendered color.
36052
36049
  * @param [options.colorBlendMode = ColorBlendMode.HIGHLIGHT] - Defines how the color blends with the model.
36053
36050
  * @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.
@@ -36061,11 +36058,13 @@ export class ModelExperimental {
36061
36058
  * @param [options.shadows = ShadowMode.ENABLED] - Determines whether the model casts or receives shadows from light sources.
36062
36059
  * @param [options.showCreditsOnScreen = false] - Whether to display the credits of this model on screen.
36063
36060
  * @param [options.splitDirection = SplitDirection.NONE] - The {@link SplitDirection} split to apply to this model.
36061
+ * @param [options.projectTo2D = false] - Whether to accurately project the model's positions in 2D. If this is true, the model will be projected accurately to 2D, but it will use more memory to do so. If this is false, the model will use less memory and will still render in 2D / CV mode, but its positions may be inaccurate. This disables minimumPixelSize and prevents future modification to the model matrix. This also cannot be set after the model has loaded.
36064
36062
  * @returns The newly created model.
36065
36063
  */
36066
36064
  static fromGltf(options: {
36067
- gltf: string | Resource | Uint8Array | any;
36065
+ url: string | Resource;
36068
36066
  basePath?: string | Resource;
36067
+ show?: boolean;
36069
36068
  modelMatrix?: Matrix4;
36070
36069
  scale?: number;
36071
36070
  minimumPixelSize?: number;
@@ -36073,6 +36072,7 @@ export class ModelExperimental {
36073
36072
  incrementallyLoadTextures?: boolean;
36074
36073
  releaseGltfJson?: boolean;
36075
36074
  debugShowBoundingVolume?: boolean;
36075
+ enableDebugWireframe?: boolean;
36076
36076
  debugWireframe?: boolean;
36077
36077
  cull?: boolean;
36078
36078
  opaquePass?: boolean;
@@ -36081,7 +36081,8 @@ export class ModelExperimental {
36081
36081
  allowPicking?: boolean;
36082
36082
  customShader?: CustomShader;
36083
36083
  content?: Cesium3DTileContent;
36084
- show?: boolean;
36084
+ heightReference?: HeightReference;
36085
+ scene?: Scene;
36085
36086
  color?: Color;
36086
36087
  colorBlendMode?: ColorBlendMode;
36087
36088
  colorBlendAmount?: number;
@@ -36095,6 +36096,7 @@ export class ModelExperimental {
36095
36096
  shadows?: ShadowMode;
36096
36097
  showCreditsOnScreen?: boolean;
36097
36098
  splitDirection?: SplitDirection;
36099
+ projectTo2D?: boolean;
36098
36100
  }): ModelExperimental;
36099
36101
  }
36100
36102
 
@@ -36109,11 +36111,6 @@ m.modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(origin);
36109
36111
  */
36110
36112
  export var modelMatrix: Matrix4;
36111
36113
 
36112
- /**
36113
- * The style to apply the to the features in the model. Cannot be applied if a {@link CustomShader} is also applied.
36114
- */
36115
- export var style: Cesium3DTileStyle;
36116
-
36117
36114
  /**
36118
36115
  * An active animation derived from a glTF asset. An active animation is an
36119
36116
  animation that is either currently playing or scheduled to be played due to
@@ -36140,7 +36137,7 @@ export class ModelExperimentalAnimation {
36140
36137
  </p>
36141
36138
  * @example
36142
36139
  * animation.start.addEventListener(function(model, animation) {
36143
- console.log('Animation started: ' + animation.name);
36140
+ console.log(`Animation started: ${animation.name}`);
36144
36141
  });
36145
36142
  */
36146
36143
  start: Event;
@@ -36154,7 +36151,7 @@ export class ModelExperimentalAnimation {
36154
36151
  </p>
36155
36152
  * @example
36156
36153
  * animation.update.addEventListener(function(model, animation, time) {
36157
- console.log('Animation updated: ' + animation.name + '. glTF animation time: ' + time);
36154
+ console.log(`Animation updated: ${animation.name}. glTF animation time: ${time}`);
36158
36155
  });
36159
36156
  */
36160
36157
  update: Event;
@@ -36166,7 +36163,7 @@ export class ModelExperimentalAnimation {
36166
36163
  </p>
36167
36164
  * @example
36168
36165
  * animation.stop.addEventListener(function(model, animation) {
36169
- console.log('Animation stopped: ' + animation.name);
36166
+ console.log(`Animation stopped: ${animation.name}`);
36170
36167
  });
36171
36168
  */
36172
36169
  stop: Event;
@@ -36205,6 +36202,30 @@ export class ModelExperimentalAnimation {
36205
36202
  * Determines if and how the animation is looped.
36206
36203
  */
36207
36204
  readonly loop: ModelAnimationLoop;
36205
+ /**
36206
+ * If this is defined, it will be used to compute the local animation time
36207
+ instead of the scene's time.
36208
+ */
36209
+ animationTime: ModelExperimentalAnimation.AnimationTimeCallback;
36210
+ }
36211
+
36212
+ export namespace ModelExperimentalAnimation {
36213
+ /**
36214
+ * A function used to compute the local animation time for a ModelExperimentalAnimation.
36215
+ * @example
36216
+ * // Use real time for model animation (assuming animateWhilePaused was set to true)
36217
+ function animationTime(duration) {
36218
+ return Date.now() / 1000 / duration;
36219
+ }
36220
+ * @example
36221
+ * // Offset the phase of the animation, so it starts halfway through its cycle.
36222
+ function animationTime(duration, seconds) {
36223
+ return seconds / duration + 0.5;
36224
+ }
36225
+ * @param duration - The animation's original duration in seconds.
36226
+ * @param seconds - The seconds since the animation started, in scene time.
36227
+ */
36228
+ type AnimationTimeCallback = (duration: number, seconds: number) => number;
36208
36229
  }
36209
36230
 
36210
36231
  /**
@@ -36217,7 +36238,7 @@ export class ModelExperimentalAnimationCollection {
36217
36238
  example, to keep a UI in sync.
36218
36239
  * @example
36219
36240
  * model.activeAnimations.animationAdded.addEventListener(function(model, animation) {
36220
- console.log('Animation added: ' + animation.name);
36241
+ console.log(`Animation added: ${animation.name}`);
36221
36242
  });
36222
36243
  */
36223
36244
  animationAdded: Event;
@@ -36226,10 +36247,17 @@ export class ModelExperimentalAnimationCollection {
36226
36247
  example, to keep a UI in sync.
36227
36248
  * @example
36228
36249
  * model.activeAnimations.animationRemoved.addEventListener(function(model, animation) {
36229
- console.log('Animation removed: ' + animation.name);
36250
+ console.log(`Animation removed: ${animation.name}`);
36230
36251
  });
36231
36252
  */
36232
36253
  animationRemoved: Event;
36254
+ /**
36255
+ * When true, the animation will play even when the scene time is paused. However,
36256
+ whether animation takes place will depend on the animationTime functions assigned
36257
+ to the model's animations. By default, this is based on scene time, so models using
36258
+ the default will not animate regardless of this setting.
36259
+ */
36260
+ animateWhilePaused: boolean;
36233
36261
  /**
36234
36262
  * The number of animations in the collection.
36235
36263
  */
@@ -36269,13 +36297,13 @@ export class ModelExperimentalAnimationCollection {
36269
36297
  });
36270
36298
 
36271
36299
  animation.start.addEventListener(function(model, animation) {
36272
- console.log('Animation started: ' + animation.name);
36300
+ console.log(`Animation started: ${animation.name}`);
36273
36301
  });
36274
36302
  animation.update.addEventListener(function(model, animation, time) {
36275
- console.log('Animation updated: ' + animation.name + '. glTF animation time: ' + time);
36303
+ console.log(`Animation updated: ${animation.name}. glTF animation time: ${time}`);
36276
36304
  });
36277
36305
  animation.stop.addEventListener(function(model, animation) {
36278
- console.log('Animation stopped: ' + animation.name);
36306
+ console.log(`Animation stopped: ${animation.name}`);
36279
36307
  });
36280
36308
  * @param options - Object with the following properties:
36281
36309
  * @param [options.name] - The glTF animation name that identifies the animation. Must be defined if <code>options.index</code> is <code>undefined</code>.
@@ -36287,6 +36315,7 @@ export class ModelExperimentalAnimationCollection {
36287
36315
  * @param [options.multiplier = 1.0] - Values greater than <code>1.0</code> increase the speed that the animation is played relative to the scene clock speed; values less than <code>1.0</code> decrease the speed.
36288
36316
  * @param [options.reverse = false] - When <code>true</code>, the animation is played in reverse.
36289
36317
  * @param [options.loop = ModelAnimationLoop.NONE] - Determines if and how the animation is looped.
36318
+ * @param [options.animationTime] - If defined, computes the local animation time for this animation.
36290
36319
  * @returns The animation that was added to the collection.
36291
36320
  */
36292
36321
  add(options: {
@@ -36299,7 +36328,8 @@ export class ModelExperimentalAnimationCollection {
36299
36328
  multiplier?: number;
36300
36329
  reverse?: boolean;
36301
36330
  loop?: ModelAnimationLoop;
36302
- }): ModelAnimation;
36331
+ animationTime?: ModelExperimentalAnimation.AnimationTimeCallback;
36332
+ }): ModelExperimentalAnimation;
36303
36333
  /**
36304
36334
  * Creates and adds animations with the specified initial properties to the collection
36305
36335
  for all animations in the model.
@@ -36319,6 +36349,7 @@ export class ModelExperimentalAnimationCollection {
36319
36349
  * @param [options.multiplier = 1.0] - Values greater than <code>1.0</code> increase the speed that the animations play relative to the scene clock speed; values less than <code>1.0</code> decrease the speed.
36320
36350
  * @param [options.reverse = false] - When <code>true</code>, the animations are played in reverse.
36321
36351
  * @param [options.loop = ModelAnimationLoop.NONE] - Determines if and how the animations are looped.
36352
+ * @param [options.animationTime] - If defined, computes the local animation time for all of the animations.
36322
36353
  * @returns An array of {@link ModelExperimentalAnimation} objects, one for each animation added to the collection. If there are no glTF animations, the array is empty.
36323
36354
  */
36324
36355
  addAll(options?: {
@@ -36329,6 +36360,7 @@ export class ModelExperimentalAnimationCollection {
36329
36360
  multiplier?: number;
36330
36361
  reverse?: boolean;
36331
36362
  loop?: ModelAnimationLoop;
36363
+ animationTime?: ModelExperimentalAnimation.AnimationTimeCallback;
36332
36364
  }): ModelExperimentalAnimation[];
36333
36365
  /**
36334
36366
  * Removes an animation from the collection.
@@ -38080,15 +38112,15 @@ export class PolylineMaterialAppearance {
38080
38112
  * Runs a post-process stage on either the texture rendered by the scene or the output of a previous post-process stage.
38081
38113
  * @example
38082
38114
  * // Simple stage to change the color
38083
- const fs =
38084
- 'uniform sampler2D colorTexture;\n' +
38085
- 'varying vec2 v_textureCoordinates;\n' +
38086
- 'uniform float scale;\n' +
38087
- 'uniform vec3 offset;\n' +
38088
- 'void main() {\n' +
38089
- ' vec4 color = texture2D(colorTexture, v_textureCoordinates);\n' +
38090
- ' gl_FragColor = vec4(color.rgb * scale + offset, 1.0);\n' +
38091
- '}\n';
38115
+ const fs =`
38116
+ uniform sampler2D colorTexture;
38117
+ varying vec2 v_textureCoordinates;
38118
+ uniform float scale;
38119
+ uniform vec3 offset;
38120
+ void main() {
38121
+ vec4 color = texture2D(colorTexture, v_textureCoordinates);
38122
+ gl_FragColor = vec4(color.rgb * scale + offset, 1.0);
38123
+ }`;
38092
38124
  scene.postProcessStages.add(new Cesium.PostProcessStage({
38093
38125
  fragmentShader : fs,
38094
38126
  uniforms : {
@@ -38101,19 +38133,19 @@ scene.postProcessStages.add(new Cesium.PostProcessStage({
38101
38133
  * @example
38102
38134
  * // Simple stage to change the color of what is selected.
38103
38135
  // If czm_selected returns true, the current fragment belongs to geometry in the selected array.
38104
- const fs =
38105
- 'uniform sampler2D colorTexture;\n' +
38106
- 'varying vec2 v_textureCoordinates;\n' +
38107
- 'uniform vec4 highlight;\n' +
38108
- 'void main() {\n' +
38109
- ' vec4 color = texture2D(colorTexture, v_textureCoordinates);\n' +
38110
- ' if (czm_selected()) {\n' +
38111
- ' vec3 highlighted = highlight.a * highlight.rgb + (1.0 - highlight.a) * color.rgb;\n' +
38112
- ' gl_FragColor = vec4(highlighted, 1.0);\n' +
38113
- ' } else { \n' +
38114
- ' gl_FragColor = color;\n' +
38115
- ' }\n' +
38116
- '}\n';
38136
+ const fs =`
38137
+ uniform sampler2D colorTexture;
38138
+ varying vec2 v_textureCoordinates;
38139
+ uniform vec4 highlight;
38140
+ void main() {
38141
+ vec4 color = texture2D(colorTexture, v_textureCoordinates);
38142
+ if (czm_selected()) {
38143
+ vec3 highlighted = highlight.a * highlight.rgb + (1.0 - highlight.a) * color.rgb;
38144
+ gl_FragColor = vec4(highlighted, 1.0);
38145
+ } else {
38146
+ gl_FragColor = color;
38147
+ }
38148
+ }`;
38117
38149
  const stage = scene.postProcessStages.add(new Cesium.PostProcessStage({
38118
38150
  fragmentShader : fs,
38119
38151
  uniforms : {
@@ -38226,7 +38258,7 @@ export class PostProcessStage {
38226
38258
  if (czm_selected(v_textureCoordinates)) {
38227
38259
  // apply post-process stage
38228
38260
  } else {
38229
- gl_FragColor = texture2D(colorTexture, v_textureCordinates);
38261
+ gl_FragColor = texture2D(colorTexture, v_textureCoordinates);
38230
38262
  }
38231
38263
  </code>
38232
38264
  </p>
@@ -39550,10 +39582,6 @@ export class Scene {
39550
39582
  * Gets or sets the position of the splitter within the viewport. Valid values are between 0.0 and 1.0.
39551
39583
  */
39552
39584
  splitPosition: number;
39553
- /**
39554
- * Gets or sets the position of the Imagery splitter within the viewport. Valid values are between 0.0 and 1.0.
39555
- */
39556
- imagerySplitPosition: number;
39557
39585
  /**
39558
39586
  * The distance from the camera at which to disable the depth test of billboards, labels and points
39559
39587
  to, for example, prevent clipping against terrain. When set to zero, the depth test should always
@@ -41036,8 +41064,8 @@ export class TimeDynamicPointCloud {
41036
41064
  </ul>
41037
41065
  * @example
41038
41066
  * pointCloud.frameFailed.addEventListener(function(error) {
41039
- console.log('An error occurred loading frame: ' + error.uri);
41040
- console.log('Error: ' + error.message);
41067
+ console.log(`An error occurred loading frame: ${error.uri}`);
41068
+ console.log(`Error: ${error.message}`);
41041
41069
  });
41042
41070
  */
41043
41071
  frameFailed: Event;
@@ -42530,6 +42558,11 @@ export class Cesium3DTilesInspectorViewModel {
42530
42558
  * Gets or sets the flag to show pick statistics. This property is observable.
42531
42559
  */
42532
42560
  showPickStatistics: boolean;
42561
+ /**
42562
+ * Gets or sets the flag to show resource cache statistics. This property is
42563
+ observable.
42564
+ */
42565
+ showResourceCacheStatistics: boolean;
42533
42566
  /**
42534
42567
  * Gets or sets the flag to show the inspector. This property is observable.
42535
42568
  */
@@ -42719,6 +42752,10 @@ export class Cesium3DTilesInspectorViewModel {
42719
42752
  * Gets the pick statistics text. This property is observable.
42720
42753
  */
42721
42754
  readonly pickStatisticsText: string;
42755
+ /**
42756
+ * Gets the resource cache statistics text. This property is observable.
42757
+ */
42758
+ readonly resourceCacheStatisticsText: string;
42722
42759
  /**
42723
42760
  * Gets the available blend modes
42724
42761
  */