Compare commits
No commits in common. "b7ba6d8fc17ab599144e93350d8b821922ee7796" and "67267170ae4a597fedf1f965bb6d5365bb154c2d" have entirely different histories.
b7ba6d8fc1
...
67267170ae
@ -799,7 +799,6 @@ export const useTrestle = () => {
|
|||||||
const parent = canvas.getObjects().find((obj) => obj.id === surface.parentId)
|
const parent = canvas.getObjects().find((obj) => obj.id === surface.parentId)
|
||||||
const { directionText, roofMaterial, moduleCompass, surfaceCompass } = parent
|
const { directionText, roofMaterial, moduleCompass, surfaceCompass } = parent
|
||||||
const slope = Number(roofMaterial.pitch)
|
const slope = Number(roofMaterial.pitch)
|
||||||
const angle = Number(roofMaterial.angle) || getDegreeByChon(slope)
|
|
||||||
const roofMaterialIndex = parent.roofMaterial.index
|
const roofMaterialIndex = parent.roofMaterial.index
|
||||||
const { nameJp: roofMaterialIdMulti } = roofMaterial
|
const { nameJp: roofMaterialIdMulti } = roofMaterial
|
||||||
const moduleSelection = moduleSelectionData?.roofConstructions?.find((construction) => construction.roofIndex === roofMaterialIndex)
|
const moduleSelection = moduleSelectionData?.roofConstructions?.find((construction) => construction.roofIndex === roofMaterialIndex)
|
||||||
@ -837,7 +836,7 @@ export const useTrestle = () => {
|
|||||||
supportMeaker,
|
supportMeaker,
|
||||||
slope: +roofSizeSet === 3 ? 0 : slope,
|
slope: +roofSizeSet === 3 ? 0 : slope,
|
||||||
classType: currentAngleType === 'slope' ? '0' : '1',
|
classType: currentAngleType === 'slope' ? '0' : '1',
|
||||||
angle: +roofSizeSet === 3 ? 0 : angle,
|
angle: +roofSizeSet === 3 ? 0 : getDegreeByChon(slope),
|
||||||
azimuth: getAzimuth(parent),
|
azimuth: getAzimuth(parent),
|
||||||
moduleList,
|
moduleList,
|
||||||
}
|
}
|
||||||
@ -1123,7 +1122,7 @@ export const useTrestle = () => {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
const roof = canvas.getObjects().find((obj) => obj.id === surface.parentId)
|
const roof = canvas.getObjects().find((obj) => obj.id === surface.parentId)
|
||||||
const degree = Number(roof.roofMaterial.angle) || getDegreeByChon(roof.roofMaterial.pitch)
|
const degree = getDegreeByChon(roof.roofMaterial.pitch)
|
||||||
rackIntvlPct = rackIntvlPct === 0 ? 1 : rackIntvlPct // 0인 경우 1로 변경
|
rackIntvlPct = rackIntvlPct === 0 ? 1 : rackIntvlPct // 0인 경우 1로 변경
|
||||||
rackIntvlPct = 100 / rackIntvlPct // 퍼센트로 변경
|
rackIntvlPct = 100 / rackIntvlPct // 퍼센트로 변경
|
||||||
const moduleLeft = lastX ?? left
|
const moduleLeft = lastX ?? left
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user