aircitytype 1.0.20 → 1.0.21

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 +8 -6
  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][], 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,6 +313,7 @@ declare enum MapMode {
313
313
  interface AircityEvent {
314
314
  Id: string;
315
315
  eventtype: string;
316
+ coordinates: number[];
316
317
  Type: string;
317
318
  Text: string;
318
319
  BoundsMax: [number, number, number];
@@ -506,7 +507,7 @@ interface CustomObject {
506
507
  timestamp: number;
507
508
  }>;
508
509
  callBatchBPFunction(v: CustomObjectParam | CustomObjectParam[]): void;
509
- setLocation(id: string | string[], arr: number[], smoothTime: number): void;
510
+ setLocation(id: string | string[], arr: number[], smoothTime?: number): void;
510
511
  show(ids: string[] | string, fn?: () => void): void;
511
512
  hide(ids: string[] | string, fn?: () => void): void;
512
513
  restoreMaterial(ids: string | string[]): void;
@@ -588,14 +589,14 @@ type markType = {
588
589
 
589
590
  interface PolygonType {
590
591
  id: string;
591
- groupId: string;
592
+ groupId?: string;
592
593
  coordinateType?: number;
593
594
  range?: [number, number];
594
- coordinates: Array<number[]>; //左上,右上,右下,做下这样的顺序
595
- color: string | number[]; //多边形的填充颜色
595
+ coordinates?: Array<number[]>; //左上,右上,右下,做下这样的顺序
596
+ color?: string | number[]; //多边形的填充颜色
596
597
  frameColor?: Color;
597
598
  frameThickness?: number;
598
- intensity: number;//亮度
599
+ intensity?: number;//亮度
599
600
  style?: number;
600
601
  userData?: string;
601
602
  depthTest?: boolean;
@@ -651,6 +652,7 @@ interface Marker3D {
651
652
  show(ids: string[] | string, fn?: () => void): void;
652
653
  hide(ids: string[] | string, fn?: () => void): void;
653
654
  delete(ids: string[] | string): void;
655
+ hideByGroupId(id: string | string[]): void;
654
656
  deleteByGroupId(id: string): void;
655
657
  }
656
658
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aircitytype",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {