Outline joined crossings closer together than the art-size tolerance
multiplied by precision / 0.01. Scale Strokes & Effects scales the art and
the precision together, so scaling both by 10 made that distance 100 times
larger, and crossings that were apart could become one junction.
The distance is now precision / 10000, or the tolerance for the art's
size when that is larger. At the 0.01 pt default it is 0.000001 pt as
before, and scaling the art and the precision together gives the same
pieces at the new size. The params text of object.pathfinder.options and
of the Pathfinder effects, docs/mcp.md and the Pathfinder Options line in
docs/target-app-parity.md describe the new rule.
A Curves effect a painted live-effect plug-in returns is refused when its
`points` string holds a token that is not an `x,y` pair of numbers, or
when any point in the string or the `[[x, y], …]` array lies outside 0
to 255. Before, an unreadable string passed and the effect drew the
default curve, and an out-of-range point was clamped.
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.
- Overprint Preview, Separations Preview and printed separations show a
colorized image knocking out when it has any visible effect of its own
that paints colors (a shadow, a glow, a raster effect, a color
adjustment or a plug-in effect). Only the geometry effects leave it
overprinting; a test keeps that list equal to the geometry effects of
the effect catalog.
- EPS export writes an overprinting colorized image in a gray color as
black ink alone (a DeviceN image at Level 3, a Separation image at
Level 2), so it keeps the cyan, magenta and yellow below.
- On an EPS separation plate, an overprinting image without the plate's
ink is left out only while overprints are preserved.
- Reading a legacy .ai file, a colorized image mask takes the fill
overprint in force, as it takes the fill color: its own O, or the last
O before it.
- effect.apply with some Pathfinder Options in params journals all three
options the effect used. The journal entry used to keep only the ones
given, so a replay took the others from the preferences at that time.
The journal now merges an object a command resolved with the object
the call gave, key by key.
- A Pathfinder effect's stored precision that is not a number (true,
false, "1abc") evaluates and scales as the 0.01 pt default. It used
to read true as 1 pt, false as the 0.001 pt bound and "1abc" as 1 pt.
Commands still refuse such a value with an error.
- Outline, the panel operation and the effect, applies Precision. Its
tolerance for crossings that count as one point, and for coincident
edges, is multiplied by precision / 0.01, so the default leaves the
output unchanged.
- Pathfinder Options' precision range is the Pathfinder effects' range
constant rather than a copy of it.
Docs: params text, docs/mcp.md, docs/target-app-parity.md.
- EPS export writes an overprinting colorized image in a CMYK color in
only the process inks the color puts down: one DeviceN image at
Level 3, one Separation image per ink at Level 2. A pass turned away
at the page limit takes back the passes before it, and the encoding
cache keeps overprinting and plain encodings apart.
- A fill or stroke of a colorized image counts as drawing only with a
visible Convert to Shape or Outline Object (one shared list with the
effects crate), so another effect, such as Offset Path, no longer
keeps the image from overprinting as a whole.
- Flattening without Preserve Overprints, and clearing overprints on
PDF import and printing, also clear the overprint an image keeps
after its color is removed, so a color given later knocks out.
Docs: docs/mcp.md (Overprint), docs/target-app-parity.md.
A grayscale or 1-bit image colorized with a fill color had no way to
overprint: object.setOverprint {fill: true} changed nothing, since an
image has no fill row. The color now carries its own overprint flag
(colorize_overprint in native files).
- object.setOverprint (fill, without item) and attributes.info set and
read it; Overprint Black and Print Ink Fixes' Remove White Overprint
treat the color as the image's fill.
- Overprint Preview, Separations Preview and printed separations show
the inks below the image where its color has none; on a plate the
color puts no ink on, the image is left out.
- PDF export draws the image in an overprinting graphics state, a
process color as an image of only the process inks it puts down.
- EPS export turns overprinting on for it, and now leaves white fills,
strokes and colorized images knocking out with Discard White
Overprint, as PDF export does.
- A legacy .ai file writes it as the image mask's fill overprint and
reads it back. Warped pieces, geometry-effect copies and flattening
keep or drop it as they do for fills.
- A white spot color is an ink: with Discard White Overprint it keeps
overprinting in PDF and EPS export and in both previews.
Docs: docs/mcp.md (Overprint, Print Ink Fixes), docs/target-app-parity.md.
Every mesh the 3D effects build now carries texture coordinates for
each corner and a part for each triangle (front, back, side, front
bevel, back bevel, end cap, cut side). Corners shared by two bands of
one bevel take the mean of the bands' normals unless the bevel turns
there by 60 degrees or more or a band lies flat toward the front or
back, and Inflate's puffed front and back keep the surface's own
normals. The vector facets do not change.
- Caps, Rotate's plane and Inflate's front and back map the art's
bounds; walls and bevels run u along each contour and v from the
front cap's edge to the back cap's; Revolve's side runs u around the
sweep and v along the profile.
- OBJ, glTF and USD write every corner's texture coordinates, not only
those of faces with mapped graphics.
- Mesh::join checks its index offsets, and joining or exporting a mesh
whose lists do not match or that holds a value that is not a number
is an error.
Docs: docs/three-d.md (3D meshes), docs/mcp.md, docs/effects-parity.md,
docs/target-app-parity.md.
A geometry effect on a dynamic symbol instance's fill or stroke moves or
reshapes the art the canvas draws, and a click there already selects the
instance. Direct Selection still picked a part of the art at its plain
shape and outlined that shape, so a click on the drawn result picked
nothing and a click where the part no longer paints picked it.
symbol_part_at and symbol_part_outline_in_view now test and outline the
instance's art with the effects of its active fill and stroke added, as
the canvas adds them. Live objects in the art keep their place, so the
child-index path still leads to the part. A nested instance is picked
and outlined where its reshaped art is drawn, type with a fill or stroke
of its own where its reshaped glyphs are drawn (Type Object Selection by
Path Only still takes the type path), and an image's outline includes
the shapes its own fills and strokes paint. A clipping path is still
picked and outlined by its own geometry. Outline view and layers with
Preview off keep the plain shapes; blends, envelopes and repeats in the
art are picked without the instance's effects.
A group operand whose members have no area left at the effect's precision was
left out of the operation, so Intersect returned the other operand as it was.
Intersect now draws nothing in that case, as do Minus Back when that group is
the front operand and Subtract when it is the back operand. Add, Exclude and
Subtract with the group in front still leave it out.
Validation swept every profile under the nonzero rule while the surface
is drawn under the object's own fill rule, so an even-odd profile's cut
sides could be counted with a different number of faces than are drawn.
The paint copies, graphics and shadow of an object, of each group member
and of a fill's or stroke's Revolve are now checked under the rule the
surface is drawn with.
The paint source for a compound shape's area held every painting item of
the shape, strokes included. When the shape had no fill, Outline fell
back to that stroke and gave the edges a 1 pt stroke in its paint, while
the shape's own appearance stroked the result again. The area now takes
only the shape's top painting fill, so an unfilled compound shape's
Outline edges carry no paint of their own.
Boundary points alone cannot show whether the width bends inside a segment:
two collinear vertices on the segment's ends let a single midpoint probe
accept a curve that leaves the chord nearer the ends. Require a flattened
point strictly inside the segment, and cover it with collinear vertices at
both boundaries of the rising span in the regression test.
Two follow-ups from the review of #8846. A profile segment with no flattened
point of its own is a straight run, and a single midpoint probe can match the
chord while the curve leaves it nearer the ends, so let the sampler measure
it. A window past the seam of a closed path (a dash crossing it) probed
profile positions past 1, where the widths wrap; shift the probes to the
window's own positions, as the sampler already does.
Both have a regression test that fails without its fix.
Whether a profile segment can reuse the flattened path's points was decided
from the whole subpath's point density, so a long straight run beside a
densely flattened curve counted points it did not have: the run drew its
width as one straight chord across the segment. Compare the width curve
with the points inside the segment instead, and keep reusing them where
they already follow it.
Reported in review of #8846. A 200 pt line whose second half is 128
collinear pieces now draws the same lens outline as the two-segment line
(1167.2 pt² against 1168.3 pt²), where the density shortcut left it at
1000.6 pt².
Sample a profile until the straight line between samples stays within the
outline tolerance, in points, and fit the sampled edges at that same
tolerance. A profiled outline now covers the same area as the shape before
the smoothing (star with Wave: 15597.7 pt² against 15595.4 pt² on the same
fixture), while staying G1 cubics rather than one cubic per flatten step.
Profile interpolation again takes each run's own secant slope at its ends,
so a preset draws the shape it drew before the smoothing work.
- A file's corners are kept only when there are exactly four that the
image can take; a longer list is skipped without decoding it. Corners
the affine map misses stay a distortion, and a scale past the
perspective limit leaves the image at its nearest affine placement.
- Distort checks the corners in a frame local to the quad, so a missed
corner far from the origin is still refused.
- Relink and Unembed refuse a named or selected distorted image before
searching a folder or writing a file. Create Gradient Mesh lists the
distorted images it leaves in `skipped`. Place with Replace refuses
only when the measured image is distorted and the file is not text.
- SVG cuts a distorted image in a scaled symbol instance at the placed
size. EMF pieces store only the pixels inside their clip. PDF mesh
pieces of a CMYK image keep a same-corner mask as its soft mask, color
mask included. Both `.ai` writers write an image at the nesting limit
at its nearest placement with a warning. DXF warns only when it writes
the image.
- The canvas cuts the mesh by the view's largest stretch. Warped images
with a singular placement keep finite corners.
- docs/mcp.md and docs/plugins.md describe the tolerances, the DXF and
WMF fallback, the partial result of Create Gradient Mesh, and when a
plug-in sees `corners`.
- When any solid's mapped art passes the shared limits, every solid in
the effect draws without its mapped art, so Invisible Geometry hides
all of them or none.
- A revolved group lists its surfaces with the members' shared curve
sampling, and an extruded group lists none past the faces of one
object.
- Commands refuse art on walls, bevels and Revolve's side whose curves,
cut into straight pieces at the map's scale and placed about the
surface's center, pass 400,000 points. Caps are not counted.
- Each contour's bounds test counts as a cut, in Map Art and in the side
graphics.
- On a facet whose curved edge bows out of its cell, the art reaches the
whole facet.
- A bevel as deep as the solid leaves no walls, and its bevels take the
numbers after the caps.
- Surfaces past the face limit are refused as the side is.
- threeD.mapArt keeps a deleted symbol only while the request leaves
`symbol` out.