aircitytype 1.0.26 → 1.0.28
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 +49 -12
- package/package.json +34 -6
package/index.d.ts
CHANGED
@@ -23,7 +23,7 @@ interface InfoTree {
|
|
23
23
|
color: string | [number, number, number, number],
|
24
24
|
fn?: () => void
|
25
25
|
): void;
|
26
|
-
get(fn
|
26
|
+
get(fn?: (e: { infotree: InfoTreeItem[] }) => void): Promise<{ infotree: InfoTreeItem[] }>;
|
27
27
|
hide(ids: string[] | string, fn?: () => void): void;
|
28
28
|
hideByGroupId(groupId: string, fn?: () => void): void;
|
29
29
|
highlightByGroupId(groupId: string, fn: () => void): void;
|
@@ -218,7 +218,7 @@ interface TileLayer {
|
|
218
218
|
}
|
219
219
|
|
220
220
|
interface Tools {
|
221
|
-
setMeasurement(MeasurementMode:
|
221
|
+
setMeasurement(MeasurementMode: number, options: any): void;
|
222
222
|
startMeasurement(): void;
|
223
223
|
stopMeasurement(): void;
|
224
224
|
stopClip(): void;
|
@@ -326,9 +326,19 @@ declare enum MapMode {
|
|
326
326
|
BigMap = 2,
|
327
327
|
}
|
328
328
|
|
329
|
+
type EventType =
|
330
|
+
| "LeftMouseButtonClick"
|
331
|
+
| "MouseHovered" //鼠标悬停时触发此事件
|
332
|
+
| "MouseMoved" //鼠标悬停时触发此事件
|
333
|
+
| "Measurement" //进入测量模式后,测量完成时触发此事件并返回测量结果
|
334
|
+
| "CameraChanged" //对象执行focus()或相机执行set()/lookAt()/lookAtBBox()方法时触发
|
335
|
+
| "CameraTourFinished" //播放导览结束触发此事件
|
336
|
+
| "EditHelperFinished"
|
337
|
+
| "MarkerCallBack"
|
338
|
+
|
329
339
|
interface AircityEvent {
|
330
340
|
Id: string;
|
331
|
-
eventtype:
|
341
|
+
eventtype: EventType;
|
332
342
|
Type: string;
|
333
343
|
Text: string;
|
334
344
|
BoundsMax: [number, number, number];
|
@@ -500,10 +510,10 @@ type CustomTileLayer = {
|
|
500
510
|
id: string; //CustomObject对象的ID
|
501
511
|
tileLayerId: string; //TileLayer图层的ID
|
502
512
|
objectId: string | string[]; //TileLayer图层中包含的待复制的模型(Actor)的ObjectId,同时也支持数组类型参数即把多个actor复制为一个customObject
|
503
|
-
location
|
504
|
-
coordinateType
|
505
|
-
rotation
|
506
|
-
scale
|
513
|
+
location?: number[]; //位置坐标:[X, Y, Z],取值示例,数组元素类型:(number),取值范围:[任意数值]
|
514
|
+
coordinateType?: number; //坐标系类型,取值:0为Projection类型,1为WGS84类型,默认值:0
|
515
|
+
rotation?: number[]; // 旋转:[Pitch, Yaw, Roll],数组元素类型:(number),取值范围:[任意数值]
|
516
|
+
scale?: number[]; // 缩放:[X, Y, Z],数组元素类型:(number),取值范围:[任意正整数]
|
507
517
|
smoothMotion: number; // 1: 平滑插值,0: 跳跃
|
508
518
|
}
|
509
519
|
|
@@ -565,9 +575,9 @@ type marker3dType = {
|
|
565
575
|
groupId?: string;
|
566
576
|
text?: string; //3D标注显示文字
|
567
577
|
textSize?: number; //3D标注显示文字大小
|
568
|
-
textColor?: [number, number, number, number]; //3D标注显示文字颜色
|
578
|
+
textColor?: [number, number, number, number] | string; //3D标注显示文字颜色
|
569
579
|
textOutlineSize?: number; //3D标注显示文字轮廓大小
|
570
|
-
textOutlineColor?: [number, number, number, number]; // 3D标注显示文字轮廓颜色
|
580
|
+
textOutlineColor?: [number, number, number, number] | string; // 3D标注显示文字轮廓颜色
|
571
581
|
textFixed?: boolean; // 3D标注显示文字是否固定文本朝向
|
572
582
|
textVisible?: boolean; //3D标注显示文字是否显示文本
|
573
583
|
textLocation?: number[]; // 文字位置
|
@@ -577,6 +587,9 @@ type marker3dType = {
|
|
577
587
|
pointVisible?: boolean; //3D标注是否显示
|
578
588
|
pointScale?: number; //3D标注整体缩放比例
|
579
589
|
coordinate?: [number, number, number] | number[]; //3D标注的位置坐标
|
590
|
+
coordinateType?: number
|
591
|
+
range?: [number, number]
|
592
|
+
autoHeight?: boolean
|
580
593
|
userData?: string;
|
581
594
|
};
|
582
595
|
type markType = {
|
@@ -607,6 +620,7 @@ type markType = {
|
|
607
620
|
textBackgroundColor?: [number, number, number, number];
|
608
621
|
popupBackgroundColor?: number[];
|
609
622
|
hoverImagePath?: string;
|
623
|
+
clusterByImage?: boolean;
|
610
624
|
displayMode?: number;
|
611
625
|
priority?: number;
|
612
626
|
occlusionCull?: boolean;
|
@@ -660,9 +674,12 @@ interface Marker {
|
|
660
674
|
update(p: markType | markType[]): Promise<null>;
|
661
675
|
delete(p: string | string[]): Promise<void>;
|
662
676
|
deleteByGroupId(groupId: string, fn?: () => void): void;
|
663
|
-
|
677
|
+
showByGroupId(groupId: string, fn?: () => void): void;
|
678
|
+
hideByGroupId(groupId: string, fn?: () => void): void;
|
679
|
+
focus(id: string, o1?: number, o2?: number, rotation?: number[]): any;
|
664
680
|
show(ids: string[] | string, fn?: () => void): void;
|
665
681
|
hide(ids: string[] | string, fn?: () => void): void;
|
682
|
+
hideAllPopupWindow(): void;
|
666
683
|
setCoordinate(
|
667
684
|
id: string,
|
668
685
|
newVal: [number, number, number],
|
@@ -685,6 +702,10 @@ interface Marker3D {
|
|
685
702
|
hideByGroupId(id: string): void;
|
686
703
|
}
|
687
704
|
|
705
|
+
interface Vehicle {
|
706
|
+
delete(id: string): void;
|
707
|
+
}
|
708
|
+
|
688
709
|
interface EditHelper {
|
689
710
|
cancel(fn?: () => void): void;
|
690
711
|
/**
|
@@ -717,7 +738,7 @@ interface EditHelper {
|
|
717
738
|
start(fn?: () => void): void;
|
718
739
|
}
|
719
740
|
|
720
|
-
declare class
|
741
|
+
declare class fdapi {
|
721
742
|
tag: any;
|
722
743
|
coord: any;
|
723
744
|
constructor(a: any, b: any, c: any);
|
@@ -738,8 +759,13 @@ declare class AirCityAPI {
|
|
738
759
|
polygon3d: Polygon3D;
|
739
760
|
polyline: Polyline;
|
740
761
|
marker: Marker;
|
762
|
+
vehicle: Vehicle;
|
741
763
|
marker3d: Marker3D;
|
742
764
|
editHelper: EditHelper;
|
765
|
+
reset(p?: number): void;
|
766
|
+
destroy(): void;
|
767
|
+
reset(): void;
|
768
|
+
destroy(): void;
|
743
769
|
}
|
744
770
|
|
745
771
|
declare interface AirInstance {
|
@@ -791,6 +817,15 @@ declare namespace acapi {
|
|
791
817
|
constructor(a: any, b: any, c?: any);
|
792
818
|
getAPI(): any;
|
793
819
|
setBitrate(a: any): void;
|
820
|
+
|
821
|
+
}
|
822
|
+
|
823
|
+
// 定义 Color 枚举,用于表示不同的颜色
|
824
|
+
enum Color {
|
825
|
+
Red = "#FF0000", // 红色的十六进制值
|
826
|
+
Green = "#00FF00", // 示例:绿色
|
827
|
+
Blue = "#0000FF", // 示例:蓝色
|
828
|
+
// 可以添加更多的颜色
|
794
829
|
}
|
795
830
|
|
796
831
|
enum BPFuncParamType {
|
@@ -825,7 +860,7 @@ type EchartTool = {
|
|
825
860
|
|
826
861
|
declare var HostConfig: HOSTINFO;
|
827
862
|
declare var offline: boolean;
|
828
|
-
declare var __g:
|
863
|
+
declare var __g: fdapi;
|
829
864
|
declare var __player: { resize: () => void };
|
830
865
|
declare var tools: EchartTool;
|
831
866
|
declare var projectROOT: string;
|
@@ -835,3 +870,5 @@ declare var imgURL: string;
|
|
835
870
|
declare var Disk: string;
|
836
871
|
declare var objectIds: string[];
|
837
872
|
declare var wrap: (id: string, id1: string, url: string) => void;
|
873
|
+
|
874
|
+
|
package/package.json
CHANGED
@@ -1,12 +1,40 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
|
2
|
+
"_args": [
|
3
|
+
[
|
4
|
+
"aircitytype@1.0.26",
|
5
|
+
"E:\\projects\\srdnqd6.0"
|
6
|
+
]
|
7
|
+
],
|
8
|
+
"_from": "aircitytype@1.0.26",
|
9
|
+
"_id": "aircitytype@1.0.26",
|
10
|
+
"_inBundle": false,
|
11
|
+
"_integrity": "sha512-xSu2UsPN/cn0MlbdsI0X6VdKLBvnHS9T5bzMun58c/CpB4iviuJzP7gCxB7VGMesc71UBcst/SiB1InPEEP2PQ==",
|
12
|
+
"_location": "/aircitytype",
|
13
|
+
"_phantomChildren": {},
|
14
|
+
"_requested": {
|
15
|
+
"type": "version",
|
16
|
+
"registry": true,
|
17
|
+
"raw": "aircitytype@1.0.26",
|
18
|
+
"name": "aircitytype",
|
19
|
+
"escapedName": "aircitytype",
|
20
|
+
"rawSpec": "1.0.26",
|
21
|
+
"saveSpec": null,
|
22
|
+
"fetchSpec": "1.0.26"
|
23
|
+
},
|
24
|
+
"_requiredBy": [
|
25
|
+
"/"
|
26
|
+
],
|
27
|
+
"_resolved": "https://registry.npmmirror.com/aircitytype/-/aircitytype-1.0.26.tgz",
|
28
|
+
"_spec": "1.0.26",
|
29
|
+
"_where": "E:\\projects\\srdnqd6.0",
|
30
|
+
"author": "",
|
4
31
|
"description": "",
|
32
|
+
"keywords": [],
|
33
|
+
"license": "ISC",
|
5
34
|
"main": "index.js",
|
35
|
+
"name": "aircitytype",
|
6
36
|
"scripts": {
|
7
37
|
"test": "echo \"Error: no test specified\" && exit 1"
|
8
38
|
},
|
9
|
-
"
|
10
|
-
|
11
|
-
"license": "ISC"
|
12
|
-
}
|
39
|
+
"version": "1.0.28"
|
40
|
+
}
|