aircitytype 1.0.15 → 1.0.17
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 +29 -21
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -2,6 +2,7 @@ interface HOSTINFO {
|
|
2
2
|
AirCityPlayer: string;
|
3
3
|
AirCityManager: string;
|
4
4
|
Token: string;
|
5
|
+
projectPath: string;
|
5
6
|
}
|
6
7
|
|
7
8
|
interface Misc {
|
@@ -20,7 +21,7 @@ interface InfoTree {
|
|
20
21
|
color: string | [number, number, number, number],
|
21
22
|
fn?: () => void
|
22
23
|
): void;
|
23
|
-
get(fn: (e:
|
24
|
+
get(fn: (e: { infotree: InfoTreeItem[] }) => void): Promise<{ infotree: InfoTreeItem[] }>;
|
24
25
|
hide(ids: string[] | string, fn?: () => void): void;
|
25
26
|
hideByGroupId(groupId: string, fn?: () => void): void;
|
26
27
|
highlightByGroupId(groupId: string, fn: () => void): void;
|
@@ -115,10 +116,10 @@ interface Weather {
|
|
115
116
|
|
116
117
|
interface TileLayer {
|
117
118
|
[x: string]: any;
|
118
|
-
|
119
|
+
add(data: TileLayerType | TileLayerType[], fn?: () => void): void;
|
119
120
|
// addModifier(id, tileLayerId, coordinates, ententBufferSize, fn)
|
120
121
|
// clearModifier(ids, fn)
|
121
|
-
|
122
|
+
delete(ids: string | string[], fn?: () => void): void;
|
122
123
|
// deleteModifier(id, tileLayerId, fn)
|
123
124
|
// disableClip(ids, fn)
|
124
125
|
disableXRay(ids: string | string[], fn?: () => void): void;
|
@@ -273,12 +274,12 @@ interface Settings {
|
|
273
274
|
}
|
274
275
|
|
275
276
|
declare interface InfoTreeItem {
|
276
|
-
iD:
|
277
|
+
iD: string;
|
277
278
|
index: number;
|
278
279
|
parentIndex: number;
|
279
280
|
name: string;
|
280
281
|
visiblity: true;
|
281
|
-
type:
|
282
|
+
type: "EPT_Scene" | "EPT_Folder" | "EPT_EffectPoint";
|
282
283
|
}
|
283
284
|
|
284
285
|
interface AirCityLog {
|
@@ -321,7 +322,6 @@ interface AircityEvent {
|
|
321
322
|
PropertyName: string;
|
322
323
|
Position: [number, number, number];
|
323
324
|
UserData: string;
|
324
|
-
coordinates: [number, number, number][];
|
325
325
|
ModelName: string;
|
326
326
|
}
|
327
327
|
|
@@ -344,8 +344,14 @@ declare class CameraTour {
|
|
344
344
|
}
|
345
345
|
|
346
346
|
interface Polygon {
|
347
|
-
add(v:
|
348
|
-
|
347
|
+
add(v: {
|
348
|
+
id: string;
|
349
|
+
coordinates: Array<number[]>; //左上,右上,右下,做下这样的顺序
|
350
|
+
color: number[]; //多边形的填充颜色
|
351
|
+
frameColor: Color;
|
352
|
+
frameThickness: number;
|
353
|
+
depthTest: boolean;
|
354
|
+
}): void;
|
349
355
|
clear(): void;
|
350
356
|
}
|
351
357
|
|
@@ -358,7 +364,7 @@ interface Polygon3D {
|
|
358
364
|
interface Polyline {
|
359
365
|
add(arg0: PolyLineType | PolyLineType[]): void;
|
360
366
|
focus(id: string, distance?: number): void;
|
361
|
-
delete(id: string
|
367
|
+
delete(id: string): void;
|
362
368
|
hide(id: string): void;
|
363
369
|
clear(): void;
|
364
370
|
}
|
@@ -472,8 +478,14 @@ type CustomObjectParams = {
|
|
472
478
|
UserData?: string; //
|
473
479
|
};
|
474
480
|
|
481
|
+
interface CustomObjectParam {
|
482
|
+
id: string;
|
483
|
+
functionName: string
|
484
|
+
parameters: { [key: string]: string | number | any[] }[],
|
485
|
+
}
|
486
|
+
|
475
487
|
interface CustomObject {
|
476
|
-
delete
|
488
|
+
delete: any;
|
477
489
|
focus(id: string, t: number): void;
|
478
490
|
startMove(id: string, v: number, t: any[]): void;
|
479
491
|
add(p: CustomObjectParams | CustomObjectParams[]): void;
|
@@ -498,11 +510,11 @@ interface CustomObject {
|
|
498
510
|
resultMessage: string;
|
499
511
|
timestamp: number;
|
500
512
|
}>;
|
513
|
+
callBatchBPFunction(v: CustomObjectParam | CustomObjectParam[]): void;
|
501
514
|
setLocation(id: string | string[], arr: [number, number, number]): void;
|
502
515
|
show(ids: string[] | string, fn?: () => void): void;
|
503
516
|
hide(ids: string[] | string, fn?: () => void): void;
|
504
517
|
restoreMaterial(ids: string | string[]): void;
|
505
|
-
callBatchBPFunction(param: { id: string, functionName: string, parameters: any } | { id: string, functionName: string, parameters: any }[]): void;
|
506
518
|
/**
|
507
519
|
*
|
508
520
|
* data object | array
|
@@ -586,7 +598,7 @@ interface PolyLineType {
|
|
586
598
|
color?: string | [number, number, number, number]; // 颜色值,支持四种格式,取值示例
|
587
599
|
coordinates?: [number, number, number][]; // 坐标点数组,取值示例
|
588
600
|
coordinateType?: number; // 坐标系类型,取值范围:0为Projection类型,1为WGS84类型,默认值:0
|
589
|
-
style?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7; //
|
601
|
+
style?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7; // 折线样式,箭头/光流/贴地/实线/虚线等,取值范围:[0~7],参考 PolylineStyle
|
590
602
|
thickness?: number; //线宽,单位:米,默认值20
|
591
603
|
intensity?: number; //亮度,取值范围:[0~1000],默认值:0.5
|
592
604
|
flowRate?: number; // 流速,取值范围:[0~1.0],默认值:0.5
|
@@ -594,14 +606,12 @@ interface PolyLineType {
|
|
594
606
|
depthTest?: boolean; //是否做深度检测,默认为true,true会被遮挡,false不会被遮挡
|
595
607
|
shape?: number; //样式,0:直线, 1:曲线
|
596
608
|
}
|
597
|
-
|
598
|
-
interface PolygonType {
|
609
|
+
interface TileLayerType {
|
599
610
|
id: string;
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
depthTest: boolean;
|
611
|
+
fileName: string;
|
612
|
+
location: [number, number, number] | number[];
|
613
|
+
rotation: [number, number, number] | number[];
|
614
|
+
scale: [number, number, number] | number[];
|
605
615
|
}
|
606
616
|
|
607
617
|
interface Marker {
|
@@ -632,8 +642,6 @@ interface Marker3D {
|
|
632
642
|
hide(ids: string[] | string, fn?: () => void): void;
|
633
643
|
delete(ids: string[] | string): void;
|
634
644
|
deleteByGroupId(id: string): void;
|
635
|
-
hideByGroupId(groupID: string): void;
|
636
|
-
showByGroupId(groupId: string, fn?: () => void): void;
|
637
645
|
}
|
638
646
|
|
639
647
|
interface EditHelper {
|