Package-level declarations

Types

Link copied to clipboard

Metadata for one stored anchor point using direct storage.

Link copied to clipboard

Metadata for one stored anchor point.

Link copied to clipboard
typealias AnimationTimeCallback = (duration: Double, seconds: Double) -> Double

A function used to compute the local animation time for a ModelAnimation.

Link copied to clipboard
external class Appearance(options: Appearance.ConstructorOptions? = definedExternally)

An appearance defines the full GLSL vertex and fragment shaders and the render state used to draw a Primitive. All appearances implement this base Appearance interface.

Link copied to clipboard
sealed external interface ArcGisBaseMapType

ArcGisBaseMapType enumerates the ArcGIS image tile layers that are supported by default.

Link copied to clipboard
This object is normally not instantiated directly, use [ArcGisMapServerImageryProvider.fromBasemapType] or [ArcGisMapServerImageryProvider.fromUrl].
Link copied to clipboard
external object ArcGisMapService

Default options for accessing the ArcGIS image tile service.

Link copied to clipboard
To construct a CesiumTerrainProvider, call [ArcGISTiledElevationTerrainProvider.fromUrl]. Do not call the constructor directly.
Link copied to clipboard
sealed external interface ArcType

ArcType defines the path that should be taken connecting vertices.

Link copied to clipboard
external class AssociativeArray

A collection of key-value pairs that is stored as a hash for easy lookup but also provides an array for fast iteration.

Link copied to clipboard
external class Atmosphere

Common atmosphere settings used by 3D Tiles and models for rendering sky atmosphere, ground atmosphere, and fog.

Link copied to clipboard
sealed external interface Axis

An enum describing the x, y, and z axes and helper conversion functions.

Link copied to clipboard
external class AxisAlignedBoundingBox(var minimum: Cartesian3 = definedExternally, var maximum: Cartesian3 = definedExternally, var center: Cartesian3 = definedExternally)

Creates an instance of an AxisAlignedBoundingBox from the minimum and maximum points along the x, y, and z axes.

Link copied to clipboard
external class Billboard
A billboard is created and its initial properties are set by calling [BillboardCollection.add]. Do not call the constructor directly.
A viewport-aligned image positioned in the 3D scene, that is created and rendered using a [BillboardCollection].
Link copied to clipboard
external class BillboardCollection(options: BillboardCollection.ConstructorOptions? = definedExternally)

A renderable collection of billboards. Billboards are viewport-aligned images positioned in the 3D scene.

Link copied to clipboard
external class BillboardGraphics

Describes a two dimensional icon located at the position of the containing Entity.

Link copied to clipboard
external class BillboardVisualizer(entityCluster: EntityCluster, entityCollection: EntityCollection) : Visualizer
Link copied to clipboard
typealias binarySearchComparator = (a: Any, b: Any) -> Double

A function used to compare two items while performing a binary search.

Link copied to clipboard

Provides geocoding through Bing Maps.

Link copied to clipboard
To construct a BingMapsImageryProvider, call [BingMapsImageryProvider.fromUrl]. Do not call the constructor directly.
Link copied to clipboard
sealed external interface BingMapsStyle

The types of imagery provided by Bing Maps.

Link copied to clipboard
sealed external interface BlendEquation

Determines how two pixels' values are combined.

Link copied to clipboard
sealed external interface BlendFunction

Determines how blending factors are computed.

Link copied to clipboard
external object BlendingState

The blending state combines BlendEquation and BlendFunction and the enabled flag to define the full blending state for combining source and destination fragments when rendering.

Link copied to clipboard
sealed external interface BlendOption

Determines how opaque and translucent parts of billboards, points, and labels are blended with the scene.

Link copied to clipboard
external class BoundingRectangle(var x: Double = definedExternally, var y: Double = definedExternally, var width: Double = definedExternally, var height: Double = definedExternally)

A bounding rectangle given by a corner, width and height.

Link copied to clipboard
external class BoundingSphere(var center: Cartesian3 = definedExternally, var radius: Double = definedExternally)

A bounding sphere with a center and a radius.

Link copied to clipboard
external class BoxEmitter(var dimensions: Cartesian3)

A ParticleEmitter that emits particles within a box. Particles will be positioned randomly within the box and have initial velocities emanating from the center of the box.

Link copied to clipboard

Describes a cube centered at the origin.

Link copied to clipboard
external class BoxGeometryUpdater(entity: Entity, scene: Scene)

A GeometryUpdater for boxes. Clients do not normally create this class directly, but instead rely on DataSourceDisplay.

Link copied to clipboard
external class BoxGraphics

Describes a box. The center position and orientation are determined by the containing Entity.

Link copied to clipboard

A description of the outline of a cube centered at the origin.

Link copied to clipboard
typealias CallbackPositionCallback = (time: JulianDate?, result: Cartesian3?) -> Cartesian3?

A function that returns the value of the position property.

Link copied to clipboard
external class CallbackPositionProperty(callback: CallbackPositionProperty, val isConstant: Boolean, var referenceFrame: ReferenceFrame = definedExternally)

A PositionProperty whose value is lazily evaluated by a callback function.

Link copied to clipboard
external class CallbackProperty(callback: CallbackPropertyCallback, val isConstant: Boolean)

A Property whose value is lazily evaluated by a callback function.

Link copied to clipboard
typealias CallbackPropertyCallback = (time: JulianDate?, result: Any?) -> Any

A function that returns the value of the property.

Link copied to clipboard
external class Camera(scene: Scene)

The camera is defined by a position, orientation, and view frustum.

Link copied to clipboard
external class CameraEventAggregator(canvas: HTMLCanvasElement? = definedExternally)

Aggregates input events. For example, suppose the following inputs are received between frames: left mouse button down, mouse move, mouse move, left mouse button up. These events will be aggregated into one event with a start and end position of the mouse.

Link copied to clipboard
sealed external interface CameraEventType

Enumerates the available input for interacting with the camera.

Link copied to clipboard
sealed external interface CameraOrientation
Link copied to clipboard
typealias CancelCallback = () -> Unit

The function that is called when the request is cancelled.

Link copied to clipboard
external class Cartesian2(var x: Double = definedExternally, var y: Double = definedExternally)

A 2D Cartesian point.

Link copied to clipboard
external class Cartesian3(var x: Double = definedExternally, var y: Double = definedExternally, var z: Double = definedExternally)

A 3D Cartesian point.

Link copied to clipboard
external class Cartesian4(var x: Double = definedExternally, var y: Double = definedExternally, var z: Double = definedExternally, var w: Double = definedExternally)

A 4D Cartesian point.

Link copied to clipboard
external class Cartographic(var longitude: Double = definedExternally, var latitude: Double = definedExternally, var height: Double = definedExternally)

A position defined by longitude, latitude, and height.

Link copied to clipboard

Geocodes queries containing longitude and latitude coordinates and an optional height. Query format: longitude latitude (height) with longitude/latitude in degrees and height in meters.

Link copied to clipboard

A Catmull-Rom spline is a cubic spline where the tangent at control points, except the first and last, are computed using the previous and next control points. Catmull-Rom splines are in the class C1.

Link copied to clipboard
external class Cesium3DTile

A tile in a Cesium3DTileset. When a tile is first created, its content is not loaded; the content is loaded on-demand when needed based on the view.

Link copied to clipboard
sealed external interface Cesium3DTileColorBlendMode

Defines how per-feature colors set from the Cesium API or declarative styling blend with the source colors from the original feature, e.g. glTF material or per-point color in the tile.

Link copied to clipboard
abstract external class Cesium3DTileContent

The content of a tile in a Cesium3DTileset.

Link copied to clipboard
external class Cesium3DTileFeature

A feature of a Cesium3DTileset.

Link copied to clipboard

A point feature of a Cesium3DTileset.

Link copied to clipboard

A 3D Tiles tileset, used for streaming massive heterogeneous 3D geospatial datasets.

Link copied to clipboard

A 3D Tiles tileset represented by an Entity. The tileset modelMatrix is determined by the containing Entity position and orientation or is left unset if position is undefined.

Link copied to clipboard
external class Cesium3DTilesetVisualizer(scene: Scene, entityCollection: EntityCollection) : Visualizer
Link copied to clipboard
external class Cesium3DTileStyle(val style: Any = definedExternally)

A style that is applied to a Cesium3DTileset.

Link copied to clipboard
external class Cesium3DTilesVoxelProvider(options: Any)

A VoxelProvider that fetches voxel data from a 3D Tiles tileset.

Link copied to clipboard
To construct a CesiumTerrainProvider, call [CesiumTerrainProvider.fromIonAssetId] or [CesiumTerrainProvider.fromUrl]. Do not call the constructor directly.
Link copied to clipboard
external class CesiumWidget(val container: Element, options: CesiumWidget.ConstructorOptions? = definedExternally)

A widget containing a Cesium scene.

Link copied to clipboard

A MaterialProperty that maps to checkerboard Material uniforms.

Link copied to clipboard
external class CircleEmitter(var radius: Double = definedExternally)

A ParticleEmitter that emits particles from a circle. Particles will be positioned within a circle and have initial velocities going along the z vector.

Link copied to clipboard

A description of a circle on the ellipsoid. Circle geometry can be rendered with both Primitive and GroundPrimitive.

Link copied to clipboard

A description of the outline of a circle on the ellipsoid.

Link copied to clipboard
external class ClassificationPrimitive(options: ClassificationPrimitive.ConstructorOptions? = definedExternally)

A classification primitive represents a volume enclosing geometry in the Scene to be highlighted.

Link copied to clipboard
sealed external interface ClassificationType

Whether a classification affects terrain, 3D Tiles or both.

Link copied to clipboard
external class ClippingPlane(var normal: Cartesian3, var distance: Double)

A Plane in Hessian Normal form to be used with ClippingPlaneCollection. Compatible with mathematics functions in Plane

Link copied to clipboard
external class ClippingPlaneCollection(options: ClippingPlaneCollection.ConstructorOptions? = definedExternally)

Specifies a set of clipping planes. Clipping planes selectively disable rendering in a region on the outside of the specified list of ClippingPlane objects for a single gltf model, 3D Tileset, or the globe.

Link copied to clipboard

A geodesic polygon to be used with ClippingPlaneCollection for selectively hiding regions in a model, a 3D tileset, or the globe.

Link copied to clipboard
external class ClippingPolygonCollection(options: ClippingPolygonCollection.ConstructorOptions? = definedExternally)

Specifies a set of clipping polygons. Clipping polygons selectively disable rendering in a region inside or outside the specified list of ClippingPolygon objects for a single glTF model, 3D Tileset, or the globe.

Link copied to clipboard
external class Clock

A simple clock for keeping track of simulated time.

Link copied to clipboard
sealed external interface ClockRange

Constants used by Clock.tick to determine behavior when Clock.startTime or Clock.stopTime is reached.

Link copied to clipboard
sealed external interface ClockStep

Constants to determine how much time advances with each call to Clock.tick.

Link copied to clipboard
external class CloudCollection

A renderable collection of clouds in the 3D scene.

Link copied to clipboard
sealed external interface CloudType

Specifies the type of the cloud that is added to a CloudCollection in CloudCollection.add.

Link copied to clipboard

The signature of the event generated by EntityCollection.collectionChanged.

