view-context.ts (514B)
1 export type ViewMode = "stack" | "flow"; 2 export type ViewPointerEvents = "none" | "auto"; 3 4 export type ViewContext<T extends string> = { 5 active_view: T; 6 mode: ViewMode; 7 fade: boolean; 8 transition_ms: number; 9 opacity_inactive: number; 10 scale_inactive: number; 11 offset_x: string; 12 offset_y: string; 13 blur_inactive_px: number; 14 pointer_events_inactive: ViewPointerEvents; 15 z_index_active: number; 16 z_index_inactive: number; 17 }; 18 19 export const VIEW_CONTEXT_KEY = "radroots:view";