Input fields
| Field | Label in UI | Default | Notes |
|---|---|---|---|
ancho | Ancho (cm) | 205 | Overall window width |
alto | Alto (cm) | 165 | Overall window height |
altoPuente | Puente (cm) | 130 | Bridge / lower section height |
numCorredizas | Corredizas | 1 | Sliding panels — min 1, max 3 |
numFijos | Fijos | 2 | Fixed panels — min 1, max 3 |
wire:model.blur, so calculations update when you leave the field. Changes are automatically persisted to the PHP session.
Width adjustment (anchoAjustado)
The total number of divisions (totalDivisions = numCorredizas + numFijos) determines whether a compensation offset is added to ancho before any widths are divided.
Width adjustment formula
Width adjustment formula
| Total divisions | Adjustment | Example (ancho = 205) |
|---|---|---|
| 2 | +0 | 205.0 cm |
| 3 | +1 | 206.0 cm |
| 4 | +0 | 205.0 cm |
| 5 | +2 | 207.0 cm |
| 6 | +3 | 208.0 cm |
Height calculations
Height calculations
The window is divided into a lower section (infrared / main panels) and an optional upper transom (sobreluz).The constant
2.1 cm ($sobreluz) accounts for the horizontal profile separating the two sections. The upper transom section is only rendered when altoSup > 0. If alto is close to or equal to altoPuente, no transom appears.| Input | Calculation | Result (defaults) |
|---|---|---|
altoInf | altoPuente | 130.0 cm |
altoSup | 165 − 130 − 2.1 | 32.9 cm |
Glass dimension formulas
Glass dimension formulas
Each panel’s glass width is derived from The glass height uses a different offset per panel type:The larger deduction for sliding panels (3.5 cm vs 1.0 cm) accommodates the roller track at the bottom.
anchoAjustado / totalDivisions with a type-specific offset:| Constant | Variable name | Value |
|---|---|---|
| Glass ± offset | $vidrio | 0.6 cm |
| Fixed height deduction | $vfijo | 1.0 cm |
| Sliding height deduction | $vcorrediza | 3.5 cm |
Transom (sobreluz) calculation
Transom (sobreluz) calculation
When a transom exists (
altoSup > 0), it is divided into 1, 2, or 3 equal panels depending on total divisions:| Total divisions | Transom panels |
|---|---|
| 1–2 | 1 (label: TL) |
| 3–4 | 2 (labels: TL 1, TL 2) |
| 5+ | 3 (labels: TL 1, TL 2, TL 3) |
Worked example
Inputs: Ancho = 205, Alto = 165, Puente = 130, 1 corrediza + 2 fijos (3 divisions total).| Derived value | Formula | Result |
|---|---|---|
anchoAjustado | 205 + 1 (3 divisions) | 206.0 cm |
altoInf | 130 | 130.0 cm |
altoSup | 165 − 130 − 2.1 | 32.9 cm |
| Width per division | 206 / 3 | 68.666… cm |
| Fixed glass width | 68.666 + 0.6 | 69.2 cm |
| Sliding glass width | 68.666 − 0.6 | 68.0 cm |
| Fixed glass height | 130 − 1.0 | 129.0 cm |
| Sliding glass height | 130 − 3.5 | 126.5 cm |
| Transom panel width | trunc(205 / 2) − 0.3 = 102.5 − 0.3 | 102.2 cm |
| Transom panel height | trunc(32.9) | 32.9 cm |
| Transom count | 3 divisions → 2 panels | 2 |
All dimension values are truncated to one decimal place using PHP’s
floor() — not rounded. A value of 68.66 becomes 68.6, not 68.7. Keep this in mind when cross-checking manual calculations.