86er1b9x1 - 지붕형상 설정 - 변별로 설정 적용 수정
This commit is contained in:
parent
e322f36e13
commit
f4f885dda9
@ -595,17 +595,23 @@ export function useRoofShapeSetting(id) {
|
||||
break
|
||||
}
|
||||
}
|
||||
selectedLine.attributes = attributes
|
||||
history.current.push(selectedLine)
|
||||
selectedLine.attributes = { ...attributes, isFixed: true }
|
||||
|
||||
canvas.renderAll()
|
||||
nextLineFocus(selectedLine)
|
||||
}
|
||||
|
||||
const nextLineFocus = (selectedLine) => {
|
||||
const lines = canvas.getObjects().filter((obj) => obj.name === 'outerLine')
|
||||
|
||||
const index = lines.findIndex((line) => line.idx === selectedLine.idx)
|
||||
|
||||
const nextLine = lines[index + 1] || lines[0]
|
||||
if (nextLine.attributes.isFixed) {
|
||||
canvas.discardActiveObject()
|
||||
return
|
||||
}
|
||||
history.current.push(selectedLine)
|
||||
canvas.setActiveObject(nextLine)
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user