움직인라인그대로유지offset #765

Merged
ysCha merged 1 commits from dev into dev-deploy 2026-04-08 16:58:35 +09:00

View File

@ -216,7 +216,18 @@ export function useEavesGableEdit(id) {
const roofBases = canvas?.getObjects().filter((obj) => obj.name === POLYGON_TYPE.ROOF && !obj.isFixed) const roofBases = canvas?.getObjects().filter((obj) => obj.name === POLYGON_TYPE.ROOF && !obj.isFixed)
// moveLine 속성 보존 (offset 변경 후에도 마루이동 유지)
const savedMoveProps = {}
roofBases.forEach((roof) => { roofBases.forEach((roof) => {
if (roof.moveFlowLine || roof.moveUpDown) {
savedMoveProps[roof.id] = {
moveFlowLine: roof.moveFlowLine,
moveUpDown: roof.moveUpDown,
moveDirect: roof.moveDirect,
moveSelectLine: roof.moveSelectLine,
movePosition: roof.movePosition,
}
}
roof.innerLines.forEach((line) => { roof.innerLines.forEach((line) => {
removeLine(line) removeLine(line)
}) })
@ -231,6 +242,11 @@ export function useEavesGableEdit(id) {
wallLines.forEach((wallLine) => { wallLines.forEach((wallLine) => {
addPitchTextsByOuterLines() addPitchTextsByOuterLines()
const roof = drawRoofPolygon(wallLine) const roof = drawRoofPolygon(wallLine)
// moveLine 속성 복원
const saved = savedMoveProps[roof.id]
if (saved) {
Object.assign(roof, saved)
}
canvas?.renderAll() canvas?.renderAll()
roof.drawHelpLine(settingModalFirstOptions) roof.drawHelpLine(settingModalFirstOptions)
}) })