@wwsy/cesium 0.0.8 → 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 CHANGED
@@ -40,58 +40,58 @@ export declare class Attachment {
40
40
  /**
41
41
  * 基础覆盖物、图层
42
42
  * **/
43
- declare class BaseEntityLayer {
43
+ declare class BaseEntityLayer<T extends BasicEntityLayerType = any> {
44
44
  private _entityName;
45
45
  private _customId;
46
46
  private _customData;
47
47
  private _bVisible;
48
48
  private _bLocked;
49
- protected _data: any;
50
- constructor(data: BasicEntityLayerType);
49
+ protected _data: T;
50
+ constructor(data: T);
51
51
  _setBasic(): void;
52
52
  get entityName(): string;
53
53
  set entityName(value: string);
54
54
  GetEntityName(): Promise<{
55
- message: any;
55
+ message: string;
56
56
  success: boolean;
57
- result: any;
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: any;
63
+ message: string;
64
64
  success: boolean;
65
- result: any;
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: any;
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: any;
80
+ message: string;
81
81
  success: boolean;
82
- result: any;
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: any;
88
+ message: string;
89
89
  success: boolean;
90
- result: any;
90
+ result: boolean;
91
91
  }>;
92
92
  SetLocked(value: boolean): void;
93
93
  Update(data: any): void;
94
- protected _updateHook(): void;
94
+ protected _mountedHook(): void;
95
95
  }
96
96
 
97
97
  declare interface BaseImageryLayer {
@@ -136,8 +136,8 @@ declare interface CameraBase {
136
136
  location: number[];
137
137
  locationLimit: number[][];
138
138
  rotation: {
139
- pitch: number;
140
- yaw: number;
139
+ pitch?: number;
140
+ yaw?: number;
141
141
  };
142
142
  pitchLimit: number[];
143
143
  yawLimit: number[];
@@ -153,11 +153,17 @@ export declare class CameraControl {
153
153
  private _CameraChange;
154
154
  ToggleCameraSelfRotate(enable: boolean): void;
155
155
  GetCameraPose(): Promise<{
156
- message: any;
156
+ message: string;
157
157
  success: boolean;
158
- result: any;
158
+ result: {
159
+ location: number[];
160
+ rotation: {
161
+ pitch?: number;
162
+ yaw?: number;
163
+ };
164
+ };
159
165
  }>;
160
- SetCameraPose(options: CameraPoseData): void;
166
+ SetCameraPose(options: Partial<CameraPoseData>): void;
161
167
  ResetCameraPose(): void;
162
168
  GetCameraLimit(): void;
163
169
  SetCameraLimit(): void;
@@ -168,9 +174,9 @@ export declare class CameraControl {
168
174
  SetCameraAnimation(): void;
169
175
  GetCameraAnimation(): void;
170
176
  GetCameraInfo(): Promise<{
171
- message: any;
177
+ message: string;
172
178
  success: boolean;
173
- result: any;
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: any;
324
+ message: string;
224
325
  success: boolean;
225
- result: any;
326
+ result: {
327
+ to: any[][];
328
+ };
226
329
  }>;
227
330
  CartesianToGIS(coord: CoordType[]): Promise<{
228
- message: any;
331
+ message: string;
229
332
  success: boolean;
230
- result: any;
333
+ result: {
334
+ to: number[][];
335
+ };
231
336
  }>;
232
337
  GISToScreenPos(coord: CoordType[]): Promise<{
233
- message: any;
338
+ message: string;
234
339
  success: boolean;
235
- result: any;
340
+ result: {
341
+ to: any[][];
342
+ };
236
343
  }>;
237
344
  PickWorldPointByScreenPos(position: number[]): Promise<{
238
- message: any;
345
+ message: string;
239
346
  success: boolean;
240
- result: any;
347
+ result: {
348
+ point: any[];
349
+ };
241
350
  }>;
242
351
  CreateCADGeoRef(): void;
243
352
  LocalToGlobalGeoRef(): void;
@@ -329,10 +438,6 @@ declare type deepPartial<T> = {
329
438
  [K in keyof T]?: T[K] extends object ? deepPartial<T[K]> : T[K];
330
439
  };
331
440
 
332
- declare interface EntityDrillAtomType {
333
- allowDrillPicking: boolean;
334
- }
335
-
336
441
  /**
337
442
  * @interface EntityEidType
338
443
  * @param {string | null} eid (optional)
@@ -405,6 +510,18 @@ declare interface ICamera {
405
510
  size?: Array<number>;
406
511
  }
407
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
+
408
525
  /**
409
526
  * @interface IEntity
410
527
  * @param {number} overlapOrder
@@ -450,6 +567,70 @@ declare interface IOperations {
450
567
  calculateCoordZ: ICalculateCoordZ;
451
568
  }
452
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
+
453
634
  export declare const LayerEventType: {
454
635
  LEFT_DOWN: Cesium.ScreenSpaceEventType;
455
636
  LEFT_UP: Cesium.ScreenSpaceEventType;
@@ -473,6 +654,20 @@ declare class MapSwitch extends Widget {
473
654
  addMap(map: BaseImageryLayer['options']): void;
474
655
  }
475
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
+
476
671
  /**
477
672
  * @type {MinMaxType}
478
673
  * @alias Array<number>
@@ -545,7 +740,11 @@ export declare const MouseEventType: {
545
740
  DB_CLICK: Cesium.ScreenSpaceEventType;
546
741
  };
547
742
 
548
- export declare class Overlay extends BaseEntityLayer {
743
+ export declare class Overlay<T extends OverlayDelegate = any, K extends {
744
+ [key: string]: any;
745
+ } = any, L extends {
746
+ [key: string]: any;
747
+ } = any> extends BaseEntityLayer<K> {
549
748
  private _eid;
550
749
  protected oType: string;
551
750
  protected type: string;
@@ -553,16 +752,16 @@ export declare class Overlay extends BaseEntityLayer {
553
752
  private _bRemoved;
554
753
  private _allowDrillPicking;
555
754
  private _overlayEvent;
556
- private _layer;
557
- private _operations;
755
+ protected _layer: L;
756
+ protected _operations: IOperations;
558
757
  protected layerType: string;
559
- _delegate: any;
560
- constructor(data: BasicEntityLayerType & Partial<EntityDrillAtomType>);
758
+ protected _delegate: T;
759
+ constructor(data: K);
561
760
  get EntityType(): string;
562
761
  get Eid(): string;
563
762
  get overlayEvent(): OverlayEvent;
564
763
  private _getLayerCollection;
565
- protected _mountedHook(): void;
764
+ private _waitForTerrainReady;
566
765
  private _onAdd;
567
766
  protected _addedHook(): void;
568
767
  private _onRemove;
@@ -570,13 +769,23 @@ export declare class Overlay extends BaseEntityLayer {
570
769
  Delete(): void;
571
770
  emit(type: any, ...params: any[]): void;
572
771
  onClick(callback: any, context?: any): void;
772
+ onDbClick(callback: any, context?: any): void;
573
773
  onMouseEnter(callback: any, context?: any): void;
574
774
  onMouseLeave(callback: any, context?: any): void;
775
+ Update(data: K, operations?: IOperations): void;
575
776
  protected _visibleHook(visible: any): void;
576
777
  protected _getCalculateCoordZ(): {
577
778
  reference: Cesium.HeightReference;
578
779
  height: number;
579
780
  };
781
+ protected _onCameraMotionEndEvent(e: any): void;
782
+ }
783
+
784
+ declare interface OverlayDelegate {
785
+ layerId?: string;
786
+ Eid?: string;
787
+ show?: boolean;
788
+ [key: string]: any;
580
789
  }
581
790
 
582
791
  export declare class OverlayEvent extends Event_2 {
@@ -587,6 +796,7 @@ export declare const OverlayEventType: {
587
796
  MOUSE_OVER: string;
588
797
  MOUSE_OUT: string;
589
798
  POSITION_UPDATE: string;
799
+ CAMERA_MOVE_END: string;
590
800
  LEFT_DOWN: Cesium.ScreenSpaceEventType;
591
801
  LEFT_UP: Cesium.ScreenSpaceEventType;
592
802
  CLICK: Cesium.ScreenSpaceEventType;
@@ -598,97 +808,47 @@ export declare const OverlayEventType: {
598
808
  REMOVE: string;
599
809
  };
600
810
 
601
- export declare class Poi extends Overlay {
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
+
840
+ export declare class Poi extends Overlay<Cesium.Entity, PoiType> {
602
841
  private _styleCache;
603
842
  private _bHover;
843
+ private _constantPositionProperty;
844
+ private _layout;
604
845
  constructor(data: PoiType);
605
846
  _mountedHook(): void;
606
- updateStyle(): Promise<void>;
607
- private applyBillboard;
608
- _renderBillboard(poiStyle?: Partial<PoiEntityAtomType>): Promise<{
609
- image?: undefined;
610
- pixelOffset?: undefined;
611
- horizontalOrigin?: undefined;
612
- verticalOrigin?: undefined;
613
- } | {
614
- image: string;
615
- pixelOffset: Cesium.Cartesian2;
616
- horizontalOrigin: Cesium.HorizontalOrigin;
617
- verticalOrigin: Cesium.VerticalOrigin;
618
- }>;
619
- computeLayout(poiStyle?: Partial<PoiEntityAtomType>): {
620
- width: number;
621
- height: number;
622
- pivot: {
623
- x: number;
624
- y: number;
625
- };
626
- marker?: undefined;
627
- label?: undefined;
628
- text?: undefined;
629
- } | {
630
- width: number;
631
- height: number;
632
- pivot: {
633
- x: number;
634
- y: number;
635
- };
636
- marker: {
637
- x: number;
638
- y: number;
639
- w: number;
640
- h: number;
641
- };
642
- label: {
643
- x: number;
644
- y: number;
645
- w: number;
646
- h: number;
647
- };
648
- text: {
649
- x: number;
650
- y: number;
651
- w: number;
652
- h: number;
653
- };
654
- };
655
- getClientHeightWidth(poiStyle?: Partial<PoiEntityAtomType>): {
656
- width: number;
657
- height: number;
658
- pivot: {
659
- x: number;
660
- y: number;
661
- };
662
- marker?: undefined;
663
- label?: undefined;
664
- text?: undefined;
665
- } | {
666
- width: number;
667
- height: number;
668
- pivot: {
669
- x: number;
670
- y: number;
671
- };
672
- marker: {
673
- x: number;
674
- y: number;
675
- w: number;
676
- h: number;
677
- };
678
- label: {
679
- x: number;
680
- y: number;
681
- w: number;
682
- h: number;
683
- };
684
- text: {
685
- x: number;
686
- y: number;
687
- w: number;
688
- h: number;
689
- };
690
- };
691
- _updateHook(): void;
847
+ _setStyle(): Promise<void>;
848
+ private _applyBillboard;
849
+ private _renderBillboardImage;
850
+ private _drawTextWithWrap;
851
+ private _ComputeLayout;
692
852
  }
693
853
 
694
854
  declare interface PoiEntityAtomType {
@@ -715,6 +875,118 @@ declare interface PoiType extends EntityEidType, Partial<BasicInfoAtomType>, Par
715
875
  visible2D?: deepPartial<Visible2DAtomType>;
716
876
  }
717
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
+
718
990
  export declare class Position {
719
991
  private _lng;
720
992
  private _lat;
@@ -755,6 +1027,35 @@ export declare class Position {
755
1027
  static deserialize(valStr: any): Position;
756
1028
  }
757
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
+
758
1059
  declare interface RegisterEvent {
759
1060
  name: any;
760
1061
  func: (...args: any) => void;
@@ -809,6 +1110,24 @@ export declare const RenderSceneEventType: {
809
1110
  OnGeoLayerFeatureClicked: string;
810
1111
  };
811
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
+
812
1131
  export declare class Scene {
813
1132
  private _viewer;
814
1133
  private _entitys;
@@ -824,9 +1143,9 @@ export declare class Scene {
824
1143
  GetAll(): void;
825
1144
  GetLayers(): any[];
826
1145
  GetByEids(eids: string[]): Promise<{
827
- message: any;
1146
+ message: string;
828
1147
  success: boolean;
829
- result: any;
1148
+ result: any[];
830
1149
  }>;
831
1150
  GetByEntityName(): void;
832
1151
  GetByCustomId(): void;
@@ -931,16 +1250,16 @@ export declare class Tools {
931
1250
 
932
1251
  export declare class Transform {
933
1252
  static transformCartesianToWGS84(cartesian: Cesium.Cartesian3): Position;
934
- static transformCartographicToWGS84(cartographic: any): Position;
935
- static transformWGS84ToCartesian(position: any): Cesium.Cartesian3;
936
- static transformWGS84ToCartographic(position: any): Cesium.Cartographic;
937
- static transformCartesianArrayToWGS84Array(cartesianArr: any): any;
938
- static transformWGS84ArrayToCartesianArray(WGS84Arr: any): any;
939
- static transformWGS84ToMercator(position: any): Position;
940
- static transformMercatorToWGS84(position: any): Position;
941
- static transformWindowToWGS84(position: any, viewer: Viewer): Position;
942
- static transformWindowToCartesian(position: any, viewer: Viewer): any;
943
- static transformWGS84ToWindow(position: any, viewer: any): Cesium.Cartesian2;
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;
944
1263
  }
945
1264
 
946
1265
  /**
@@ -951,8 +1270,27 @@ declare interface TransformAtom2DType {
951
1270
  location: CoordType_2;
952
1271
  }
953
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
+
954
1287
  declare type TscrollPolicy = 'default' | 'always';
955
1288
 
1289
+ declare class VectorLayer extends Layer {
1290
+ constructor(data: BasicEntityLayerType);
1291
+ clear(): void;
1292
+ }
1293
+
956
1294
  declare class Viewer {
957
1295
  private _delegate;
958
1296
  private _baseLayerPicker;
@@ -989,6 +1327,8 @@ declare class Viewer {
989
1327
  get Tools(): Tools;
990
1328
  get imageryLayers(): Cesium.ImageryLayerCollection;
991
1329
  get Poi(): typeof Poi;
1330
+ get Path(): typeof Path;
1331
+ get Range(): typeof Range_2;
992
1332
  constructor(options: WWSYCesiumType);
993
1333
  private init;
994
1334
  destroy(): void;
@@ -1038,6 +1378,67 @@ declare interface VisibleAtomType {
1038
1378
  bVisible: boolean;
1039
1379
  }
1040
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
+
1041
1442
  declare class Widget {
1042
1443
  _enable: boolean;
1043
1444
  _wrapper: HTMLElement | undefined;