actureSize - 소수점처리

This commit is contained in:
yscha 2026-01-25 23:55:35 +09:00
parent d70e2f7346
commit 4e5d9f3d46
2 changed files with 4 additions and 4 deletions

View File

@ -6000,9 +6000,9 @@ export const calcLineActualSize2 = (points, degree = 0) => {
const hx = xLength * Math.tan(degree * (Math.PI / 180))
const hy = yLength * Math.tan(degree * (Math.PI / 180))
const actualSize = Math.sqrt(hx ** 2 + planeSize ** 2)
const actualSize2 = Math.sqrt(hy ** 2 + planeSize ** 2)
return actualSize
const actualSize = Number(Math.sqrt(hx ** 2 + planeSize ** 2)).toFixed(0)
const actualSize2 = Number(Math.sqrt(hy ** 2 + planeSize ** 2)).toFixed(0)
return actualSize
}
/**

View File

@ -822,7 +822,7 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => {
type: 'eaveHelpLine',
isStart: true,
pitch: wallLine.attributes.pitch,
actualSize: (isDiagonal) ? calcLineActualSize(
actualSize: (isDiagonal) ? calcLineActualSize2(
{
x1: p1.x,
y1: p1.y,