module 이동 후에도 흡착점 작동하도록 수정

This commit is contained in:
hyojun.choi 2025-09-11 09:50:25 +09:00
parent 3811f224d6
commit b651aab959

View File

@ -213,7 +213,7 @@ export function useEvent() {
const modulePoints = []
const modules = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.MODULE)
modules.forEach((module) => {
module.points.forEach((point) => {
module.getCurrentPoints().forEach((point) => {
modulePoints.push({ x: point.x, y: point.y })
})
})