| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171 |
- /**
- * @Author: Caven
- * @Date: 2022-07-16 11:51:07
- */
-
- declare interface ImageryProvider {
- defaultAlpha: Number | undefined
- defaultBrightness: Number | undefined
- defaultContrast: Number | undefined
- defaultDayAlpha: Number | undefined
- defaultGamma: Number | undefined
- defaultHue: Number | undefined
- defaultNightAlpha: Number | undefined
- defaultSaturation: Number | undefined
- readonly readyPromise: Promise<Boolean>
- }
-
- declare interface TerrainProvider {
- readonly readyPromise: Promise<Boolean>
- }
-
- declare interface Weather {
- readonly fog: any
- readonly rain: any
- readonly snow: any
- readonly cloud: any
- }
-
- declare interface Widget {
-
- enable: Boolean
- DEFAULT_MENU: Array<any>
- config:JSON
-
- setWrapper(wrapper: String | HTMLElement): Widget
-
- setContent(content: String | HTMLElement): Widget
-
- showAt(position: any, content: String | HTMLElement): Widget
-
- addBaseLayer(baseLayer:ImageryProvider,splitDirection?:Number): Widget
-
- addTileset(tileset:any): Widget
- }
-
- declare module 'dc' {
-
- export enum MouseEventType {
- LEFT_DOWN = 0,
- LEFT_UP = 1,
- CLICK = 2,
- DB_CLIC = 3,
- RIGHT_DOWN = 5,
- RIGHT_UP = 6,
- RIGHT_CLICK = 7,
- MOUSE_MOVE = 5,
- WHEEL = 16,
- MOUSE_OVER = 'mouseover',
- MOUSE_OUT = 'mouseout'
- }
-
-
- export enum SceneEventType {
- CAMERA_MOVE_END = 'cameraMoveEnd',
- CAMERA_CHANGED = 'cameraChanged',
- PRE_UPDATE = 'preUpdate',
- POST_UPDATE = 'postUpdate',
- PRE_RENDER = 'preRender',
- POST_RENDER = 'postRender',
- MORPH_COMPLETE = 'morphComplete',
- CLOCK_TICK = 'clockTick',
- RENDER_ERROR = 'renderError'
- }
-
- export enum ImageryType {
- AMAP = 'amap',
- BAIDU = 'baidu',
- GOOGLE = 'google',
- TDT = 'tdt',
- TENCENT = 'tencet',
- ARCGIS = 'arcgis',
- SINGLE_TILE = 'single_tile',
- WMS = 'wms',
- WMTS = 'wmts',
- XYZ = 'xyz',
- COORD = 'coord',
- GRID = 'grid',
- MAPBOX = 'mapbox',
- MAPBOX_STYLE = 'mapbox_style',
- TMS = 'tms'
- }
-
- export enum TerrainType {
- NONE = 'none',
- XYZ = 'xyz',
- ARCGIS = 'arcgis',
- GOOGLE = 'google',
- VR = 'vr'
- }
-
- export enum TrackViewMode {
- FP = '1',
- TP = '2',
- TRACKED = 'tracked',
- FREE = 'free'
- }
-
- export class DomUtil {
-
- static get(id: String): HTMLElement
-
- static getStyle(el: HTMLElement, style: JSON): any
-
- static create(tagName: String, className?: String, container?: HTMLElement): HTMLElement
-
- static remove(el: HTMLElement): void
-
- static empty(el: HTMLElement): void
-
- static hasClass(el: HTMLElement, name: String): Boolean
-
- static addClass(el: HTMLElement, name: String): void
-
- static removeClass(el: HTMLElement, name: String): void
-
- static setClass(el: HTMLElement, name: String): void
-
- static getClass(el: HTMLElement): String
-
- static createSvg(width: Number, height: Number, path: String, container?: HTMLElement): SVGElement
-
- static parseDom(domStr: String, withWrapper?: Boolean, className?: String): HTMLDivElement | Array<ChildNode>
- }
-
- export class Util {
-
- static uuid(prefix?: String): String
-
- static merge(dest: JSON, sources: any): JSON
- }
-
- export class Position {
- constructor(lng: Number, lat: Number, alt?: Number, heading?: Number, pitch?: Number, roll?: Number)
-
- lng: Number
- lat: Number
- alt: Number
- heading: Number
- pitch: Number
- roll: Number
-
- serialize(): Object;
-
- distance(target: Position): Number
-
- copy(): Position
-
- toArray(): Array<Number>
-
- toObject(): Object
-
- static fromArray(arr: Array<Number | String>): Position
-
- static fromString(str: String): Position
-
- static fromObject(obj: Object): Position
-
- static deserialize(valStr: JSON): Position
- }
-
- export class Parse {
-
- static parsePosition(position: String | Array<Number> | JSON | Position): Position
-
- static parsePositions(positions: String | Array<String | Array<Number> | JSON | Position>): Array<Position>
-
- static parsePointCoordToArray(position: String | Array<Number> | JSON | Position): Array<Number>
-
- static parsePolylineCoordToArray(positions: String | Array<String | Array<Number> | JSON | Position>): Array<Array<Number>>
-
- static parsePolygonCoordToArray(positions: String | Array<String | Array<Number> | JSON | Position>): Array<Array<Array<Number>>>
- }
-
- export class Transform {
-
- static transformCartesianToWGS84(cartesian: any): Position
-
- static transformWGS84ToCartesian(position: Position): any
-
- static transformWGS84ToCartographic(position: Position): any
-
- static transformCartesianArrayToWGS84Array(cartesianArr: Array<any>): Array<Position>
-
- static transformWGS84ArrayToCartesianArray(WGS84Arr: Array<Position>): Array<any>
-
- static transformWGS84ToMercator(position: Position): Position
-
- static transformMercatorToWGS84(position: Position): Position
-
- static transformWindowToWGS84(position: Position, viewer: Viewer): Position
-
- static transformWGS84ToWindow(position: Position, viewer: Viewer): any
- }
-
- export class Math {
- static toDegrees(radians: Number): Number
-
- static toRadians(degrees: Number): Number
-
- static log2(num: Number): Number
-
- static area(positions: Array<Position>): Number
-
- static bounds(positions: Array<Position>, expand?: Number): Number
-
- static center(positions: Array<Position>): Position
-
- static curve(positions: Array<Position>, options: JSON): Array<Position>
-
- static distance(positions: Array<Position>): Number
-
- static heading(start: Position, end: Position): Number
-
- static midPosition(start: Position, end: Position): Position
-
- static parabola(start: Position, end: Position, height?: Number, count?: Number): Array<Array<Number>>
- }
-
- export class JulianDate {
- constructor(julianDay?: Number, secondsOfDay?: Number, timeStandard?: any)
-
- static addDays(julianDate: JulianDate, days: Number, result?: JulianDate): JulianDate
-
- static addHours(julianDate: JulianDate, hours: Number, result?: JulianDate): JulianDate
-
- static addMinutes(julianDate: JulianDate, hours: Number, result?: JulianDate): JulianDate
-
- static addSeconds(julianDate: JulianDate, seconds: Number, result?: JulianDate): JulianDate
-
- static clone(julianDate: JulianDate, result?: JulianDate): JulianDate
-
- static daysDifference(left: JulianDate, right: JulianDate): Number
-
- static greaterThan(left: JulianDate, right: JulianDate): Boolean
-
- static greaterThanOrEquals(left: JulianDate, right: JulianDate): Boolean
-
- static lessThan(left: JulianDate, right: JulianDate): Boolean
-
- static lessThanOrEquals(left: JulianDate, right: JulianDate): Boolean
-
- static now(result?: JulianDate): Boolean
-
- static secondsDifference(left: JulianDate, right: JulianDate): Number
- }
-
- export class ImageryLayerFactory {
-
- static createAmapImageryLayer(options: JSON): ImageryProvider
-
- static createBaiduImageryLayer(options: JSON): ImageryProvider
-
- static createGoogleImageryLayer(options: JSON): ImageryProvider
-
- static createTdtImageryLayer(options: JSON): ImageryProvider
-
- static createTencentImageryLayer(options: JSON): ImageryProvider
-
- static createArcGisImageryLayer(options: JSON): ImageryProvider
-
- static createSingleTileImageryLayer(options: JSON): ImageryProvider
-
- static createWMSImageryLayer(options: JSON): ImageryProvider
-
- static createWMTSImageryLayer(options: JSON): ImageryProvider
-
- static createXYZImageryLayer(options: JSON): ImageryProvider
-
- static createCoordImageryLayer(options: JSON): ImageryProvider
-
- static createGridImageryLayer(options: JSON): ImageryProvider
-
- static createMapboxImageryLayer(options: JSON): ImageryProvider
-
- static createMapboxStyleImageryLayer(options: JSON): ImageryProvider
-
- static createTMSImageryLayer(options: JSON): ImageryProvider
-
- static createImageryLayer(type: ImageryType, options: JSON): ImageryProvider
- }
-
- export class TerrainFactory {
-
- static createEllipsoidTerrain(options: JSON): TerrainProvider
-
- static createUrlTerrain(options: JSON): TerrainProvider
-
- static createGoogleTerrain(options: JSON): TerrainProvider
-
- static createArcgisTerrain(options: JSON): TerrainProvider
-
- static createVRTerrain(options: JSON): TerrainProvider
-
- static createTerrain(type: TerrainType, options: JSON): TerrainProvider
- }
-
- export class Viewer {
- constructor(id: String | HTMLElement, options?: JSON)
-
- readonly delegate: any
- readonly dcContainer: HTMLElement
- readonly scene: any
- readonly camera: any
- readonly canvas: HTMLCanvasElement
- readonly dataSources: any
- readonly imageryLayers: any
- readonly terrainProvider: any
- readonly entities: any
- readonly postProcessStages: any
- readonly clock: any
- readonly cameraPosition: Position
- readonly resolution: Number
- readonly viewBounds: any
- readonly level: Number
- readonly weather:Weather
- readonly effect:Effect
- readonly compass:Widget
- readonly contextMenu:Widget
- readonly distanceLegend:Widget
- readonly hawkeyeMap:Widget
- readonly loadingMask:Widget
- readonly locationBar:Widget
- readonly mapSplit:Widget
- readonly mapSwitch:Widget
- readonly popup:Widget
- readonly sceneSplit:Widget
- readonly tilesetSplit:Widget
- readonly tooltip:Widget
- readonly zoomController:Widget
-
- setOptions(options: JSON): Viewer
-
- setPitchRange(min?: Number, Max?: Number): Viewer
-
- changeSceneMode(sceneMode: Number, duration?: Number): Viewer
-
- changeMouseMode(mouseMode: Number): Viewer
-
- addBaseLayer(baseLayers: any | Array<any>, options?: JSON): Viewer
-
- changeBaseLayer(index: Number): Viewer
-
- getImageryLayerInfo(windowPosition: any): Promise<any>
-
- addTerrain(terrain: any, options?: JSON): Viewer
-
- changeTerrain(index: Number): Viewer
-
- removeTerrain(): Viewer
-
- addLayerGroup(layerGroup: LayerGroup): Viewer
-
- removeLayerGroup(layerGroup: LayerGroup): Viewer
-
- getLayerGroup(id: String): LayerGroup
-
- addLayer(layer: Layer): Layer
-
- removeLayer(layer: Layer): Layer
-
- getLayer(id: String): Layer
-
- getLayers(): Array<Layer>
-
- eachLayer(method: Function, context: any): Viewer
-
- flyTo(targer: Overlay | Layer, duration?: Number): Viewer
-
- zoomTo(targer: Overlay | Layer): Viewer
-
- flyToPosition(position: String | Array<Number> | JSON | Position, completeCallback?: Function, duration?: Number): Viewer
-
- zoomToPosition(position: String | Array<Number> | JSON | Position, completeCallback?: Function): Viewer
-
- flyToBounds(bounds: String | Array<Number>, hpr: JSON, completeCallback?: Function, duration?: Number): Viewer
-
- zoomToBounds(bounds: String | Array<Number>, hpr: JSON, completeCallback?: Function): Viewer
-
- on(type: String | Number, callback: Function, context: any): Viewer
-
- off(type: String | Number, callback: Function, context: any): Viewer
-
- destroy(): Viewer
-
- exportScene(name: String): Viewer
-
- use(plugin: any): Viewer
- }
-
- export class LayerGroup {
- constructor(id: String)
-
- readonly id: String
- readonly type: String
- readonly state: String
- show: Boolean
-
- addLayer(layer: Layer): LayerGroup
-
- removeLayer(layer: Layer): LayerGroup
-
- getLayer(id: String): Layer
-
- getLayers(): Array<Layer>
-
- addTo(viewer: Viewer): LayerGroup
-
- remove(): LayerGroup
- }
-
- export class Layer {
- constructor(id: String)
-
- readonly layerId: String
- readonly id: String
- readonly delegate: any
- readonly state: String
- show: Boolean
- attr: Object
-
- addOverlay(overlay: Overlay): Layer
-
- addOverlays(overlays: Array<Overlay>): Layer
-
- removeOverlay(overlay: Overlay): Layer
-
- getOverlay(overlayId: String): Overlay
-
- getOverlayById(id: String): Overlay
-
- getOverlaysByAttr(attrName: String, attrVal: any): Overlay
-
- eachOverlay(method: Function, context: any): Layer
-
- getOverlays(): Array<Overlay>
-
- clear(): Layer
-
- remove(): Layer
-
- addTo(viewer: Viewer): Layer
-
- on(type: String | Number, callback: Function, context: any): Layer
-
- off(type: String | Number, callback: Function, context: any): Layer
-
- fire(type: String | Number, params: JSON): Layer
- }
-
- export class ClusterLayer extends Layer {
- constructor(id: String, options?: JSON)
- }
-
- export class CzmlLayer extends Layer {
- constructor(id: String, url: String, options?: JSON)
- }
-
- export class DynamicLayer extends Layer {
- constructor(id: String)
- }
-
- export class FeatureGridLayer extends Layer {
- constructor(id: String, url: String, options?: JSON)
- }
-
- export class GeoJsonLayer extends Layer {
- constructor(id: String, url: String, options?: JSON)
- }
-
- export class GpxLayer extends Layer {
- constructor(id: String, url: String, options?: JSON)
- }
-
- export class GroundPrimitiveLayer extends Layer {
- constructor(id: String)
- }
-
- export class HtmlLayer extends Layer {
- constructor(id: String)
- }
-
- export class KmlLayer extends Layer {
- constructor(id: String, url: String, options?: JSON)
- }
-
- export class LabelLayer extends Layer {
- constructor(id: String)
- }
-
- export class PrimitiveLayer extends Layer {
- constructor(id: String)
-
- readonly points: any
- readonly labels: any
- readonly billboards: any
- readonly polylines: any
- readonly clouds: any
- }
-
- export class TilesetLayer extends Layer {
- constructor(id: String)
- }
-
- export class TopoJsonLayer extends Layer {
- constructor(id: String)
- }
-
- export class VectorLayer extends Layer {
- constructor(id: String)
- }
-
- export class HeatLayer extends Layer {
- constructor(id: String, options?: JSON)
-
- setPositions(positions: Array<Position>): HeatLayer
-
- addPosition(position: Position): HeatLayer
- }
-
- export class S3MLayer extends Layer {
- constructor(id: String, url: String, options: JSON)
- }
-
- export class ChartLayer extends Layer {
- constructor(id: String)
-
- readonly chart: any
-
- setOption(option: any): ChartLayer
- }
-
- export class WindLayer extends Layer {
- constructor(id: String, options: JSON)
-
- setData(data: any, options: JSON): WindLayer
-
- setOptions(options: JSON): WindLayer
- }
-
- export class MapvLayer extends Layer {
- constructor(id: String, options: JSON)
-
- setDataSet(dataSet: any): MapvLayer
- }
-
- export class Overlay {
- constructor();
-
- readonly overlayId: String
- readonly type: String
- readonly delegate: String
- readonly state: String
- id: String;
- allowDrillPicking: Boolean;
- contextMenu: Array<any>;
-
- setLabel(text: String, textStyle: JSON): Overlay
-
- setStyle(style: Object): Overlay
-
- remove(): Overlay
-
- addTo(layer: Layer): Overlay
-
- on(type: String | Number, callback: Function, context: any): Overlay
-
- off(type: String | Number, callback: Function, context: any): Overlay
-
- fire(type: String | Number, params: JSON): Overlay
- }
-
- export class CustomBillboard extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position, icon: String)
-
- position: String | Array<Number> | JSON | Position
- icon: String
- size: Array<Number>
-
- setVLine(style: JSON): CustomBillboard
-
- setBottomCircle(radius: Number, style: JSON, rotateAmount?: Number): CustomBillboard
- }
-
- export class CustomLabel extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position, text: String)
-
- position: String | Array<Number> | JSON | Position
- text: String
-
- setVLine(style: JSON): CustomLabel
-
- setBottomCircle(radius: Number, style: JSON, rotateAmount?: Number): CustomLabel
- }
-
- export class DynamicBillboard extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position, icon: String)
-
- position: String | Array<Number> | JSON | Position
- icon: String
- size: Array<Number>
- maxCacheSize: Number
-
- addPosition(position: Position, interval: Number): DynamicBillboard
- }
-
- export class DynamicModel extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position, modelUrl: String)
-
- position: String | Array<Number> | JSON | Position
- modelUrl: String
- maxCacheSize: Number
-
- addPosition(position: Position, interval: Number): DynamicModel
- }
-
- export class DivIcon extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position, content: String | HTMLElement)
-
- position: String | Array<Number> | JSON | Position
- content: String | HTMLElement
-
- static fromEntity(entity: any, content: String | HTMLElement): DivIcon
- }
-
- export class Model extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position, modelUrl: String)
-
- position: String | Array<Number> | JSON | Position
- modelUrl: String
- rotateAmount: Number
-
- static fromEntity(entity: any, modelUrl: String): DivIcon
- }
-
- export class Tileset extends Overlay {
- constructor(url: String, options?: JSON)
-
- readonly readyPromise: Promise<any>
-
- setPosition(position: Position): Tileset
-
- setHeadingPitchRoll(heading: Number, pitch: Number, roll: Number): Tileset
-
- clampToGround(): Tileset
-
- setHeight(height: Number, isAbsolute?: Boolean): Tileset
-
- setScale(sacle: Number): Tileset
-
- setProperties(properties: JSON): Tileset
-
- setCustomShader(fragmentShader: String): Tileset
-
- replaceFS(fragmentShader: String): Tileset
-
- setSplitDirection(splitDirection: Number): Tileset
- }
-
- export class AttackArrow extends Overlay {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>)
-
- positions: String | Array<String | Array<Number> | JSON | Position>
- }
-
- export class DoubleArrow extends Overlay {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>)
-
- positions: String | Array<String | Array<Number> | JSON | Position>
- }
-
- export class FineArrow extends Overlay {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>)
-
- positions: String | Array<String | Array<Number> | JSON | Position>
- }
-
- export class GatheringPlace extends Overlay {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>)
-
- positions: String | Array<String | Array<Number> | JSON | Position>
- }
-
- export class TailedAttackArrow extends Overlay {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>)
-
- positions: String | Array<String | Array<Number> | JSON | Position>
- }
-
- export class BillboardPrimitive extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position, icon: String)
-
- position: String | Array<Number> | JSON | Position
- icon: String
- size: Array<Number>
- }
-
- export class BounceBillboardPrimitive extends BillboardPrimitive {
- }
-
- export class BounceLabelPrimitive extends LabelPrimitive {
-
- }
-
- export class CloudPrimitive extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position)
-
- position: String | Array<Number> | JSON | Position
- }
-
- export class DiffuseWallPrimitive extends Overlay {
- constructor(center: String | Array<Number> | JSON | Position, radius: Number, height: Number)
-
- position: String | Array<Number> | JSON | Position
- radius: Number
- height: Number
- }
-
- export class ElecEllipsoidPrimitive extends Overlay {
- constructor(center: String | Array<Number> | JSON | Position, radius: JSON)
-
- position: String | Array<Number> | JSON | Position
- radius: JSON
- }
-
- export class FlowLinePrimitive extends Overlay {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>, width?: Number)
-
- positions: String | Array<String | Array<Number> | JSON | Position>
- }
-
- export class LabelPrimitive extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position, text: String)
-
- position: String | Array<Number> | JSON | Position
- text: String
- }
-
- export class LightCylinderPrimitive extends Overlay {
- constructor(center: String | Array<Number> | JSON | Position, length: Number, topRadius: Number, bottomRadius: Number)
-
- center: String | Array<Number> | JSON | Position
- length: Number
- topRadius: Number
- bottomRadius: Number
- }
-
- export class ModelCollectionPrimitive extends Overlay {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>, modelUrl: String)
-
- readonly readyPromise: Promise<any>
- attrs: Array<any>
- positions: String | Array<String | Array<Number> | JSON | Position>
- modelUrl: String
-
- getModelInstance(instanceId: String): any
-
- getAttrByInstanceId(instanceId: String): any
- }
-
- export class ModelPrimitive extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position, modelUrl: String)
-
- readonly readyPromise: Promise<any>
- position: String | Array<Number> | JSON | Position
- modelUrl: String
-
- getMaterial(name: String): any
-
- getMesh(name: String): any
-
- getNode(name: String): any
-
- getNodes(): Array<any>
- }
-
- export class PointPrimitive extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position)
-
- position: String | Array<Number> | JSON | Position
- }
-
- export class PolylinePrimitive extends Overlay {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>)
-
- positions: String | Array<String | Array<Number> | JSON | Position>
- }
-
- export class ScanCirclePrimitive extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position, radius: Number)
-
- position: String | Array<Number> | JSON | Position
- radius: Number
- }
-
- export class TrailLinePrimitive extends Overlay {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>, width?: Number)
-
- positions: String | Array<String | Array<Number> | JSON | Position>
- }
-
- export class VideoPrimitive extends Overlay {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>, video: HTMLVideoElement)
-
- positions: String | Array<String | Array<Number> | JSON | Position>
- video: HTMLVideoElement
- }
-
- export class WaterPrimitive extends Overlay {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>, holes?: Array<String | Array<Number> | JSON | Position>)
-
- positions: String | Array<String | Array<Number> | JSON | Position>
- }
-
- export class Billboard extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position, icon: String)
-
- position: String | Array<Number> | JSON | Position
- icon: String
- size: Array<Number>
- }
-
-
- export class Box extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position, length: Number, width: Number, height: Number)
-
- position: String | Array<Number> | JSON | Position
- length: Number
- width: Number
- height: Number
- }
-
- export class Circle extends Overlay {
- constructor(center: String | Array<Number> | JSON | Position, radius: Number)
-
- position: String | Array<Number> | JSON | Position
- radius: Number
- }
-
- export class Corridor extends Overlay {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>)
-
- positions: String | Array<String | Array<Number> | JSON | Position>
- }
-
- export class Cylinder extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position, length: Number, topRadius: Number, bottomRadius: Number)
-
- position: String | Array<Number> | JSON | Position
- length: Number
- topRadius: Number
- bottomRadius: Number
- }
-
- export class Ellipse extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position, semiMajorAxis: Number, semiMinorAxis: Number)
-
- position: String | Array<Number> | JSON | Position
- semiMajorAxis: Number
- semiMinorAxis: Number
- }
-
- export class Ellipsoid extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position, radius: JSON)
-
- position: String | Array<Number> | JSON | Position
- radius: JSON
- }
-
- export class Label extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position, text: String)
-
- position: String | Array<Number> | JSON | Position
- text: String
- }
-
- export class Plane extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position, width: Number, height: Number, plane: Object)
-
- position: String | Array<Number> | JSON | Position
- width: Number
- height: Number
- distance: Number
- }
-
- export class Point extends Overlay {
- constructor(position: String | Array<Number> | JSON | Position)
-
- position: String | Array<Number> | JSON | Position
- }
-
- export class Polygon extends Overlay {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>)
-
- positions: String | Array<String | Array<Number> | JSON | Position>
- }
-
- export class Polyline extends Overlay {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>)
-
- positions: String | Array<String | Array<Number> | JSON | Position>
- }
-
- export class PolylineVolume extends Overlay {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>, shape?: Array<any>)
-
- positions: String | Array<String | Array<Number> | JSON | Position>
- shape: Array<any>
- }
-
- export class Rectangle extends Overlay {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>)
-
- positions: String | Array<String | Array<Number> | JSON | Position>
- }
-
- export class Wall extends Overlay {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>)
-
- positions: String | Array<String | Array<Number> | JSON | Position>
- }
-
- export class Animation {
- constructor(viewer: Viewer)
-
- readonly type: String
-
- start(): Animation
-
- stop: Animation
- }
-
- export class AroundPoint extends Animation {
- constructor(viewer: Viewer, position: Position, options: JSON)
- }
-
- export class AroundView extends Animation {
- constructor(viewer: Viewer, options: JSON)
- }
-
- export class CircleScan extends Animation {
- constructor(viewer: Viewer, position: Position, radius: Number, options: JSON)
- }
-
- export class Flying extends Animation {
- constructor(viewer: Viewer, options: JSON)
- }
-
- export class GlobeRotate extends Animation {
- constructor(viewer: Viewer, options: JSON)
- }
-
- export class RadarScan extends Animation {
- constructor(viewer: Viewer, position: Position, radius: Number, options: JSON)
- }
-
- export class Effect {
- readonly blackAndWhite: any
- readonly bloom: any
- readonly brightness: any
- readonly depthOfField: any
- readonly lensFlare: any
- readonly night: any
- readonly silhouette: any
- }
-
- export class GroundSkyBox {
- constructor(options: JSON)
- }
-
- export class TrackController {
- constructor(viewer: Viewer)
-
- readonly delegate: any
- readonly state: String
-
- addTrack(track: Track): TrackController
-
- getTrack(id: String): Track
-
- removeTrack(track: Track): TrackController
-
- getTracks(): Array<Track>
-
- play(): TrackController
-
- pause(): TrackController
-
- restore(): TrackController
-
- viewTrack(track: Track, viewOption: JSON): TrackController
-
- releaseTrack(track: Track): TrackController
-
- clear(): TrackController
-
- }
-
- export class Track {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>, duration: Number, callback: Function, options?: JSON)
-
- positions: String | Array<String | Array<Number> | JSON | Position>
- duration: Number
-
- addPosition(position: Position, duration: Number): Track
-
- setModel(modelPath: String, style: JSON): Track
-
- setBillboard(icon: String, style: JSON): Track
-
- setLabel(text: String, style: JSON): Track
-
- setPath(visible: Boolean, style: JSON): Track
- }
-
- export class CircleBlurMaterialProperty {
- constructor(options: JSON)
- }
-
- export class CircleDiffuseMaterialProperty {
- constructor(options: JSON)
- }
-
- export class CircleFadeMaterialProperty {
- constructor(options: JSON)
- }
-
- export class CirclePulseMaterialProperty {
- constructor(options: JSON)
- }
-
- export class CircleScanMaterialProperty {
- constructor(options: JSON)
- }
-
- export class CircleSpiralMaterialProperty {
- constructor(options: JSON)
- }
-
- export class CircleVaryMaterialProperty {
- constructor(options: JSON)
- }
-
- export class CircleWaveMaterialProperty {
- constructor(options: JSON)
- }
-
- export class EllipsoidElectricMaterialProperty {
- constructor(options: JSON)
- }
-
- export class EllipsoidTrailMaterialProperty {
- constructor(options: JSON)
- }
-
- export class PolylineEmissionMaterialProperty {
- constructor(options: JSON)
- }
-
- export class PolylineFlickerMaterialProperty {
- constructor(options: JSON)
- }
-
- export class PolylineFlowMaterialProperty {
- constructor(options: JSON)
- }
-
- export class PolylineImageTrailMaterialProperty {
- constructor(options: JSON)
- }
-
- export class PolylineLightingMaterialProperty {
- constructor(options: JSON)
- }
-
- export class PolylineLightingTrailMaterialProperty {
- constructor(options: JSON)
- }
-
- export class PolylineTrailMaterialProperty {
- constructor(options: JSON)
- }
-
- export class RadarLineMaterialProperty {
- constructor(options: JSON)
- }
-
- export class RadarSweepMaterialProperty {
- constructor(options: JSON)
- }
-
- export class RadarWaveMaterialProperty {
- constructor(options: JSON)
- }
-
- export class WallImageTrailMaterialProperty {
- constructor(options: JSON)
- }
-
- export class WallLineTrailMaterialProperty {
- constructor(options: JSON)
- }
-
- export class WaterMaterialProperty {
- constructor(options: JSON)
- }
-
- export class Plot {
- constructor(viewer: Viewer, options: JSON)
-
- readonly viewer: Viewer
- readonly layer: any
- readonly state: String
-
- draw(type: String, callback?: Function, style?: JSON, clampToModel?: Boolean): Plot
-
- edit(overlay: Overlay, callback?: Function, clampToModel?: Boolean): Plot
-
- stop(): Plot
-
- destroy(): Plot
- }
-
-
- export class RoamingController {
- constructor(viewer: Viewer)
-
- addPath(path: RoamingPath): RoamingController
-
- addPaths(paths: Array<RoamingPath>): RoamingController
-
- removePath(path: RoamingPath): RoamingController
-
- getPath(id: String): RoamingPath
-
- getPaths(): Array<RoamingPath>
-
- activate(path: RoamingPath, viewOption: JSON): RoamingController
-
- deactivate(): RoamingController
-
- clear(): RoamingController
-
- }
-
- export class RoamingPath {
- constructor(positions: String | Array<String | Array<Number> | JSON | Position>, duration: Number, pathMode?: String)
-
- positions: String | Array<String | Array<Number> | JSON | Position>
- duration: Number
- pathMode?: String
- }
-
-
- export function mixin(DC: any): void
-
- export function use(plugin: any): void
-
- export function init(callback: Function): void
-
- export function ready(callback: Function): void
- }
|