modify.transform_origin sets or cycles the mode (tool state); modify.transform
takes origin: selection | registration | center, and Rotate 90 and Flip follow
the mode. An object is one element or the selected pieces of one raw drawing;
its centre is the centre of its own box carried by its transform, so a drag
sent as thirty small changes ends where one transform would (tested).
modify.lines_to_fills, modify.expand_fill, modify.soften_fill_edges on the
selection of every layer, in keyframe space and stored back in the shape's own;
raw results merge with the drawing again (ADR 0031), objects stay objects.
paint.sample is the colour the CPU renderer draws at a point.
Measured against the union of the stroker's polygons at 2400 %: the fills'
area is within a pixel of the lines' for caps, joins, dashes, dots, width
profiles, tight curves and mirrored, skewed shapes (0.00 to 0.98 px on 200 to
10,000 px of line).
* The Fill checkbox refilled a shape with white. Turning a fill or a stroke off
now remembers it for the session (element.set_fill / set_stroke {on}), so on
again brings back its colour, gradient, bitmap or line; with nothing to
remember it takes the tool's.
* With only a raw outline selected (double-click on it), Fill put a fill with
no area on each side. It now refills the fill the outline surrounds, or
fills the area it closes off as the Paint Bucket does, and says what to do
when the lines close off nothing.
* The Stroke row has a checkbox like Fill, and the width stops at a hairline
(0.1) instead of removing the stroke at 0.
Fixes#291Fixes#292Fixes#393
Paste in Center and Paste in Place merged raw shapes into the drawing at once,
so a copy pasted over its original joined it before it could be dragged away.
The editor now pastes with float: the raw shapes stay whole and selected on
top, and go into the drawing when the selection lets go of them (or when they
are dropped after a move), as in Animate. The merge belongs to the step around
it, so undoing the paste restores the drawing from before it. Scripts that
paste without float still merge at once.
Fixes#391
layer.move {layer?, before | after | into} puts a layer anywhere in the stack in one undo step; a folder, mask or guide moves with everything in it; nesting past the limit, a folder into itself and the camera are refused. all: true (and on) on layer.toggle_visible/lock/outline act on every layer but the camera.
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.
find_command rebuilt the whole registry (~360 specs) on every call, and
macro.history cloned every recorded command's params to list a step.
panic_hunt_every_command (which runs macro.history about 600 times per
session over up to 10,000 steps): over 40 min before, 144 s after (debug,
Windows, this machine). The CLI test's failing file now selects first.
Every undo step keeps the commands it ran; Save As Command rewrites ids of
this document to act on the selection or active layer, or names the step it
can't keep. macro.run is one transactional undo step; macros call only what
a plug-in may, and plug-ins can't call macro.*. anicraft-cli run reads saved
command files. ADR 0097.
A filter list entry carries an enabled switch (FilterEntry, flattened into the filter's
own object, so older files open unchanged); evaluate and the HTML export leave switched-off
filters out, so every renderer and export draws them as absent. New filter.* commands:
move, enable, remove, copy, paste, and presets (list, save, apply, rename, delete, export,
import) kept in the session like brushes. XFL import keeps disabled filters, switched off.
Classic tweens pair lists that include switched-off filters.
- doc: Classic Ease and nine families (Quad, Cubic, Quart, Quint, Sine, Back,
Circ, Bounce, Elastic) In/Out/InOut as pure functions of t; CustomEase of
up to 64 Bezier points, always valid (x monotonic, ends pinned, values
bounded), with exact split, move, handle, smooth/corner and delete edits;
saved eases in the document; classic tweens ease position, rotation,
scale, colour and filters separately; instance filters now tween.
- engine: ease.* commands (info, set, add/move/delete/convert point, move
handle, separate, save, delete, rename, list, copy, paste); saved eases and
custom curves in timeline.set_easing and motion.set_ease; plug-in policy.
- xfl: multi-segment and per-property custom eases import exactly; corpus
gains a per-property layer, goldens and probes updated.
- shell: ease menu with curve thumbnails and saved eases in the timeline,
Properties and Motion Editor; Custom Ease window (graph, keyboard, typed
values, save, copy/paste, property groups).
- tests: preset values, fits, monotonic x after random edits, hostile
curves, fuzz, file round trip, HTML runtime parity, Lottie bake.