#
luxiaotao1123
2024-10-22 213de676b386af4a195df899c23d057d889095d1
zy-acs-flow/src/map/insight/shelf/ShelfThree.js
@@ -57,8 +57,8 @@
    }
    addObject = (object) => {
        this.scene.add(object);
        this.objects.push(object);
        this.scene?.add(object);
        this.objects?.push(object);
    }
    initScene = () => {
@@ -207,7 +207,7 @@
            height * cameraPosScale,
            height * cameraPosScale
        );
        this.controls.target = new THREE.Vector3(0, maxHeight * 0.53, 0);
        this.controls.target = new THREE.Vector3(0, maxHeight * 0.5, 0);
    }
    destroy = () => {
@@ -241,8 +241,12 @@
        this.dom?.removeEventListener("click", this.handleClickEvent);
        this.camera = null;
        this.objects = [];
        while (this.dom?.firstChild) {
            this.dom.removeChild(this.dom.firstChild);
        if (this.dom) {
            while (this.dom.firstChild) {
                if (this.dom.contains(this.dom.firstChild)) {
                    this.dom.removeChild(this.dom.firstChild);
                }
            }
        }
    }