#1523 보조선 길이 업데이트 오류 수정
This commit is contained in:
parent
d4cca0a54d
commit
942470dc76
@ -84,12 +84,12 @@ export default function AuxiliarySize(props) {
|
||||
|
||||
//1지점 선택일때는 2지점의 좌표, 2지점 선택일때는 1지점의 좌표를 조정한다.
|
||||
if (checkedRadio === 1) {
|
||||
const newX2 = Big(x1).plus(dx.times(scaleFactor))
|
||||
const newY2 = Big(y1).plus(dy.times(scaleFactor))
|
||||
const newX2 = Big(x1).plus(dx.times(scaleFactor)).toNumber()
|
||||
const newY2 = Big(y1).plus(dy.times(scaleFactor)).toNumber()
|
||||
currentObject.set({ x2: newX2, y2: newY2 })
|
||||
} else if (checkedRadio === 2) {
|
||||
const newX1 = Big(x2).minus(dx.times(scaleFactor))
|
||||
const newY1 = Big(y2).minus(dy.times(scaleFactor))
|
||||
const newX1 = Big(x2).minus(dx.times(scaleFactor)).toNumber()
|
||||
const newY1 = Big(y2).minus(dy.times(scaleFactor)).toNumber()
|
||||
currentObject.set({ x1: newX1, y1: newY1 })
|
||||
}
|
||||
//planeSize와 actualSize를 재계산한다.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user