@wwsy/cesium 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +512 -36
- package/dist/index.js +5363 -3200
- package/dist/index.umd.cjs +623 -97
- package/package.json +5 -2
package/dist/index.d.ts
CHANGED
|
@@ -52,42 +52,42 @@ declare class BaseEntityLayer<T extends BasicEntityLayerType = any> {
|
|
|
52
52
|
get entityName(): string;
|
|
53
53
|
set entityName(value: string);
|
|
54
54
|
GetEntityName(): Promise<{
|
|
55
|
-
message:
|
|
55
|
+
message: string;
|
|
56
56
|
success: boolean;
|
|
57
|
-
result:
|
|
57
|
+
result: string;
|
|
58
58
|
}>;
|
|
59
59
|
SetEntityName(value: string): void;
|
|
60
60
|
get customId(): string;
|
|
61
61
|
set customId(value: string);
|
|
62
62
|
GetCustomId(): Promise<{
|
|
63
|
-
message:
|
|
63
|
+
message: string;
|
|
64
64
|
success: boolean;
|
|
65
|
-
result:
|
|
65
|
+
result: string;
|
|
66
66
|
}>;
|
|
67
67
|
SetCustomId(value: string): void;
|
|
68
68
|
get customData(): Record<string, any>;
|
|
69
69
|
set customData(value: Record<string, any>);
|
|
70
70
|
GetCustomData(): Promise<{
|
|
71
|
-
message:
|
|
71
|
+
message: string;
|
|
72
72
|
success: boolean;
|
|
73
|
-
result: any
|
|
73
|
+
result: Record<string, any>;
|
|
74
74
|
}>;
|
|
75
75
|
SetCustomData(value: Record<string, any>): void;
|
|
76
76
|
get bVisible(): boolean;
|
|
77
77
|
set bVisible(value: boolean);
|
|
78
78
|
protected _visibleHook(value: boolean): void;
|
|
79
79
|
GetVisible(): Promise<{
|
|
80
|
-
message:
|
|
80
|
+
message: string;
|
|
81
81
|
success: boolean;
|
|
82
|
-
result:
|
|
82
|
+
result: boolean;
|
|
83
83
|
}>;
|
|
84
84
|
SetVisible(value: boolean): void;
|
|
85
85
|
get bLocked(): boolean;
|
|
86
86
|
set bLocked(value: boolean);
|
|
87
87
|
GetLocked(): Promise<{
|
|
88
|
-
message:
|
|
88
|
+
message: string;
|
|
89
89
|
success: boolean;
|
|
90
|
-
result:
|
|
90
|
+
result: boolean;
|
|
91
91
|
}>;
|
|
92
92
|
SetLocked(value: boolean): void;
|
|
93
93
|
Update(data: any): void;
|
|
@@ -153,9 +153,15 @@ export declare class CameraControl {
|
|
|
153
153
|
private _CameraChange;
|
|
154
154
|
ToggleCameraSelfRotate(enable: boolean): void;
|
|
155
155
|
GetCameraPose(): Promise<{
|
|
156
|
-
message:
|
|
156
|
+
message: string;
|
|
157
157
|
success: boolean;
|
|
158
|
-
result:
|
|
158
|
+
result: {
|
|
159
|
+
location: number[];
|
|
160
|
+
rotation: {
|
|
161
|
+
pitch?: number;
|
|
162
|
+
yaw?: number;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
159
165
|
}>;
|
|
160
166
|
SetCameraPose(options: Partial<CameraPoseData>): void;
|
|
161
167
|
ResetCameraPose(): void;
|
|
@@ -168,9 +174,9 @@ export declare class CameraControl {
|
|
|
168
174
|
SetCameraAnimation(): void;
|
|
169
175
|
GetCameraAnimation(): void;
|
|
170
176
|
GetCameraInfo(): Promise<{
|
|
171
|
-
message:
|
|
177
|
+
message: string;
|
|
172
178
|
success: boolean;
|
|
173
|
-
result:
|
|
179
|
+
result: CameraBase;
|
|
174
180
|
}>;
|
|
175
181
|
UpdateCamera(options: CameraBase & CameraPoseData): void;
|
|
176
182
|
Move(): void;
|
|
@@ -207,6 +213,101 @@ export declare class CameraRoam {
|
|
|
207
213
|
constructor();
|
|
208
214
|
}
|
|
209
215
|
|
|
216
|
+
declare interface CirclePolygon2DAtomType {
|
|
217
|
+
center: Array<number>;
|
|
218
|
+
radius: number;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
declare interface constructorOptions {
|
|
222
|
+
image?: Cesium.Resource | string;
|
|
223
|
+
repeat?: Cesium.Cartesian2;
|
|
224
|
+
speed?: number;
|
|
225
|
+
color?: Cesium.Color;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
declare interface constructorOptions_10 {
|
|
229
|
+
color?: Cesium.Color;
|
|
230
|
+
image?: string;
|
|
231
|
+
repeat?: Cesium.Cartesian2;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
declare interface constructorOptions_11 {
|
|
235
|
+
color?: Cesium.Color;
|
|
236
|
+
image?: string;
|
|
237
|
+
repeat?: Cesium.Cartesian2;
|
|
238
|
+
speed?: number;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
declare interface constructorOptions_12 {
|
|
242
|
+
color?: Cesium.Color;
|
|
243
|
+
image?: string;
|
|
244
|
+
repeat?: Cesium.Cartesian2;
|
|
245
|
+
speed?: number;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
declare interface constructorOptions_13 {
|
|
249
|
+
color?: Cesium.Color;
|
|
250
|
+
count?: number;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
declare interface constructorOptions_2 {
|
|
254
|
+
gapColor?: Cesium.Color;
|
|
255
|
+
dashLength?: number;
|
|
256
|
+
dashPattern?: number;
|
|
257
|
+
color?: Cesium.Color;
|
|
258
|
+
speed?: number;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
declare interface constructorOptions_3 {
|
|
262
|
+
image?: Cesium.Resource | string;
|
|
263
|
+
repeat?: Cesium.Cartesian2;
|
|
264
|
+
speed?: number;
|
|
265
|
+
color?: Cesium.Color;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
declare interface constructorOptions_4 {
|
|
269
|
+
color?: Cesium.Color;
|
|
270
|
+
bgColor?: Cesium.Color;
|
|
271
|
+
repeat?: Cesium.Cartesian2;
|
|
272
|
+
dotSize?: number;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
declare interface constructorOptions_5 {
|
|
276
|
+
color?: Cesium.Color;
|
|
277
|
+
repeat?: Cesium.Cartesian2;
|
|
278
|
+
speed?: number;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
declare interface constructorOptions_6 {
|
|
282
|
+
color?: Cesium.Color;
|
|
283
|
+
cellAlpha?: number;
|
|
284
|
+
lineCount?: Cesium.Cartesian2;
|
|
285
|
+
lineThickness?: Cesium.Cartesian2;
|
|
286
|
+
lineOffset?: Cesium.Cartesian2;
|
|
287
|
+
lineThickColor?: Cesium.Color;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
declare interface constructorOptions_7 {
|
|
291
|
+
color?: Cesium.Color;
|
|
292
|
+
gapColor?: Cesium.Color;
|
|
293
|
+
dashWidth?: number;
|
|
294
|
+
speed?: number;
|
|
295
|
+
rotation?: number;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
declare interface constructorOptions_8 {
|
|
299
|
+
color?: Cesium.Color;
|
|
300
|
+
speed?: number;
|
|
301
|
+
count?: number;
|
|
302
|
+
gradient?: number;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
declare interface constructorOptions_9 {
|
|
306
|
+
color?: Cesium.Color;
|
|
307
|
+
speed?: number;
|
|
308
|
+
count?: number;
|
|
309
|
+
}
|
|
310
|
+
|
|
210
311
|
/**
|
|
211
312
|
* @type {Coord2DType}
|
|
212
313
|
* @alias Array<number>
|
|
@@ -220,24 +321,32 @@ export declare class Coordinate {
|
|
|
220
321
|
};
|
|
221
322
|
constructor(viewer: any);
|
|
222
323
|
GISToCartesian(coord: CoordType[]): Promise<{
|
|
223
|
-
message:
|
|
324
|
+
message: string;
|
|
224
325
|
success: boolean;
|
|
225
|
-
result:
|
|
326
|
+
result: {
|
|
327
|
+
to: any[][];
|
|
328
|
+
};
|
|
226
329
|
}>;
|
|
227
330
|
CartesianToGIS(coord: CoordType[]): Promise<{
|
|
228
|
-
message:
|
|
331
|
+
message: string;
|
|
229
332
|
success: boolean;
|
|
230
|
-
result:
|
|
333
|
+
result: {
|
|
334
|
+
to: number[][];
|
|
335
|
+
};
|
|
231
336
|
}>;
|
|
232
337
|
GISToScreenPos(coord: CoordType[]): Promise<{
|
|
233
|
-
message:
|
|
338
|
+
message: string;
|
|
234
339
|
success: boolean;
|
|
235
|
-
result:
|
|
340
|
+
result: {
|
|
341
|
+
to: any[][];
|
|
342
|
+
};
|
|
236
343
|
}>;
|
|
237
344
|
PickWorldPointByScreenPos(position: number[]): Promise<{
|
|
238
|
-
message:
|
|
345
|
+
message: string;
|
|
239
346
|
success: boolean;
|
|
240
|
-
result:
|
|
347
|
+
result: {
|
|
348
|
+
point: any[];
|
|
349
|
+
};
|
|
241
350
|
}>;
|
|
242
351
|
CreateCADGeoRef(): void;
|
|
243
352
|
LocalToGlobalGeoRef(): void;
|
|
@@ -401,6 +510,18 @@ declare interface ICamera {
|
|
|
401
510
|
size?: Array<number>;
|
|
402
511
|
}
|
|
403
512
|
|
|
513
|
+
/**
|
|
514
|
+
* @type {ICoordinates}
|
|
515
|
+
* @alias Array<Array<number>>
|
|
516
|
+
*/
|
|
517
|
+
declare type ICoordinates = Array<Array<number>>;
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* @type {ICoordinates2D}
|
|
521
|
+
* @alias Array<Array<Array<number>>>
|
|
522
|
+
*/
|
|
523
|
+
declare type ICoordinates2D = Array<Array<Array<number>>>;
|
|
524
|
+
|
|
404
525
|
/**
|
|
405
526
|
* @interface IEntity
|
|
406
527
|
* @param {number} overlapOrder
|
|
@@ -446,6 +567,70 @@ declare interface IOperations {
|
|
|
446
567
|
calculateCoordZ: ICalculateCoordZ;
|
|
447
568
|
}
|
|
448
569
|
|
|
570
|
+
/**
|
|
571
|
+
* @interface IPolygon2DAtom
|
|
572
|
+
* @param {ICoordinates2D} coordinates
|
|
573
|
+
* @param {number} coordZ
|
|
574
|
+
*/
|
|
575
|
+
declare interface IPolygon2DAtom {
|
|
576
|
+
coordinates: ICoordinates2D;
|
|
577
|
+
coordZ: number;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* @interface IPolylineATom
|
|
582
|
+
* @param {ICoordinates} coordinates
|
|
583
|
+
* @param {boolean} bClosed
|
|
584
|
+
*/
|
|
585
|
+
declare interface IPolylineATom {
|
|
586
|
+
coordinates: ICoordinates;
|
|
587
|
+
bClosed: boolean;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
declare class Layer extends BaseEntityLayer {
|
|
591
|
+
/**
|
|
592
|
+
* 图层生命周期类别
|
|
593
|
+
* REUSABLE - 复用图层,用于点线面等可复用同一图层
|
|
594
|
+
* TRANSIENT - 单次图层,用于热力图等非覆盖物图层
|
|
595
|
+
*/
|
|
596
|
+
static layerCategory: 'REUSABLE' | 'TRANSIENT';
|
|
597
|
+
private _id;
|
|
598
|
+
_viewer: Viewer;
|
|
599
|
+
private _layerEvent;
|
|
600
|
+
private _eid;
|
|
601
|
+
private _bRemoved;
|
|
602
|
+
_cache: Map<string, any>;
|
|
603
|
+
_delegate: any;
|
|
604
|
+
_state: string;
|
|
605
|
+
oType: string;
|
|
606
|
+
type: string;
|
|
607
|
+
constructor(data: BasicEntityLayerType);
|
|
608
|
+
get layerId(): string;
|
|
609
|
+
get Eid(): string;
|
|
610
|
+
get layerEvent(): LayerEvent;
|
|
611
|
+
get delegate(): any;
|
|
612
|
+
protected _visibleHook(value: boolean): void;
|
|
613
|
+
_addedHook(): void;
|
|
614
|
+
_onAdd(viewer: any): void;
|
|
615
|
+
_onRemove(): void;
|
|
616
|
+
_removedHook(): void;
|
|
617
|
+
private _addOverlay;
|
|
618
|
+
private _addOverlays;
|
|
619
|
+
addOverlay(overlay: any, operations?: IOperations): void;
|
|
620
|
+
removeOverlay(overlay: any): void;
|
|
621
|
+
getOverlay(id?: any): any;
|
|
622
|
+
clear(): void;
|
|
623
|
+
onClick(callback: any, context: any): void;
|
|
624
|
+
on(type: any, callback: any, context: any): void;
|
|
625
|
+
off(type: any, callback: any, context: any): void;
|
|
626
|
+
emit(type: any, params: any): void;
|
|
627
|
+
private _onCameraMotionEndEvent;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
declare class LayerEvent extends Event_2 {
|
|
631
|
+
constructor();
|
|
632
|
+
}
|
|
633
|
+
|
|
449
634
|
export declare const LayerEventType: {
|
|
450
635
|
LEFT_DOWN: Cesium.ScreenSpaceEventType;
|
|
451
636
|
LEFT_UP: Cesium.ScreenSpaceEventType;
|
|
@@ -469,6 +654,20 @@ declare class MapSwitch extends Widget {
|
|
|
469
654
|
addMap(map: BaseImageryLayer['options']): void;
|
|
470
655
|
}
|
|
471
656
|
|
|
657
|
+
declare class MaterialProperty {
|
|
658
|
+
private _definitionChanged;
|
|
659
|
+
protected _color: any;
|
|
660
|
+
protected _speed: any;
|
|
661
|
+
color: any;
|
|
662
|
+
speed: any;
|
|
663
|
+
constructor(options?: any);
|
|
664
|
+
get isConstant(): boolean;
|
|
665
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
666
|
+
getType(time: any): any;
|
|
667
|
+
getValue(time: any, result: any): any;
|
|
668
|
+
equals(other: any): boolean;
|
|
669
|
+
}
|
|
670
|
+
|
|
472
671
|
/**
|
|
473
672
|
* @type {MinMaxType}
|
|
474
673
|
* @alias Array<number>
|
|
@@ -543,6 +742,8 @@ export declare const MouseEventType: {
|
|
|
543
742
|
|
|
544
743
|
export declare class Overlay<T extends OverlayDelegate = any, K extends {
|
|
545
744
|
[key: string]: any;
|
|
745
|
+
} = any, L extends {
|
|
746
|
+
[key: string]: any;
|
|
546
747
|
} = any> extends BaseEntityLayer<K> {
|
|
547
748
|
private _eid;
|
|
548
749
|
protected oType: string;
|
|
@@ -551,8 +752,8 @@ export declare class Overlay<T extends OverlayDelegate = any, K extends {
|
|
|
551
752
|
private _bRemoved;
|
|
552
753
|
private _allowDrillPicking;
|
|
553
754
|
private _overlayEvent;
|
|
554
|
-
|
|
555
|
-
|
|
755
|
+
protected _layer: L;
|
|
756
|
+
protected _operations: IOperations;
|
|
556
757
|
protected layerType: string;
|
|
557
758
|
protected _delegate: T;
|
|
558
759
|
constructor(data: K);
|
|
@@ -560,6 +761,7 @@ export declare class Overlay<T extends OverlayDelegate = any, K extends {
|
|
|
560
761
|
get Eid(): string;
|
|
561
762
|
get overlayEvent(): OverlayEvent;
|
|
562
763
|
private _getLayerCollection;
|
|
764
|
+
private _waitForTerrainReady;
|
|
563
765
|
private _onAdd;
|
|
564
766
|
protected _addedHook(): void;
|
|
565
767
|
private _onRemove;
|
|
@@ -567,13 +769,16 @@ export declare class Overlay<T extends OverlayDelegate = any, K extends {
|
|
|
567
769
|
Delete(): void;
|
|
568
770
|
emit(type: any, ...params: any[]): void;
|
|
569
771
|
onClick(callback: any, context?: any): void;
|
|
772
|
+
onDbClick(callback: any, context?: any): void;
|
|
570
773
|
onMouseEnter(callback: any, context?: any): void;
|
|
571
774
|
onMouseLeave(callback: any, context?: any): void;
|
|
775
|
+
Update(data: K, operations?: IOperations): void;
|
|
572
776
|
protected _visibleHook(visible: any): void;
|
|
573
777
|
protected _getCalculateCoordZ(): {
|
|
574
778
|
reference: Cesium.HeightReference;
|
|
575
779
|
height: number;
|
|
576
780
|
};
|
|
781
|
+
protected _onCameraMotionEndEvent(e: any): void;
|
|
577
782
|
}
|
|
578
783
|
|
|
579
784
|
declare interface OverlayDelegate {
|
|
@@ -591,6 +796,7 @@ export declare const OverlayEventType: {
|
|
|
591
796
|
MOUSE_OVER: string;
|
|
592
797
|
MOUSE_OUT: string;
|
|
593
798
|
POSITION_UPDATE: string;
|
|
799
|
+
CAMERA_MOVE_END: string;
|
|
594
800
|
LEFT_DOWN: Cesium.ScreenSpaceEventType;
|
|
595
801
|
LEFT_UP: Cesium.ScreenSpaceEventType;
|
|
596
802
|
CLICK: Cesium.ScreenSpaceEventType;
|
|
@@ -602,6 +808,35 @@ export declare const OverlayEventType: {
|
|
|
602
808
|
REMOVE: string;
|
|
603
809
|
};
|
|
604
810
|
|
|
811
|
+
export declare class Path extends Overlay<Cesium.Entity, PathType, VectorLayer> {
|
|
812
|
+
private _constantPositionProperty;
|
|
813
|
+
private _pixel;
|
|
814
|
+
private _pathStyleType;
|
|
815
|
+
constructor(data: PathType);
|
|
816
|
+
_mountedHook(): void;
|
|
817
|
+
_setStyle(): Promise<void>;
|
|
818
|
+
private _setMaterial;
|
|
819
|
+
getScreenCenterPosition(viewer: any): any;
|
|
820
|
+
getPreciseScreenCenterPosition(viewer: any): any;
|
|
821
|
+
_onCameraMotionEndEvent(layer: VectorLayer): void;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
declare interface PathEntityAtomType {
|
|
825
|
+
type: PathEntityStyleType;
|
|
826
|
+
width: number;
|
|
827
|
+
speedupFactor: number;
|
|
828
|
+
opacity: number;
|
|
829
|
+
color: string;
|
|
830
|
+
passColor: string;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
declare type PathEntityStyleType = 'fit_solid' | 'adaptive_solid' | 'none' | 'solid' | 'arrow' | 'arrow_dot' | 'dashed_dot' | 'arrow_dashed' | 'flash' | 'scan_line' | 'brimless_arrow' | 'railway' | 'round_pipe' | 'square_pipe' | 'dashed_line';
|
|
834
|
+
|
|
835
|
+
declare interface PathType extends EntityEidType, Partial<BasicInfoAtomType>, Partial<VisibleAtomType>, Partial<EntityFlagAtomType>, Partial<EntityOutlinerAtomType> {
|
|
836
|
+
pathStyle?: Partial<PathEntityAtomType>;
|
|
837
|
+
polyline?: Partial<IPolylineATom>;
|
|
838
|
+
}
|
|
839
|
+
|
|
605
840
|
export declare class Poi extends Overlay<Cesium.Entity, PoiType> {
|
|
606
841
|
private _styleCache;
|
|
607
842
|
private _bHover;
|
|
@@ -640,6 +875,118 @@ declare interface PoiType extends EntityEidType, Partial<BasicInfoAtomType>, Par
|
|
|
640
875
|
visible2D?: deepPartial<Visible2DAtomType>;
|
|
641
876
|
}
|
|
642
877
|
|
|
878
|
+
export declare class PolygonDashLineMaterialProperty extends MaterialProperty {
|
|
879
|
+
static materialType: string;
|
|
880
|
+
private _gapColor;
|
|
881
|
+
private _dashWidth;
|
|
882
|
+
private _rotation;
|
|
883
|
+
gapColor: any;
|
|
884
|
+
dashWidth: any;
|
|
885
|
+
rotation: any;
|
|
886
|
+
constructor(options?: constructorOptions_7);
|
|
887
|
+
get isConstant(): any;
|
|
888
|
+
getType(): string;
|
|
889
|
+
getValue(time: any, result: any): any;
|
|
890
|
+
equals(other: any): any;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
export declare class PolygonFlasBoardMaterialProperty extends MaterialProperty {
|
|
894
|
+
static materialType: string;
|
|
895
|
+
private _repeat;
|
|
896
|
+
repeat: any;
|
|
897
|
+
constructor(options?: constructorOptions_5);
|
|
898
|
+
get isConstant(): any;
|
|
899
|
+
getType(): string;
|
|
900
|
+
getValue(time: any, result: any): any;
|
|
901
|
+
equals(other: any): any;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export declare class PolygonGridBoardMaterialProperty extends MaterialProperty {
|
|
905
|
+
static materialType: string;
|
|
906
|
+
private _cellAlpha;
|
|
907
|
+
private _lineCount;
|
|
908
|
+
private _lineThickness;
|
|
909
|
+
private _lineOffset;
|
|
910
|
+
private _lineThickColor;
|
|
911
|
+
cellAlpha: any;
|
|
912
|
+
lineCount: any;
|
|
913
|
+
lineThickness: any;
|
|
914
|
+
lineOffset: any;
|
|
915
|
+
lineThickColor: any;
|
|
916
|
+
constructor(options?: constructorOptions_6);
|
|
917
|
+
get isConstant(): any;
|
|
918
|
+
getType(): string;
|
|
919
|
+
getValue(time: any, result: any): any;
|
|
920
|
+
equals(other: any): any;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
export declare class PolygonPolkaDotMaterialProperty extends MaterialProperty {
|
|
924
|
+
static materialType: string;
|
|
925
|
+
private _bgColor;
|
|
926
|
+
private _repeat;
|
|
927
|
+
private _dotSize;
|
|
928
|
+
bgColor: any;
|
|
929
|
+
repeat: any;
|
|
930
|
+
dotSize: any;
|
|
931
|
+
constructor(options?: constructorOptions_4);
|
|
932
|
+
get isConstant(): any;
|
|
933
|
+
getType(): string;
|
|
934
|
+
getValue(time: any, result: any): any;
|
|
935
|
+
equals(other: any): any;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
export declare class PolygonRadarMaterialProperty extends MaterialProperty {
|
|
939
|
+
static materialType: string;
|
|
940
|
+
private _count;
|
|
941
|
+
count: number;
|
|
942
|
+
constructor(options?: constructorOptions_8);
|
|
943
|
+
get isConstant(): any;
|
|
944
|
+
getType(): string;
|
|
945
|
+
getValue(time: any, result: any): any;
|
|
946
|
+
equals(other: any): any;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
export declare class PolylineDashMaterialProperty extends MaterialProperty {
|
|
950
|
+
static materialType: string;
|
|
951
|
+
private _gapColor;
|
|
952
|
+
private _dashLength;
|
|
953
|
+
private _dashPattern;
|
|
954
|
+
gapColor: any;
|
|
955
|
+
dashLength: any;
|
|
956
|
+
dashPattern: any;
|
|
957
|
+
constructor(options?: constructorOptions_2);
|
|
958
|
+
get isConstant(): any;
|
|
959
|
+
getType(): string;
|
|
960
|
+
getValue(time: any, result: any): any;
|
|
961
|
+
equals(other: any): any;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
export declare class PolylineImageTrailMaterialProperty extends MaterialProperty {
|
|
965
|
+
static materialType: string;
|
|
966
|
+
private _image;
|
|
967
|
+
private _repeat;
|
|
968
|
+
image: any;
|
|
969
|
+
repeat: any;
|
|
970
|
+
constructor(options?: constructorOptions);
|
|
971
|
+
get isConstant(): any;
|
|
972
|
+
getType(): string;
|
|
973
|
+
getValue(time: any, result: any): any;
|
|
974
|
+
equals(other: any): any;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
export declare class PolylineVolumeImageTrailMaterialProperty extends MaterialProperty {
|
|
978
|
+
static materialType: string;
|
|
979
|
+
private _image;
|
|
980
|
+
private _repeat;
|
|
981
|
+
image: any;
|
|
982
|
+
repeat: any;
|
|
983
|
+
constructor(options?: constructorOptions_3);
|
|
984
|
+
get isConstant(): any;
|
|
985
|
+
getType(): string;
|
|
986
|
+
getValue(time: any, result: any): any;
|
|
987
|
+
equals(other: any): any;
|
|
988
|
+
}
|
|
989
|
+
|
|
643
990
|
export declare class Position {
|
|
644
991
|
private _lng;
|
|
645
992
|
private _lat;
|
|
@@ -680,6 +1027,35 @@ export declare class Position {
|
|
|
680
1027
|
static deserialize(valStr: any): Position;
|
|
681
1028
|
}
|
|
682
1029
|
|
|
1030
|
+
declare class Range_2 extends Overlay<Cesium.Entity, RangeType, VectorLayer> {
|
|
1031
|
+
private _constantPositionProperty;
|
|
1032
|
+
constructor(data: RangeType);
|
|
1033
|
+
_mountedHook(): void;
|
|
1034
|
+
_setStyle(): Promise<void>;
|
|
1035
|
+
private _createPolygon;
|
|
1036
|
+
private _createWall;
|
|
1037
|
+
private _calculateAreaBasedRepeat;
|
|
1038
|
+
private _calculateDistanceBasedRepeat;
|
|
1039
|
+
private _interpolatePositionsByInterval;
|
|
1040
|
+
private interpolateCirclePositions;
|
|
1041
|
+
}
|
|
1042
|
+
export { Range_2 as Range }
|
|
1043
|
+
|
|
1044
|
+
declare interface RangeEntityAtomType {
|
|
1045
|
+
shape: string;
|
|
1046
|
+
type: string;
|
|
1047
|
+
fillAreaType: string;
|
|
1048
|
+
height: number;
|
|
1049
|
+
strokeWeight: number;
|
|
1050
|
+
color: string;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
declare interface RangeType extends EntityEidType, Partial<BasicInfoAtomType>, Partial<TransformAtomType>, Partial<VisibleAtomType>, Partial<EntityFlagAtomType>, Partial<EntityOutlinerAtomType> {
|
|
1054
|
+
rangeStyle?: Partial<RangeEntityAtomType>;
|
|
1055
|
+
circlePolygon2D?: Partial<CirclePolygon2DAtomType>;
|
|
1056
|
+
polygon2D?: Partial<IPolygon2DAtom>;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
683
1059
|
declare interface RegisterEvent {
|
|
684
1060
|
name: any;
|
|
685
1061
|
func: (...args: any) => void;
|
|
@@ -734,6 +1110,24 @@ export declare const RenderSceneEventType: {
|
|
|
734
1110
|
OnGeoLayerFeatureClicked: string;
|
|
735
1111
|
};
|
|
736
1112
|
|
|
1113
|
+
/**
|
|
1114
|
+
* @interface RotatorType
|
|
1115
|
+
* @param {number} pitch (optional)
|
|
1116
|
+
* @param {number} yaw (optional)
|
|
1117
|
+
* @param {number} roll (optional)
|
|
1118
|
+
*/
|
|
1119
|
+
declare interface RotatorType {
|
|
1120
|
+
pitch?: number;
|
|
1121
|
+
yaw?: number;
|
|
1122
|
+
roll?: number;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* @type {ScaleType}
|
|
1127
|
+
* @alias Array<number>
|
|
1128
|
+
*/
|
|
1129
|
+
declare type ScaleType = Array<number>;
|
|
1130
|
+
|
|
737
1131
|
export declare class Scene {
|
|
738
1132
|
private _viewer;
|
|
739
1133
|
private _entitys;
|
|
@@ -749,9 +1143,9 @@ export declare class Scene {
|
|
|
749
1143
|
GetAll(): void;
|
|
750
1144
|
GetLayers(): any[];
|
|
751
1145
|
GetByEids(eids: string[]): Promise<{
|
|
752
|
-
message:
|
|
1146
|
+
message: string;
|
|
753
1147
|
success: boolean;
|
|
754
|
-
result: any;
|
|
1148
|
+
result: any[];
|
|
755
1149
|
}>;
|
|
756
1150
|
GetByEntityName(): void;
|
|
757
1151
|
GetByCustomId(): void;
|
|
@@ -856,16 +1250,16 @@ export declare class Tools {
|
|
|
856
1250
|
|
|
857
1251
|
export declare class Transform {
|
|
858
1252
|
static transformCartesianToWGS84(cartesian: Cesium.Cartesian3): Position;
|
|
859
|
-
static transformCartographicToWGS84(cartographic:
|
|
860
|
-
static transformWGS84ToCartesian(position:
|
|
861
|
-
static transformWGS84ToCartographic(position:
|
|
862
|
-
static transformCartesianArrayToWGS84Array(cartesianArr:
|
|
863
|
-
static transformWGS84ArrayToCartesianArray(WGS84Arr:
|
|
864
|
-
static transformWGS84ToMercator(position:
|
|
865
|
-
static transformMercatorToWGS84(position:
|
|
866
|
-
static transformWindowToWGS84(position:
|
|
867
|
-
static transformWindowToCartesian(position:
|
|
868
|
-
static transformWGS84ToWindow(position:
|
|
1253
|
+
static transformCartographicToWGS84(cartographic: Cesium.Cartographic): Position;
|
|
1254
|
+
static transformWGS84ToCartesian(position: Position): Cesium.Cartesian3;
|
|
1255
|
+
static transformWGS84ToCartographic(position: Position): Cesium.Cartographic;
|
|
1256
|
+
static transformCartesianArrayToWGS84Array(cartesianArr: Cesium.Cartesian3[]): Position[];
|
|
1257
|
+
static transformWGS84ArrayToCartesianArray(WGS84Arr: Position[]): Cesium.Cartesian3[];
|
|
1258
|
+
static transformWGS84ToMercator(position: Position): Position;
|
|
1259
|
+
static transformMercatorToWGS84(position: Position): Position;
|
|
1260
|
+
static transformWindowToWGS84(position: Cesium.Cartesian2, viewer: Cesium.Viewer | Cesium.CesiumWidget | Viewer): Position;
|
|
1261
|
+
static transformWindowToCartesian(position: Cesium.Cartesian2, viewer: Cesium.Viewer | Cesium.CesiumWidget | Viewer): Cesium.Cartesian3 | undefined;
|
|
1262
|
+
static transformWGS84ToWindow(position: Position, viewer: Cesium.Viewer | Cesium.CesiumWidget | Viewer): Cesium.Cartesian2 | undefined;
|
|
869
1263
|
}
|
|
870
1264
|
|
|
871
1265
|
/**
|
|
@@ -876,8 +1270,27 @@ declare interface TransformAtom2DType {
|
|
|
876
1270
|
location: CoordType_2;
|
|
877
1271
|
}
|
|
878
1272
|
|
|
1273
|
+
/**
|
|
1274
|
+
* @interface TransformAtomType
|
|
1275
|
+
* @param {CoordType} location
|
|
1276
|
+
* @param {RotatorType} rotator
|
|
1277
|
+
* @param {ScaleType} scale3d
|
|
1278
|
+
* @param {Array<number>} pivotOffset
|
|
1279
|
+
*/
|
|
1280
|
+
declare interface TransformAtomType {
|
|
1281
|
+
location: CoordType_2;
|
|
1282
|
+
rotator: RotatorType;
|
|
1283
|
+
scale3d: ScaleType;
|
|
1284
|
+
pivotOffset: Array<number>;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
879
1287
|
declare type TscrollPolicy = 'default' | 'always';
|
|
880
1288
|
|
|
1289
|
+
declare class VectorLayer extends Layer {
|
|
1290
|
+
constructor(data: BasicEntityLayerType);
|
|
1291
|
+
clear(): void;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
881
1294
|
declare class Viewer {
|
|
882
1295
|
private _delegate;
|
|
883
1296
|
private _baseLayerPicker;
|
|
@@ -914,6 +1327,8 @@ declare class Viewer {
|
|
|
914
1327
|
get Tools(): Tools;
|
|
915
1328
|
get imageryLayers(): Cesium.ImageryLayerCollection;
|
|
916
1329
|
get Poi(): typeof Poi;
|
|
1330
|
+
get Path(): typeof Path;
|
|
1331
|
+
get Range(): typeof Range_2;
|
|
917
1332
|
constructor(options: WWSYCesiumType);
|
|
918
1333
|
private init;
|
|
919
1334
|
destroy(): void;
|
|
@@ -963,6 +1378,67 @@ declare interface VisibleAtomType {
|
|
|
963
1378
|
bVisible: boolean;
|
|
964
1379
|
}
|
|
965
1380
|
|
|
1381
|
+
export declare class WallBiasMaterialProperty extends MaterialProperty {
|
|
1382
|
+
static materialType: string;
|
|
1383
|
+
private _image;
|
|
1384
|
+
private _repeat;
|
|
1385
|
+
image: any;
|
|
1386
|
+
repeat: any;
|
|
1387
|
+
constructor(options?: constructorOptions_12);
|
|
1388
|
+
get isConstant(): any;
|
|
1389
|
+
getType(): string;
|
|
1390
|
+
getValue(time: any, result: any): any;
|
|
1391
|
+
equals(other: any): any;
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
export declare class WallGridMaterialProperty extends MaterialProperty {
|
|
1395
|
+
static materialType: string;
|
|
1396
|
+
private _image;
|
|
1397
|
+
private _repeat;
|
|
1398
|
+
image: string;
|
|
1399
|
+
repeat: Cesium.Cartesian2;
|
|
1400
|
+
constructor(options?: constructorOptions_10);
|
|
1401
|
+
get isConstant(): any;
|
|
1402
|
+
getType(): string;
|
|
1403
|
+
getValue(time: any, result: any): any;
|
|
1404
|
+
equals(other: any): any;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
export declare class WallLoopLineMaterialProperty extends MaterialProperty {
|
|
1408
|
+
static materialType: string;
|
|
1409
|
+
private _image;
|
|
1410
|
+
private _repeat;
|
|
1411
|
+
image: any;
|
|
1412
|
+
repeat: any;
|
|
1413
|
+
constructor(options?: constructorOptions_11);
|
|
1414
|
+
get isConstant(): any;
|
|
1415
|
+
getType(): string;
|
|
1416
|
+
getValue(time: any, result: any): any;
|
|
1417
|
+
equals(other: any): any;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
export declare class WallStripeMaterialProperty extends MaterialProperty {
|
|
1421
|
+
static materialType: string;
|
|
1422
|
+
private _count;
|
|
1423
|
+
count: any;
|
|
1424
|
+
constructor(options?: constructorOptions_13);
|
|
1425
|
+
get isConstant(): any;
|
|
1426
|
+
getType(): string;
|
|
1427
|
+
getValue(time: any, result: any): any;
|
|
1428
|
+
equals(other: any): any;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
export declare class WallWaveMaterialProperty extends MaterialProperty {
|
|
1432
|
+
static materialType: string;
|
|
1433
|
+
private _count;
|
|
1434
|
+
count: any;
|
|
1435
|
+
constructor(options?: constructorOptions_9);
|
|
1436
|
+
get isConstant(): any;
|
|
1437
|
+
getType(): string;
|
|
1438
|
+
getValue(time: any, result: any): any;
|
|
1439
|
+
equals(other: any): any;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
966
1442
|
declare class Widget {
|
|
967
1443
|
_enable: boolean;
|
|
968
1444
|
_wrapper: HTMLElement | undefined;
|