polygon 경사, 각도, 방향 추가

This commit is contained in:
minsik 2024-11-27 17:15:43 +09:00
parent 6a4a3f42ed
commit 9b99be56a8

View File

@ -1640,7 +1640,13 @@ export const drawGabledRoof = (roofId, canvas) => {
selectable: false,
fontSize: roof.fontSize,
name: 'roofPolygon',
attributes: { roofId: roof.id, currentRoof: currentRoof.id },
attributes: {
roofId: roof.id,
currentRoof: currentRoof.id,
pitch: currentRoof.attributes.pitch,
degree: currentRoof.attributes.degree,
direction: currentRoof.direction,
},
})
const currentDegree = currentRoof.attributes.pitch > 0 ? getDegreeByChon(currentRoof.attributes.pitch) : currentRoof.attributes.degree
//지붕 각도에 따른 실측치 조정