aircitytype 1.0.27 → 1.0.29

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.
Files changed (2) hide show
  1. package/index.d.ts +23 -9
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -218,7 +218,7 @@ interface TileLayer {
218
218
  }
219
219
 
220
220
  interface Tools {
221
- setMeasurement(MeasurementMode: string, options: any): void;
221
+ setMeasurement(MeasurementMode: number, options: any): void;
222
222
  startMeasurement(): void;
223
223
  stopMeasurement(): void;
224
224
  stopClip(): void;
@@ -510,10 +510,10 @@ type CustomTileLayer = {
510
510
  id: string; //CustomObject对象的ID
511
511
  tileLayerId: string; //TileLayer图层的ID
512
512
  objectId: string | string[]; //TileLayer图层中包含的待复制的模型(Actor)的ObjectId,同时也支持数组类型参数即把多个actor复制为一个customObject
513
- location: number[]; //位置坐标:[X, Y, Z],取值示例,数组元素类型:(number),取值范围:[任意数值]
514
- coordinateType: number; //坐标系类型,取值:0为Projection类型,1为WGS84类型,默认值:0
515
- rotation: number[]; // 旋转:[Pitch, Yaw, Roll],数组元素类型:(number),取值范围:[任意数值]
516
- scale: number[]; // 缩放:[X, Y, Z],数组元素类型:(number),取值范围:[任意正整数]
513
+ location?: number[]; //位置坐标:[X, Y, Z],取值示例,数组元素类型:(number),取值范围:[任意数值]
514
+ coordinateType?: number; //坐标系类型,取值:0为Projection类型,1为WGS84类型,默认值:0
515
+ rotation?: number[]; // 旋转:[Pitch, Yaw, Roll],数组元素类型:(number),取值范围:[任意数值]
516
+ scale?: number[]; // 缩放:[X, Y, Z],数组元素类型:(number),取值范围:[任意正整数]
517
517
  smoothMotion: number; // 1: 平滑插值,0: 跳跃
518
518
  }
519
519
 
@@ -674,13 +674,16 @@ interface Marker {
674
674
  update(p: markType | markType[]): Promise<null>;
675
675
  delete(p: string | string[]): Promise<void>;
676
676
  deleteByGroupId(groupId: string, fn?: () => void): void;
677
- focus(id: string, o1?: number, o2?: number): any;
677
+ showByGroupId(groupId: string, fn?: () => void): void;
678
+ hideByGroupId(groupId: string, fn?: () => void): void;
679
+ focus(id: string, o1?: number, o2?: number, rotation?: number[]): any;
678
680
  show(ids: string[] | string, fn?: () => void): void;
679
681
  hide(ids: string[] | string, fn?: () => void): void;
680
682
  hideAllPopupWindow(): void;
683
+ showPopupWindow(id:string|string[]):void;
681
684
  setCoordinate(
682
685
  id: string,
683
- newVal: [number, number, number],
686
+ newVal: number[],
684
687
  fn?: () => void
685
688
  ): void;
686
689
  }
@@ -736,7 +739,7 @@ interface EditHelper {
736
739
  start(fn?: () => void): void;
737
740
  }
738
741
 
739
- declare class AirCityAPI {
742
+ declare class fdapi {
740
743
  tag: any;
741
744
  coord: any;
742
745
  constructor(a: any, b: any, c: any);
@@ -762,6 +765,8 @@ declare class AirCityAPI {
762
765
  editHelper: EditHelper;
763
766
  reset(p?: number): void;
764
767
  destroy(): void;
768
+ reset(): void;
769
+ destroy(): void;
765
770
  }
766
771
 
767
772
  declare interface AirInstance {
@@ -813,6 +818,15 @@ declare namespace acapi {
813
818
  constructor(a: any, b: any, c?: any);
814
819
  getAPI(): any;
815
820
  setBitrate(a: any): void;
821
+
822
+ }
823
+
824
+ // 定义 Color 枚举,用于表示不同的颜色
825
+ enum Color {
826
+ Red = "#FF0000", // 红色的十六进制值
827
+ Green = "#00FF00", // 示例:绿色
828
+ Blue = "#0000FF", // 示例:蓝色
829
+ // 可以添加更多的颜色
816
830
  }
817
831
 
818
832
  enum BPFuncParamType {
@@ -847,7 +861,7 @@ type EchartTool = {
847
861
 
848
862
  declare var HostConfig: HOSTINFO;
849
863
  declare var offline: boolean;
850
- declare var __g: AirCityAPI;
864
+ declare var __g: fdapi;
851
865
  declare var __player: { resize: () => void };
852
866
  declare var tools: EchartTool;
853
867
  declare var projectROOT: string;
package/package.json CHANGED
@@ -36,5 +36,5 @@
36
36
  "scripts": {
37
37
  "test": "echo \"Error: no test specified\" && exit 1"
38
38
  },
39
- "version": "1.0.27"
39
+ "version": "1.0.29"
40
40
  }