chore(dashboardAPI): double basin row height for pumpingStation
Basin row grows from h:10 to h:20. Bar gauge, Canvas, and Level/Volume timeseries all scale proportionally. Canvas internal frame doubled (480x600) and tank rectangle stretched (height 240→520) so the canvas content fills the panel instead of letterboxing in the top half. Bottom readouts moved from y=280 to y=562 to stay just below the taller tank floor. Flow row + its panels shifted down by 10 grid rows to make room. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -189,9 +189,10 @@ class DashboardApi {
|
||||
const dryRunLevel = outflowLevel * (1 + dryRunPct / 100);
|
||||
const highSafetyLevel = overflowLevel * (highPct / 100);
|
||||
|
||||
// Canvas tank: rim at y=20px, floor at y=260px (240px tall). Must match
|
||||
// hard-coded tank rectangle placement in config/pumpingStation.json.
|
||||
const TANK_TOP = 20, TANK_BOT = 260, TANK_H = TANK_BOT - TANK_TOP;
|
||||
// Canvas tank: rim at y=20px, floor at y=540px (520px tall). Must match
|
||||
// hard-coded tank rectangle placement in config/pumpingStation.json
|
||||
// (basin row is h:20 grid rows; canvas root frame is 480x600 px).
|
||||
const TANK_TOP = 20, TANK_BOT = 540, TANK_H = TANK_BOT - TANK_TOP;
|
||||
const yFor = (v) => +(TANK_BOT - (v / heightBasin) * TANK_H).toFixed(2);
|
||||
const tyFor = (yLine) => +(yLine - 8).toFixed(2); // centre 16px text on the line
|
||||
|
||||
|
||||
Reference in New Issue
Block a user