43 lines
1.2 KiB
TypeScript
43 lines
1.2 KiB
TypeScript
export const faktiskaStations = [
|
|
"Liepāja", "Ventspils", "Stende", "Saldus", "Rīga", "Jelgava", "Ainaži",
|
|
"Valmiera", "Madona", "Alūksne", "Zīlāni", "Daugavpils", "Rēzekne",
|
|
] as const;
|
|
|
|
export type FaktiskaStation = typeof faktiskaStations[number];
|
|
|
|
export type FaktiskaMarkerLayout = {
|
|
iconSide: "left" | "right";
|
|
iconGap: number;
|
|
iconOffsetX: number;
|
|
iconOffsetY: number;
|
|
};
|
|
|
|
const rightMarker = (): FaktiskaMarkerLayout => ({
|
|
iconSide: "right",
|
|
iconGap: 12,
|
|
iconOffsetX: 0,
|
|
iconOffsetY: 0,
|
|
});
|
|
|
|
// These placements are part of the fixed newsroom template. Operators select
|
|
// the symbol; 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 = {
|
|
defaultTemplate: "faktiska_3840x1440" as const,
|
|
};
|