SCC, MCC and EBU STL labels go through TimecodeFields with timecode::{frames_to_fields, fields_to_frames}. FrameRate, Tick and TICKS_PER_SECOND stay re-exported at the crate root; the re-export of craft-timeline's time module goes, since frame rates and timecode live in rates and timecode.
ale, build, edl, fx, path, rate and report are modules of the crate again, fcp7 and fcpxml behind the xml feature, otio behind otio, as storytold had them. The format list, the import and export options and the interchange error sit in interchange beside the neutral document and are re-exported at the crate root. The formats read and write time through rates, time and timecode: ALE rows through parse_time, an EDL timecode holds TimecodeFields, FCPXML format names use FrameRate's Display. Serde is always on, so the interchange types derive it unconditionally; the formats keep storytold's no-panic lints.
storytold's interchange tests run as trials of the lib's one test executable: the modules' own tests always, tests/it/{fcp7,fcpxml,otio} with the xml and otio features.
parse_frames reads typed timecode, frames and feet + frames as a frame count (drop-frame, relative to a current frame), and parse_time uses it for those displays. format_timecode_frames and format_feet_frames are public; TimeDisplay has id, from_id and frames_per_foot. FrameRate::from_f64_within snaps a container's rate to a standard one within a tolerance, and FrameRate's Display writes the rate as documents and diagnostics do (24, 23.976), without a unit.
storytold's time tests (src/time/tests.rs) run as trials on this API.
The layers panel's events carry craft-behavior types (EditEvent, SelectionChange, Mixed, IconId); an app on the facade needs them by name to apply the events.
A layer's content starts from its opener's scope with the layer-local fields fresh (Scoped::start_layer), in the
measure its container makes under the opener's env as in the run under the layer's, and a layer or pane starts
without InBar. A select in a popover opened from a bar measured as a bar member and fitted its content. The bar
trials that narrowed a select at a fixed width take a narrower bar, since a select in a bar is now its fitted width,
and the rule trials use icon buttons, which keep their width.
RulerBar, CropBar and WarpFields show the bar's members in rows of their own, which spaced them at gap.row; they
take gap.item, as the bar and ConstraintFields do. RulerBar writes lengths at the ruler unit's readout digits
(tenths of a pixel, as PhotoCraft), not two decimals. PinWarpBar's two Pin Depth buttons stacked in their field and
made the bar's line two controls high, so the end icons sat below the Mode row; they sit in a row.
A component declares itself a rule with Component::RULE; Divider does. In a bar's line the pass holds the shapes a
rule painted until the next member decides whether the view shows it: a member shown keeps them, a member the bar
hides takes them back, and so does the end of the line for a rule with nothing after it. A settling region's record
is taken after that, so a replay shows the line as the run did. A divider was left behind at the bar's end when the
members after it were hidden.
A content-sized select, and any select in a bar, fits its faces: as wide as its widest entry and the chevron need,
with no field floor, and at most a field length, where a longer entry elides. Options bars sized every select to the
field length or kept a 96 pt floor, so the whole-or-nothing rule hid later members the bar had room for. The bar
selects that asked for content sizing themselves no longer need to; LayerFilterBar's type select, in a row of its own,
asks for it.
Both were plain field rows in the old gallery and in DesignCraft's table
panel: number fields keep their number length instead of filling an
inspector column.
A row's shrink step first takes its shortfall from the room its leaves hold
beyond their content (a field's or select's length past its text), down to
the width at which each shows its content whole. Only then does content give
way: units made to be cut first, then the rest. A row's children measured in
no room take what they would alone in the row, so a text after a field
reports its line, not what the field left it.
FindBar's count stays on one line beside the search field.
ListRow's command flag puts an option that runs a command in the menu row
form: the lead row in accent.solid with text.on_accent, with no lead or
chosen edge. The palette's rows take it; other option lists keep the
option form.
Slider and RangeSlider kept their tick count in a prop nothing read, while
the track paints Marks::ticks. ticks() now sets Marks::ticks, the one
store, so 'Triangle, ticks' and the range slider's 'Level' draw their
ticks again. Trial: a slider draws the ticks it is asked for.
Each switch cell shows a small ToggleButton face with the shared on look,
so the target and output switches show their on state as the old icon
buttons did. The collection's toggle cell beneath keeps the presses. The
row's own on/off icon looks go; one switch_name serves the column
headers and the faces.
AnnotationToolbar puts a vertical divider before each group button, as a
Bar separates its groups. GraphEditor's bottom bar draws a divider rule in
each gap between two button groups, inset from the bar's edges.
HeaderRegion's band takes a BandFill: a surface or a tone's tinted fill
(HeaderRegion::tint). Tone::soft_fill and Tone::on_soft give a tone's fill
and the ink on it from one token table; StyleCx::tone_fill and the new
tone_on_fill read them. TitleRow::tone sets a header title in that ink.
The slicer's header is an accent band, inset like the body, with its
caption a section-strength TitleRow in accent.on_soft on the funnel's
centre line; its tiles take radius.control instead of the button radius.
- List::edge_press(mods, test): while the modifiers are held, the band of the line between two adjacent rows the
test gives a cursor for shows that cursor and takes the click (CollectionEvent::EdgePressed), picking neither
row. The band reaches LINE_REACH from the line; a toggle cell keeps its press. Collections without it are
unchanged.
- craft-layers: LayersEvent::ClipLine { upper, release } for an Alt-click on the line between two sibling layers,
with the clip-below or clip-release cursor.
- ListRow::part_drag(RowDragSpot, payload) replaces thumb_drag: a thumbnail or a trailing part drags instead of
the row (RowEvent::PartDrag). A trailing part that drags is a handle: its click is the row's.
- TrailingFace::Strong: a text face for a trailing part.
- ListRow::thumb_cursor: the cursor over a thumbnail.
- CollectionEvent::EmptyContextMenu: a secondary click on a collection's empty space.
- craft-layers: the fx badge drags every effect of its layer onto another layer (a transfer, Alt copies) and a
click on it selects the row; MenuTarget.row is None for the empty space's menu; the load-selection cursor over
thumbnails while Cmd/Ctrl is held; LayerTree::label_colors_in_menu decides per target whether the row menu
gets the Label Color submenu.
The rows take the mask through the list's drop kind for the panel's drag payload. LayerTree::accepts_mask_drop
decides which layers take it; by default a layer takes a mask of a kind it does not have.
The mask badges and the app's thumbnail badge fill the theme's small icon size (size.icon.sm) within the thumbnail,
and the app's icon draws at the small glyph size (size.icon.glyph_sm), instead of a share of the thumbnail.
ListRow::thumb_target takes ThumbTargets, built from one ThumbTarget or an array of them; one set of brackets frames
each run of adjacent targets, so two targets side by side never cut into each other. In the Layers panel,
LayerPart::Pixels on a frame targets its shape and content together, LayerPart::FrameShape the shape alone and
LayerPart::FrameContent the content alone; a click on a frame's first thumbnail reports FrameShape. Story
composites/layers-panel/frame-selected shows it.
Story composites/layers-panel/row-kinds shows a compact artboard heading, a frame, a smart object's badge and Smart
Filter rows with their Blending Options buttons, one selected on its own. Trials: the hovered layer row, a Smart
Filter row selected on its own holding the lead, the Blending Options double click, and a frame's mask chain after
its content thumbnail.
LayerInfo.thumb_badge puts an icon in the thumbnail's corner on the scrim, in the square the mask badges use
(PhotoCraft's smart object and shape marks).
LayerKind::Frame rows show the frame's shape and, as a second thumbnail, its content (LayerPart::FrameContent,
LayerThumbKind::FrameContent). A click on the content reports that part in Select and ThumbClick, and the target
brackets frame it when the app targets the content. The masks follow the content thumbnail.
LayerSelection.sub_row is the sub-row the app keeps selected: the list highlights it beside its layer and gives it
the lead. LayerSelect.row names the sub-row a click, right-click or selection key picked. The Background's doc names
ActivateOn::Row, which a double click on its name reports.
LayersOutput.hovered names the layer row under the pointer, read from the list's row state, so an app can outline
that layer on the canvas (PhotoCraft's Move tool).
The filter bar offers Photoshop's types: Kind, Name, Effect, Mode, Attribute,
Color, Smart Object, Artboard and Group. LayerInfo carries what the generic rule
reads (effect kinds, Advanced Blending, smart object source); LayerTree::listed
lets the app answer what only it knows (missing linked files, empty layers) and
defaults to LayerFilter::lists, which walks the tree for Group and Artboard.
Artboard and Group keep each group open or closed; the Mode list leaves out
Pass Through. LayersPanel::focus_filter_name switches the bar to Name and puts
the caret in its field with the text selected.