Compare commits
No commits in common. "e2ad711244a4f883d8a65236e22a1fa707bb5961" and "af3ec6e31bea8586a2177c36f06c00188db62f10" have entirely different histories.
e2ad711244
...
af3ec6e31b
@ -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 = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user