aircitytype 1.0.21 → 1.0.23

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 +7 -8
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -240,7 +240,7 @@ interface Tools {
240
240
  * fn function
241
241
  * 可选的回调函数,请参考二次开发:异步接口调用方式
242
242
  */
243
- startPolygonClip(coordinates: [number, number, number][] | number[], isReverseCut?: boolean, fn?: () => void): void;
243
+ startPolygonClip(coordinates: [number, number, number][] | number[][], isReverseCut?: boolean, fn?: () => void): void;
244
244
  }
245
245
 
246
246
  interface Settings {
@@ -313,7 +313,6 @@ declare enum MapMode {
313
313
  interface AircityEvent {
314
314
  Id: string;
315
315
  eventtype: string;
316
- coordinates: number[];
317
316
  Type: string;
318
317
  Text: string;
319
318
  BoundsMax: [number, number, number];
@@ -323,6 +322,7 @@ interface AircityEvent {
323
322
  ObjectID: string;
324
323
  PropertyName: string;
325
324
  Position: [number, number, number];
325
+ coordinates: [number, number, number][];
326
326
  UserData: string;
327
327
  ModelName: string;
328
328
  }
@@ -461,7 +461,7 @@ type RadiationPointData = {
461
461
  autoHeight?: boolean; //自动判断下方是否有物体,设置正确高度,默认值:false
462
462
  };
463
463
 
464
- type CustomObjectParams = {
464
+ type CustomObjectType = {
465
465
  id: string; //自定义对象唯一标识
466
466
  pakFilePath: string; //pak文件路径
467
467
  assetPath: string; //资源目录,自定义对象在pak文件资源包里的相对路径
@@ -474,7 +474,7 @@ type CustomObjectParams = {
474
474
  UserData?: string; //
475
475
  };
476
476
 
477
- interface CustomObjectParam {
477
+ interface CustomObjectBPParam {
478
478
  id: string;
479
479
  functionName: string
480
480
  parameters: { [key: string]: string | number | any[] }[],
@@ -484,7 +484,7 @@ interface CustomObject {
484
484
  delete: any;
485
485
  focus(id: string, t?: number): void;
486
486
  startMove(id: string, v: number, t: any[]): void;
487
- add(p: CustomObjectParams | CustomObjectParams[]): void;
487
+ add(p: CustomObjectType | CustomObjectType[]): void;
488
488
  focus(p: string, a: number, c: number): Promise<void>;
489
489
  clear(): void;
490
490
  coordinateType: number;
@@ -506,7 +506,7 @@ interface CustomObject {
506
506
  resultMessage: string;
507
507
  timestamp: number;
508
508
  }>;
509
- callBatchBPFunction(v: CustomObjectParam | CustomObjectParam[]): void;
509
+ callBatchBPFunction(v: CustomObjectBPParam | CustomObjectBPParam[]): void;
510
510
  setLocation(id: string | string[], arr: number[], smoothTime?: number): void;
511
511
  show(ids: string[] | string, fn?: () => void): void;
512
512
  hide(ids: string[] | string, fn?: () => void): void;
@@ -592,7 +592,7 @@ interface PolygonType {
592
592
  groupId?: string;
593
593
  coordinateType?: number;
594
594
  range?: [number, number];
595
- coordinates?: Array<number[]>; //左上,右上,右下,做下这样的顺序
595
+ coordinates: Array<number[]>; //左上,右上,右下,做下这样的顺序
596
596
  color?: string | number[]; //多边形的填充颜色
597
597
  frameColor?: Color;
598
598
  frameThickness?: number;
@@ -652,7 +652,6 @@ interface Marker3D {
652
652
  show(ids: string[] | string, fn?: () => void): void;
653
653
  hide(ids: string[] | string, fn?: () => void): void;
654
654
  delete(ids: string[] | string): void;
655
- hideByGroupId(id: string | string[]): void;
656
655
  deleteByGroupId(id: string): void;
657
656
  }
658
657
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aircitytype",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {