A pattern that a library pattern's art is painted with, whose numbered
name ("Inner 2") the document gives another pattern, came in as
"Inner 2 2" with its swatch under that name too, so adding the library's
"Inner 2" swatch next found that swatch and left the name unused. The
swatch now takes the library swatch's name when no swatch or color group
uses it, and still paints the pattern that came in.
A color a library pattern's art brings no longer reuses a numbered copy
whose name the library gives another swatch when the copy is that
swatch, whether or not the art uses that swatch. Before, only a copy of
a swatch the same add brought was left out, so adding the library's blue
"Ink 2" and then a pattern painted with its blue "Ink" linked the
pattern's art to "Ink 2".
The params text, docs/mcp.md and the progress line describe both rules,
and the progress line says that Use Library Item's numbered names do not
skip the library's other names.
A library pattern swatch named after its pattern took the library
swatch's name whenever the document did not use it, even when its
pattern came in under another name. For an unnumbered name this changed
the existing result: adding a library "Tiles" to a document that has
another pattern "Tiles" without a swatch named the swatch "Tiles" while
it paints "Tiles 2". Only a numbered name, which the reservation keeps
for the library swatch, is now kept that way; an unnumbered one is named
after the pattern that comes in, as before.
docs/mcp.md is rewrapped where two lines were broken mid-paragraph, and
the progress line puts the Use Library Item sentence before the rules
that apply only to Add to Swatches.
Add to Swatches now passes the clipboard importer the library's numbered
swatch names that a picked pattern's swatches and patterns can come in
under. A swatch or pattern that the import brings under a numbered name
skips those names. This replaces the placeholder and copy swatches that
held the names around the import. Paste and Use Library Item pass none
and number swatches as before.
- A tint or gradient of a numbered library name that the art brings,
such as a tint "Ink 2" of "Ink", keeps that name. Before, in a
document with another "Ink", the art's "Ink" came in as "Ink 2", the
tint as "Ink 2 2", and adding the library's "Ink 2" next added it
again.
- A swatch of a numbered library name that the document does not use
comes in under that name instead of as the document's identical copy
("Ink 2 2"). A copy of it that the import already brought is not
reused for another library color of the same paint.
- Of two library swatches with one numbered name, the first one in the
library keeps the name when the other is a swatch the art brings or a
pattern swatch.
- A pattern that the art is painted with, and its swatch, skip the
library's names when they come in numbered. A pattern of a numbered
name whose library swatch places it otherwise keeps its name, and the
swatch that comes with it gets another, so adding the library swatch
next finds its name free.
- A pattern swatch's numbered name skips the library's names, as a
color's does, and a pattern swatch takes the library swatch's name
when it is free, also when its pattern is reused.
- A pattern pasted into the document is still found: when skipping the
names would add the pattern again, or would reuse it only by merging
colors, an import that does not skip them is used if it reuses the
pasted pattern and gives none of those names to another swatch.
- The paint and kind check on the colors a pattern's art brings or
takes has a test: a library whose spot "Ink" shares its name with a
global "Ink" in a color group, so that the art brings both.
docs/mcp.md is rewrapped and says that a library color is numbered
beside a document color of the same name and paint of another kind
(process, global or spot), not only beside a process color. The params
text of swatch.library.add, docs/mcp.md and the docs/target-app-parity.md
line describe these rules and name their tests.
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.
A global or spot color that a library pattern's art brings under a
numbered name no longer takes a name the library gives another swatch.
Before, adding a pattern whose art uses "Ink" to a document with another
"Ink" brought the color as "Ink 2" even when the library has its own
"Ink 2"; adding that library swatch next then came in as "Ink 2 2". The
brought color now takes the next free name the library does not use
("Ink 3"), and every paint linked to it follows the new name, so adding
the library's "Ink 2" next adds it under its own name and adding both
again adds nothing.
A color the pattern's art brings or takes is the color a library tint
or gradient links to only when it has the library color's paint and its
process, global or spot kind, as for the other lookups in the same add.
The test a_numbered_copy_named_like_another_library_color_is_found now
makes the blue "Ink 2" itself, as an earlier version's pattern add left
it, since a pattern add no longer gives that name.
A press keeps the pointer and the snapped point for the end of the piece it adds. When Alt
changes the action during the press, the end goes through the protractor's tick again for the
new action, so a continuous arc that snapped to a tick and becomes a sharp-corner arc ends at the
pointer, and a piece that becomes a continuous arc goes onto the tick, without waiting for the
next drag. This also covers a press that has not dragged.
A continuous arc that starts a path has no direction to follow and
sweeps the arc size, as a sharp-corner arc does. Moving its end onto a
protractor tick put the end on a circle the drawn arc does not follow,
so `tick_end` now gives no tick for it.
The hover keeps the snap settings it was made with (`SnapSettings` in
guides/snap.rs: the window, zoom, snapping options, tolerances,
Alignment Guides and construction angles). After one of them changes
under a still pointer, the hover's rubber band, protractor, distance
label and Smart Guides are hidden until the pointer moves, also through
a press, so the preview shows no point that a click would not place.
A press also drops the hover, so after a click puts an arc's end on a
tick no preview runs from that end back to the pointer. While the
pointer hovers, the tool asks the canvas to hover it again when the
view, the document or the selection changes (`wants_rehover`).
* svg: cut over CSS transform, CSS string quoting, and symbol unit basis to craft-svg (#789)
* build: repin craft-svg to merged craft-libs main (d20a8248)
Checking whether a layer's pixels are all fully transparent no longer counts
its transparency against the memory allowed for the whole import. The layer
is counted where it is drawn, so an import that fits no longer fails because
the check counted the same pixels first.
A layer mask white outside its rectangle now hides a layer when the mask is
0 over every pixel the layer draws, even where the rectangle leaves fully
transparent pixels out. A group's mask is checked the same way against the
pixels of the group's layers, unless the group holds an adjustment layer or
a fill that stores no pixels. A base merged with the layers clipped to it
counts as drawing nothing when its mask hides the base. A check that was
skipped for lack of memory is made again later instead of being kept.
While an arc is drawn, by a drag or as the piece the next click adds, the
Quick Pen tool shows a protractor around the arc's center: a tick every 15°
from where the arc starts, a longer one every 90°, and one where it ends. The
piece the next click adds shows its protractor only while Enable Rubber Band
for the Pen tool shows that piece.
With Smart Guides on, the end of a continuous arc snaps onto the nearest tick
of its protractor, on the same circle, when the tick lies within the snapping
tolerance of the pointer, no other Smart Guide snaps the point, and neither
Snap to Grid nor Snap to Pixel snaps drawn points. A sharp-corner arc sweeps
its arc size, so its end does not snap. Shift does not constrain Quick Pen
points, so it does not change the snapping. The protractor, its 15° step and
the snapping are VectorCraft's own behavior.
The Smart Guides targets now also report whether a point landed on one of
them (`Targets::snap_hit`), so a target whose label or line is hidden still
takes precedence over a tick.
Adds tests for the arc's circle, the tick snapping by drag and by click and
its precedence, and the protractor during a drag and while hovering. Also adds
tests of existing Quick Pen behavior: a point snapping to a Smart Guide, and
the distance label shown while hovering.
A pass-through group's adjustment layers count as kept to change what is
below the outer pass-through group only when nothing below that group in
the outer one draws, as for adjustment layers directly in the outer group.
Before, a layer merged above them for its blend mode merged them applied
but the import counted them as not applied.
docs/mcp.md now says when a layer's mask hides all of it.
A layer's mask now hides all of it when it is 0 over every pixel that isn't
fully transparent, so a shallow knockout whose mask and transparency leave
nothing drawn no longer drops the adjustment layers kept below it.
A pass-through group whose mask hides all of it no longer counts its layers
as drawing, or its adjustment layers as kept, when deciding which adjustment
layers above it change what is below the group.