aircitytype 1.0.27 → 1.0.28

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 +21 -8
  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,7 +674,9 @@ 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;
@@ -736,7 +738,7 @@ interface EditHelper {
736
738
  start(fn?: () => void): void;
737
739
  }
738
740
 
739
- declare class AirCityAPI {
741
+ declare class fdapi {
740
742
  tag: any;
741
743
  coord: any;
742
744
  constructor(a: any, b: any, c: any);
@@ -762,6 +764,8 @@ declare class AirCityAPI {
762
764
  editHelper: EditHelper;
763
765
  reset(p?: number): void;
764
766
  destroy(): void;
767
+ reset(): void;
768
+ destroy(): void;
765
769
  }
766
770
 
767
771
  declare interface AirInstance {
@@ -813,6 +817,15 @@ declare namespace acapi {
813
817
  constructor(a: any, b: any, c?: any);
814
818
  getAPI(): any;
815
819
  setBitrate(a: any): void;
820
+
821
+ }
822
+
823
+ // 定义 Color 枚举,用于表示不同的颜色
824
+ enum Color {
825
+ Red = "#FF0000", // 红色的十六进制值
826
+ Green = "#00FF00", // 示例:绿色
827
+ Blue = "#0000FF", // 示例:蓝色
828
+ // 可以添加更多的颜色
816
829
  }
817
830
 
818
831
  enum BPFuncParamType {
@@ -847,7 +860,7 @@ type EchartTool = {
847
860
 
848
861
  declare var HostConfig: HOSTINFO;
849
862
  declare var offline: boolean;
850
- declare var __g: AirCityAPI;
863
+ declare var __g: fdapi;
851
864
  declare var __player: { resize: () => void };
852
865
  declare var tools: EchartTool;
853
866
  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.28"
40
40
  }