aircitytype 1.1.14 → 1.1.16
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/aircity/index.d.ts +10 -1
- package/package.json +2 -2
package/aircity/index.d.ts
CHANGED
@@ -335,6 +335,7 @@ type EventType =
|
|
335
335
|
| "CameraTourFinished" //播放导览结束触发此事件
|
336
336
|
| "EditHelperFinished"
|
337
337
|
| "MarkerCallBack"
|
338
|
+
| "CameraMoving"
|
338
339
|
|
339
340
|
interface AircityEvent {
|
340
341
|
Id: string;
|
@@ -379,6 +380,7 @@ interface Polygon {
|
|
379
380
|
|
380
381
|
interface Polygon3D {
|
381
382
|
add(data: any, fn?: () => void): void;
|
383
|
+
delete(ids: string[] | string, fn?: () => void): void;
|
382
384
|
clear(): void;
|
383
385
|
focus(id: string, v2?: number, v3?: number): void;
|
384
386
|
}
|
@@ -659,8 +661,15 @@ interface PolygonType {
|
|
659
661
|
style?: number;
|
660
662
|
userData?: string;
|
661
663
|
depthTest?: boolean;
|
664
|
+
material?:string;
|
665
|
+
scalarParameters?:{ name: string, value: number }[];
|
666
|
+
vectorParameters?:{ name: string, value: number[] }[]
|
662
667
|
}
|
663
668
|
|
669
|
+
declare enum PolygonStyle {
|
670
|
+
OnTerrain = 0,
|
671
|
+
}
|
672
|
+
|
664
673
|
interface PolyLineType {
|
665
674
|
id: string; //字符串类型的ID
|
666
675
|
groupId?: string; //可选,Group分组
|
@@ -806,7 +815,7 @@ interface EditHelper {
|
|
806
815
|
可选的回调函数,请参考二次开发:异步接口调用方式
|
807
816
|
*
|
808
817
|
*/
|
809
|
-
setParam(lineType: number, buildType: number, color: [number, number, number, number], fn?: () => void): void;
|
818
|
+
setParam(lineType: number, buildType: number, color: [number, number, number, number]|acapi.Color, fn?: () => void): void;
|
810
819
|
start(fn?: () => void): void;
|
811
820
|
}
|
812
821
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aircitytype",
|
3
|
-
"description": "
|
3
|
+
"description": "EventType中增加CameraMoving",
|
4
4
|
"scripts": {
|
5
5
|
"test": "echo \"Error: no test specified\" && exit 1"
|
6
6
|
},
|
@@ -17,5 +17,5 @@
|
|
17
17
|
"dependencies": {
|
18
18
|
"jsonc-parser": "^3.3.1"
|
19
19
|
},
|
20
|
-
"version": "1.1.
|
20
|
+
"version": "1.1.16"
|
21
21
|
}
|