diff --git a/src/util/qpolygon-utils.js b/src/util/qpolygon-utils.js index 6da3fd6a..47e8f4e9 100644 --- a/src/util/qpolygon-utils.js +++ b/src/util/qpolygon-utils.js @@ -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 } /** diff --git a/src/util/skeleton-utils.js b/src/util/skeleton-utils.js index 87630e0e..9c57828e 100644 --- a/src/util/skeleton-utils.js +++ b/src/util/skeleton-utils.js @@ -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,