mars3d-cesium 1.88.2 → 1.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Build/Cesium/Cesium.d.ts +42 -23
- package/Build/Cesium/Cesium.js +3 -3
- package/Build/Cesium/Scene/ModelExperimental/CustomShaderGuide/README.md +22 -7
- package/Build/Cesium/ThirdParty/Workers/draco_decoder_nodejs.js +114 -114
- package/Build/Cesium/ThirdParty/draco_decoder.wasm +0 -0
- package/Build/Cesium/Workers/{EllipseGeometry-0fca35c1.js → EllipseGeometry-732b68d8.js} +1 -1
- package/Build/Cesium/Workers/{GeometryPipeline-5b3fba53.js → GeometryPipeline-cfbe5c41.js} +1 -1
- package/Build/Cesium/Workers/{PolygonGeometryLibrary-f129e954.js → PolygonGeometryLibrary-b0b72d84.js} +1 -1
- package/Build/Cesium/Workers/{PrimitivePipeline-82a942e9.js → PrimitivePipeline-6799db3c.js} +1 -1
- package/Build/Cesium/Workers/combineGeometry.js +1 -1
- package/Build/Cesium/Workers/createCircleGeometry.js +1 -1
- package/Build/Cesium/Workers/createCoplanarPolygonGeometry.js +1 -1
- package/Build/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createEllipseGeometry.js +1 -1
- package/Build/Cesium/Workers/createGeometry.js +1 -1
- package/Build/Cesium/Workers/createPolygonGeometry.js +1 -1
- package/Build/Cesium/Workers/createPolygonOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createPolylineVolumeGeometry.js +1 -1
- package/Build/Cesium/Workers/createRectangleGeometry.js +1 -1
- package/README.md +21 -21
- package/package.json +59 -40
package/Build/Cesium/Cesium.d.ts
CHANGED
|
@@ -864,9 +864,9 @@ var b = Cesium.barycentricCoordinates(p,
|
|
|
864
864
|
* @param p1 - The second point of the triangle, corresponding to the barycentric y-axis.
|
|
865
865
|
* @param p2 - The third point of the triangle, corresponding to the barycentric z-axis.
|
|
866
866
|
* @param [result] - The object onto which to store the result.
|
|
867
|
-
* @returns The modified result parameter or a new Cartesian3 instance if one was not provided.
|
|
867
|
+
* @returns The modified result parameter or a new Cartesian3 instance if one was not provided. If the triangle is degenerate the function will return undefined.
|
|
868
868
|
*/
|
|
869
|
-
export function barycentricCoordinates(point: Cartesian2 | Cartesian3, p0: Cartesian2 | Cartesian3, p1: Cartesian2 | Cartesian3, p2: Cartesian2 | Cartesian3, result?: Cartesian3): Cartesian3;
|
|
869
|
+
export function barycentricCoordinates(point: Cartesian2 | Cartesian3, p0: Cartesian2 | Cartesian3, p1: Cartesian2 | Cartesian3, p2: Cartesian2 | Cartesian3, result?: Cartesian3): Cartesian3 | undefined;
|
|
870
870
|
|
|
871
871
|
/**
|
|
872
872
|
* Finds an item in a sorted array.
|
|
@@ -21157,7 +21157,7 @@ export namespace KmlDataSource {
|
|
|
21157
21157
|
KML support in Cesium is incomplete, but a large amount of the standard,
|
|
21158
21158
|
as well as Google's <code>gx</code> extension namespace, is supported. See Github issue
|
|
21159
21159
|
{@link https://github.com/CesiumGS/cesium/issues/873|#873} for a
|
|
21160
|
-
detailed list of what is and isn't
|
|
21160
|
+
detailed list of what is and isn't supported. Cesium will also write information to the
|
|
21161
21161
|
console when it encounters most unsupported features.
|
|
21162
21162
|
</p>
|
|
21163
21163
|
<p>
|
|
@@ -26867,7 +26867,7 @@ export class Cesium3DTileFeature {
|
|
|
26867
26867
|
<li>Otherwise, return undefined</li>
|
|
26868
26868
|
</ol>
|
|
26869
26869
|
<p>
|
|
26870
|
-
For 3D Tiles Next details, see the {@link https://github.com/CesiumGS/3d-tiles/tree/
|
|
26870
|
+
For 3D Tiles Next details, see the {@link https://github.com/CesiumGS/3d-tiles/tree/main/extensions/3DTILES_metadata|3DTILES_metadata Extension}
|
|
26871
26871
|
for 3D Tiles, as well as the {@link https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_mesh_features|EXT_mesh_features Extension}
|
|
26872
26872
|
for glTF. For the legacy glTF extension, see {@link https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata|EXT_feature_metadata Extension}
|
|
26873
26873
|
</p>
|
|
@@ -27688,6 +27688,14 @@ export class Cesium3DTileset {
|
|
|
27688
27688
|
* Function for examining vector lines as they are being streamed.
|
|
27689
27689
|
*/
|
|
27690
27690
|
examineVectorLinesFunction: (...params: any[]) => any;
|
|
27691
|
+
/**
|
|
27692
|
+
* If true, {@link ModelExperimental} will be used instead of {@link Model}
|
|
27693
|
+
for each tile with a glTF or 3D Tiles 1.0 content (where applicable).
|
|
27694
|
+
<p>
|
|
27695
|
+
The value defaults to {@link ExperimentalFeatures.enableModelExperimental}.
|
|
27696
|
+
</p>
|
|
27697
|
+
*/
|
|
27698
|
+
enableModelExperimental: boolean;
|
|
27691
27699
|
/**
|
|
27692
27700
|
* Gets the tileset's asset object property, which contains metadata about the tileset.
|
|
27693
27701
|
<p>
|
|
@@ -27792,7 +27800,7 @@ export class Cesium3DTileset {
|
|
|
27792
27800
|
contents that use {@link ModelExperimental}. Using custom shaders with a
|
|
27793
27801
|
{@link Cesium3DTileStyle} may lead to undefined behavior.
|
|
27794
27802
|
<p>
|
|
27795
|
-
To enable {@link ModelExperimental}, set {@link ExperimentalFeatures.enableModelExperimental} to <code>true</code>.
|
|
27803
|
+
To enable {@link ModelExperimental}, set {@link ExperimentalFeatures.enableModelExperimental} or tileset.enableModelExperimental to <code>true</code>.
|
|
27796
27804
|
</p>
|
|
27797
27805
|
*/
|
|
27798
27806
|
customShader: CustomShader | undefined;
|
|
@@ -29635,6 +29643,10 @@ export class CumulusCloud {
|
|
|
29635
29643
|
<p>To modify the billboard's actual size, modify the cloud's <code>scale</code> property.</p>
|
|
29636
29644
|
*/
|
|
29637
29645
|
maximumSize: Cartesian3;
|
|
29646
|
+
/**
|
|
29647
|
+
* Sets the color of the cloud
|
|
29648
|
+
*/
|
|
29649
|
+
color: Color;
|
|
29638
29650
|
/**
|
|
29639
29651
|
* <p>Gets or sets the "slice" of the cloud that is rendered on the billboard, i.e.
|
|
29640
29652
|
the specific cross-section of the cloud chosen for the billboard's appearance.
|
|
@@ -30425,6 +30437,12 @@ export class Globe {
|
|
|
30425
30437
|
* Enable lighting the globe with the scene's light source.
|
|
30426
30438
|
*/
|
|
30427
30439
|
enableLighting: boolean;
|
|
30440
|
+
/**
|
|
30441
|
+
* A multiplier to adjust terrain lambert lighting.
|
|
30442
|
+
This number is multiplied by the result of <code>czm_getLambertDiffuse</code> in GlobeFS.glsl.
|
|
30443
|
+
This only takes effect when <code>enableLighting</code> is <code>true</code>.
|
|
30444
|
+
*/
|
|
30445
|
+
lambertDiffuseMultiplier: number;
|
|
30428
30446
|
/**
|
|
30429
30447
|
* Enable dynamic lighting effects on atmosphere and fog. This only takes effect
|
|
30430
30448
|
when <code>enableLighting</code> is <code>true</code>.
|
|
@@ -34970,7 +34988,7 @@ If texture uniforms are used, additional resource management must be done:
|
|
|
34970
34988
|
</li>
|
|
34971
34989
|
</ul>
|
|
34972
34990
|
<p>
|
|
34973
|
-
To enable the use of {@link ModelExperimental} in {@link Cesium3DTileset}, set {@link ExperimentalFeatures.enableModelExperimental} to <code>true</code>.
|
|
34991
|
+
To enable the use of {@link ModelExperimental} in {@link Cesium3DTileset}, set {@link ExperimentalFeatures.enableModelExperimental} to <code>true</code> or tileset.enableModelExperimental to <code>true</code>.
|
|
34974
34992
|
</p>
|
|
34975
34993
|
* @example
|
|
34976
34994
|
* var customShader = new CustomShader({
|
|
@@ -34990,9 +35008,9 @@ To enable the use of {@link ModelExperimental} in {@link Cesium3DTileset}, set {
|
|
|
34990
35008
|
v_selectedColor: Cesium.VaryingType.VEC3
|
|
34991
35009
|
},
|
|
34992
35010
|
vertexShaderText: `
|
|
34993
|
-
void vertexMain(VertexInput vsInput, inout
|
|
35011
|
+
void vertexMain(VertexInput vsInput, inout czm_modelVertexOutput vsOutput) {
|
|
34994
35012
|
v_selectedColor = mix(vsInput.attributes.color_0, vsInput.attributes.color_1, u_colorIndex);
|
|
34995
|
-
|
|
35013
|
+
vsOutput.positionMC += 0.1 * vsInput.attributes.normal;
|
|
34996
35014
|
}
|
|
34997
35015
|
`,
|
|
34998
35016
|
fragmentShaderText: `
|
|
@@ -38212,13 +38230,6 @@ export class Scene {
|
|
|
38212
38230
|
/**
|
|
38213
38231
|
* This property is for debugging only; it is not for production use.
|
|
38214
38232
|
<p>
|
|
38215
|
-
Displays depth information for the indicated frustum.
|
|
38216
|
-
</p>
|
|
38217
|
-
*/
|
|
38218
|
-
debugShowGlobeDepth: boolean;
|
|
38219
|
-
/**
|
|
38220
|
-
* This property is for debugging only; it is not for production use.
|
|
38221
|
-
<p>
|
|
38222
38233
|
Indicates which frustum will have depth information displayed.
|
|
38223
38234
|
</p>
|
|
38224
38235
|
*/
|
|
@@ -40429,6 +40440,16 @@ export class ViewportQuad {
|
|
|
40429
40440
|
destroy(): void;
|
|
40430
40441
|
}
|
|
40431
40442
|
|
|
40443
|
+
/**
|
|
40444
|
+
* EPSG codes known to include reverse axis orders, but are not within 4000-5000.
|
|
40445
|
+
*/
|
|
40446
|
+
export var includesReverseAxis: number[];
|
|
40447
|
+
|
|
40448
|
+
/**
|
|
40449
|
+
* EPSG codes known to not include reverse axis orders, and are within 4000-5000.
|
|
40450
|
+
*/
|
|
40451
|
+
export var excludesReverseAxis: number[];
|
|
40452
|
+
|
|
40432
40453
|
export namespace WebMapServiceImageryProvider {
|
|
40433
40454
|
/**
|
|
40434
40455
|
* Initialization options for the WebMapServiceImageryProvider constructor
|
|
@@ -40464,6 +40485,7 @@ export namespace WebMapServiceImageryProvider {
|
|
|
40464
40485
|
an array, each element in the array is a subdomain.
|
|
40465
40486
|
* @property [clock] - A Clock instance that is used when determining the value for the time dimension. Required when `times` is specified.
|
|
40466
40487
|
* @property [times] - TimeIntervalCollection with its data property being an object containing time dynamic dimension and their values.
|
|
40488
|
+
* @property [getFeatureInfoUrl] - The getFeatureInfo URL of the WMS service. If the property is not defined then we use the property value of url.
|
|
40467
40489
|
*/
|
|
40468
40490
|
type ConstructorOptions = {
|
|
40469
40491
|
url: Resource | string;
|
|
@@ -40485,6 +40507,7 @@ export namespace WebMapServiceImageryProvider {
|
|
|
40485
40507
|
subdomains?: string | string[];
|
|
40486
40508
|
clock?: Clock;
|
|
40487
40509
|
times?: TimeIntervalCollection;
|
|
40510
|
+
getFeatureInfoUrl?: Resource | string;
|
|
40488
40511
|
};
|
|
40489
40512
|
}
|
|
40490
40513
|
|
|
@@ -40642,6 +40665,10 @@ export class WebMapServiceImageryProvider {
|
|
|
40642
40665
|
tile requests.
|
|
40643
40666
|
*/
|
|
40644
40667
|
times: TimeIntervalCollection;
|
|
40668
|
+
/**
|
|
40669
|
+
* Gets the getFeatureInfo URL of the WMS server.
|
|
40670
|
+
*/
|
|
40671
|
+
readonly getFeatureInfoUrl: Resource | string;
|
|
40645
40672
|
/**
|
|
40646
40673
|
* Gets the credits to be displayed when a given tile is displayed.
|
|
40647
40674
|
* @param x - The tile X coordinate.
|
|
@@ -41745,14 +41772,6 @@ export class CesiumInspectorViewModel {
|
|
|
41745
41772
|
* Gets or sets the show wireframe state. This property is observable.
|
|
41746
41773
|
*/
|
|
41747
41774
|
wireframe: boolean;
|
|
41748
|
-
/**
|
|
41749
|
-
* Gets or sets the show globe depth state. This property is observable.
|
|
41750
|
-
*/
|
|
41751
|
-
globeDepth: boolean;
|
|
41752
|
-
/**
|
|
41753
|
-
* Gets or sets the show pick depth state. This property is observable.
|
|
41754
|
-
*/
|
|
41755
|
-
pickDepth: boolean;
|
|
41756
41775
|
/**
|
|
41757
41776
|
* Gets or sets the index of the depth frustum to display. This property is observable.
|
|
41758
41777
|
*/
|