Compare commits

..

No commits in common. "e8aadf526a056b743a827bf805ab7ca11bd200bf" and "db0c8fae5fed0b5d1fea041738218a1851e619d3" have entirely different histories.

View File

@ -8,7 +8,6 @@ import { useSwal } from '@/hooks/useSwal'
import { usePopup } from '@/hooks/usePopup' import { usePopup } from '@/hooks/usePopup'
import Big from 'big.js' import Big from 'big.js'
import { outerLineFixState } from '@/store/outerLineAtom' import { outerLineFixState } from '@/store/outerLineAtom'
import { calcLinePlaneSize } from '@/util/qpolygon-utils'
// 외벽선 편집 및 오프셋 // 외벽선 편집 및 오프셋
export function useWallLineOffsetSetting(id) { export function useWallLineOffsetSetting(id) {
@ -47,13 +46,7 @@ export function useWallLineOffsetSetting(id) {
direction: direction, direction: direction,
}) })
// 분할된 라인의 실제 길이로 planeSize/actualSize 재계산 line.attributes = { ...currentWallLineRef.current.attributes }
const newPlaneSize = calcLinePlaneSize({ x1: point1.x, y1: point1.y, x2: point2.x, y2: point2.y })
line.attributes = {
...currentWallLineRef.current.attributes,
planeSize: newPlaneSize,
actualSize: newPlaneSize,
}
} }
const TYPES = { const TYPES = {