Anchor Faktiska symbols to temperature badges

This commit is contained in:
b0txec
2026-08-19 17:44:46 +03:00
parent 632f377c2d
commit 340c370c46
4 changed files with 65 additions and 5 deletions
@@ -5,6 +5,38 @@ export const faktiskaStations = [
export type FaktiskaStation = typeof faktiskaStations[number];
export type FaktiskaMarkerLayout = {
iconSide: "left" | "right";
iconGap: number;
iconOffsetX: number;
iconOffsetY: number;
};
const rightMarker = (): FaktiskaMarkerLayout => ({
iconSide: "right",
iconGap: 22,
iconOffsetX: 0,
iconOffsetY: 0,
});
// These placements are part of the fixed newsroom template. Operators select
// the glyph; the renderer owns its position relative to the temperature badge.
export const faktiskaMarkerLayout: Record<FaktiskaStation, FaktiskaMarkerLayout> = {
"Liepāja": rightMarker(),
"Ventspils": rightMarker(),
"Stende": rightMarker(),
"Saldus": rightMarker(),
"Rīga": rightMarker(),
"Jelgava": rightMarker(),
"Ainaži": rightMarker(),
"Valmiera": rightMarker(),
"Madona": rightMarker(),
"Alūksne": rightMarker(),
"Zīlāni": rightMarker(),
"Daugavpils": rightMarker(),
"Rēzekne": rightMarker(),
};
export const faktiskaExport = {
width: 3840,
height: 1440,