Skip to main content

Module display_source

Module display_source 

Source
Expand description

DisplaySourceCard + DisplayPreviewFrame — selected screen card shown in the tray record popover after capture-mode selection (M-UI.7 / AUT-127).

Pure presentation. SSR-stable: the preview is rendered as CSS-positioned divs (the “deterministic non-Wisp fallback” called out in the spec). A Wisp-backed PNG variant can land later via the existing wisp-export-stories harness.

Structs§

DisplayPreviewFrameProps
Props for the DisplayPreviewFrame component.
DisplayPreviewView
Visual preview content for the screen.
DisplaySourceCardProps
Props for the DisplaySourceCard component.
DisplaySourceView
View-model for the card.
PreviewWindowChip
One mock window chip — drawn as a colored rounded rect at a percentage offset / size inside the preview.

Functions§

DisplayPreviewFrame
Required Props
DisplaySourceCard
Required Props
aspect_ratio_css
CSS aspect-ratio property value for a (num, den) pair, with 1 / 1 fallback for zero denominator.