aircitytype 1.0.10 → 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 +19 -19
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -311,7 +311,6 @@ declare enum MapMode {
311
311
  interface AircityEvent {
312
312
  Id: string;
313
313
  eventtype: string;
314
- ModelName: string;
315
314
  Type: string;
316
315
  Text: string;
317
316
  BoundsMax: [number, number, number];
@@ -322,7 +321,7 @@ interface AircityEvent {
322
321
  PropertyName: string;
323
322
  Position: [number, number, number];
324
323
  UserData: string;
325
- coordinates: [number, number, number][]
324
+ ModelName: string;
326
325
  }
327
326
 
328
327
  declare class CameraTourKeyFrame {
@@ -344,8 +343,14 @@ declare class CameraTour {
344
343
  }
345
344
 
346
345
  interface Polygon {
347
- add(v: PolygonType | PolygonType[]): void;
348
- delete(id: string | string[]): void;
346
+ add(v: {
347
+ id: string;
348
+ coordinates: Array<number[]>; //左上,右上,右下,做下这样的顺序
349
+ color: number[]; //多边形的填充颜色
350
+ frameColor: Color;
351
+ frameThickness: number;
352
+ depthTest: boolean;
353
+ }): void;
349
354
  clear(): void;
350
355
  }
351
356
 
@@ -358,7 +363,7 @@ interface Polygon3D {
358
363
  interface Polyline {
359
364
  add(arg0: PolyLineType | PolyLineType[]): void;
360
365
  focus(id: string, distance?: number): void;
361
- delete(id: string | string[]): void;
366
+ delete(id: string): void;
362
367
  hide(id: string): void;
363
368
  clear(): void;
364
369
  }
@@ -472,8 +477,14 @@ type CustomObjectParams = {
472
477
  UserData?: string; //
473
478
  };
474
479
 
480
+ interface CustomObjectParam {
481
+ id: string;
482
+ functionName: string
483
+ parameters: { [key: string]: string | number | any[] }[],
484
+ }
485
+
475
486
  interface CustomObject {
476
- delete(id: string | string[]): void;
487
+ delete: any;
477
488
  focus(id: string, t: number): void;
478
489
  startMove(id: string, v: number, t: any[]): void;
479
490
  add(p: CustomObjectParams | CustomObjectParams[]): void;
@@ -498,11 +509,11 @@ interface CustomObject {
498
509
  resultMessage: string;
499
510
  timestamp: number;
500
511
  }>;
512
+ callBatchBPFunction(v: CustomObjectParam | CustomObjectParam[]): void;
501
513
  setLocation(id: string | string[], arr: [number, number, number]): void;
502
514
  show(ids: string[] | string, fn?: () => void): void;
503
515
  hide(ids: string[] | string, fn?: () => void): void;
504
516
  restoreMaterial(ids: string | string[]): void;
505
- callBatchBPFunction(param: { id: string, functionName: string, parameters: any } | { id: string, functionName: string, parameters: any }[]): void;
506
517
  /**
507
518
  *
508
519
  * data object | array
@@ -586,7 +597,7 @@ interface PolyLineType {
586
597
  color?: string | [number, number, number, number]; // 颜色值,支持四种格式,取值示例
587
598
  coordinates?: [number, number, number][]; // 坐标点数组,取值示例
588
599
  coordinateType?: number; // 坐标系类型,取值范围:0为Projection类型,1为WGS84类型,默认值:0
589
- style?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7; // {Arrow: 0, Arrow1: 1, Flow: 2, Beam: 3, Normal: 4,OnTerrain:5} 参考 PolylineStyle
600
+ style?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7; // 折线样式,箭头/光流/贴地/实线/虚线等,取值范围:[0~7],参考 PolylineStyle
590
601
  thickness?: number; //线宽,单位:米,默认值20
591
602
  intensity?: number; //亮度,取值范围:[0~1000],默认值:0.5
592
603
  flowRate?: number; // 流速,取值范围:[0~1.0],默认值:0.5
@@ -595,15 +606,6 @@ interface PolyLineType {
595
606
  shape?: number; //样式,0:直线, 1:曲线
596
607
  }
597
608
 
598
- interface PolygonType {
599
- id: string;
600
- coordinates: Array<number[]>; //左上,右上,右下,做下这样的顺序
601
- color: number[]; //多边形的填充颜色
602
- frameColor: Color;
603
- frameThickness: number;
604
- depthTest: boolean;
605
- }
606
-
607
609
  interface Marker {
608
610
  clear(): void;
609
611
  add(p: markType | markType[]): Promise<null>;
@@ -632,8 +634,6 @@ interface Marker3D {
632
634
  hide(ids: string[] | string, fn?: () => void): void;
633
635
  delete(ids: string[] | string): void;
634
636
  deleteByGroupId(id: string): void;
635
- hideByGroupId(groupID: string): void;
636
- showByGroupId(groupId: string, fn?: () => void): void;
637
637
  }
638
638
 
639
639
  interface EditHelper {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aircitytype",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {