aircitytype 1.0.10 → 1.0.11
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.
- package/index.d.ts +21 -22
- 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
|
161
|
+
hide(p: string, fn?: any): void;
|
162
162
|
// hideActor(id, objectId, fn)
|
163
163
|
// hideActors(data, fn)
|
164
164
|
// hideAllActors(tileLayerId)
|
@@ -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,6 @@ interface AircityEvent {
|
|
322
321
|
PropertyName: string;
|
323
322
|
Position: [number, number, number];
|
324
323
|
UserData: string;
|
325
|
-
coordinates: [number, number, number][]
|
326
324
|
}
|
327
325
|
|
328
326
|
declare class CameraTourKeyFrame {
|
@@ -344,8 +342,14 @@ declare class CameraTour {
|
|
344
342
|
}
|
345
343
|
|
346
344
|
interface Polygon {
|
347
|
-
add(v:
|
348
|
-
|
345
|
+
add(v: {
|
346
|
+
id: string;
|
347
|
+
coordinates: Array<number[]>; //左上,右上,右下,做下这样的顺序
|
348
|
+
color: number[]; //多边形的填充颜色
|
349
|
+
frameColor: Color;
|
350
|
+
frameThickness: number;
|
351
|
+
depthTest: boolean;
|
352
|
+
}): void;
|
349
353
|
clear(): void;
|
350
354
|
}
|
351
355
|
|
@@ -356,9 +360,9 @@ interface Polygon3D {
|
|
356
360
|
}
|
357
361
|
|
358
362
|
interface Polyline {
|
359
|
-
add(arg0: PolyLineType
|
363
|
+
add(arg0: PolyLineType): void;
|
360
364
|
focus(id: string, distance?: number): void;
|
361
|
-
delete(id: string
|
365
|
+
delete(id: string): void;
|
362
366
|
hide(id: string): void;
|
363
367
|
clear(): void;
|
364
368
|
}
|
@@ -472,8 +476,14 @@ type CustomObjectParams = {
|
|
472
476
|
UserData?: string; //
|
473
477
|
};
|
474
478
|
|
479
|
+
interface CustomObjectParam {
|
480
|
+
id: string;
|
481
|
+
functionName: string
|
482
|
+
parameters: { [key: string]: string | number | any[] }[],
|
483
|
+
}
|
484
|
+
|
475
485
|
interface CustomObject {
|
476
|
-
delete
|
486
|
+
delete: any;
|
477
487
|
focus(id: string, t: number): void;
|
478
488
|
startMove(id: string, v: number, t: any[]): void;
|
479
489
|
add(p: CustomObjectParams | CustomObjectParams[]): void;
|
@@ -498,11 +508,11 @@ interface CustomObject {
|
|
498
508
|
resultMessage: string;
|
499
509
|
timestamp: number;
|
500
510
|
}>;
|
511
|
+
callBatchBPFunction(v: CustomObjectParam | CustomObjectParam[]): void;
|
501
512
|
setLocation(id: string | string[], arr: [number, number, number]): void;
|
502
513
|
show(ids: string[] | string, fn?: () => void): void;
|
503
514
|
hide(ids: string[] | string, fn?: () => void): void;
|
504
515
|
restoreMaterial(ids: string | string[]): void;
|
505
|
-
callBatchBPFunction(param: { id: string, functionName: string, parameters: any } | { id: string, functionName: string, parameters: any }[]): void;
|
506
516
|
/**
|
507
517
|
*
|
508
518
|
* data object | array
|
@@ -516,7 +526,7 @@ interface CustomObject {
|
|
516
526
|
可选的回调函数,请参考二次开发:异步接口调用方式
|
517
527
|
*/
|
518
528
|
|
519
|
-
overrideMaterial(data: any, fn
|
529
|
+
overrideMaterial(data: any, fn: () => void): void;
|
520
530
|
}
|
521
531
|
|
522
532
|
interface Heatmap {
|
@@ -586,7 +596,7 @@ interface PolyLineType {
|
|
586
596
|
color?: string | [number, number, number, number]; // 颜色值,支持四种格式,取值示例
|
587
597
|
coordinates?: [number, number, number][]; // 坐标点数组,取值示例
|
588
598
|
coordinateType?: number; // 坐标系类型,取值范围:0为Projection类型,1为WGS84类型,默认值:0
|
589
|
-
style?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7; //
|
599
|
+
style?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7; // 折线样式,箭头/光流/贴地/实线/虚线等,取值范围:[0~7],参考 PolylineStyle
|
590
600
|
thickness?: number; //线宽,单位:米,默认值20
|
591
601
|
intensity?: number; //亮度,取值范围:[0~1000],默认值:0.5
|
592
602
|
flowRate?: number; // 流速,取值范围:[0~1.0],默认值:0.5
|
@@ -595,15 +605,6 @@ interface PolyLineType {
|
|
595
605
|
shape?: number; //样式,0:直线, 1:曲线
|
596
606
|
}
|
597
607
|
|
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
608
|
interface Marker {
|
608
609
|
clear(): void;
|
609
610
|
add(p: markType | markType[]): Promise<null>;
|
@@ -632,8 +633,6 @@ interface Marker3D {
|
|
632
633
|
hide(ids: string[] | string, fn?: () => void): void;
|
633
634
|
delete(ids: string[] | string): void;
|
634
635
|
deleteByGroupId(id: string): void;
|
635
|
-
hideByGroupId(groupID: string): void;
|
636
|
-
showByGroupId(groupId: string, fn?: () => void): void;
|
637
636
|
}
|
638
637
|
|
639
638
|
interface EditHelper {
|