aircitytype 1.0.14 → 1.0.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/index.d.ts +10 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -2,6 +2,7 @@ interface HOSTINFO {
|
|
2
2
|
AirCityPlayer: string;
|
3
3
|
AirCityManager: string;
|
4
4
|
Token: string;
|
5
|
+
projectPath: string;
|
5
6
|
}
|
6
7
|
|
7
8
|
interface Misc {
|
@@ -115,10 +116,10 @@ interface Weather {
|
|
115
116
|
|
116
117
|
interface TileLayer {
|
117
118
|
[x: string]: any;
|
118
|
-
|
119
|
+
add(data: TileLayerType | TileLayerType[], fn: () => void): void;
|
119
120
|
// addModifier(id, tileLayerId, coordinates, ententBufferSize, fn)
|
120
121
|
// clearModifier(ids, fn)
|
121
|
-
|
122
|
+
delete(ids: string | string[], fn: () => void): void;
|
122
123
|
// deleteModifier(id, tileLayerId, fn)
|
123
124
|
// disableClip(ids, fn)
|
124
125
|
disableXRay(ids: string | string[], fn?: () => void): void;
|
@@ -605,6 +606,13 @@ interface PolyLineType {
|
|
605
606
|
depthTest?: boolean; //是否做深度检测,默认为true,true会被遮挡,false不会被遮挡
|
606
607
|
shape?: number; //样式,0:直线, 1:曲线
|
607
608
|
}
|
609
|
+
interface TileLayerType {
|
610
|
+
id: string;
|
611
|
+
fileName: string;
|
612
|
+
location: [number, number, number];
|
613
|
+
rotation: [number, number, number];
|
614
|
+
scale: [number, number, number];
|
615
|
+
}
|
608
616
|
|
609
617
|
interface Marker {
|
610
618
|
clear(): void;
|