Compare commits

..

No commits in common. "88e2c8ed059b633be270778f14a85507fceb80ca" and "287ce5c85abb4e4a3aed383c537302bba8471604" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -53,8 +53,8 @@ export const useLine = () => {
})
canvas
?.getObjects()
?.find((obj) => obj.parentId === line.id)
?.set({
.find((obj) => obj.parentId === line.id)
.set({
visible: true,
})
canvas?.renderAll()

View File

@ -3527,7 +3527,7 @@ export const calcLinePlaneSize = (points) => {
* @param degree
* @returns number
*/
export const calcLineActualSize = (points, degree = 0) => {
export const calcLineActualSize = (points, degree) => {
const { x1, y1, x2, y2 } = points
const planeSize = calcLinePlaneSize(points)
let height = Big(Math.tan(Big(degree).times(Math.PI / 180))).times(planeSize)