Link copied to clipboard
external class Color(var red: Double = definedExternally, var green: Double = definedExternally, var blue: Double = definedExternally, var alpha: Double = definedExternally)

A color, specified using red, green, blue, and alpha values, which range from 0 (no intensity) to 1.0 (full intensity).

Link copied to clipboard
sealed external interface ColorBlendMode

Defines different modes for blending between a target color and a primitive's source color.

Link copied to clipboard
external class ColorGeometryInstanceAttribute(red: Double? = definedExternally, green: Double? = definedExternally, blue: Double? = definedExternally, alpha: Double? = definedExternally)

Value and type information for per-instance geometry color.

Link copied to clipboard

A MaterialProperty that maps to solid color Material uniforms.

Link copied to clipboard
typealias Comparator = (a: Any, b: Any) -> Double

A function used to compare two items while sorting a queue.

Link copied to clipboard
sealed external interface ComponentDatatype

WebGL component datatypes. Components are intrinsics, which form attributes, which form vertices.

Link copied to clipboard
external class CompositeEntityCollection(collections: ReadonlyArray<EntityCollection>? = definedExternally)

Non-destructively composites multiple EntityCollection instances into a single collection. If a Entity with the same ID exists in multiple collections, it is non-destructively merged into a single new entity instance. If an entity has the same property in multiple collections, the property of the Entity in the last collection of the list it belongs to is used. CompositeEntityCollection can be used almost anywhere that a EntityCollection is used.

Link copied to clipboard
Link copied to clipboard
external class CompositePositionProperty(var referenceFrame: ReferenceFrame = definedExternally)
Link copied to clipboard
external class CompositeProperty

A Property which is defined by a TimeIntervalCollection, where the data property of each TimeInterval is another Property instance which is evaluated at the provided time.

Link copied to clipboard
external class CompressedTextureBuffer(val internalFormat: PixelFormat, val pixelDatatype: PixelDatatype, val width: Double, val height: Double, buffer: Uint8Array<*>)

Describes a compressed texture and contains a compressed texture buffer.

Link copied to clipboard
external class ConditionsExpression(val conditionsExpression: Any = definedExternally, defines: Any? = definedExternally) : StyleExpression

An expression for a style applied to a Cesium3DTileset.

Link copied to clipboard
external class ConeEmitter(angle: Double? = definedExternally)

A ParticleEmitter that emits particles within a cone. Particles will be positioned at the tip of the cone and have initial velocities going towards the base.

Link copied to clipboard
external class ConstantPositionProperty(value: Cartesian3? = definedExternally, var referenceFrame: ReferenceFrame = definedExternally)

A PositionProperty whose value does not change in respect to the ReferenceFrame in which is it defined.

Link copied to clipboard
external class ConstantProperty(value: Any? = definedExternally)

A Property whose value does not change with respect to simulation time.

Link copied to clipboard
external class ConstantSpline(val value: Any)

A spline that evaluates to a constant value. Although this follows the Spline interface, it does not maintain an internal array of times since its value never changes.

Link copied to clipboard
external interface ContextOptions

Options to control the setting up of a WebGL Context.

Link copied to clipboard

A description of a polygon composed of arbitrary coplanar positions.

Link copied to clipboard

A description of the outline of a polygon composed of arbitrary coplanar positions.

Link copied to clipboard
sealed external interface CornerType

Style options for corners.

Link copied to clipboard

Metadata identifying parameters using same correlation modeling and associated correlation parameters.

Link copied to clipboard

A description of a corridor. Corridor geometry can be rendered with both Primitive and GroundPrimitive.

Link copied to clipboard
external class CorridorGeometryUpdater(entity: Entity, scene: Scene)

A GeometryUpdater for corridors. Clients do not normally create this class directly, but instead rely on DataSourceDisplay.

Link copied to clipboard
external class CorridorGraphics

Describes a corridor, which is a shape defined by a centerline and width that conforms to the curvature of the globe. It can be placed on the surface or at altitude and can optionally be extruded into a volume.

Link copied to clipboard

A description of a corridor outline.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A function that creates an image.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external class Credit(val html: String, var showOnScreen: Boolean = definedExternally)

A credit contains data pertaining to how to display attributions/credits for certain content on the screen.

Link copied to clipboard
external class CreditDisplay(var container: HTMLElement, delimiter: String? = definedExternally, viewport: HTMLElement? = definedExternally)

The credit display is responsible for displaying credits on screen.

Link copied to clipboard
external object CubicRealPolynomial

Defines functions for 3rd order polynomial functions of one variable with only real coefficients.

Link copied to clipboard
sealed external interface CullFace

Determines which triangles, if any, are culled.

Link copied to clipboard
external class CullingVolume(var planes: ReadonlyArray<Cartesian4> = definedExternally)

The culling volume defined by planes.

Link copied to clipboard
external class CumulusCloud
A cloud is created and its initial properties are set by calling [CloudCollection.add]. and [CloudCollection.remove]. Do not call the constructor directly.
A cumulus cloud billboard positioned in the 3D scene, that is created and rendered using a [CloudCollection].
Link copied to clipboard
external class CustomDataSource(var name: String = definedExternally)

A DataSource implementation which can be used to manually manage a group of entities.

Link copied to clipboard

A simple TerrainProvider that gets height values from a callback function. It can be used for procedurally generated terrain or as a way to load custom heightmap data without creating a subclass of TerrainProvider.

Link copied to clipboard

A user defined GLSL shader used with Model as well as Cesium3DTileset.

Link copied to clipboard
sealed external interface CustomShaderMode

An enum describing how the CustomShader will be added to the fragment shader. This determines how the shader interacts with the material.

Link copied to clipboard
sealed external interface CustomShaderTranslucencyMode

An enum for controling how CustomShader handles translucency compared with the original primitive.

Link copied to clipboard

A description of a cylinder.

Link copied to clipboard
external class CylinderGeometryUpdater(entity: Entity, scene: Scene)

A GeometryUpdater for cylinders. Clients do not normally create this class directly, but instead rely on DataSourceDisplay.

Link copied to clipboard
external class CylinderGraphics

Describes a cylinder, truncated cone, or cone defined by a length, top radius, and bottom radius. The center position and orientation are determined by the containing Entity.

Link copied to clipboard

A description of the outline of a cylinder.

Link copied to clipboard
external class CzmlDataSource(var name: String = definedExternally)

A DataSource which processes CZML.

Link copied to clipboard
typealias DataComparer = (leftData: Any, rightData: Any) -> Boolean

Function interface for comparing interval data.

Link copied to clipboard
abstract external class DataSource

Defines the interface for data sources, which turn arbitrary data into a EntityCollection for generic consumption. This object is an interface for documentation purposes and is not intended to be instantiated directly.

Link copied to clipboard
external class DataSourceClock

Represents desired clock settings for a particular DataSource. These settings may be applied to the Clock when the DataSource is loaded.

Link copied to clipboard
external class DataSourceCollection

A collection of DataSource instances.

Link copied to clipboard

Visualizes a collection of DataSource instances.

Link copied to clipboard

Visualizes a vertex attribute by displaying it as a color for debugging.

Link copied to clipboard

Draws the outline of the camera's view frustum.

Link copied to clipboard

Draws the axes of a reference frame defined by a matrix that transforms to world coordinates, i.e., Earth's WGS84 coordinates. The most prominent example is a primitives modelMatrix.

Link copied to clipboard
typealias DefaultEvent = Event<() -> Unit>
Link copied to clipboard
external class DefaultProxy(proxy: String)

A simple proxy that appends the desired resource as the sole query parameter to the given proxy URL.

Link copied to clipboard
sealed external interface DepthFunction

Determines the function used to compare two depths for the depth test.

Link copied to clipboard
typealias describe = (properties: Any, nameProperty: String) -> Unit

This callback is displayed as part of the GeoJsonDataSource class.

Link copied to clipboard
external class DeveloperError(val message: String = definedExternally) : Throwable

Constructs an exception object that is thrown due to a developer error, e.g., invalid argument, argument out of range, etc. This exception should only be thrown during development; it usually indicates a bug in the calling code. This exception should never be caught; instead the calling code should strive not to generate it.

Link copied to clipboard

A light that gets emitted in a single direction from infinitely far away.

Link copied to clipboard
external interface DirectionUp : CameraOrientation

An orientation given by a pair of unit vectors

Link copied to clipboard

