Skip to main content

Module framing_inspector

Module framing_inspector 

Source
Expand description

Framing inspector — output aspect ratio + crop (ED.15 / M-EDIT).

Project-level “look” controls in the inspector: the aspect ratio (the hard matte that decides the export canvas — 16:9, 9:16, 1:1, 4:3) and the crop (a normalized sub-rect of the source). Both are stored on the [EditProject] and re-derived at render time; the visible reframe of the preview + the export videocrop ride with the render-integration / export pass (ED.20 / ED.21). This chunk is the authoring side: presets + numeric crop entry, undoable through the shared [edit::History].

Structs§

FramingInspectorProps
Props for the FramingInspector component.

Constants§

ASPECTS
Aspect-ratio presets, in display order.
CROP_FIELDS
Crop field labels, in [x, y, w, h] order.

Functions§

FramingInspector
The framing inspector: aspect-ratio presets + numeric crop entry.
aspect_buttons 🔒
crop_from_array
Rebuild a [CropRect] from a [x, y, width, height] array.
crop_inputs 🔒
crop_pct_label
Display a unit fraction as a whole-percent string (0.8 → "80").
crop_to_array
A crop rect as a [x, y, width, height] array.
parse_crop_pct
Parse a percent string ("0".."100") to a unit fraction, clamped to [0, 1]. A non-numeric entry reads as 0.

Type Aliases§

HistoryStore 🔒
ProjectSignal 🔒