diff --git a/src/hooks/surface/useSurfaceShapeBatch.js b/src/hooks/surface/useSurfaceShapeBatch.js index d6cb2df7..e729d10b 100644 --- a/src/hooks/surface/useSurfaceShapeBatch.js +++ b/src/hooks/surface/useSurfaceShapeBatch.js @@ -1155,6 +1155,13 @@ export function useSurfaceShapeBatch({ isHidden, setIsHidden }) { drawDirectionArrow(newPolygon) newPolygon.setCoords() changeSurfaceLineType(newPolygon) + // [SIZE-RESIZE-PLANESIZE 2026-06-08] サイズ変更 시 좌표는 새 크기로 갱신되지만 initLines 가 옛 attributes + // (planeSize=구 길이) 를 그대로 물려줘 라벨이 stale 하게 남던 문제. 변경된 새 좌표 길이로 planeSize 를 + // 강제 재계산 후 actualSize/라벨 재생성 (최초 생성 경로 line 302/320 과 동일하게 맞춤). + newPolygon.lines.forEach((line) => { + line.attributes.planeSize = line.getLength() + }) + setPolygonLinesActualSize(newPolygon, true) canvas?.renderAll() closeAll() addPopup(popupId, 1, )