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§
- Framing
Inspector Props - Props for the
FramingInspectorcomponent.
Constants§
- ASPECTS
- Aspect-ratio presets, in display order.
- CROP_
FIELDS - Crop field labels, in
[x, y, w, h]order.
Functions§
- Framing
Inspector - 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 as0.