#
luxiaotao1123
2024-10-09 2d0b1bb3b3224d9cf0195b56415af6f86096778c
zy-acs-flow/src/map/MapPage.jsx
@@ -63,10 +63,6 @@
            const height = contentRef.current.offsetHeight;
            player.resize(width, height);
            if (mode === MapMode.MOVABLE_MODE) {
                console.log('aa');
                player.showGridLines();
            }
        };
        handleResize();
        window.addEventListener('resize', handleResize);
@@ -118,11 +114,9 @@
            return
        }
        switchMode(mode);
    }, [mode]);
    }, [mode, mapContainer]);
    const onDrop = (sprite, type, x, y) => {
        console.log(sprite, type, x, y);
        const { mapX, mapY } = Tool.getRealPosition(x, y);
        sprite.x = mapX;
        sprite.y = mapY;