움직인라인그대로유지offset #766
@ -216,7 +216,18 @@ export function useEavesGableEdit(id) {
|
||||
|
||||
const roofBases = canvas?.getObjects().filter((obj) => obj.name === POLYGON_TYPE.ROOF && !obj.isFixed)
|
||||
|
||||
// moveLine 속성 보존 (offset 변경 후에도 마루이동 유지)
|
||||
const savedMoveProps = {}
|
||||
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) => {
|
||||
removeLine(line)
|
||||
})
|
||||
@ -231,6 +242,11 @@ export function useEavesGableEdit(id) {
|
||||
wallLines.forEach((wallLine) => {
|
||||
addPitchTextsByOuterLines()
|
||||
const roof = drawRoofPolygon(wallLine)
|
||||
// moveLine 속성 복원
|
||||
const saved = savedMoveProps[roof.id]
|
||||
if (saved) {
|
||||
Object.assign(roof, saved)
|
||||
}
|
||||
canvas?.renderAll()
|
||||
roof.drawHelpLine(settingModalFirstOptions)
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user