[2250] 배치면 サイズ変更 후 치수 라벨 stale 수정 — planeSize 재계산 + 라벨 재생성 #898
@ -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, <SizeSetting id={popupId} side={side} target={newPolygon} />)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user