width, height 없을 경우 처리

This commit is contained in:
hyojun.choi 2025-01-17 11:26:22 +09:00
parent 558594e450
commit d5a155be04

View File

@ -22,8 +22,8 @@ export function useRoofFn() {
const ratio = window.devicePixelRatio || 1
const layout = roofMaterial.layout
let width = (roofMaterial.width ?? 226) / 10
let height = (roofMaterial.length ?? 158) / 10
let width = (roofMaterial.width || 226) / 10
let height = (roofMaterial.length || 158) / 10
const index = roofMaterial.index ?? 0
let roofStyle = 2
const inputPatternSize = { width: width, height: height } //임시 사이즈