| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169 |
- /**
- * @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(CustomShader: Object): 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
- }
|