A policy for discarding tile images that contain no data (and so aren't actually images). This policy discards DiscardEmptyTileImagePolicy.EMPTY_IMAGE, which is expected to be used in place of any empty tile images by the image loading code.

Link copied to clipboard

A policy for discarding tile images that match a known image containing a "missing" image.

Link copied to clipboard
external class DistanceDisplayCondition(var near: Double = definedExternally, var far: Double = definedExternally)

Determines visibility based on the distance to the camera.

external class DistanceDisplayConditionGeometryInstanceAttribute(near: Double? = definedExternally, far: Double? = definedExternally)

Value and type information for per-instance geometry attribute that determines if the geometry instance has a distance display condition.

Link copied to clipboard
typealias DoneCallback = (terminated: Boolean) -> Unit

A function that will be executed when the flight completes.

Link copied to clipboard
sealed external interface DynamicAtmosphereLightingType

Atmosphere lighting effects (sky atmosphere, ground atmosphere, fog) can be further modified with dynamic lighting from the sun or other light source that changes over time. This enum determines which light source to use.

Link copied to clipboard

Generates an environment map at the given position based on scene's current lighting conditions. From this, it produces multiple levels of specular maps and spherical harmonic coefficients than can be used with ImageBasedLighting for models or tilesets.

Link copied to clipboard
typealias EasingCallback = (time: Double) -> Double

Function interface for implementing a custom easing function.

Link copied to clipboard
external object EasingFunction

Easing functions for use with TweenCollection. These function are from Tween.js and Robert Penner. See the Tween.js graphs for each function.

Link copied to clipboard

A description of an ellipse on an ellipsoid. Ellipse geometry can be rendered with both Primitive and GroundPrimitive.

Link copied to clipboard
external class EllipseGeometryUpdater(entity: Entity, scene: Scene)

A GeometryUpdater for ellipses. Clients do not normally create this class directly, but instead rely on DataSourceDisplay.

Link copied to clipboard
external class EllipseGraphics

Describes an ellipse defined by a center point and semi-major and semi-minor axes. The ellipse conforms to the curvature of the globe and can be placed on the surface or at altitude and can optionally be extruded into a volume. The center point is determined by the containing Entity.

Link copied to clipboard

A description of the outline of an ellipse on an ellipsoid.

Link copied to clipboard
external class Ellipsoid(x: Double? = definedExternally, y: Double? = definedExternally, z: Double? = definedExternally)

A quadratic surface defined in Cartesian coordinates by the equation (x / a)^2 + (y / b)^2 + (z / c)^2 = 1. Primarily used by Cesium to represent the shape of planetary bodies.

Link copied to clipboard
external class EllipsoidGeodesic(val start: Cartographic = definedExternally, val end: Cartographic = definedExternally, val ellipsoid: Ellipsoid = definedExternally)

Initializes a geodesic on the ellipsoid connecting the two provided planetodetic points.

Link copied to clipboard
external class EllipsoidGeometry(options: EllipsoidGeometry.ConstructorOptions? = definedExternally)

A description of an ellipsoid centered at the origin.

Link copied to clipboard
external class EllipsoidGeometryUpdater(entity: Entity, scene: Scene)

A GeometryUpdater for ellipsoids. Clients do not normally create this class directly, but instead rely on DataSourceDisplay.

Link copied to clipboard
external class EllipsoidGraphics

Describe an ellipsoid or sphere. The center position and orientation are determined by the containing Entity.

Link copied to clipboard
external class EllipsoidOutlineGeometry(options: EllipsoidOutlineGeometry.ConstructorOptions? = definedExternally)

A description of the outline of an ellipsoid centered at the origin.

Link copied to clipboard
external class EllipsoidRhumbLine(val start: Cartographic = definedExternally, val end: Cartographic = definedExternally, val ellipsoid: Ellipsoid = definedExternally)

Initializes a rhumb line on the ellipsoid connecting the two provided planetodetic points.

Link copied to clipboard

An appearance for geometry on the surface of the ellipsoid like PolygonGeometry and RectangleGeometry, which supports all materials like MaterialAppearance with {@link MaterialAppearance.MaterialSupport.ALL}. However, this appearance requires fewer vertex attributes since the fragment shader can procedurally compute normal, tangent, and bitangent.

Link copied to clipboard
external class EllipsoidTangentPlane(var origin: Cartesian3, var ellipsoid: Ellipsoid = definedExternally)

A plane tangent to the provided ellipsoid at the provided origin. If origin is not on the surface of the ellipsoid, it's surface projection will be used. If origin is at the center of the ellipsoid, an exception will be thrown.

Link copied to clipboard

A very simple TerrainProvider that produces geometry by tessellating an ellipsoidal surface.

Link copied to clipboard
external class Entity

Entity instances aggregate multiple forms of visualization into a single high-level object. They can be created manually and added to Viewer.entities or be produced by data sources, such as CzmlDataSource and GeoJsonDataSource.

Link copied to clipboard
external class EntityCluster

Defines how screen space objects (billboards, points, labels) are clustered.

Link copied to clipboard
external class EntityCollection

An observable collection of Entity instances where each entity has a unique id.

Link copied to clipboard
external class EntityView(var entity: Entity, var scene: Scene, var ellipsoid: Ellipsoid = definedExternally)

A utility object for tracking an entity with the camera.

Link copied to clipboard
typealias ErrorEvent = (err: TileProviderError) -> Unit

A function that is called when an error occurs.

Link copied to clipboard
external class Event<Listener : Function<Unit>>

A generic utility class for managing subscribers for a particular event. This class is usually instantiated inside of a container class and exposed as a property for others to subscribe to.

Link copied to clipboard
external class EventHelper

A convenience object that simplifies the common pattern of attaching event listeners to several events, then removing all those listeners at once later, for example, in a destroy method.

Link copied to clipboard
typealias exportKmlModelCallback = (model: ModelGraphics, time: JulianDate, externalFiles: Any) -> String

Since KML does not support glTF models, this callback is required to specify what URL to use for the model in the KML document. It can also be used to add additional files to the externalFiles object, which is the list of files embedded in the exported KMZ, or otherwise returned with the KML string when exporting.

Link copied to clipboard
external interface ExportKmlOptions
Link copied to clipboard
external interface exportKmlResultKml
Link copied to clipboard
external interface exportKmlResultKmz
Link copied to clipboard
external class Expression(val expression: String = definedExternally, defines: Any? = definedExternally) : StyleExpression

An expression for a style applied to a Cesium3DTileset.

Link copied to clipboard
sealed external interface ExtrapolationType

Constants to determine how an interpolated value is extrapolated when querying outside the bounds of available data.

Link copied to clipboard
external object FeatureDetection

A set of functions to detect whether the current browser supports various features.

Link copied to clipboard
typealias FlightCancelledCallback = () -> Unit

A function that will execute when a flight is cancelled.

Link copied to clipboard
typealias FlightCompleteCallback = () -> Unit

A function that will execute when a flight completes.

Link copied to clipboard
external class Fog

Blends the atmosphere to geometry far from the camera for horizon views. Allows for additional performance improvements by rendering less geometry and dispatching less terrain requests.

Link copied to clipboard

Optimization option. Used as a callback when Cesium3DTileset.foveatedScreenSpaceError is true to control how much to raise the screen space error for tiles outside the foveated cone, interpolating between Cesium3DTileset.foveatedMinimumScreenSpaceErrorRelaxation and Cesium3DTileset.maximumScreenSpaceError.

Link copied to clipboard
external class FrameRateMonitor

Monitors the frame rate (frames per second) in a Scene and raises an event if the frame rate is lower than a threshold. Later, if the frame rate returns to the required level, a separate event is raised. To avoid creating multiple FrameRateMonitors for a single Scene, use FrameRateMonitor.fromScene instead of constructing an instance explicitly.

Link copied to clipboard

Describes a frustum at the given the origin and orientation.

Link copied to clipboard

A description of the outline of a frustum with the given the origin and orientation.

Link copied to clipboard
external object Fullscreen

Browser-independent functions for working with the standard fullscreen API.

Link copied to clipboard
external class GeocoderService

Provides geocoding through an external service. This type describes an interface and is not intended to be used.

Link copied to clipboard
sealed external interface GeocodeType

The type of geocoding to be performed by a GeocoderService.

Link copied to clipboard
external class GeographicProjection(val ellipsoid: Ellipsoid = definedExternally)

A simple map projection where longitude and latitude are linearly mapped to X and Y by multiplying them by the Ellipsoid.maximumRadius. This projection is commonly known as geographic, equirectangular, equidistant cylindrical, or plate carrée. When using the WGS84 ellipsoid, it is also known as EPSG:4326.

Link copied to clipboard
external class GeographicTilingScheme(options: GeographicTilingScheme.ConstructorOptions? = definedExternally) : TilingScheme

A tiling scheme for geometry referenced to a simple GeographicProjection where longitude and latitude are directly mapped to X and Y. This projection is commonly known as geographic, equirectangular, equidistant cylindrical, or plate carrée.

Link copied to clipboard
external class GeoJsonDataSource(var name: String = definedExternally)

A DataSource which processes both GeoJSON and TopoJSON data. simplestyle-spec properties will also be used if they are present.

Link copied to clipboard
external class Geometry(options: Geometry.ConstructorOptions)

A geometry representation with attributes forming vertices and optional index data defining primitives. Geometries and an Appearance, which describes the shading, can be assigned to a Primitive for visualization. A Primitive can be created from many heterogeneous - in many cases - geometries for performance.

Link copied to clipboard
external class GeometryAttribute

Values and type information for geometry attributes. A Geometry generally contains one or more attributes. All attributes together form the geometry's vertices.

Link copied to clipboard
external class GeometryAttributes

Attributes, which make up a geometry's vertices. Each property in this object corresponds to a GeometryAttribute containing the attribute's data.

Link copied to clipboard
typealias GeometryCallback = (x: Double, y: Double, level: Double) -> Any
Link copied to clipboard
external class GeometryFactory

Base class for all geometry creation utility classes that can be passed to GeometryInstance for asynchronous geometry creation.

Link copied to clipboard

Geometry instancing allows one Geometry object to be positions in several different locations and colored uniquely. For example, one BoxGeometry can be instanced several times, each with a different modelMatrix to change its position, rotation, and scale.

Link copied to clipboard

Values and type information for per-instance geometry attributes.

Link copied to clipboard
external object GeometryPipeline

Content pipeline functions for geometries.

Link copied to clipboard

An abstract class for updating geometry entities.

Link copied to clipboard
external class GeometryVisualizer(scene: Scene, entityCollection: EntityCollection, primitives: PrimitiveCollection? = definedExternally, groundPrimitives: PrimitiveCollection? = definedExternally) : Visualizer

A general purpose visualizer for geometry represented by Primitive instances.

Link copied to clipboard
external class GetFeatureInfoFormat(type: String, format: String? = definedExternally, callback: Function<*>? = definedExternally)

Describes the format in which to request GetFeatureInfo from a Web Map Service (WMS) server.

Link copied to clipboard
external class Globe(var ellipsoid: Ellipsoid = definedExternally)

The globe rendered in the scene, including its terrain (Globe.terrainProvider) and imagery layers (Globe.imageryLayers). Access the globe using Scene.globe.

Link copied to clipboard
external class GlobeTranslucency

Properties for controlling globe translucency.

Link copied to clipboard
typealias GltfCallback = (gltf: Any) -> Unit

Interface for the function that is called with the loaded gltf object once loaded.

Link copied to clipboard

The GPM metadata for a Ground-Space Indirect implementation stored locally (i.e. a tile and/or leaf node).

Link copied to clipboard
To construct a GoogleEarthEnterpriseImageryProvider, call [GoogleEarthEnterpriseImageryProvider.fromMetadata]. Do not call the constructor directly.
Link copied to clipboard
To construct a GoogleEarthEnterpriseMapsProvider, call [GoogleEarthEnterpriseImageryProvider.fromUrl]. Do not call the constructor directly.
Link copied to clipboard
To construct GoogleEarthEnterpriseMetadata, call [GoogleEarthEnterpriseMetadata.fromUrl]. Do not call the constructor directly.
Link copied to clipboard

Terrain data for a single tile from a Google Earth Enterprise server.

Link copied to clipboard
To construct a GoogleEarthEnterpriseTerrainProvider, call {@link GoogleEarthEnterpriseTerrainProvider.fromMetadata}. Do not call the constructor directly.
Link copied to clipboard
external object GoogleMaps

Default settings for accessing the Google Maps API.
An API key is only required if you are directly using any Google Maps APIs, such as through createGooglePhotorealistic3DTileset. Follow instructions for managing API keys for the Google Maps Platform at https://developers.google.com/maps/documentation/embed/get-api-key

Link copied to clipboard
external class GpxDataSource

A DataSource which processes the GPS Exchange Format (GPX).

Link copied to clipboard
external class GregorianDate(var year: Int = definedExternally, var month: Int = definedExternally, var day: Int = definedExternally, var hour: Int = definedExternally, var minute: Int = definedExternally, var second: Int = definedExternally, var millisecond: Int = definedExternally, var isLeapSecond: Boolean = definedExternally)

Represents a Gregorian date in a more precise format than the JavaScript Date object. In addition to submillisecond precision, this object can also represent leap seconds.

Link copied to clipboard

An ImageryProvider that draws a wireframe grid on every tile with controllable background and glow. May be useful for custom rendering effects or debugging terrain.

Link copied to clipboard

A MaterialProperty that maps to grid Material uniforms.

Link copied to clipboard

An abstract class for updating ground geometry entities.

Link copied to clipboard

A description of a polyline on terrain or 3D Tiles. Only to be used with GroundPolylinePrimitive.

Link copied to clipboard
external class GroundPolylinePrimitive(options: GroundPolylinePrimitive.ConstructorOptions? = definedExternally)

A GroundPolylinePrimitive represents a polyline draped over the terrain or 3D Tiles in the Scene.

Link copied to clipboard
external class GroundPrimitive(options: GroundPrimitive.ConstructorOptions? = definedExternally)

A ground primitive represents geometry draped over terrain or 3D Tiles in the Scene.

Link copied to clipboard
external class HeadingPitchRange(var heading: Double = definedExternally, var pitch: Double = definedExternally, var range: Double = definedExternally)

Defines a heading angle, pitch angle, and range in a local frame. Heading is the rotation from the local east direction where a positive angle is increasing southward. Pitch is the rotation from the local xy-plane. Positive pitch angles are above the plane. Negative pitch angles are below the plane. Range is the distance from the center of the frame.

Link copied to clipboard
external class HeadingPitchRoll(var heading: Double = definedExternally, var pitch: Double = definedExternally, var roll: Double = definedExternally)

A rotation expressed as a heading, pitch, and roll. Heading is the rotation about the negative z axis. Pitch is the rotation about the negative y axis. Roll is the rotation about the positive x axis.

Link copied to clipboard

An orientation given by numeric heading, pitch, and roll

Link copied to clipboard
sealed external interface HeightmapEncoding

The encoding that is used for a heightmap

Link copied to clipboard

Terrain data for a single tile where the terrain data is represented as a heightmap. A heightmap is a rectangular array of heights in row-major order from north to south and west to east.

Link copied to clipboard
sealed external interface HeightReference

Represents the position relative to the terrain.

Link copied to clipboard

An InterpolationAlgorithm for performing Hermite interpolation.

Link copied to clipboard

A Hermite spline is a cubic interpolating spline. Points, incoming tangents, outgoing tangents, and times must be defined for each control point. The outgoing tangents are defined for points 0, n - 2 and the incoming tangents are defined for points 1, n - 1. For example, when interpolating a segment of the curve between points[i] and points[i + 1], the tangents at the points will be outTangents[i] and inTangents[i], respectively.

Link copied to clipboard
sealed external interface HorizontalOrigin

The horizontal location of an origin relative to an object, e.g., a Billboard or Label. For example, setting the horizontal origin to LEFT or RIGHT will display a billboard to the left or right (in screen space) of the anchor position.

Link copied to clipboard

An I3SDataProvider is the main public class for I3S support. The url option should return a scene object. Currently supported I3S versions are 1.6 and 1.7/1.8 (OGC I3S 1.2). I3SFeature and I3SNode classes implement the Object Model for I3S entities, with public interfaces.

Link copied to clipboard
external class I3SFeature

This class implements an I3S Feature.

Link copied to clipboard
external class I3SField

This class implements an I3S Field which is custom data attached to nodes

Link copied to clipboard
external class I3SGeometry

This class implements an I3S Geometry. Each I3SGeometry generates an in memory glTF to be used as content for a Cesium3DTile

Link copied to clipboard
external class I3SLayer

This class implements an I3S layer. In CesiumJS each I3SLayer creates a Cesium3DTileset.

Link copied to clipboard
external class I3SNode

This class implements an I3S Node. In CesiumJS each I3SNode creates a Cesium3DTile.

Link copied to clipboard
external class I3SStatistics

This class implements an I3S statistics for Building Scene Layer.

Link copied to clipboard
external class I3SSublayer

This class implements an I3S sublayer for Building Scene Layer.

Link copied to clipboard
external class I3SSymbology

This class implements an I3S symbology for I3S Layers.

Link copied to clipboard
external class ImageBasedLighting

Properties for managing image-based lighting on tilesets and models. Also manages the necessary resources and textures.

Link copied to clipboard

A MaterialProperty that maps to image Material uniforms.

Link copied to clipboard
external class ImageryLayer(val imageryProvider: ImageryProvider = definedExternally, options: ImageryLayer.ConstructorOptions? = definedExternally)

An imagery layer that displays tiled image data from a single imagery provider on a Globe.

Link copied to clipboard
external class ImageryLayerCollection

An ordered collection of imagery layers.

Link copied to clipboard

A function that is called when an error occurs.

Link copied to clipboard

Describes a rasterized feature, such as a point, polygon, polyline, etc., in an imagery layer.

Link copied to clipboard

A function that is called when the provider has been created

Link copied to clipboard
abstract external class ImageryProvider

Provides imagery to be displayed on the surface of an ellipsoid. This type describes an interface and is not intended to be instantiated directly.

Link copied to clipboard

The format in which ImageryProvider methods return an image may vary by provider, configuration, or server settings. Most common are HTMLImageElement, HTMLCanvasElement, or on supported browsers, ImageBitmap.

Link copied to clipboard
sealed external interface IndexDatatype

Constants for WebGL index datatypes. These corresponds to the type parameter of drawElements.

Link copied to clipboard
external interface InterpolationAlgorithm

The interface for interpolation algorithms.

Link copied to clipboard
sealed external interface Intersect

This enumerated type is used in determining where, relative to the frustum, an object is located. The object can either be fully contained within the frustum (INSIDE), partially inside the frustum and partially outside (INTERSECTING), or somewhere entirely outside of the frustum's 6 planes (OUTSIDE).

Link copied to clipboard
external object Intersections2D

Contains functions for operating on 2D triangles.

Link copied to clipboard
external object IntersectionTests

Functions for computing the intersection between geometries such as rays, planes, triangles, and ellipsoids.

Link copied to clipboard
external class Interval(var start: Double = definedExternally, var stop: Double = definedExternally)

Represents the closed interval start, stop.

Link copied to clipboard
external object Ion

Default settings for accessing the Cesium ion API.

Link copied to clipboard

Provides geocoding through Cesium ion.

Link copied to clipboard
external class IonImageryProvider
To construct a IonImageryProvider, call [IonImageryProvider.fromAssetId]. Do not call the constructor directly.
Link copied to clipboard
external class IonResource(endpoint: Any, endpointResource: Resource)

A Resource instance that encapsulates Cesium ion asset access. This object is normally not instantiated directly, use IonResource.fromAssetId.

Link copied to clipboard
sealed external interface IonWorldImageryStyle

The types of imagery provided by createWorldImagery.

Link copied to clipboard
external object Iso8601

Constants related to ISO8601 support.

Link copied to clipboard
external class JulianDate(julianDayNumber: Double? = definedExternally, var secondsOfDay: Double = definedExternally, timeStandard: TimeStandard? = definedExternally)

Represents an astronomical Julian date, which is the number of days since noon on January 1, -4712 (4713 BC). For increased precision, this class stores the whole number part of the date and the seconds part of the date in separate components. In order to be safe for arithmetic and represent leap seconds, the date is always stored in the International Atomic Time standard TimeStandard.TAI.

Link copied to clipboard
sealed external interface KeyboardEventModifier

This enumerated type is for representing keyboard modifiers. These are keys that are held down in addition to other event types.

Link copied to clipboard
external class KmlCamera(position: Cartesian3, headingPitchRoll: HeadingPitchRoll)

Representation of from KML

Link copied to clipboard
external class KmlDataSource(options: KmlDataSource.ConstructorOptions? = definedExternally)

A DataSource which processes Keyhole Markup Language 2.2 (KML).

Link copied to clipboard
external class KmlFeatureData

Contains KML Feature data loaded into the Entity.kml property by KmlDataSource.

Link copied to clipboard
external class KmlLookAt(position: Cartesian3, headingPitchRange: HeadingPitchRange)
Link copied to clipboard
external class KmlTour(var name: String, var id: String, var playlist: ReadonlyArray<Any>)

Describes a KmlTour, which uses KmlTourFlyTo, and KmlTourWait to guide the camera to a specified destinations on given time intervals.

Link copied to clipboard
external class KmlTourFlyTo(duration: Double, flyToMode: String, view: KmlCamera)

Transitions the KmlTour to the next destination. This transition is facilitated using a specified flyToMode over a given number of seconds.

Link copied to clipboard
external class KmlTourWait(duration: Double)

Pauses the KmlTour for a given number of seconds.

Link copied to clipboard
external class Label
Create labels by calling [LabelCollection.add]. Do not call the constructor directly.
Link copied to clipboard
external class LabelCollection(options: LabelCollection.ConstructorOptions? = definedExternally)

A renderable collection of labels. Labels are viewport-aligned text positioned in the 3D scene. Each label can have a different font, color, scale, etc.

Link copied to clipboard
external class LabelGraphics

Describes a two dimensional label located at the position of the containing Entity.

Link copied to clipboard
sealed external interface LabelStyle

Describes how to draw a label.

Link copied to clipboard
external class LabelVisualizer(entityCluster: EntityCluster, entityCollection: EntityCollection) : Visualizer

A Visualizer which maps the LabelGraphics instance in Entity.label to a Label.

Link copied to clipboard

An InterpolationAlgorithm for performing Lagrange interpolation.

Link copied to clipboard
external class LeapSecond(date: JulianDate? = definedExternally, var offset: Double = definedExternally)

Describes a single leap second, which is constructed from a JulianDate and a numerical offset representing the number of seconds TAI is ahead of the UTC time standard.

Link copied to clipboard
abstract external class Light

A light source. This type describes an interface and is not intended to be instantiated directly. Together, color and intensity produce a high-dynamic-range light color. intensity can also be used individually to dim or brighten the light without changing the hue.

Link copied to clipboard
sealed external interface LightingModel

The lighting model to use for lighting a Model.

Link copied to clipboard
external object LinearApproximation

An InterpolationAlgorithm for performing linear interpolation.

Link copied to clipboard

A spline that uses piecewise linear interpolation to create a curve.

Link copied to clipboard
typealias LocalFrameToFixedFrame = (origin: Cartesian3, ellipsoid: Ellipsoid?, result: Matrix4?) -> Matrix4

Computes a 4x4 transformation matrix from a reference frame centered at the provided origin to the provided ellipsoid's fixed reference frame.

Link copied to clipboard

Provides tiled imagery hosted by Mapbox.

Link copied to clipboard

Provides tiled imagery hosted by Mapbox.

Link copied to clipboard
sealed external interface MapMode2D

Describes how the map will operate in 2D.

Link copied to clipboard
external class MapProjection

Defines how geodetic ellipsoid coordinates (Cartographic) project to a flat map like Cesium's 2D and Columbus View modes.

Link copied to clipboard
external class Material(options: Material.ConstructorOptions? = definedExternally)

A Material defines surface appearance through a combination of diffuse, specular, normal, emission, and alpha components. These values are specified using a JSON schema called Fabric which gets parsed and assembled into glsl shader code behind-the-scenes. Check out the wiki page for more details on Fabric.

Link copied to clipboard
external class MaterialAppearance(options: MaterialAppearance.ConstructorOptions? = definedExternally)

An appearance for arbitrary geometry (as opposed to EllipsoidSurfaceAppearance, for example) that supports shading with materials.

Link copied to clipboard
abstract external class MaterialProperty

The interface for all Property objects that represent Material uniforms. This type defines an interface and cannot be instantiated directly.

Link copied to clipboard
external object Math

Math functions.

Link copied to clipboard
external class Matrix2(column0Row0: Double? = definedExternally, column1Row0: Double? = definedExternally, column0Row1: Double? = definedExternally, column1Row1: Double? = definedExternally)

A 2x2 matrix, indexable as a column-major order array. Constructor parameters are in row-major order for code readability.

Link copied to clipboard
external class Matrix3(column0Row0: Double? = definedExternally, column1Row0: Double? = definedExternally, column2Row0: Double? = definedExternally, column0Row1: Double? = definedExternally, column1Row1: Double? = definedExternally, column2Row1: Double? = definedExternally, column0Row2: Double? = definedExternally, column1Row2: Double? = definedExternally, column2Row2: Double? = definedExternally)

A 3x3 matrix, indexable as a column-major order array. Constructor parameters are in row-major order for code readability.

Link copied to clipboard
external class Matrix4(column0Row0: Double? = definedExternally, column1Row0: Double? = definedExternally, column2Row0: Double? = definedExternally, column3Row0: Double? = definedExternally, column0Row1: Double? = definedExternally, column1Row1: Double? = definedExternally, column2Row1: Double? = definedExternally, column3Row1: Double? = definedExternally, column0Row2: Double? = definedExternally, column1Row2: Double? = definedExternally, column2Row2: Double? = definedExternally, column3Row2: Double? = definedExternally, column0Row3: Double? = definedExternally, column1Row3: Double? = definedExternally, column2Row3: Double? = definedExternally, column3Row3: Double? = definedExternally)

A 4x4 matrix, indexable as a column-major order array. Constructor parameters are in row-major order for code readability.

Link copied to clipboard
typealias MergeCallback = (leftData: Any, rightData: Any) -> Any

Function interface for merging interval data.

Link copied to clipboard
typealias mergeSortComparator = (a: Any, b: Any, userDefinedObject: Any?) -> Double

A function used to compare two items while performing a merge sort.

Link copied to clipboard

A metadata class.

Link copied to clipboard

A metadata property, as part of a MetadataClass.

Link copied to clipboard
sealed external interface MetadataComponentType

An enum of metadata component types.

Link copied to clipboard

A metadata enum.

Link copied to clipboard

A metadata enum value.

Link copied to clipboard

A schema containing classes and enums.

Link copied to clipboard
sealed external interface MetadataType

An enum of metadata types. These metadata types are containers containing one or more components of type MetadataComponentType

Link copied to clipboard
external class Model
To construct a Model, call [Model.fromGltfAsync]. Do not call the constructor directly.
A 3D model based on glTF, the runtime asset format for WebGL, OpenGL ES, and OpenGL.
Link copied to clipboard
external class ModelAnimation
Create animations by calling [ModelAnimationCollection.add]. Do not call the constructor directly.
Link copied to clipboard
Access a model's animations [Model.activeAnimations]. Do not call the constructor directly
Link copied to clipboard
sealed external interface ModelAnimationLoop

Determines if and how a glTF animation is looped.

Link copied to clipboard
external class ModelFeature

A feature of a Model.

Link copied to clipboard
external class ModelGraphics

A 3D model based on glTF, the runtime asset format for WebGL, OpenGL ES, and OpenGL. The position and orientation of the model is determined by the containing Entity.

Link copied to clipboard
external class ModelNode
Use [Model.getNode] to get a node from a loaded model. Do not call the constructor directly.
Link copied to clipboard
external class ModelVisualizer(scene: Scene, entityCollection: EntityCollection) : Visualizer

A Visualizer which maps Entity.model to a Model.

Link copied to clipboard
external class Moon(options: Moon.ConstructorOptions? = definedExternally)

Draws the Moon in 3D.

Link copied to clipboard

A spline that linearly interpolates over an array of weight values used by morph targets.

Link copied to clipboard
Link copied to clipboard
external class NearFarScalar(var near: Double = definedExternally, var nearValue: Double = definedExternally, var far: Double = definedExternally, var farValue: Double = definedExternally)

Represents a scalar value's lower and upper bound at a near distance and far distance in eye space.

Link copied to clipboard

A TileDiscardPolicy specifying that tile images should never be discard.

Link copied to clipboard
typealias newClusterCallback = (clusteredEntities: ReadonlyArray<Entity>, cluster: Any) -> Unit

A event listener function used to style clusters.

Link copied to clipboard
Link copied to clipboard
external class Occluder(occluderBoundingSphere: BoundingSphere, var cameraPosition: Cartesian3)

Creates an Occluder derived from an object's position and radius, as well as the camera position. The occluder can be used to determine whether or not other objects are visible or hidden behind the visible horizon defined by the occluder and camera position.

Link copied to clipboard
external class OpenCageGeocoderService(val url: Resource, apiKey: String, params: Any? = definedExternally)

Provides geocoding via a OpenCage server.

Link copied to clipboard

An imagery provider that provides tiled imagery hosted by OpenStreetMap or another provider of Slippy tiles. The default url connects to OpenStreetMap's volunteer-run servers, so you must conform to their Tile Usage Policy.

Link copied to clipboard
external class OrientedBoundingBox(var center: Cartesian3 = definedExternally, var halfAxes: Matrix3 = definedExternally)

Creates an instance of an OrientedBoundingBox. An OrientedBoundingBox of some object is a closed and convex rectangular cuboid. It can provide a tighter bounding volume than BoundingSphere or AxisAlignedBoundingBox in many cases.

Link copied to clipboard
external class OrthographicFrustum

The viewing frustum is defined by 6 planes. Each plane is represented by a Cartesian4 object, where the x, y, and z components define the unit vector normal to the plane, and the w component is the distance of the plane from the origin/camera position.

Link copied to clipboard

The viewing frustum is defined by 6 planes. Each plane is represented by a Cartesian4 object, where the x, y, and z components define the unit vector normal to the plane, and the w component is the distance of the plane from the origin/camera position.

Link copied to clipboard
external interface Packable<T : Any>

Static interface for types which can store their values as packed elements in an array. These methods and properties are expected to be defined on a constructor function.

Link copied to clipboard
external object PackableForInterpolation

Static interface for Packable types which are interpolated in a different representation than their packed value. These methods and properties are expected to be defined on a constructor function.

Link copied to clipboard
external class Particle(options: Particle.ConstructorOptions)

A particle emitted by a ParticleSystem.

Link copied to clipboard
external class ParticleBurst

Represents a burst of Particles from a ParticleSystem at a given time in the systems lifetime.

Link copied to clipboard
abstract external class ParticleEmitter

An object that initializes a Particle from a ParticleSystem.

Link copied to clipboard
external class ParticleSystem(options: ParticleSystem.ConstructorOptions? = definedExternally)

A ParticleSystem manages the updating and display of a collection of particles.

Link copied to clipboard
external class PathGraphics

Describes a polyline defined as the path made by an Entity as it moves over time.

Link copied to clipboard
external class PathVisualizer(scene: Scene, entityCollection: EntityCollection) : Visualizer

A Visualizer which maps Entity.path to a Polyline.

Link copied to clipboard
external class PeliasGeocoderService(val url: Resource)

Provides geocoding via a Pelias server.

Link copied to clipboard

An appearance for GeometryInstance instances with color attributes. This allows several geometry instances, each with a different color, to be drawn with the same Primitive as shown in the second example below.

Link copied to clipboard
external class PerspectiveFrustum

The viewing frustum is defined by 6 planes. Each plane is represented by a Cartesian4 object, where the x, y, and z components define the unit vector normal to the plane, and the w component is the distance of the plane from the origin/camera position.

Link copied to clipboard

The viewing frustum is defined by 6 planes. Each plane is represented by a Cartesian4 object, where the x, y, and z components define the unit vector normal to the plane, and the w component is the distance of the plane from the origin/camera position.

Link copied to clipboard
external interface PickedMetadataInfo

Information about metadata that is supposed to be picked

Link copied to clipboard
external class PinBuilder

A utility class for generating custom map pins as canvas elements.

Link copied to clipboard
sealed external interface PixelDatatype

The data type of a pixel.

Link copied to clipboard
sealed external interface PixelFormat

The format of a pixel, i.e., the number of components it has and what they represent.

Link copied to clipboard
external class Plane(var normal: Cartesian3, var distance: Double)

A plane in Hessian Normal Form defined by

Link copied to clipboard
external class PlaneGeometry(options: PlaneGeometry.ConstructorOptions? = definedExternally)

Describes geometry representing a plane centered at the origin, with a unit width and length.

Link copied to clipboard
external class PlaneGeometryUpdater(entity: Entity, scene: Scene)

A GeometryUpdater for planes. Clients do not normally create this class directly, but instead rely on DataSourceDisplay.

Link copied to clipboard
external class PlaneGraphics

Describes a plane. The center position and orientation are determined by the containing Entity.

Link copied to clipboard
external class PlaneOutlineGeometry

Describes geometry representing the outline of a plane centered at the origin, with a unit width and length.

Link copied to clipboard
external class PointCloudShading

Options for performing point attenuation based on geometric error when rendering point clouds using 3D Tiles.

Link copied to clipboard
external class PointGraphics

Describes a graphical point located at the position of the containing Entity.

Link copied to clipboard
external class PointPrimitive
A point is created and its initial properties are set by calling [PointPrimitiveCollection.add]. Do not call the constructor directly.
A graphical point positioned in the 3D scene, that is created and rendered using a [PointPrimitiveCollection].
Link copied to clipboard

A renderable collection of points.

Link copied to clipboard
external class PointVisualizer(entityCluster: EntityCluster, entityCollection: EntityCollection) : Visualizer
Link copied to clipboard

A description of a polygon on the ellipsoid. The polygon is defined by a polygon hierarchy. Polygon geometry can be rendered with both Primitive and GroundPrimitive.

Link copied to clipboard
external class PolygonGeometryUpdater(entity: Entity, scene: Scene)

A GeometryUpdater for polygons. Clients do not normally create this class directly, but instead rely on DataSourceDisplay.

Link copied to clipboard
external class PolygonGraphics

Describes a polygon defined by an hierarchy of linear rings which make up the outer shape and any nested holes. The polygon conforms to the curvature of the globe and can be placed on the surface or at altitude and can optionally be extruded into a volume.

Link copied to clipboard
external class PolygonHierarchy(var positions: ReadonlyArray<Cartesian3> = definedExternally, var holes: ReadonlyArray<PolygonHierarchy> = definedExternally)

An hierarchy of linear rings which define a polygon and its holes. The holes themselves may also have holes which nest inner polygons.

Link copied to clipboard

A description of the outline of a polygon on the ellipsoid. The polygon is defined by a polygon hierarchy.

Link copied to clipboard
external class Polyline
Create this by calling [PolylineCollection.add]. Do not call the constructor directly.
Link copied to clipboard

A MaterialProperty that maps to PolylineArrow Material uniforms.

Link copied to clipboard
external class PolylineCollection

A renderable collection of polylines.

Link copied to clipboard
external class PolylineColorAppearance(options: PolylineColorAppearance.ConstructorOptions? = definedExternally)

An appearance for GeometryInstance instances with color attributes and PolylineGeometry or GroundPolylineGeometry. This allows several geometry instances, each with a different color, to be drawn with the same Primitive.

Link copied to clipboard

A MaterialProperty that maps to polyline dash Material uniforms.

Link copied to clipboard

A description of a polyline modeled as a line strip; the first two positions define a line segment, and each additional position defines a line segment from the previous position. The polyline is capable of displaying with a material.

Link copied to clipboard
external class PolylineGeometryUpdater(val entity: Entity, scene: Scene)

A GeometryUpdater for polylines. Clients do not normally create this class directly, but instead rely on DataSourceDisplay.

Link copied to clipboard

A MaterialProperty that maps to polyline glow Material uniforms.

Link copied to clipboard
external class PolylineGraphics

Describes a polyline. The first two positions define a line segment, and each additional position defines a line segment from the previous position. The segments can be linear connected points, great arcs, or clamped to terrain.

Link copied to clipboard

An appearance for PolylineGeometry that supports shading with materials.

Link copied to clipboard

A MaterialProperty that maps to polyline outline Material uniforms.

Link copied to clipboard
external class PolylineVisualizer(scene: Scene, entityCollection: EntityCollection, primitives: PrimitiveCollection? = definedExternally, groundPrimitives: PrimitiveCollection? = definedExternally) : Visualizer

A visualizer for polylines represented by Primitive instances.

Link copied to clipboard

A description of a polyline with a volume (a 2D shape extruded along a polyline).

Link copied to clipboard
external class PolylineVolumeGeometryUpdater(entity: Entity, scene: Scene)

A GeometryUpdater for polyline volumes. Clients do not normally create this class directly, but instead rely on DataSourceDisplay.

Link copied to clipboard
external class PolylineVolumeGraphics

Describes a polyline volume defined as a line strip and corresponding two dimensional shape which is extruded along it. The resulting volume conforms to the curvature of the globe.

Link copied to clipboard

A description of a polyline with a volume (a 2D shape extruded along a polyline).

Link copied to clipboard
abstract external class PositionProperty

The interface for all Property objects that define a world location as a Cartesian3 with an associated ReferenceFrame. This type defines an interface and cannot be instantiated directly.

Link copied to clipboard
external class PositionPropertyArray(value: ReadonlyArray<Property>? = definedExternally, var referenceFrame: ReferenceFrame = definedExternally)

A Property whose value is an array whose items are the computed value of other PositionProperty instances.

Link copied to clipboard

Runs a post-process stage on either the texture rendered by the scene or the output of a previous post-process stage.

Link copied to clipboard
Link copied to clipboard

A collection of PostProcessStages or other post-process composite stages that execute together logically.

Link copied to clipboard
external object PostProcessStageLibrary

Contains functions for creating common post-process stages.

Link copied to clipboard
sealed external interface PostProcessStageSampleMode

Determines how input texture to a PostProcessStage is sampled.

Link copied to clipboard
external class Primitive(options: Primitive.ConstructorOptions? = definedExternally)

A primitive represents geometry in the Scene. The geometry can be from a single GeometryInstance as shown in example 1 below, or from an array of instances, even if the geometry is from different geometry types, e.g., an RectangleGeometry and an EllipsoidGeometry as shown in Code Example 2.

Link copied to clipboard
external class PrimitiveCollection

A collection of primitives. This is most often used with Scene.primitives, but PrimitiveCollection is also a primitive itself so collections can be added to collections forming a hierarchy.

Link copied to clipboard
sealed external interface PrimitiveType

The type of a geometric primitive, i.e., points, lines, and triangles.

Link copied to clipboard
typealias PriorityCallback = () -> Double

The function that is called to update the request's priority, which occurs once per frame.

Link copied to clipboard
abstract external class Property

The interface for all properties, which represent a value that can optionally vary over time. This type defines an interface and cannot be instantiated directly.

Link copied to clipboard
external class PropertyArray(value: ReadonlyArray<Property>? = definedExternally)

A Property whose value is an array whose items are the computed value of other property instances.

Link copied to clipboard
external class PropertyBag(value: Any? = definedExternally, createPropertyCallback: Function<*>? = definedExternally)

A Property whose value is a key-value mapping of property names to the computed value of other properties.

Link copied to clipboard
external class Proxy

Base class for proxying requested made by Resource.

Link copied to clipboard
external object QuadraticRealPolynomial

Defines functions for 2nd order polynomial functions of one variable with only real coefficients.

Link copied to clipboard

Terrain data for a single tile where the terrain data is represented as a quantized mesh. A quantized mesh consists of three vertex attributes, longitude, latitude, and height. All attributes are expressed as 16-bit values in the range 0 to 32767. Longitude and latitude are zero at the southwest corner of the tile and 32767 at the northeast corner. Height is zero at the minimum height in the tile and 32767 at the maximum height in the tile.

Link copied to clipboard
external object QuarticRealPolynomial

Defines functions for 4th order polynomial functions of one variable with only real coefficients.

Link copied to clipboard
external class Quaternion(var x: Double = definedExternally, var y: Double = definedExternally, var z: Double = definedExternally, var w: Double = definedExternally)

A set of 4-dimensional coordinates used to represent rotation in 3-dimensional space.

Link copied to clipboard

A spline that uses spherical linear (slerp) interpolation to create a quaternion curve. The generated curve is in the class C1.

Link copied to clipboard
external class Queue

A queue that can enqueue items at the end, and dequeue items from the front.

Link copied to clipboard
external class Ray(var origin: Cartesian3 = definedExternally, var direction: Cartesian3 = definedExternally)

Represents a ray that extends infinitely from the provided origin in the provided direction.

Link copied to clipboard
external class Rectangle(var west: Double = definedExternally, var south: Double = definedExternally, var east: Double = definedExternally, var north: Double = definedExternally)

A two dimensional region specified as longitude and latitude coordinates.

Link copied to clipboard

A description of a cartographic rectangle on an ellipsoid centered at the origin. Rectangle geometry can be rendered with both Primitive and GroundPrimitive.

Link copied to clipboard
external class RectangleGeometryUpdater(entity: Entity, scene: Scene)

A GeometryUpdater for rectangles. Clients do not normally create this class directly, but instead rely on DataSourceDisplay.

Link copied to clipboard
external class RectangleGraphics

Describes graphics for a Rectangle. The rectangle conforms to the curvature of the globe and can be placed on the surface or at altitude and can optionally be extruded into a volume.

Link copied to clipboard

A description of the outline of a a cartographic rectangle on an ellipsoid centered at the origin.

Link copied to clipboard
sealed external interface ReferenceFrame

Constants for identifying well-known reference frames.

Link copied to clipboard
external class ReferenceProperty(val targetCollection: EntityCollection, val targetId: String, val targetPropertyNames: ReadonlyArray<String>)

A Property which transparently links to another property on a provided object.

Link copied to clipboard
typealias RemoveCallback = () -> Unit

A function that removes a listener.

Link copied to clipboard
external class Request(options: Request.ConstructorOptions? = definedExternally)

Stores information for making a request. In general this does not need to be constructed directly.

Link copied to clipboard
typealias RequestCallback = () -> Promise<Void>

The function that makes the actual data request.

Link copied to clipboard
external class RequestErrorEvent(var statusCode: Int = definedExternally, var response: Any = definedExternally, responseHeaders: Any? = definedExternally)

An event that is raised when a request encounters an error.

Link copied to clipboard
external object RequestScheduler

The request scheduler is used to track and constrain the number of active requests in order to prioritize incoming requests. The ability to retain control over the number of requests in CesiumJS is important because due to events such as changes in the camera position, a lot of new requests may be generated and a lot of in-flight requests may become redundant. The request scheduler manually constrains the number of requests so that newer requests wait in a shorter queue and don't have to compete for bandwidth with requests that have expired.

Link copied to clipboard
sealed external interface RequestState

State of the request.

Link copied to clipboard
sealed external interface RequestType

An enum identifying the type of request. Used for finer grained logging and priority sorting.

Link copied to clipboard
external class Resource(options: Any)

A resource that includes the location and any other parameters we need to retrieve it or create derived resources. It also provides the ability to retry requests.

Link copied to clipboard
typealias RetryCallback = (resource: Resource?, error: RequestErrorEvent?) -> PromiseResult<Boolean>

A function that returns the value of the property.

Link copied to clipboard
typealias RetryFunction = () -> Unit

A function that will be called to retry the operation.

Link copied to clipboard
external interface Rotation

Represents a Packable number that always interpolates values towards the shortest angle of rotation. This object is never used directly but is instead passed to the constructor of SampledProperty in order to represent a two-dimensional angle of rotation.

Link copied to clipboard
external class RuntimeError(val message: String = definedExternally) : Throwable

Constructs an exception object that is thrown due to an error that can occur at runtime, e.g., out of memory, could not compile shader, etc. If a function may throw this exception, the calling code should be prepared to catch it.

Link copied to clipboard
external class SampledPositionProperty(var referenceFrame: ReferenceFrame = definedExternally, var numberOfDerivatives: Int = definedExternally)
Link copied to clipboard
external class SampledProperty(type: Double, var derivativeTypes: ReadonlyArray<Packable<*>> = definedExternally)

A Property whose value is interpolated for a given time from the provided set of samples and specified interpolation algorithm and degree.

Link copied to clipboard
external class Scene(options: Scene.ConstructorOptions)

The container for all 3D graphical objects and state in a Cesium virtual scene. Generally, a scene is not created directly; instead, it is implicitly created by CesiumWidget.

Link copied to clipboard
sealed external interface SceneMode

Indicates if the scene is viewed in 3D, 2D, or 2.5D Columbus view.

Link copied to clipboard
external object SceneTransforms

Functions that do scene-dependent transforms between rendering-related coordinate systems.

Link copied to clipboard
external class ScreenSpaceCameraController(scene: Scene)

Modifies the camera position and orientation based on mouse input to a canvas.

Link copied to clipboard
external class ScreenSpaceEventHandler(element: HTMLCanvasElement? = definedExternally)

Handles user input events. Custom functions can be added to be executed on when the user enters input.

Link copied to clipboard
sealed external interface ScreenSpaceEventType

This enumerated type is for classifying mouse events: down, up, click, double click, move and move while a button is held down.

Link copied to clipboard
sealed external interface SensorVolumePortionToDisplay

Constants used to indicated what part of the sensor volume to display.

Link copied to clipboard
external class ShadowMap
Use [Viewer.shadowMap] to get the scene's shadow map. Do not construct this directly.
Link copied to clipboard
sealed external interface ShadowMode

Specifies whether the object casts or receives shadows from light sources when shadows are enabled.

Link copied to clipboard
external class ShowGeometryInstanceAttribute(show: Boolean? = definedExternally)

Value and type information for per-instance geometry attribute that determines if the geometry instance will be shown.

Link copied to clipboard

Contains functions for finding the Cartesian coordinates of the sun and the moon in the Earth-centered inertial frame.

Link copied to clipboard

A description of a polyline modeled as a line strip; the first two positions define a line segment, and each additional position defines a line segment from the previous position.

Link copied to clipboard

Provides a single, top-level imagery tile. The single image is assumed to be in the Geographic projection (i.e. WGS84 / EPSG:4326), and will be rendered using a GeographicTilingScheme.

Link copied to clipboard
external class SkyAtmosphere(val ellipsoid: Ellipsoid = definedExternally)

An atmosphere drawn around the limb of the provided ellipsoid. Based on Display of The Earth Taking Into Account Atmospheric Scattering.

Link copied to clipboard
external class SkyBox(options: SkyBox.ConstructorOptions)

A sky box around the scene to draw stars. The sky box is defined using the True Equator Mean Equinox (TEME) axes.

Link copied to clipboard
external class Spdcf(options: Spdcf.ConstructorOptions)

Variables for a Strictly Positive-Definite Correlation Function.

Link copied to clipboard
external class SphereEmitter(var radius: Double = definedExternally)

A ParticleEmitter that emits particles within a sphere. Particles will be positioned randomly within the sphere and have initial velocities emanating from the center of the sphere.

Link copied to clipboard
external class SphereGeometry(options: SphereGeometry.ConstructorOptions? = definedExternally)

A description of a sphere centered at the origin.

Link copied to clipboard
external class SphereOutlineGeometry(options: SphereOutlineGeometry.ConstructorOptions? = definedExternally)

A description of the outline of a sphere.

Link copied to clipboard
external class Spherical(var clock: Double = definedExternally, var cone: Double = definedExternally, var magnitude: Double = definedExternally)

A set of curvilinear 3-dimensional coordinates.

Link copied to clipboard
abstract external class Spline

Creates a curve parameterized and evaluated by time. This type describes an interface and is not intended to be instantiated directly.

Link copied to clipboard
sealed external interface SplitDirection

The direction to display a primitive or ImageryLayer relative to the Scene.splitPosition.

Link copied to clipboard
sealed external interface StencilFunction

Determines the function used to compare stencil values for the stencil test.

Link copied to clipboard
sealed external interface StencilOperation

Determines the action taken based on the result of the stencil test.

Link copied to clipboard

A spline that is composed of piecewise constants representing a step function.

Link copied to clipboard
sealed external interface StorageType

An enum of storage types for covariance information.

Link copied to clipboard

A MaterialProperty that maps to stripe Material uniforms.

Link copied to clipboard
sealed external interface StripeOrientation

Defined the orientation of stripes in StripeMaterialProperty.

Link copied to clipboard
abstract external class StyleExpression

An expression for a style applied to a Cesium3DTileset.

Link copied to clipboard
external class Sun

Draws a sun billboard. This is only supported in 3D and Columbus view.

Link copied to clipboard
external class SunLight : Light

A directional light source that originates from the Sun.

Link copied to clipboard
external class TaskProcessor(workerPath: String, maximumActiveTasks: Double? = definedExternally)

A wrapper around a web worker that allows scheduling tasks for a given worker, returning results asynchronously via a promise.

Link copied to clipboard
external class Terrain(terrainProviderPromise: Promise<TerrainProvider>)

A helper to manage async operations of a terrain provider.

Link copied to clipboard
abstract external class TerrainData

Terrain data for a single tile. This type describes an interface and is not intended to be instantiated directly.

Link copied to clipboard
typealias TerrainErrorEventCallback = (err: Error) -> Unit

A function that is called when an error occurs.

Link copied to clipboard
abstract external class TerrainProvider

Provides terrain or other geometry for the surface of an ellipsoid. The surface geometry is organized into a pyramid of tiles according to a TilingScheme. This type describes an interface and is not intended to be instantiated directly.

Link copied to clipboard

A function that is called when the provider has been created

Link copied to clipboard
sealed external interface TextureMagnificationFilter

Enumerates all possible filters used when magnifying WebGL textures.

Link copied to clipboard
sealed external interface TextureMinificationFilter

Enumerates all possible filters used when minifying WebGL textures.

Link copied to clipboard

A simple struct that serves as a value of a sampler2D-valued uniform. This is used with CustomShader and TextureManager

Link copied to clipboard
external class TileAvailability(tilingScheme: TilingScheme, maximumLevel: Int)

Reports the availability of tiles in a TilingScheme.

Link copied to clipboard

An ImageryProvider that draws a box around every rendered tile in the tiling scheme, and draws a label inside it indicating the X, Y, Level coordinates of the tile. This is mostly useful for debugging terrain and imagery rendering problems.

Link copied to clipboard
abstract external class TileDiscardPolicy

A policy for discarding tile images according to some criteria. This type describes an interface and is not intended to be instantiated directly.

Link copied to clipboard
To construct a TileMapServiceImageryProvider, call [TileMapServiceImageryProvider.fromUrl]. Do not call the constructor directly.
Link copied to clipboard
external class TileProviderError(provider: ImageryProvider, var message: String, var x: Double = definedExternally, var y: Double = definedExternally, var level: Int = definedExternally, var timesRetried: Double = definedExternally, var error: Error = definedExternally)

Provides details about an error that occurred in an ImageryProvider or a TerrainProvider.

Link copied to clipboard
abstract external class TilingScheme

A tiling scheme for geometry or imagery on the surface of an ellipsoid. At level-of-detail zero, the coarsest, least-detailed level, the number of tiles is configurable. At level of detail one, each of the level zero tiles has four children, two in each direction. At level of detail two, each of the level one tiles has four children, two in each direction. This continues for as many levels as are present in the geometry or imagery source.

Link copied to clipboard

Provides functionality for ImageryProviders that have time dynamic imagery

Link copied to clipboard

Provides playback of time-dynamic point cloud data.

Link copied to clipboard
external class TimeInterval

An interval defined by a start and a stop time; optionally including those times as part of the interval. Arbitrary data can optionally be associated with each instance for used with TimeIntervalCollection.

Link copied to clipboard
external class TimeIntervalCollection(intervals: ReadonlyArray<TimeInterval>? = definedExternally)

A non-overlapping collection of TimeInterval instances sorted by start time.

Link copied to clipboard
external class TimeIntervalCollectionPositionProperty(val referenceFrame: ReferenceFrame = definedExternally)
Link copied to clipboard

A Property which is defined by a TimeIntervalCollection, where the data property of each TimeInterval represents the value at time.

Link copied to clipboard
sealed external interface TimeStandard

Provides the type of time standards which JulianDate can take as input.

Link copied to clipboard
sealed external interface Tonemapper

A tonemapping algorithm when rendering with high dynamic range.

Link copied to clipboard
external object Transforms

Contains functions for transforming positions to various reference frames.

Link copied to clipboard
external class TranslationRotationScale(var translation: Cartesian3 = definedExternally, var rotation: Quaternion = definedExternally, var scale: Cartesian3 = definedExternally)

An affine transformation defined by a translation, rotation, and scale.

Link copied to clipboard
external object TridiagonalSystemSolver

Uses the Tridiagonal Matrix Algorithm, also known as the Thomas Algorithm, to solve a system of linear equations where the coefficient matrix is a tridiagonal matrix.

Link copied to clipboard
external object TrustedServers

A singleton that contains all of the servers that are trusted. Credentials will be sent with any requests to these servers.

Link copied to clipboard
external interface UniformSpecifier

An object describing a uniform, its type, and an initial value

Link copied to clipboard
sealed external interface UniformType

An enum of the basic GLSL uniform types. These can be used with CustomShader to declare user-defined uniforms.

Link copied to clipboard
typealias UpdateCallback = (particle: Particle, dt: Double) -> Unit

A function used to modify attributes of the particle at each time step. This can include force modifications, color, sizing, etc.

Link copied to clipboard
typealias UpdaterFunction = (entity: Entity, packet: Any, entityCollection: EntityCollection, sourceUri: String) -> Unit

Function

Link copied to clipboard

Provides imagery by requesting tiles using a specified URL template.

Link copied to clipboard
sealed external interface VaryingType

An enum for the GLSL varying types. These can be used for declaring varyings in CustomShader

Link copied to clipboard
external class VelocityOrientationProperty(position: PositionProperty? = definedExternally, ellipsoid: Ellipsoid? = definedExternally)

A Property which evaluates to a Quaternion rotation based on the velocity of the provided PositionProperty.

Link copied to clipboard
external class VelocityVectorProperty(position: PositionProperty? = definedExternally, var normalize: Boolean = definedExternally)

A Property which evaluates to a Cartesian3 vector based on the velocity of the provided PositionProperty.

Link copied to clipboard
external class VertexFormat(options: Any? = definedExternally)

A vertex format defines what attributes make up a vertex. A VertexFormat can be provided to a Geometry to request that certain properties be computed, e.g., just position, position and normal, etc.

Link copied to clipboard
sealed external interface VerticalOrigin

The vertical location of an origin relative to an object, e.g., a Billboard or Label. For example, setting the vertical origin to TOP or BOTTOM will display a billboard above or below (in screen space) the anchor position.

Link copied to clipboard
external class VideoSynchronizer

Synchronizes a video element with a simulation clock.

Link copied to clipboard
external class ViewportQuad(var rectangle: BoundingRectangle = definedExternally, var material: Material = definedExternally)

A viewport aligned quad.

Link copied to clipboard
sealed external interface Visibility

This enumerated type is used in determining to what extent an object, the occludee, is visible during horizon culling. An occluder may fully block an occludee, in which case it has no visibility, may partially block an occludee from view, or may not block it at all, leading to full visibility.

Link copied to clipboard
abstract external class Visualizer

Defines the interface for visualizers. Visualizers are plug-ins to DataSourceDisplay that render data associated with DataSource instances. This object is an interface for documentation purposes and is not intended to be instantiated directly.

Link copied to clipboard
typealias VisualizersCallback = (scene: Scene, entityCluster: EntityCluster, dataSource: DataSource) -> ReadonlyArray<Visualizer>

A function which creates an array of visualizers used for visualization.

Link copied to clipboard
external class VoxelCell

A cell from a VoxelPrimitive.

Link copied to clipboard
external class VoxelPrimitive(options: VoxelPrimitive.ConstructorOptions? = definedExternally)

A primitive that renders voxel data from a VoxelProvider.

Link copied to clipboard
abstract external class VoxelProvider

Provides voxel data. Intended to be used with VoxelPrimitive. This type describes an interface and is not intended to be instantiated directly.

Link copied to clipboard
sealed external interface VoxelShapeType

An enum of voxel shapes. The shape controls how the voxel grid is mapped to 3D space.

Link copied to clipboard
To construct a VRTheWorldTerrainProvider, call [VRTheWorldTerrainProvider.fromUrl]. Do not call the constructor directly.
Link copied to clipboard

A description of a wall, which is similar to a KML line string. A wall is defined by a series of points, which extrude down to the ground. Optionally, they can extrude downwards to a specified height.

Link copied to clipboard
external class WallGeometryUpdater(entity: Entity, scene: Scene)

A GeometryUpdater for walls. Clients do not normally create this class directly, but instead rely on DataSourceDisplay.

Link copied to clipboard
external class WallGraphics

Describes a two dimensional wall defined as a line strip and optional maximum and minimum heights. The wall conforms to the curvature of the globe and can be placed along the surface or at altitude.

Link copied to clipboard

A description of a wall outline. A wall is defined by a series of points, which extrude down to the ground. Optionally, they can extrude downwards to a specified height.

Link copied to clipboard
sealed external interface WebGLConstants

Enum containing WebGL Constant values by name. for use without an active WebGL context, or in cases where certain constants are unavailable using the WebGL context (For example, in Safari 9).

Link copied to clipboard
external interface WebGLOptions

WebGL options to be passed on to HTMLCanvasElement.getContext(). See WebGLContextAttributes but note the modified defaults for 'alpha', 'stencil', and 'powerPreference'

Link copied to clipboard

Provides tiled imagery hosted by a Web Map Service (WMS) server.

Link copied to clipboard

Provides tiled imagery served by WMTS 1.0.0 compliant servers. This provider supports HTTP KVP-encoded and RESTful GetTile requests, but does not yet support the SOAP encoding.

Link copied to clipboard
external class WebMercatorProjection(val ellipsoid: Ellipsoid = definedExternally)

The map projection used by Google Maps, Bing Maps, and most of ArcGIS Online, EPSG:3857. This projection use longitude and latitude expressed with the WGS84 and transforms them to Mercator using the spherical (rather than ellipsoidal) equations.

Link copied to clipboard

A tiling scheme for geometry referenced to a WebMercatorProjection, EPSG:3857. This is the tiling scheme used by Google Maps, Microsoft Bing Maps, and most of ESRI ArcGIS Online.

Link copied to clipboard
typealias WheelEventCallback = (delta: Double) -> Unit
Link copied to clipboard
sealed external interface WindingOrder

Winding order defines the order of vertices for a triangle to be considered front-facing.

Link copied to clipboard
external interface WriteTextToCanvasOptions

Functions

Link copied to clipboard
external fun barycentricCoordinates(point: Cartesian3, p0: Cartesian3, p1: Cartesian3, p2: Cartesian3, result: Cartesian3? = definedExternally): Cartesian3?

Computes the barycentric coordinates for a point with respect to a triangle.

Link copied to clipboard
external fun binarySearch(array: ReadonlyArray<Any>, itemToFind: Any, comparator: binarySearchComparator): Int

Finds an item in a sorted array.

Link copied to clipboard
external fun buildModuleUrl(relativeUrl: String): String

Given a relative URL under the Cesium base URL, returns an absolute URL.

Link copied to clipboard
external fun clone(obj: Any, deep: Boolean? = definedExternally): Any

Clones an object, returning a new object containing the same properties.

Link copied to clipboard
external fun combine(object1: Any? = definedExternally, object2: Any? = definedExternally, deep: Boolean? = definedExternally): Any

Merges two objects, copying their properties onto a new combined object. When two objects have the same property, the value of the property on the first object is used. If either object is undefined, it will be treated as an empty object.

Link copied to clipboard
external fun computePickingDrawingBufferRectangle(drawingBufferHeight: Double, position: Cartesian2, width: Double?, height: Double?, result: BoundingRectangle): BoundingRectangle

Compute the rectangle that describes the part of the drawing buffer that is relevant for picking.

Link copied to clipboard
external fun createAnchorPointDirect(anchorPointDirectJson: Any): AnchorPointDirect

Creates an AnchorPointDirect from the given JSON representation

Link copied to clipboard
external fun createAnchorPointIndirect(anchorPointIndirectJson: Any): AnchorPointIndirect

Creates an AnchorPointIndirect from the given JSON representation

Link copied to clipboard
external fun createCorrelationGroup(correlationGroupJson: Any): CorrelationGroup

Creates a CorrelationGroup from the given JSON representation

Link copied to clipboard

Creates a Matrix3 that describes a covariance matrix (which is symmetric) from the array containing the upper triangle, in column-major order.

Link copied to clipboard

Creates a Material that combines multiple layers of color/gradient bands and maps them to terrain heights.

Link copied to clipboard
suspend external fun createGooglePhotorealistic3DTileset(key: String? = definedExternally, options: Cesium3DTileset.ConstructorOptions? = definedExternally): Cesium3DTileset

Creates a Cesium3DTileset instance for the Google Photorealistic 3D Tiles tileset.

Link copied to clipboard
external fun createGooglePhotorealistic3DTilesetAsync(key: String? = definedExternally, options: Cesium3DTileset.ConstructorOptions? = definedExternally): Promise<Cesium3DTileset>
Link copied to clipboard
external fun createGuid(): String

Creates a Globally unique identifier (GUID) string. A GUID is 128 bits long, and can guarantee uniqueness across space and time.

Link copied to clipboard
suspend external fun createOsmBuildings(options: CreateOsmBuildingsAsyncOptions? = definedExternally): Cesium3DTileset

Creates a Cesium3DTileset instance for the Cesium OSM Buildings tileset.

Link copied to clipboard
Link copied to clipboard

Creates a Primitive to visualize well-known vector vertex attributes: normal, tangent, and bitangent. Normal is red; tangent is green; and bitangent is blue. If an attribute is not present, it is not drawn.

Link copied to clipboard
suspend external fun createWorldBathymetry(options: CreateWorldBathymetryAsyncOptions? = definedExternally): CesiumTerrainProvider
Link copied to clipboard
Link copied to clipboard
suspend external fun createWorldImagery(options: CreateWorldImageryAsyncOptions? = definedExternally): IonImageryProvider

Creates an IonImageryProvider instance for ion's default global base imagery layer, currently Bing Maps.

Link copied to clipboard
Link copied to clipboard
suspend external fun createWorldTerrain(options: CreateWorldTerrainAsyncOptions? = definedExternally): CesiumTerrainProvider

Creates a CesiumTerrainProvider instance for the Cesium World Terrain.

Link copied to clipboard
Link copied to clipboard
external fun destroyObject(obj: Any, message: String? = definedExternally)

Destroys an object. Each of the object's functions, including functions in its prototype, is replaced with a function that throws a DeveloperError, except for the object's isDestroyed function, which is set to a function that returns true. The object's properties are removed with delete.

Link copied to clipboard
suspend external fun exportKml(options: ExportKmlOptions): Any

Exports an EntityCollection as a KML document. Only Point, Billboard, Model, Path, Polygon, Polyline geometries will be exported. Note that there is not a 1 to 1 mapping of Entity properties to KML Feature properties. For example, entity properties that are time dynamic but cannot be dynamic in KML are exported with their values at options.time or the beginning of the EntityCollection's time interval if not specified. For time-dynamic properties that are supported in KML, we use the samples if it is a SampledProperty otherwise we sample the value using the options.sampleDuration. Point, Billboard, Model and Path geometries with time-dynamic positions will be exported as gx:Track Features. Not all Materials are representable in KML, so for more advanced Materials just the primary color is used. Canvas objects are exported as PNG images.

Link copied to clipboard
external fun exportKmlAsync(options: ExportKmlOptions): Promise<Any>
Link copied to clipboard
external fun formatError(obj: Any): String

Formats an error object into a String. If available, uses name, message, and stack properties, otherwise, falls back on toString().

Link copied to clipboard
external fun getAbsoluteUri(relative: String, base: String? = definedExternally): String

Given a relative Uri and a base Uri, returns the absolute Uri of the relative Uri.

Link copied to clipboard
external fun getBaseUri(uri: String, includeQuery: Boolean? = definedExternally): String

Given a URI, returns the base path of the URI.

Link copied to clipboard
external fun getExtensionFromUri(uri: String): String

Given a URI, returns the extension of the URI.

Link copied to clipboard
external fun getFilenameFromUri(uri: String): String

Given a URI, returns the last segment of the URI, removing any path or query information.

Link copied to clipboard
external fun getGlslType(classProperty: MetadataClassProperty): String

Returns the type that the given class property has in a GLSL shader.

Link copied to clipboard
external fun getImagePixels(image: Any, width: Double, height: Double): ImageData

Extract a pixel array from a loaded image. Draws the image into a canvas so it can read the pixels back.

Link copied to clipboard
external fun getTimestamp(): Double

Gets a timestamp that can be used in measuring the time between events. Timestamps are expressed in milliseconds, but it is not specified what the milliseconds are measured from. This function uses performance.now() if it is available, or Date.now() otherwise.

Link copied to clipboard
external fun isLeapYear(year: Int): Boolean

Determines if a given date is a leap year.

Link copied to clipboard
external fun loadGltfJson()

Loads the gltf object

Link copied to clipboard
external fun mergeSort(array: ReadonlyArray<Any>, comparator: mergeSortComparator, userDefinedObject: Any? = definedExternally)

A stable merge sort.

Link copied to clipboard
external fun objectToQuery(obj: Any): String

Converts an object representing a set of name/value pairs into a query string, with names and values encoded properly for use in a URL. Values that are arrays will produce multiple values with the same name.

Determine how translucent surfaces will be handled.

Link copied to clipboard

Determines if a point is inside a triangle.

Link copied to clipboard
external fun queryToObject(queryString: String): Any

Parses a query string into an object, where the keys and values of the object are the name/value pairs from the query string, decoded. If a name appears multiple times, the value in the object will be an array of values.

Link copied to clipboard
external fun removeExtension(gltf: Any, extension: String): Any

Removes an extension from gltf.extensions, gltf.extensionsUsed, gltf.extensionsRequired, and any other objects in the glTF if it is present.

Link copied to clipboard
suspend external fun sampleTerrain(terrainProvider: TerrainProvider, level: Int, positions: ReadonlyArray<Cartographic>, rejectOnTileFail: Boolean? = definedExternally): ReadonlyArray<Cartographic>

Initiates a terrain height query for an array of Cartographic positions by requesting tiles from a terrain provider, sampling, and interpolating. The interpolation matches the triangles used to render the terrain at the specified level. The query happens asynchronously, so this function returns a promise that is resolved when the query completes. Each point height is modified in place. If a height can not be determined because no terrain data is available for the specified level at that location, or another error occurs, the height is set to undefined. As is typical of the Cartographic type, the supplied height is a height above the reference ellipsoid (such as Ellipsoid.WGS84) rather than an altitude above mean sea level. In other words, it will not necessarily be 0.0 if sampled in the ocean. This function needs the terrain level of detail as input, if you need to get the altitude of the terrain as precisely as possible (i.e. with maximum level of detail) use sampleTerrainMostDetailed.

Link copied to clipboard
external fun sampleTerrainAsync(terrainProvider: TerrainProvider, level: Int, positions: ReadonlyArray<Cartographic>, rejectOnTileFail: Boolean? = definedExternally): Promise<ReadonlyArray<Cartographic>>
Link copied to clipboard
suspend external fun sampleTerrainMostDetailed(terrainProvider: TerrainProvider, positions: ReadonlyArray<Cartographic>, rejectOnTileFail: Boolean? = definedExternally): ReadonlyArray<Cartographic>

Initiates a sampleTerrain() request at the maximum available tile level for a terrain dataset.

Link copied to clipboard
external fun sampleTerrainMostDetailedAsync(terrainProvider: TerrainProvider, positions: ReadonlyArray<Cartographic>, rejectOnTileFail: Boolean? = definedExternally): Promise<ReadonlyArray<Cartographic>>
Link copied to clipboard
external fun srgbToLinear(value: Double): Double

Converts the value from sRGB color space to linear color space.

Link copied to clipboard
external fun Stereographic(position: Cartesian2? = definedExternally, tangentPlane: EllipseGeometry? = definedExternally)

Represents a point in stereographic coordinates, which can be obtained by projecting a cartesian coordinate from one pole onto a tangent plane at the other pole. The stereographic projection faithfully represents the relative directions of all great circles passing through its center point. To faithfully represents angles everywhere, this is a conformal projection, which means points are projected onto an arbrary sphere.

Link copied to clipboard
external fun subdivideArray(array: ReadonlyArray<Any>, numberOfArrays: Int)

Subdivides an array into a number of smaller, equal sized arrays.

Link copied to clipboard
external fun writeTextToCanvas(text: String, options: WriteTextToCanvasOptions? = definedExternally): HTMLCanvasElement?

Writes the given text into a new canvas. The canvas will be sized to fit the text. If text is blank, returns undefined.