diff --git a/types/cesium/index.d.ts b/types/cesium/index.d.ts index 2a524c5e61..42239aa227 100644 --- a/types/cesium/index.d.ts +++ b/types/cesium/index.d.ts @@ -2477,45 +2477,50 @@ declare namespace Cesium { } class ModelGraphics { + articulations: any; // PropertyBag clampAnimations: Property | boolean; - clippingPlanes: Property; - color: Property; + clippingPlanes: Property | ClippingPlaneCollection; + color: Property | Color; colorBlendAmount: Property | number; - colorBlendMode: Property; + colorBlendMode: Property | ColorBlendMode; readonly definitionChanged: Event; - distanceDisplayCondition: Property; - heightReference: Property; + distanceDisplayCondition: Property | DistanceDisplayCondition; + heightReference: Property | HeightReference; + imageBasedLightingFactor: Property | Cartesian2; incrementallyLoadTextures: Property | boolean; + lightColor: Property | Cartesian3; maximumScale: Property | number; - minimumScale: Property | number; minimumPixelSize: Property | number; nodeTransformations: any; // PropertyBag runAnimations: Property | boolean; scale: Property | number; - shadows: Property; + shadows: Property | ShadowMode; show: Property | boolean; - silhouetteColor: Property; + silhouetteColor: Property | Color; silhouetteSize: Property | number; uri: Property | string; constructor(options?: { - uri?: Property | string; show?: Property | boolean; + uri?: Property | string; scale?: Property | number; minimumPixelSize?: Property | number; maximumScale?: Property | number; incrementallyLoadTextures?: Property | boolean; runAnimations?: Property | boolean; clampAnimations?: Property | boolean; - nodeTransformations?: Property; - shadows?: Property; - heightReference?: Property; - distanceDisplayCondition?: Property; - silhouetteColor?: Property; + shadows?: Property | ShadowMode; + heightReference?: Property | HeightReference; + silhouetteColor?: Property | Color; silhouetteSize?: Property | number; - color?: Property; - colorBlendMode?: Property; + color?: Property | Color; + colorBlendMode?: Property | ColorBlendMode; colorBlendAmount?: Property | number; - clippingPlanes?: Property; + imageBasedLightingFactor?: Property | Cartesian2; + lightColor?: Property | Cartesian3; + distanceDisplayCondition?: Property | DistanceDisplayCondition; + nodeTransformations?: any; // PropertyBag + articulations?: any; // PropertyBag + clippingPlanes?: Property | ClippingPlaneCollection; }); clone(result?: ModelGraphics): ModelGraphics; merge(source: ModelGraphics): ModelGraphics; @@ -3484,8 +3489,14 @@ declare namespace Cesium { enum Cesium3DTileColorBlendMode { HIGHLIGHT, - MIX, - REPLACE + REPLACE, + MIX + } + + enum ColorBlendMode { + HIGHLIGHT, + REPLACE, + MIX } export class PointCloudShading { @@ -3905,21 +3916,40 @@ declare namespace Cesium { } class Model { - show: boolean; - modelMatrix: Matrix4; - scale: number; - minimumPixelSize: number; - id: any; activeAnimations: ModelAnimationCollection; + readonly allowPicking: boolean; + readonly asynchronous: boolean; + readonly basePath: string; + readonly boundingSphere: BoundingSphere; + clampAnimations: boolean; + clippingPlanes: ClippingPlaneCollection; + color: Color; + colorBlendAmount: number; + colorBlendMode: ColorBlendMode; + credit: Credit; debugShowBoundingVolume: boolean; debugWireframe: boolean; - gltf: any; - basePath: string; - boundingSphere: BoundingSphere; - ready: boolean; - readyPromise: Promise; - asynchronous: boolean; - allowPicking: boolean; + distanceDisplayCondition: DistanceDisplayCondition; + readonly gltf: any; + heightReference: HeightReference; + id: any; + imageBasedLightingFactor: Cartesian2; + readonly incrementallyLoadTextures: boolean; + lightColor: Cartesian3; + luminanceAtZenith: number; + maximumScale: number; + minimumPixelSize: number; + modelMatrix: Matrix4; + readonly pendingTextureLoads: number; + readonly ready: boolean; + readonly readyPromise: Promise; + shadows: ShadowMode; + scale: number; + show: boolean; + silhouetteColor: Color; + silhouetteSize: number; + specularEnvironmentMaps: string; + sphericalHarmonicCoefficients: Cartesian3[]; constructor(options?: { gltf?: any; basePath?: string; @@ -3927,30 +3957,69 @@ declare namespace Cesium { modelMatrix?: Matrix4; scale?: number; minimumPixelSize?: number; + maximumScale?: number; id?: any; allowPicking?: boolean; + incrementallyLoadTextures?: boolean; asynchronous?: boolean; + clampAnimations?: boolean; + shadows?: ShadowMode; debugShowBoundingVolume?: boolean; - debugWireframe?: boolean + debugWireframe?: boolean; + heightReference?: HeightReference; + scene?: Scene; + distanceDisplayCondition?: DistanceDisplayCondition; + color?: Color; + colorBlendMode?: Property; + colorBlendAmount?: number; + silhouetteColor?: Color; + silhouetteSize?: number; + clippingPlanes?: ClippingPlaneCollection; + dequantizeInShader?: boolean; + imageBasedLightingFactor?: Cartesian2; + lightColor?: Cartesian3; + luminanceAtZenith?: number; + sphericalHarmonicCoefficients?: Cartesian3[]; + specularEnvironmentMaps?: string; + credit?: Credit | string; }); - getNode(name: string): ModelNode; - getMesh(name: string): ModelMesh; - getMaterial(name: string): ModelMaterial; - update(): void; - isDestroyed(): boolean; - destroy(): void; static fromGltf(options: { url: string; - headers?: any; + basePath?: string; show?: boolean; modelMatrix?: Matrix4; scale?: number; minimumPixelSize?: number; + maximumScale?: number; + id?: any; allowPicking?: boolean; + incrementallyLoadTextures?: boolean; asynchronous?: boolean; + clampAnimations?: boolean; + shadows?: ShadowMode; debugShowBoundingVolume?: boolean; - debugWireframe?: boolean + debugWireframe?: boolean; + heightReference?: HeightReference; + scene?: Scene; + distanceDisplayCondition?: DistanceDisplayCondition; + color?: Color; + colorBlendMode?: ColorBlendMode; + colorBlendAmount?: number; + silhouetteColor?: Color; + silhouetteSize?: number; + clippingPlanes?: ClippingPlaneCollection; + dequantizeInShader?: boolean; + credit?: Credit; }): Model; + static siluhouetteSupported(scene: Scene): boolean; + applyArticulations(): void; + destroy(): void; + getMaterial(name: string): ModelMaterial; + getMesh(name: string): ModelMesh; + getNode(name: string): ModelNode; + isDestroyed(): boolean; + setArticulationStage(articulationStageKey: string, value: number): void; + update(): void; } class ModelAnimation { @@ -4335,6 +4404,7 @@ declare namespace Cesium { invertClassification: boolean; invertClassificationColor: Color; readonly lastRenderTime: JulianDate; + logarithmicDepthBuffer: boolean; logarithmicDepthFarToNearRatio: number; mapMode2D: boolean; readonly mapProjection: MapProjection;