// Presentation preferences. Trace colours retain their published semantic roles. export interface AxisLabelOptions { readonly enabled: boolean; readonly maxCharacters?: number; readonly preferWords?: boolean; readonly preserveWhenFits?: boolean; readonly multicategory?: 'preserve' | 'fit'; } export interface FigureVisualProfile { readonly axisLabels?: AxisLabelOptions; readonly paperBackground?: string; readonly plotBackground?: string; readonly font?: Readonly<{ family?: string; size?: number; color?: string }>; readonly margin?: Readonly<{ l?: number; r?: number; t?: number; b?: number; pad?: number }>; readonly grid?: Readonly<{ color?: string; visible?: boolean }>; readonly minimumHeight?: number; } // Base keeps the received styling plus the dashboard's existing adaptations. export const BASE_VISUAL_PROFILE: FigureVisualProfile = Object.freeze({}); export const READABLE_VISUAL_PROFILE: FigureVisualProfile = Object.freeze({ axisLabels: Object.freeze({ enabled: true, maxCharacters: 22, preferWords: true, preserveWhenFits: true, multicategory: 'fit' }), }); export const DEMO_VISUAL_PROFILE: FigureVisualProfile = Object.freeze({ paperBackground: '#f2f7fc', plotBackground: '#ffffff', font: Object.freeze({ family: 'Arial, sans-serif', size: 15, color: '#17324d' }), margin: Object.freeze({ t: 30, pad: 8 }), grid: Object.freeze({ color: '#c6d7e8', visible: true }), minimumHeight: 640, });