aircitytype 1.0.11 → 1.0.12

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 +4 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -158,7 +158,7 @@ interface TileLayer {
158
158
  }>;
159
159
  // getActorInfo(data, fn)
160
160
  // getObjectIDs(ids, fn)
161
- hide(p: string, fn?: any): void;
161
+ hide(p: string | string[], fn?: any): void;
162
162
  // hideActor(id, objectId, fn)
163
163
  // hideActors(data, fn)
164
164
  // hideAllActors(tileLayerId)
@@ -321,6 +321,7 @@ interface AircityEvent {
321
321
  PropertyName: string;
322
322
  Position: [number, number, number];
323
323
  UserData: string;
324
+ ModelName: string;
324
325
  }
325
326
 
326
327
  declare class CameraTourKeyFrame {
@@ -360,7 +361,7 @@ interface Polygon3D {
360
361
  }
361
362
 
362
363
  interface Polyline {
363
- add(arg0: PolyLineType): void;
364
+ add(arg0: PolyLineType | PolyLineType[]): void;
364
365
  focus(id: string, distance?: number): void;
365
366
  delete(id: string): void;
366
367
  hide(id: string): void;
@@ -526,7 +527,7 @@ interface CustomObject {
526
527
  可选的回调函数,请参考二次开发:异步接口调用方式
527
528
  */
528
529
 
529
- overrideMaterial(data: any, fn: () => void): void;
530
+ overrideMaterial(data: any, fn?: () => void): void;
530
531
  }
531
532
 
532
533
  interface Heatmap {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aircitytype",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {