Along a hue at a given lightness, sRGB can hold two runs of chroma with
chromas outside it between them (near blue, a run of low chroma and one
ending at the blue primary). max_chroma bisected as if sRGB held one run,
so at blue's lightness and hue it gave about 0.266 instead of the
primary's 0.3132, and a request for full chroma came out desaturated.
- The search now finds where each linear sRGB component's cubic reaches
an edge of the gamut, tests the chromas between those points from the
top down, and refines the highest run that fits.
- from_oklch lowers a chroma outside sRGB to the largest chroma under it
that fits, so a chroma in the gap goes to the top of the run under it
instead of being clamped channel by channel.
- The C track of OKLCH Sliders dims a gap under the largest chroma and
shows there the color a pick stores.
- Tests cover the blue primary, a dark blue whose runs are far apart, the
C track over that gap, and a grid of lightness and hue where no chroma
above the one found fits.
The wheel and the OKLCH rows applied a pick to the gradient stops read
at the start of the frame, so an opacity edit of a stop in the same
frame was written back to its old value. The panel now reads the stops
again after the opacity row sets them.
paint.setFill and paint.setStroke given only `opacity` now check `span`
as they do with a paint: "selection" asks for a gradient, and an unknown
value is an error, instead of the opacity going through unchecked.
- A text committed when a press on the opacity slider takes the focus
is applied to the target read again, so it keeps the opacity the press
set, and the field compares the text with what it showed before the
press, so the text is not dropped.
- color.parse takes only spaces, tabs and line breaks around the text and
its arguments (https://www.w3.org/TR/css-syntax-3/#whitespace); a
no-break or ideographic space makes the text an error.
- The texts name the hsl() refusal for saturation and lightness so large
that a channel overflows, and say the field shows the alpha when the
opacity rounds to less than ff.
- color.parse's params text keeps the forms of the text inside
parentheses, so every_description_parses reads it as one key.
- A test types a color with only a type object selected: the characters
take the color and no fill item is added for the alpha.
The fill and stroke opacity the Color Wheel panel shows now skips the art
of a column or marker design in a graph series, which paint.setFill and
paint.setStroke leave out. With only that art selected the panel shows no
opacity, also when a row of the art is the Appearance panel's active item,
instead of offering an edit the command refuses.
Panel menu › Show Hex Field (ui.colorWheel {hexField}) adds a field under
the wheel or the box. It shows the color's six hex digits, and two more
while the opacity that Show Opacity sets is under 100 %. It takes a hex
color of 3, 4, 6 or 8 digits and a CSS rgb(), hsl() or oklch() color. A
typed color is applied in the same way as a wheel pick, in one undo step,
and an alpha sets that opacity, whether or not the opacity row shows.
Where the opacity row is gray (nothing selected, an object selected in a
symbol instance, or a fill or stroke row on type characters or missing),
only the color is applied. Text that gives the color and opacity already
there records no undo step, unless the color is a tint of a global
swatch. A click on the wheel that takes the focus from an edited field
applies the text, then the click. An opacity edit of a gradient stop or
point keeps the OKLCH values picked last for it, as it keeps the HSB.
- crates/color/src/css.rs reads the hex, rgb(), rgba(), hsl(), hsla()
and oklch() syntax of CSS Color 4, the comma-separated legacy form of
rgb() and hsl() included, and clamps values where CSS clamps them when
it parses them. VectorCraft's own rules on top of that: the # of a hex
color may be left out, none reads as 0, an hsl() channel outside the
sRGB range is clipped, an oklch() color outside sRGB takes the largest
chroma that fits, and text over 48 characters is refused.
- color.parse {text} answers {color, hex, opacity}; oklch() is an error
while the working RGB space is not sRGB.
- The Color panel's hex field and the color parameters of other commands
still refuse #rrggbbaa and #rgba.
Docs: docs/mcp.md, docs/control-protocol.md, docs/target-app-parity.md.
Outline views left out an Abutting trace's seam fills only while their
clip group kept the name "Seam Fills". Renamed, the group drew its
clipping box and, on a stretched image, the outlines of its filled
seam bands. The group is now also left out when it is still the lowest
traced shape, where the trace puts it.
The outline-view test samples inside the seam band beside the shared
edge on the stretched image, and checks that renaming the group leaves
the view unchanged.
The test set its first frame to 20 by 16 pt and relied on a fallback face
for the ideographs. With craft-fonts loaded, the CJK fallback face makes
the line with the ideograph taller than the frame, so the frame held only
the "a". The test now uses the characters a, x and space, which the test
font maps, and sets the frame width from their advances.
Object › Plug-ins › Path Precision Tools › Tangent Circle…
(`addon.pathtools.tangentCircle`) draws the circles that touch two
selected paths or compound paths at a set radius, or that touch three of
them. A circle touches a shape when it meets the outline without
crossing it, with the whole outline outside the circle or inside it: at
a smooth point it is tangent there, and at a corner or an open end it
passes through that point. Circles, ellipses at any angle and other
closed or open paths all work; the members of a compound path count as
one outline.
When every shape is a circle, the circles are found in closed form (up
to eight for three circles, the problem of Apollonius) and then moved
onto the drawn Bézier circles, which differ from true circles by up to
0.0273% of the radius. Other shapes are searched on a grid, and the
centers left are refined with Newton's method on the curves. With three
shapes, circles up to 64 times the diagonal of the box around the
shapes' anchors and handles are found.
The circles are listed by radius, then top to bottom, then left to
right. The dialog takes the radius (with two shapes; 36 pt to start)
and previews every circle found or one picked by number; OK draws them
with the current paint as one undo step, selected. No circle, more than
64 circles (shapes touched along a whole curve, such as two concentric
circles), shapes at one point or too small for the radius, more than
2000 segments and a search past its limits are errors that leave the
document unchanged.
The Tangent Circle and Circle: rows are in every catalog, and the
command's messages in the catalogs that translate messages.
Docs: docs/mcp.md (Path Precision Tools add-on),
docs/target-app-parity.md, docs/ui-parity.md and ROADMAP.
The search field no longer takes the keyboard back while Tab has moved it
to the Recent Commands button, so Enter or Space on the button opens the
list instead of running the highlighted result. While the list is open,
Enter and Space run the row the arrow keys of the same frame moved to,
not the row that had the keyboard in the frame before.