aircitytype 1.0.22 → 1.0.24

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 +5 -4
  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 {
@@ -322,6 +322,7 @@ interface AircityEvent {
322
322
  ObjectID: string;
323
323
  PropertyName: string;
324
324
  Position: [number, number, number];
325
+ coordinates: [number, number, number][];
325
326
  UserData: string;
326
327
  ModelName: string;
327
328
  }
@@ -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
595
  coordinates: Array<number[]>; //左上,右上,右下,做下这样的顺序
595
- color: string | 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aircitytype",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {