선이 가지고있는 planeSize로 계산하도록 수정
This commit is contained in:
parent
65e268f3d6
commit
0f481e2933
@ -172,9 +172,9 @@ export const useLine = () => {
|
|||||||
const isHorizontal = y1 === y2
|
const isHorizontal = y1 === y2
|
||||||
const isVertical = x1 === x2
|
const isVertical = x1 === x2
|
||||||
const isDiagonal = !isHorizontal && !isVertical
|
const isDiagonal = !isHorizontal && !isVertical
|
||||||
const lineLength = line.getLength()
|
const lineLength = line.attributes.planeSize ?? line.getLength()
|
||||||
|
|
||||||
line.attributes = { ...line.attributes, planeSize: line.getLength(), actualSize: line.getLength() }
|
// line.attributes = { ...line.attributes, planeSize: line.getLength(), actualSize: line.getLength() }
|
||||||
|
|
||||||
if (+roofSizeSet === 1) {
|
if (+roofSizeSet === 1) {
|
||||||
if (direction === 'south' || direction === 'north') {
|
if (direction === 'south' || direction === 'north') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user