A fill or stroke dragged onto another cut it the moment the mouse was let go,
while still selected. In Animate it cuts nothing until the selection lets go of
it, so it can be moved on, or back. The editor now floats a moved selection
(draw.float: whole, on top, as a paste already was) and the drawing takes it in
when it is deselected; undo takes back the move and the cut together. draw.drop
stays for scripts. ADR 0122 amends ADR 0031.
Also regenerates the guide's command and shortcut reference (draw.float,
Ctrl+J for Document Settings, all_layers on Remove Frame and Clear Keyframe).
Fixes#487
A guide drawn as a zigzag with the Line tool is one raw stroke per straight run
(merge drawing cuts lines at their corners), and only the first shape's first
line was the path: the guided object ran along one run and stopped at the first
sharp peak or valley. The guide is now its first line continued through every
line on the layer that meets it end to end (within 0.75 px; at most 512 lines),
in either direction, so speed is even along the whole path and orient to path
turns at each corner.
Fixes#490
F5 with no frame selection extends every layer at the playhead, but Shift+F5 took
the frame off the active layer only, and Shift+F6 cleared only its keyframe.
timeline.remove_frame and timeline.clear_keyframe take all_layers, which the
editor sends when no frames are selected; the playhead steps back when its frame
is removed, so the key can be held. The question before artwork is lost counts
every layer the key acts on.
Fixes#438
The menu item ran doc.set_stage with nothing to set, so nothing happened. It now
opens Document Settings (stage size, frame rate, stage colour; OK is one undo
step, Cancel changes nothing), with Animate's Ctrl+J. Headless, the command takes
the values as before.
Fixes#505
The menu bar rebuilds the registry each frame, and cmds_text::specs leaked four
formatted strings per call: about 1.5 kB a frame while the window repaints
(playback, a blinking caret, an animation), which is 2.6 GB over a night.
Measured (release, Windows): looping playback grew 220.7 -> 246.5 MB working set
in 5 minutes; a headless run of App::frame kept +1,522 B per frame. The docs are
now built once. A window that draws nothing was already flat (341 MB over 3 min).
Fixes#454
On Linux, starting a program that was written a moment ago fails with ETXTBSY while another
process that forked meanwhile still holds it open for writing. The stand-in ffmpeg test hit it
on the Linux gate. Starting ffmpeg now retries that error for up to half a second.
Follow-up to outside PRs #489, #404 and #486. Trace Bitmap counts areas of colour while it grows them and stops at 2,000,000 with one sentence: a 4096 x 4096 image of noise at threshold 1 made 16.7 million regions, each with an adjacency map (gigabytes). Measured in release: photo-like 1024 px 50 ms, 2048 px 225 ms, 4096 px 0.85 s; noise 2048 px at the defaults 1.9 s. Adds --open tracebitmap for screenshots, the ATTRIBUTION row for the tracer, AUTHORS, CHANGELOG credits, the roadmap's honest status and the guide's limits.
#472 gives an oval a node every 45 degrees, so the point #465's test
dragged (the old south-east arc's middle) became an anchor. Drag the
middle of the first arc, at 22.5 degrees, instead.
Follow the existing command-file BOM convention while preserving the raw-byte size limit and GPL parser path. Add an exported-file round-trip regression.
* refactor(svg): read SVG text and path data through craft-svg
SVG import now decodes its bytes with craft-svg (SVGZ, UTF-16 and Latin-1,
within the shared size limit) and refuses entity bombs, very wide elements
and deep nesting with craft-svg's guards before anicraft_xml builds a tree.
Path data (SVG import, the path.d and motion path commands, the interface
icons) is read by craft_svg::path_data. anicraft-geom keeps only the
elliptical-arc-to-cubic geometry; its own tokenizer is removed.
craft-svg is pinned to craft-libs main 57288eda.
Refs storytold/craft-libs#778, storytold/craft-libs#789
* refactor(svg): pin craft-svg to #1848 and parse colours through it
craft-svg is now at craft-libs main b836a718 (#1848), with default features
off, so the lock no longer pulls vectorcraft or the image codecs. Colours
go through parse_color_alpha; transparent stays in the app because the
shared parser rejects it. Percentage rgb channels follow the shared
parser's 8-bit rounding (50% is 128/255).
* fix(svg): clip out-of-range rgb() and bound decoded text
parse_color_alpha rejects rgb(300,0,0); CSS clips that to red, and so
did the previous local parser. If the shared parser fails, clip rgb()
channels and try once more. Also refuse text that grows past the 64 MiB
limit after Latin-1 or UTF-16 decoding, which svgz::text does not count.
* refactor(svg): pin craft-svg to #1878
craft-svg is now at craft-libs main c7a872e2 (#1878), which bounds the
entity-declaration scan and resets smooth-control history after Z.
default-features stays false. The other craft-libs pins are unchanged.
* fix(svg): bound rgb() components and emit integer channels
clipped_rgb now stops at a fifth component instead of collecting an
unbounded comma list, and number-form channels are retried as integers
so a value such as 127.5 is accepted by the shared parser.
* fix(svg): finish parser routing and reject missing moveto
Route the newer Continue Path entry point through the shared adapter. Require an initial moveto and assert precise preflight refusal variants. Focused geom/SVG tests: 137 + 31 passed. Quadratic gradient parity remains a separate merge blocker.
---------
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
Numeric tables kept in the document (CSV, TSV through craft-csv, JSON), bindings of a column to a symbol instance's x, y, scale, rotation, alpha or the frame a graphic shows, applied purely in evaluate; Bake to Keyframes; a table viewer and a Data section in Properties.
Measured (test profile, Windows 10): import of 100 000 rows x 10 columns from 3.2 MB of CSV in 63 ms; evaluate of 200 instances 15 us unbound, 82 us with 200 bindings on a 1 000-row keyed table; bake of those 200 instances in 4.9 ms.