A returned Curves effect's `points` is now also taken as [[x, y], ...],
the form the effect draws, each entry a pair of numbers. A returned
Transform effect's `copies` and `reference` must be whole numbers; 1.5
copies drew one copy before.
A returned effect's `color` given as [r, g, b] now needs each of the
first three components from 0 to 1, and a color object needs its
components from 0 to 1 (a Lab color's lightness from 0 to 100), as the
effects document them. [2, -1, 0] was taken before.
An effect record a painted live effect returns now has each parameter
that `effect.list` documents as a list of choices checked against that
list, so Roughen's `points` takes only "smooth" or "corner".
A Drop Shadow's, Inner Glow's or Outer Glow's `mode` must name a blend
mode. An unknown name was drawn as Normal before. A `color` is taken
as [r, g, b] or a color object as well as "#rrggbb", as `effect.apply`
takes it; the check of its default's type refused those forms before.
Pucker & Bloat's `amount` and Temperature/Tint's `temperature` and
`tint` are documented as `lo..hi` ranges, so a returned value outside
-200..200 or -100..100 is refused. The effects already clamp to these
ranges.
- A parameter documented right after a comma (Paint Daubs' `sharpness`) has its
documented range checked, in returned effects and in distance and pixel
ranges.
- A returned Free Distort's `corners` must be four [x, y] pairs of finite
numbers.
- A piece's Transform effect with no copies and Scale Strokes & Effects on no
longer counts as short of copies, so the piece is dressed and moves.
- The painted-look rerun test moves the source in one document drawn by one
renderer, and the plug-in returns a different piece for the moved source.
A raster effect that a painted live-effect plug-in lists on a piece before
a Transform effect now follows that Transform, as an object's raster
effects do once its geometry effects are applied: a Drop Shadow before a
scale of 200% draws at twice its offset. Before, it kept the offset and
size it had before the Transform.
A Pathfinder effect (pathfinder.*) in a piece's effects now refuses the
result, naming the field. A piece is one path, so the effect had nothing
to combine and was never drawn.
Docs: docs/plugins.md.
Each painted piece's own geometry effects now run within what the pieces
and the pieces before it leave of the budget of the object's geometry
effects, and stop at the first effect that would go past it or that would
make fewer Transform copies than it asks for. The pieces after it are not
built, and the object, or the fill or stroke the effect is on, draws the
geometry it was given. Before, each piece was reshaped with the whole
budget and checked afterwards, and on a fill every piece was reshaped
before any check.
Adds tests for SVG and PDF export and Expand Appearance of a piece's
opacity, blending mode and effects, and fuzz cases for hostile piece looks.
A painted live effect whose manifest has "api": 3 and "appearanceOutput": true
may give each piece, and each fill and stroke it returns, an opacity from 0 to
1, a blending mode by its exact name and up to 16 built-in effect records (4,096
in one result). Rows take raster effects only, and the rows an effect on a fill
or stroke returns take no effects. 3D effects and plug-in effects, this one
included, are refused, so a returned effect never runs a plug-in.
The host checks each record as effect.apply checks its parameters: known keys,
the type of each default, documented ranges and the per-effect value checks. A
bad value refuses the whole result, naming the field, and that step draws its
input unchanged. A piece's geometry effects reshape it before the object's later
effects, which run on it once, and count against the geometry effects' budget.
The effect stays live and runs again when its source changes.
Docs: docs/plugins.md, docs/mcp.md (plugin.list), docs/target-app-parity.md.
A color a library pattern's art brings now skips the library's numbered
names while the pattern is imported, instead of being renamed after the
import. The rename also rewrote every other paint in the document linked
to the name the import first gave, such as art still linked to a deleted
"Ink 2", so adding the pattern changed that art. Now the names are held
with placeholder swatches during the import and removed afterwards, and
links that were already in the document stay as they were.
A pattern whose art brings both "Ink" and the library's "Ink 2" keeps the
library's "Ink 2" under its own name when the document gives "Ink"
another color, and the library's "Ink" takes the next free name. A library
pattern with a numbered name, such as "Tiles 2", keeps that name when the
document does not use it.