app_id: "app-b46532fd54e74e04b7d95532b32cae16" edits: - find: "drawSVG(doorCount, settings.profile, glassType, hDiv, vDiv);" replace: "drawSVG(w, h, doorCount, settings.profile, glassType, hDiv, vDiv);" - find: "function drawSVG(doors, color, glass, hDiv, vDiv) {" replace: "function drawSVG(w_m, h_m, doors, color, glass, hDiv, vDiv) {" - find: |- const svg = document.getElementById('partition-svg'); svg.innerHTML = ''; const svgWidth = 480; const svgHeight = 280; const doorWidth = svgWidth / doors; replace: |- const svg = document.getElementById('partition-svg'); svg.innerHTML = ''; // Calculate proportions const realW = w_m || 3; const realH = h_m || 2.5; const svgWidth = 600; const svgHeight = svgWidth * (realH / realW); svg.setAttribute('viewBox', `0 0 ${svgWidth} ${svgHeight}`); const doorWidth = svgWidth / doors;