지붕재 할당 시 추가 작업 및 보조선 제거 조건 수정
This commit is contained in:
parent
14764d295c
commit
bb6a796b9f
@ -849,8 +849,14 @@ export function useAuxiliaryDrawing(id, isUseEffect = true) {
|
||||
if (
|
||||
lineHistory.current.some(
|
||||
(history) =>
|
||||
JSON.stringify(history.startPoint) === JSON.stringify(line.startPoint) &&
|
||||
JSON.stringify(history.endPoint) === JSON.stringify(line.endPoint),
|
||||
(Math.abs(history.startPoint.x - line.startPoint.x) < 2 &&
|
||||
Math.abs(history.startPoint.y - line.startPoint.y) < 2 &&
|
||||
Math.abs(history.endPoint.x - line.endPoint.x) < 2 &&
|
||||
Math.abs(history.endPoint.y - line.endPoint.y) < 2) ||
|
||||
(Math.abs(history.startPoint.x - line.endPoint.x) < 2 &&
|
||||
Math.abs(history.startPoint.y - line.endPoint.y) < 2 &&
|
||||
Math.abs(history.endPoint.x - line.startPoint.x) < 2 &&
|
||||
Math.abs(history.endPoint.y - line.startPoint.y) < 2),
|
||||
)
|
||||
) {
|
||||
canvas.remove(line)
|
||||
|
||||
@ -412,7 +412,7 @@ export function useRoofAllocationSetting(id) {
|
||||
})
|
||||
|
||||
/** 외곽선 삭제 */
|
||||
const removeTargets = canvas.getObjects().filter((obj) => obj.name === 'outerLinePoint' || obj.name === 'outerLine')
|
||||
const removeTargets = canvas.getObjects().filter((obj) => obj.name === 'outerLinePoint' || obj.name === 'outerLine' || obj.name === 'pitchText')
|
||||
removeTargets.forEach((obj) => {
|
||||
canvas.remove(obj)
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user