aircitytype 1.0.21 → 1.0.22
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 +9 -11
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -240,7 +240,7 @@ interface Tools {
|
|
240
240
|
* fn function
|
241
241
|
* 可选的回调函数,请参考二次开发:异步接口调用方式
|
242
242
|
*/
|
243
|
-
startPolygonClip(coordinates: [number, number, number][]
|
243
|
+
startPolygonClip(coordinates: [number, number, number][], isReverseCut?: boolean, fn?: () => void): void;
|
244
244
|
}
|
245
245
|
|
246
246
|
interface Settings {
|
@@ -313,7 +313,6 @@ declare enum MapMode {
|
|
313
313
|
interface AircityEvent {
|
314
314
|
Id: string;
|
315
315
|
eventtype: string;
|
316
|
-
coordinates: number[];
|
317
316
|
Type: string;
|
318
317
|
Text: string;
|
319
318
|
BoundsMax: [number, number, number];
|
@@ -461,7 +460,7 @@ type RadiationPointData = {
|
|
461
460
|
autoHeight?: boolean; //自动判断下方是否有物体,设置正确高度,默认值:false
|
462
461
|
};
|
463
462
|
|
464
|
-
type
|
463
|
+
type CustomObjectType = {
|
465
464
|
id: string; //自定义对象唯一标识
|
466
465
|
pakFilePath: string; //pak文件路径
|
467
466
|
assetPath: string; //资源目录,自定义对象在pak文件资源包里的相对路径
|
@@ -474,7 +473,7 @@ type CustomObjectParams = {
|
|
474
473
|
UserData?: string; //
|
475
474
|
};
|
476
475
|
|
477
|
-
interface
|
476
|
+
interface CustomObjectBPParam {
|
478
477
|
id: string;
|
479
478
|
functionName: string
|
480
479
|
parameters: { [key: string]: string | number | any[] }[],
|
@@ -484,7 +483,7 @@ interface CustomObject {
|
|
484
483
|
delete: any;
|
485
484
|
focus(id: string, t?: number): void;
|
486
485
|
startMove(id: string, v: number, t: any[]): void;
|
487
|
-
add(p:
|
486
|
+
add(p: CustomObjectType | CustomObjectType[]): void;
|
488
487
|
focus(p: string, a: number, c: number): Promise<void>;
|
489
488
|
clear(): void;
|
490
489
|
coordinateType: number;
|
@@ -506,7 +505,7 @@ interface CustomObject {
|
|
506
505
|
resultMessage: string;
|
507
506
|
timestamp: number;
|
508
507
|
}>;
|
509
|
-
callBatchBPFunction(v:
|
508
|
+
callBatchBPFunction(v: CustomObjectBPParam | CustomObjectBPParam[]): void;
|
510
509
|
setLocation(id: string | string[], arr: number[], smoothTime?: number): void;
|
511
510
|
show(ids: string[] | string, fn?: () => void): void;
|
512
511
|
hide(ids: string[] | string, fn?: () => void): void;
|
@@ -589,14 +588,14 @@ type markType = {
|
|
589
588
|
|
590
589
|
interface PolygonType {
|
591
590
|
id: string;
|
592
|
-
groupId
|
591
|
+
groupId: string;
|
593
592
|
coordinateType?: number;
|
594
593
|
range?: [number, number];
|
595
|
-
coordinates
|
596
|
-
color
|
594
|
+
coordinates: Array<number[]>; //左上,右上,右下,做下这样的顺序
|
595
|
+
color: string | number[]; //多边形的填充颜色
|
597
596
|
frameColor?: Color;
|
598
597
|
frameThickness?: number;
|
599
|
-
intensity
|
598
|
+
intensity: number;//亮度
|
600
599
|
style?: number;
|
601
600
|
userData?: string;
|
602
601
|
depthTest?: boolean;
|
@@ -652,7 +651,6 @@ interface Marker3D {
|
|
652
651
|
show(ids: string[] | string, fn?: () => void): void;
|
653
652
|
hide(ids: string[] | string, fn?: () => void): void;
|
654
653
|
delete(ids: string[] | string): void;
|
655
|
-
hideByGroupId(id: string | string[]): void;
|
656
654
|
deleteByGroupId(id: string): void;
|
657
655
|
}
|
658
656
|
|