UNPKG

itowns

Version:

A JS/WebGL framework for 3D geospatial data visualization

33 lines (32 loc) 1.66 kB
declare namespace _default { /** * Cleanup obj to release three.js allocated resources * @param {Object3D} obj object to release */ function cleanup(obj: Object3D): void; /** * Remove obj's children belonging to a layer. * Neither obj nor its children will be disposed! * @param {Layer} layer The layer that objects must belong to. Other object are ignored * @param {Object3D} obj The Object3D we want to clean * @return {Array} an array of removed Object3D from obj (not including the recursive removals) */ function removeChildren(layer: Layer, obj: Object3D): any[]; /** * Remove an obj and all its children belonging to a layer and only cleanup the obj (and not its children). * obj will be disposed but its children **won't**! * @param {Layer} layer The layer that objects must belong to. Other object are ignored * @param {Object3D} obj The Object3D we want to clean * @return {Array} an array of removed Object3D from obj (not including the recursive removals) */ function removeChildrenAndCleanup(layer: Layer, obj: Object3D): any[]; /** * Recursively remove an obj and all its children belonging to a layer. * All removed obj will have their geometry/material disposed. * @param {Layer} layer The layer that objects must belong to. Other object are ignored * @param {Object3D} obj The Object3D we want to clean * @return {Array} an array of removed Object3D from obj (not including the recursive removals) */ function removeChildrenAndCleanupRecursively(layer: Layer, obj: Object3D): any[]; } export default _default;