aircitytype 1.0.19 → 1.0.20
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 +17 -10
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -9,6 +9,7 @@ interface Misc {
|
|
9
9
|
setMainUIVisibility(flag: boolean): void;
|
10
10
|
isApiVersionMatched(): boolean;
|
11
11
|
callBPFunction(v: BPData): void;
|
12
|
+
getBPFunction(path: string): Promise<{ data: { params: { functionName: string, functionParams: any[] }[] }[] }>;
|
12
13
|
apiVersion: string;
|
13
14
|
apiVersionServer: string;
|
14
15
|
}
|
@@ -467,7 +468,7 @@ type CustomObjectParams = {
|
|
467
468
|
location?: number[]; //位置坐标
|
468
469
|
rotation?: [number, number, number]; //旋转
|
469
470
|
localRotation?: [number, number, number];
|
470
|
-
scale?: [number, number, number]; //缩放
|
471
|
+
scale?: [number, number, number] | number[]; //缩放
|
471
472
|
smoothMotion?: number; //1: 平滑插值,0: 跳跃
|
472
473
|
UserData?: string; //
|
473
474
|
};
|
@@ -480,7 +481,7 @@ interface CustomObjectParam {
|
|
480
481
|
|
481
482
|
interface CustomObject {
|
482
483
|
delete: any;
|
483
|
-
focus(id: string, t
|
484
|
+
focus(id: string, t?: number): void;
|
484
485
|
startMove(id: string, v: number, t: any[]): void;
|
485
486
|
add(p: CustomObjectParams | CustomObjectParams[]): void;
|
486
487
|
focus(p: string, a: number, c: number): Promise<void>;
|
@@ -505,7 +506,7 @@ interface CustomObject {
|
|
505
506
|
timestamp: number;
|
506
507
|
}>;
|
507
508
|
callBatchBPFunction(v: CustomObjectParam | CustomObjectParam[]): void;
|
508
|
-
setLocation(id: string | string[], arr: [
|
509
|
+
setLocation(id: string | string[], arr: number[], smoothTime: number): void;
|
509
510
|
show(ids: string[] | string, fn?: () => void): void;
|
510
511
|
hide(ids: string[] | string, fn?: () => void): void;
|
511
512
|
restoreMaterial(ids: string | string[]): void;
|
@@ -529,7 +530,7 @@ interface Heatmap {
|
|
529
530
|
clear(): void;
|
530
531
|
}
|
531
532
|
|
532
|
-
type
|
533
|
+
type marker3dType = {
|
533
534
|
id: string;
|
534
535
|
groupId?: string;
|
535
536
|
text?: string; //3D标注显示文字
|
@@ -545,7 +546,7 @@ type marker3d = {
|
|
545
546
|
pointName?: string; //3D标注展示的特效名称
|
546
547
|
pointVisible?: boolean; //3D标注是否显示
|
547
548
|
pointScale?: number; //3D标注整体缩放比例
|
548
|
-
coordinate?: [number, number, number]; //3D标注的位置坐标
|
549
|
+
coordinate?: [number, number, number] | number[]; //3D标注的位置坐标
|
549
550
|
userData?: string;
|
550
551
|
};
|
551
552
|
type markType = {
|
@@ -587,11 +588,17 @@ type markType = {
|
|
587
588
|
|
588
589
|
interface PolygonType {
|
589
590
|
id: string;
|
591
|
+
groupId: string;
|
592
|
+
coordinateType?: number;
|
593
|
+
range?: [number, number];
|
590
594
|
coordinates: Array<number[]>; //左上,右上,右下,做下这样的顺序
|
591
|
-
color: number[]; //多边形的填充颜色
|
592
|
-
frameColor
|
593
|
-
frameThickness
|
594
|
-
|
595
|
+
color: string | number[]; //多边形的填充颜色
|
596
|
+
frameColor?: Color;
|
597
|
+
frameThickness?: number;
|
598
|
+
intensity: number;//亮度
|
599
|
+
style?: number;
|
600
|
+
userData?: string;
|
601
|
+
depthTest?: boolean;
|
595
602
|
}
|
596
603
|
|
597
604
|
interface PolyLineType {
|
@@ -635,7 +642,7 @@ interface Marker {
|
|
635
642
|
|
636
643
|
interface Marker3D {
|
637
644
|
clear(): void;
|
638
|
-
add(p:
|
645
|
+
add(p: marker3dType | marker3dType[]): Promise<null>;
|
639
646
|
/**
|
640
647
|
* o1 distance
|
641
648
|
* o2 flytime
|