0.2.1 asked zune-jpeg for RGBA from CMYK files and got scrambled pixels. Since
JPEG decoding moved to craft-image-codecs, CMYK and YCCK files are decoded as CMYK
and converted, so they import correctly; this pins it with a 16 x 16 picture in
quarters of cyan, magenta, yellow and grey.
Fixes#447
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
The depth cap (32) alone leaves a library where each symbol holds two
instances of the next to expand 2^32 times: opening such a file hung
the stage and ran out of memory, and selecting the instance did the
same in element bounds. Evaluation and bounds now share an allowance
of MAX_EVAL_ELEMENTS (1,000,000) element visits per call; past it the
rest is left out, so a hostile or damaged document draws in part.
A 31-level doubling chain (2^30 squares) now evaluates and measures in
under 0.1 s in the test profile; an 11-level one still gives all 1,024.
The problem and the idea of a shared work budget are Agapenor's
(outside PR #13), rebuilt here on the current evaluator.
Each start-key element searched the joined outlines for the one holding it, so
an outline of n runs cost n(n+1)/2 comparisons a frame. The runs of each
outline are indexed once per call and looked up in constant time.
A solid stroke outline against a dashed or profiled one on the other key: only
one of the two is chained, so a whole outline morphed against the other key's
loose runs and the stroke followed a different correspondence than the fill.
Both keys' outlines are chained for the morph now; the keys keep their own runs.
On a guided tween, each joined outline took the first raw fill's origin, so in a
keyframe with several merged fill regions the second region's stroke followed
the first region's guide path. Each outline now takes the origin of the fill
nearest it.
Tests: a_solid_outline_morphs_against_a_dashed_one (fill edge 17.8 off the
stroke before the fix) and a_guided_shape_tween_keeps_each_stroke_with_its_own_fill
(the second region's stroke 273 off its fill before the fix).
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.
Text keeps its filters next to its styled runs. In HTML export, static text in several colours
with filters is one item of pieces (pp), so the pieces share one filtered group as evaluate
draws them; the page's player draws such items piece by piece.
Model and commands (ADR 0099):
* FilterParam gains a colour's channels (color, shadow_color, highlight_color,
stop_<n>; red, green, blue 0-255, alpha in percent, as the tint) and the
stepped quality, inner, knockout and hide_object, whose keys hold.
* Classic tweens of lists that differ pair the kinds they share in order;
a filter without a partner fades to or from itself doing nothing.
* TextBlock carries a filter list; evaluate draws text with filters in a
filtered group, as a movie clip.
* filter.* commands and element.set_filters act on text; motion.set_key
keys a whole colour; eight built-in presets that can only be hidden
(filter.preset_hide).
Bones marked with the shape they are inside bend it through that shape's skin;
other bones move an instance or a whole shape. One pose, solver and tween.
A document with a mixed armature is written as format version 4; every other
document byte for byte as before.
Measured (optimised test profile): 25 bones, two shapes of 1,002 points and
8 instances bind in 1.6 ms and pose in 0.066 ms per frame; IK through all 25
bones 0.07 ms.