#
luxiaotao1123
2024-10-22 213de676b386af4a195df899c23d057d889095d1
#
4个文件已修改
24 ■■■■ 已修改文件
zy-acs-flow/src/map/insight/agv/AgvThree.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/map/insight/shelf/ShelfMain.jsx 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/map/insight/shelf/ShelfThree.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/map/tool.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/map/insight/agv/AgvThree.js
@@ -169,10 +169,14 @@
        }
        this.camera = null;
        this.objects = [];
        while (this.dom?.firstChild) {
        if (this.dom) {
            while (this.dom.firstChild) {
                if (this.dom.contains(this.dom.firstChild)) {
            this.dom.removeChild(this.dom.firstChild);
        }
    }
        }
    }
    removeEntity = (object) => {
        if (object.material) object.material.dispose();
zy-acs-flow/src/map/insight/shelf/ShelfMain.jsx
@@ -71,8 +71,14 @@
            }
            Promise.all(promises).then(() => {
                if (shelfThree) {
                    if (typeof shelfThree.setNewSelectedMesh === 'function') {
                shelfThree.setNewSelectedMesh(curLocNo);
                    }
                    if (typeof shelfThree.rePerspective === 'function') {
                shelfThree.rePerspective(singleHeight * info.length, 500);
                    }
                }
            }).catch(error => {
                console.error(error);
            });
zy-acs-flow/src/map/insight/shelf/ShelfThree.js
@@ -241,10 +241,14 @@
        this.dom?.removeEventListener("click", this.handleClickEvent);
        this.camera = null;
        this.objects = [];
        while (this.dom?.firstChild) {
        if (this.dom) {
            while (this.dom.firstChild) {
                if (this.dom.contains(this.dom.firstChild)) {
            this.dom.removeChild(this.dom.firstChild);
        }
    }
        }
    }
    removeEntity = (object) => {
        if (object.material) object.material.dispose();
zy-acs-flow/src/map/tool.js
@@ -348,7 +348,7 @@
function onSpriteMouseOver(event) {
    if (tooltip) {
        app.stage.removeChild(tooltip);
        app?.stage.removeChild(tooltip);
    }
    tooltip = createSpriteTooltip(this);// this => sprite
    tooltip.x = event.data.global.x + 10;
@@ -365,7 +365,7 @@
function onSpriteMouseOut() {
    if (tooltip && tooltip.parent) {
        tooltip.parent.removeChild(tooltip);
        tooltip.parent?.removeChild(tooltip);
        tooltip = null;
    }
}
@@ -478,7 +478,7 @@
        effectTicker = null;
    }
    if (effectCircle) {
        mapContainer.removeChild(effectCircle);
        mapContainer?.removeChild(effectCircle);
        effectCircle = null;
    }
    selectedSprite = null;