The deb, rpm and tar.gz packages install
share/thumbnailers/ai.storyteller.vectorcraft.thumbnailer for
application/x-vectorcraft and application/x-vectorcraft-template. It runs
the new `vectorcraft-cli thumbnail --size N IN OUT`, which opens the
document as the app does and writes an 8-bit RGBA PNG of the first
artboard, N pixels (1 to 1024, default 256) on its longer side.
A file larger than 256 MiB, one that can't be opened, a document that
shows nothing, or a run longer than 20 seconds writes no PNG and exits
non-zero, so the file manager keeps the file's icon. The Nightly deb and
rpm leave the entry out, as they leave out the MIME package.
The render moves into vectorcraft_render::encode::first_artboard, which
the embedded native preview also uses.
main added a test named wrappers_go_stale_after_revert and passes the
command id to dom::before_command by reference.
- The revert test of this branch is renamed
objects_read_before_a_revert_are_stale_and_ones_read_after_are_the_loaded_ones.
- command_value takes `id` as a &str, so the call passes it as it is,
which clippy's needless_borrow check requires.
main added HostClass initializers in host_tests.rs without the reflect
`info` field, a second test named
assigning_undefined_to_the_selection_throws_and_keeps_it, and type and
size checks on DocumentPreset settings.
- host_tests.rs: the six new HostClass initializers give `info`.
- The selection test for an index past the end of pageItems is renamed
assigning_an_index_past_the_end_to_the_selection_throws_and_keeps_it.
- The preset heap tests used titles of 512 KiB and an array of 20,000
booleans as a title, which the setter now refuses. They now reach the
run's heap with 4,092-byte titles, and compare presets holding a
four-number documentBleedOffsetRect with presets holding an eight-byte
title, so each array element still counts.
The plug-in runtime keeps main's JavaScript plug-ins beside the web worker's module bytes and checked loads: a JavaScript plug-in's bundle is kept for the worker like a module, and load_checked loads it from its bundle.
A side of an envelope's content shorter than 1e-6 pt, not only one of
zero length, has its margins measured as shares of the other side
(envelope_margin_lengths). docs/mcp.md, the object.envelope.info params
text and the bounds_margin doc comment now state that threshold.
- Redefining a text style keeps text with its own value of an attribute the
old definition did not set. Only text that still had the value it had
under the old definition (Normal's, or the default when Normal itself is
redefined) takes the new one. Leadings that Block gave the text still
follow the style.
- Use Profile Defaults and Load Character Styles draw the graphs in the
symbols they add with the document's own graph design of that name, as
Paste does.
- file.newProfiles commands say their name is a built-in category of
file.newPresets, and Use Profile Defaults records no undo step when the
document does not change.