지붕재 w,l 값이 없는경우 default값 추가

This commit is contained in:
hyojun.choi 2024-12-24 15:40:56 +09:00
parent 59f7c9619f
commit afea0f7c30

View File

@ -12,8 +12,8 @@ export function useRoofFn() {
const ratio = window.devicePixelRatio || 1
const layout = roofMaterial.layout
let width = roofMaterial.width / 10
let height = roofMaterial.length / 10
let width = (roofMaterial.width ?? 226) / 10
let height = (roofMaterial.length ?? 158) / 10
let roofStyle = 2
const inputPatternSize = { width: width, height: height } //임시 사이즈
const patternSize = { ...inputPatternSize } // 입력된 값을 뒤집기 위해