지붕재 경사 적용 중
This commit is contained in:
parent
f2445b41d6
commit
2c749456a7
@ -135,6 +135,7 @@ export function useCanvasSetting() {
|
||||
raft: item.raftBase && parseInt(item.raftBase),
|
||||
layout: ['ROOF_ID_SLATE', 'ROOF_ID_SINGLE'].includes(item.roofMatlCd) ? ROOF_MATERIAL_LAYOUT.STAIRS : ROOF_MATERIAL_LAYOUT.PARALLEL,
|
||||
hajebichi: item.roofPchBase && parseInt(item.roofPchBase),
|
||||
pitch: item.pitch && parseInt(item.pitch),
|
||||
}))
|
||||
setRoofMaterials(roofLists)
|
||||
const selectedRoofMaterial = roofLists[0]
|
||||
|
||||
@ -259,7 +259,7 @@ export const getDegreeByChon = (chon) => {
|
||||
// tan(theta) = height / base
|
||||
const radians = Math.atan(chon / 10)
|
||||
// 라디안을 도 단위로 변환
|
||||
return Number((radians * (180 / Math.PI)).toFixed(2))
|
||||
return Number((radians * (180 / Math.PI)).toFixed(1))
|
||||
}
|
||||
|
||||
/**
|
||||
@ -268,7 +268,7 @@ export const getDegreeByChon = (chon) => {
|
||||
* @returns {number}
|
||||
*/
|
||||
export const getChonByDegree = (degree) => {
|
||||
return Number((Math.tan((degree * Math.PI) / 180) * 10).toFixed(2))
|
||||
return Number((Math.tan((degree * Math.PI) / 180) * 10).toFixed(1))
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user