aircitytype 1.0.26 → 1.0.27
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 +28 -4
- 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;
|
@@ -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];
|
@@ -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;
|
@@ -663,6 +677,7 @@ interface Marker {
|
|
663
677
|
focus(id: string, o1?: number, o2?: number): any;
|
664
678
|
show(ids: string[] | string, fn?: () => void): void;
|
665
679
|
hide(ids: string[] | string, fn?: () => void): void;
|
680
|
+
hideAllPopupWindow(): void;
|
666
681
|
setCoordinate(
|
667
682
|
id: string,
|
668
683
|
newVal: [number, number, number],
|
@@ -685,6 +700,10 @@ interface Marker3D {
|
|
685
700
|
hideByGroupId(id: string): void;
|
686
701
|
}
|
687
702
|
|
703
|
+
interface Vehicle {
|
704
|
+
delete(id: string): void;
|
705
|
+
}
|
706
|
+
|
688
707
|
interface EditHelper {
|
689
708
|
cancel(fn?: () => void): void;
|
690
709
|
/**
|
@@ -738,8 +757,11 @@ declare class AirCityAPI {
|
|
738
757
|
polygon3d: Polygon3D;
|
739
758
|
polyline: Polyline;
|
740
759
|
marker: Marker;
|
760
|
+
vehicle: Vehicle;
|
741
761
|
marker3d: Marker3D;
|
742
762
|
editHelper: EditHelper;
|
763
|
+
reset(p?: number): void;
|
764
|
+
destroy(): void;
|
743
765
|
}
|
744
766
|
|
745
767
|
declare interface AirInstance {
|
@@ -835,3 +857,5 @@ declare var imgURL: string;
|
|
835
857
|
declare var Disk: string;
|
836
858
|
declare var objectIds: string[];
|
837
859
|
declare var wrap: (id: string, id1: string, url: string) => void;
|
860
|
+
|
861
|
+
|
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.27"
|
40
|
+
}
|