aircitytype 1.0.17 → 1.0.19

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 +12 -9
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -344,14 +344,8 @@ declare class CameraTour {
344
344
  }
345
345
 
346
346
  interface Polygon {
347
- add(v: {
348
- id: string;
349
- coordinates: Array<number[]>; //左上,右上,右下,做下这样的顺序
350
- color: number[]; //多边形的填充颜色
351
- frameColor: Color;
352
- frameThickness: number;
353
- depthTest: boolean;
354
- }): void;
347
+ add(v: PolygonType | PolygonType[]): void;
348
+ delete(id: string | string[]): void;
355
349
  clear(): void;
356
350
  }
357
351
 
@@ -364,7 +358,7 @@ interface Polygon3D {
364
358
  interface Polyline {
365
359
  add(arg0: PolyLineType | PolyLineType[]): void;
366
360
  focus(id: string, distance?: number): void;
367
- delete(id: string): void;
361
+ delete(id: string | string[]): void;
368
362
  hide(id: string): void;
369
363
  clear(): void;
370
364
  }
@@ -591,6 +585,15 @@ type markType = {
591
585
  groupId?: string;
592
586
  };
593
587
 
588
+ interface PolygonType {
589
+ id: string;
590
+ coordinates: Array<number[]>; //左上,右上,右下,做下这样的顺序
591
+ color: number[]; //多边形的填充颜色
592
+ frameColor: Color;
593
+ frameThickness: number;
594
+ depthTest: boolean;
595
+ }
596
+
594
597
  interface PolyLineType {
595
598
  id: string; //字符串类型的ID
596
599
  groupId?: string; //可选,Group分组
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aircitytype",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {