@terra.gl/core 0.0.1-alpha.36 → 0.0.1-alpha.40
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/dist/index.d.ts +33 -1
- package/dist/index.js +1436 -1336
- package/dist/index.umd.cjs +18 -18
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3034,6 +3034,17 @@ declare class Map extends Map_base {
|
|
|
3034
3034
|
* @param options 飞行参数对象
|
|
3035
3035
|
*/
|
|
3036
3036
|
flyToPoint(options: FlyToPointOptions): void;
|
|
3037
|
+
/**
|
|
3038
|
+
* 销毁地图实例,释放所有资源
|
|
3039
|
+
* @description
|
|
3040
|
+
* 该方法会清理以下资源:
|
|
3041
|
+
* 1. 移除所有事件监听器
|
|
3042
|
+
* 2. 清空所有图层
|
|
3043
|
+
* 3. 销毁碰撞引擎
|
|
3044
|
+
* 4. 销毁viewer(包括renderer、scene、controls等)
|
|
3045
|
+
* 5. 清理DOM容器
|
|
3046
|
+
*/
|
|
3047
|
+
destroy(): void;
|
|
3037
3048
|
}
|
|
3038
3049
|
export { Map_2 as Map }
|
|
3039
3050
|
|
|
@@ -3050,7 +3061,11 @@ declare class Map extends Map_base {
|
|
|
3050
3061
|
eventClass: EventClass_2;
|
|
3051
3062
|
on: (type: string, listener: (data?: any) => void) => EventClass_2;
|
|
3052
3063
|
trigger: (type: string, data?: any) => EventClass_2;
|
|
3053
|
-
off: (type: string, listener: (
|
|
3064
|
+
off: (type: string, listener: (
|
|
3065
|
+
/**
|
|
3066
|
+
* 创建一个空基类(仅用于混入起点)
|
|
3067
|
+
*/
|
|
3068
|
+
...args: any[]) => void) => EventClass_2;
|
|
3054
3069
|
};
|
|
3055
3070
|
} & {
|
|
3056
3071
|
new (...args: any[]): {
|
|
@@ -5721,6 +5736,23 @@ declare class Map extends Map_base {
|
|
|
5721
5736
|
*/
|
|
5722
5737
|
getWidthHeight(): number[];
|
|
5723
5738
|
_createGorund(): Mesh<PlaneGeometry, MeshStandardMaterial, Object3DEventMap>;
|
|
5739
|
+
/**
|
|
5740
|
+
* 销毁viewer实例,释放所有资源
|
|
5741
|
+
* @description
|
|
5742
|
+
* 该方法会清理以下资源:
|
|
5743
|
+
* 1. 停止动画循环
|
|
5744
|
+
* 2. 销毁控制器
|
|
5745
|
+
* 3. 清理场景中的所有对象
|
|
5746
|
+
* 4. 销毁渲染器
|
|
5747
|
+
* 5. 销毁后期处理器
|
|
5748
|
+
* 6. 移除DOM元素
|
|
5749
|
+
*/
|
|
5750
|
+
destroy(): void;
|
|
5751
|
+
/**
|
|
5752
|
+
* 销毁材质资源
|
|
5753
|
+
* @param material 要销毁的材质
|
|
5754
|
+
*/
|
|
5755
|
+
private _disposeMaterial;
|
|
5724
5756
|
}
|
|
5725
5757
|
|
|
5726
5758
|
/**
|