The zip reader searches a whole file for an end-of-directory record
before it gives up on a file that isn't a zip. DesignCraft reads the
preview of every recent file this way before the start screen's first
frame: 2.6 s for a local 110 MB InDesign document, 43 s on a network
share.
read_preview_from now checks the zip local-file header first.
Fixes#2031
The roots that contain the pointer are found whatever egui's click target is.
A widget a component made for its own text (a field's text, a selection part)
is recorded with its component: a press egui gives it stays the widget's, and
the hover goes to that component's topmost shape. Collection rows report
pointer_over beside hovered, and the document tab strip names the tab under
the pointer by it, so a drop target reads it while another root holds the
press. DIAG (CRAFT_DIAG_PRESS) prints each resolution's stack and answer.
A new or cropped document's fit and a new arrangement's fits place the view, which jumps as PhotoCraft's
placements did; a menu row or an action step eases under Animated Zoom as its chord does. The full-window wheel
trial turns Overscroll on: after the 20-point fit one notch leaves the image smaller than the canvas, which
Overscroll off centres.
pointer::Under, found once per pass at the begin hook over last pass's shape
record, answers both the press and the hover: the press winners hover, plus
the topmost shape when it takes no press; roots with a shape under the point
contain the pointer. While a press is open only its target hovers. Arenas
read their hover and their press hit from it; the per-root layer check and
the arena's own hover and press resolves are gone, and withheld members are
dropped in the one resolution. Toasts pause on contains_pointer. Trials for
hover/press agreement, nested controls, held presses and one resolution per
pass.
- Fit on Screen leaves 20 points on each side (PhotoCraft and the old framework) and fits up to the target's fit
ceiling: 100 % for a document canvas, 400 % for a full-window dialog.
- Canvas::queued: view commands an app asks of a document's canvas run in the canvas's loop before the fired ones,
eased the same way, and never in a measuring run.
- FullWindowView runs Zoom In, Zoom Out, Fit on Screen and 100% through ViewCommands::apply.
craft-audio names its VMD decoder feature `vmd-decode`, and craft-video
names a codec's decoder `<codec>-decode` wherever the codec may also have
an encoder (mpeg2, mpeg4, vp8…). The video decoder now follows that:
`vmd-decode` gates the module and its VideoFrame conversion, and `vmd`
turns it on, so `vmd` keeps working and an encoder can be added later
without renaming.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>