Commit Graph
21712 Commits
Author SHA1 Message Date
dotCooCoo 7f6c5349e0 Merge main into fix/ci-shard-test-build 2026-11-20 05:07:23 -08:00
yoriswind 4538ba6c5f Merge commit '291ea9fd00b8de32dd87d6fc3aa2de03e61993f1' into codex/local-ci291-8744-20261120 2026-11-20 05:02:20 -08:00
291ea9fd00 ci: build the gate's test binaries without debug info (#8829)
Every gate since 20 Nov 00:38 UTC except one has been stopped mid-link
with "The runner has received a shutdown signal" (exit 143), on main and
on pull requests. Turn on the shared gate's dev-strip input, as photocraft
does, so the ~100 test binaries link without line tables or symbols.

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 19:41:48 +07:00
dotCooCoo 4875606bb7 Live Corners: a Corners link opens the corner settings of the picked corners
The Control bar and the Properties panel show a Corners link beside the
radius field of the picked corners. It opens a pop-up with the corner
kind, the radius (blank while the picked corners differ) and Relative or
Absolute rounding. Each change sets the picked corners of every selected
path in one object.setLiveShape call with items, one undo step: the
corners holding a Direct-Selected anchor, or every corner of a path
selected whole. The Properties panel shows the link while a corner is
Direct-Selected; its corner rows now cover several selected paths too,
and a live rectangle or polygon selected alone, which keeps its own
radius and kind rows, shows the link for the pop-up.

object.setLiveShape with relativeRadii: true now works on a plain path
with corners: the path keeps its outline as the base of its Live
Corners. Before, it did nothing, and relativeRadii: false added an empty
undo step. A Relative path whose corners are all uncut again keeps its
rounding, and Absolute on one with no corner cut makes it a plain path
again.

With Relative rounding, a radius is now compared as the fraction it
would store, so typing the radius the field shows, or a radius past the
corner's maximum again, adds no undo step. Before, it was compared with
the radius as drawn.

Part of #1232. Reported by XTRECY-BD.
2026-11-20 04:31:00 -08:00
HassanKhan 74efef35c7 docs: drop angular cut caps from the 3D missing lists (#8312)
Revolve's Cap closes a partial sweep's angular cut sides (revolve.md).
2026-11-20 17:05:28 +05:00
HassanKhan 0595f6e8ab docs: list first-light shadows and 3D graphics as built (#8312)
README's What's missing no longer names Extrude & Bevel, Inflate and
Rotate; G3 and the effects-parity 3D summary name what remains: base and
Substance materials and shadows from lights after the first.
2026-11-20 16:50:24 +05:00
dotCooCoo ee464025ad Retype: grown font files and drawn glyphs count toward the search limits
- A font file that grew past the limits after the installed fonts were
  listed counts as skipped, and the bytes read from it count toward the
  2 GiB a search reads. A suitcase font's resource fork is read the same
  way, no further than one byte past the limit.
- The 500,000-glyph budget counts the glyphs an index draws (each
  matched glyph once), not the face's mapped characters.
- The Retype panel's background search hands the command the loaded
  fonts that match as well as the installed fonts it found, so a loaded
  font that matched stays listed after the fonts found are loaded.
- A shape that no glyph's key fits (more than 48 contours) no longer
  keeps type.retype reading installed files after the other shapes
  have matched.
2026-11-20 03:40:22 -08:00
yoriswind 0721fa2982 Document retained Image Trace sampling navigation in the area row 2026-11-20 03:31:20 -08:00
yoriswind 0a10e3eefb Merge current main and preserve sampler navigation documentation 2026-11-20 03:13:13 -08:00
dotCooCoo 4e5345968b Retype: ranking near-match candidates counts against the comparison budget
Near matching ranked every glyph of the shape's contour count and proportion
before comparing the 256 closest, and that ranking was not counted against the
point comparisons each shape and command may make, so a large selection over
many fonts could spend unbounded time there. Each glyph ranked now takes one
comparison per contour and one more from the same budget, the ranking keeps
the closest glyphs without sorting the rest, and the shares of contour length
are read without allocating per glyph.
2026-11-20 01:59:28 -08:00
dotCooCoo 49be5fb875 CI: the gate builds and runs the tests in five shards
The gate's one job builds all 106 test binaries on a 4-CPU, 16 GB runner,
and it is often stopped with exit code 143 ("The runner has received a
shutdown signal") during that build. ci.yml now runs the gate as five
legs:

- Shards 1 to 4 run `cargo xtask ci shard`, which builds and runs the
  tests and doctests of its own crates: ui-egui, engine, the apps with
  mcp and xtask, and every other crate.
- Shard 5 runs the other `cargo xtask ci` steps.
- On pushes to main, a `cache warm` leg runs `cargo xtask ci warm`,
  which builds what every shard builds and saves the dependency cache.

`gate (ubuntu-24.04)` passes only when all five legs passed.
`cargo xtask ci` with no argument runs every step, as before.

`cargo xtask shards` lists each shard's crates. It fails when a crate
named in xtask/src/shards.rs is not a workspace member or is named
twice, and when a crate builds with other features in its shard than in
`cargo test --workspace`. Every shard runs it first. vectorcraft-affinity
and vectorcraft-pdf now turn on `synth` and `read-count` in their own
dev-dependencies, which vectorcraft-engine's dev-dependencies turned on
before. Without that, 39 tests of affinity's `it` binary do not build in
a shard without the engine.

The gate also sets dev-debug "0" and dev-strip: true, so the workspace
crates build without line tables and the test binaries without debug
info or symbols.
2026-11-20 01:56:01 -08:00
dotCooCoo 5200e3c54b Retype: loaded fonts past the first 96 are compared too
Retype compares at most 96 loaded faces in one index: the document's
fonts, the fonts in `fonts` and the faces earlier searches of the
installed fonts loaded come first. Loaded faces past those 96 were never
compared, and the search of the installed fonts leaves loaded faces out,
so a shape only such a face matches stayed unmatched.

- type.retype now compares the loaded faces past the first 96, 96 at a
  time, with the shapes that are not plain and that the first 96 do not
  match, before it reads any installed file. The background search hands
  those faces to the command with what it found in the installed fonts.
- A face that another version of its family and style shadows is no
  longer compared ahead of the other loaded faces.
- A background search whose command fails before it takes what the
  search found no longer leaves it for a later command.
- With the Retype panel's list full, installed faces count as skipped
  only when a shape would start a search of the installed fonts.
- "Retype failed: internal error: its thread stopped" has a row in each
  complete catalog.

Docs: docs/mcp.md (Retype installed fonts).
2026-11-20 01:43:43 -08:00
dotCooCoo f9548440bd Retype: a translucent compound path whose glyphs overlap stays an outline
The glyphs of a split compound path can become separate type objects, for
example on two lines. A compound filled by the nonzero rule whose glyphs
overlap passed the paint check, and with an opacity below 100% the two objects
then painted the overlap twice. A split whose parts overlap now keeps the shape
an outline when the shape has an opacity below 100%, a blend mode other than
Normal, a gradient or pattern fill or a stroke.
2026-11-20 01:40:36 -08:00
dotCooCoo d1859cf03f Retype: a compound path of more than 65,536 path elements is not split into glyphs
Splitting a compound path copies its contours and compares each with the
others. A selected compound of a few contours with a very large number of path
elements was split however many elements it had. Such a shape is now matched
whole only, like one of more than 256 groups or 512 contours.
2026-11-20 00:44:37 -08:00
FredApps 3c4fb3c8fa Merge main into pencil-redraw-extend 2026-11-20 09:36:37 +01:00
dotCooCoo b237da4672 Retype: a near glyph whose size and turn would draw it past the tolerance ends the line
A near-matched glyph joins a line when its size and turn are each within the
tolerance of the line's, and the line's type then draws it at the line's size
and turn. Together with the glyph's own leftover distance, that change could
put the drawn glyph further from its shape than the tolerance: an m 4% larger
and turned 0.04 radians stayed on its line at tolerance 0.05.

The layout check now also measures, for each near-matched glyph (and each glyph
of a line whose first glyph is one), how far the change from its matched size
and turn moves the drawn outline relative to its spread, combined with its own
leftover distance, and splits the line before it when that passes the
tolerance, or when the glyph's center sits further away than its origin may.
2026-11-20 00:24:20 -08:00
Dylan M. Taylor f987648e96 eps: delegate scene-writer shading, image stream, and line style syntax to craft-ps (#8810)
* eps: delegate scene-writer shading, image stream, and line style syntax to craft-ps

* chore(eps): repin craft-ps to merged craft-libs main (cfcc86242)
2026-11-20 03:01:58 -05:00
Dmytro Chornyi 5c32aadb80 PDF export: the CMYK document warning says whether RGB images are converted (#1242)
In a CMYK document exported with No conversion, RGB vector colours are
separated into CMYK but placed RGB images are written as RGB. The export
warning still said they "are converted to CMYK through the colour
settings", so files reached printers with RGB images in them.

The warning now counts RGB images by what actually happens to them:
converted to CMYK with a CMYK destination (Convert to destination, or
PDF/X-1a), else written in RGB, with the settings that write them in
CMYK. Grey images stay grey either way and are no longer counted as
RGB. RGB colours keep their wording. The written PDF is unchanged.
2026-11-20 08:46:22 +01:00
dotCooCoo 00ac5d7a3f Retype: installed fonts that are not loaded yet are matched too
Shapes no loaded font matches are now compared with the installed fonts
that nothing has loaded yet. type.retype reads their files one at a time,
smallest first, until each such shape matches a font it has read, and
type.retypeFonts (the Retype panel's list) ranks the matching installed
fonts with the loaded ones, up to 96 fonts in all.

- A file is read for the search and released. A face whose glyphs match
  is loaded as it was read, without the family's other files, and later
  searches in every open document compare it ahead of the other loaded
  faces. A matching face that another version of the same family and
  style shadows is loaded and not listed.
- Files over 256 MiB, and the files and faces past 2 GiB read or 500,000
  glyphs drawn, are left out and counted in the result's
  installed.skipped.
- A plain shape (one contour of up to four straight edges, such as a
  rectangle or a hyphen) does not start the search, and matches only a
  font the other shapes found.
- installed: false turns the search off; any value other than true,
  false or null is an error. retype.find takes installed too.
- In the app, Type > Retype and Find Matching Fonts (the panel's button,
  or retype.find from a menu or the command palette) search on a thread
  of their own. After 0.4 seconds a progress window shows the files
  read, with Cancel (also Esc, retype.cancelSearch). When the search is
  done the command runs with the fonts it found, without reading the
  installed fonts again, unless the document or its selection changed
  meanwhile. Reset Retype Panel and a new search stop a panel search.
  An MCP cancel stops the search between files.

Part of #4934.
2026-11-19 23:42:54 -08:00
Dylan M. Taylor 2848526796 fix: resolve two coverage test failures on main (#8813)
- eps: restore linear-time memchr::memmem::find in lex::find so
  search_in_a_loop_runs_out_of_the_budget does not hit O(N*M) under
  craft_ps::read::lex::find.
- ui-egui: wait for FontDb background scan and ensure >20 font families
  in menu_access_stationary_pointer_repeat_and_rerun_do_not_retarget_or_double_invoke
  so coverage/minimal runners do not race or fall short of 20 families.
2026-11-20 02:32:03 -05:00
dotCooCoo cf80c11871 Retype: a compound tries its other complete splits when the paint check rejects the first two
A compound path whose split with the longest runs and split with the shortest
runs both failed the paint check stayed an outline, even when another complete
split (AB and CD for groups A, B, C and D) passed it. The split search now
checks the other complete splits in order, at most 32 per shape for exact
matches and 32 for near matches, and looks each run of groups up at most once,
only when the search reaches it.
2026-11-19 23:05:44 -08:00
dotCooCoo cbe31304f1 Docs: the Selection tool's corner widget double-click shows the Transform panel in the shape tools entry 2026-11-19 22:38:14 -08:00
dotCooCoo f355716ffe Retype: a mark first after a split leaves the shared measures alone
When the rest of a line after a mark that a split left first starts with
another mark, that rest is no longer measured for tracking. Its own pass
leaves the mark out and measures the glyphs after it, so the earlier
measure was thrown away but still took from the measures shared by every
line in the call. A run of marks could use them up, and a tracked line
retyped with them then lost its tracking and split glyph by glyph.
2026-11-19 22:26:27 -08:00
dotCooCoo fd33180c84 Live Corners: a Selection tool double-click on a corner widget shows the Transform panel
With the Selection tool, a double-click on a visible corner widget of a
selected live rectangle or polygon now shows and selects the Transform
panel, where the shape's corner radius fields are, as the Rectangle,
Rounded Rectangle, Ellipse, Polygon and Star tools already do. It used to
open the Corners dialog. The tool, the selection, the document and the
undo history stay as they were. Direct Selection's double-click still
opens Corners.

Docs: docs/mcp.md (Live Corners), the ui.corners params text,
docs/ui-parity.md and docs/target-app-parity.md.

Part of #1232
2026-11-19 22:17:01 -08:00
dotCooCoo 2fa3e32c83 Retype: stacked lines split from one compound path become one object
Lines that a compound path of several glyphs splits into share that
shape, so the check that one line's shape comes right after the last
line's never passed for them, and each line stayed an object of its own.
Two lines of one shape now follow each other, and the other joining
rules decide as for lines of separate shapes. The lines of the existing
paint-order test are moved farther apart so they still make two objects.
2026-11-19 21:57:11 -08:00
dotCooCoo d2aede7c6e Eyedropper: Object Highlighting outlines the object a click would act on
With Smart Guides' Object Highlighting on, the Eyedropper now outlines
the object under the pointer that a click there would act on, with the
1.5 px layer-color outline the selection tools draw. It follows the
keys held: a plain click's source (locked and template art included,
as the Eyedropper reads them), the selected gradient mesh a click
recolors, the editable object an Alt-click gives the selection's
attributes to, and for a Shift-click the object whose color is sampled
(a blend or an envelope where its art is drawn, the art below where it
leaves a gap). Empty canvas and hidden art show no outline.

The tool finds that object with the same code its click uses: the
click is planned once (Tool::hover_object, Session::hover_object) and
the color sampler returns the object the color came from. The canvas
keeps the object found until the pointer, the keys, the document, the
selection or the tool's settings change, since finding it can sample
a color.

With Space held, a press pans the view, so no tool outlines an object
under the pointer; the selection tools showed one before.
2026-11-19 21:44:13 -08:00
dotCooCoo dc89097a96 Retype: spaces after the measured glyphs keep the pair check on a short budget
Laying out the pairs after the glyphs a split measures is now set aside before the tracking is measured, so a short budget no longer leaves those pairs to the gap alone; without enough for both, the rest is not measured. Past the measured glyphs, the number of word spaces in a gap is the count among the rounded, lower and upper counts of the gap and the count of the measured one-space distance that fits best, so kerning against a space no longer adds a second space. The pair check also runs on a gap under half a space wide, so kerning toward a space no longer drops it.

Rounding a measured tracking to a whole number now counts the word spaces as well as the glyphs the tracking moves, so a long spaced run after a split keeps a fractional tracking and stays one object.
2026-11-19 21:23:14 -08:00
dotCooCoo 8b304e232a Retype: no retyped line starts with a combining mark
A drawn bar, dot or ring can be the same shape as a combining mark in
one of the loaded fonts, and Retype turned it into point text that held
only that mark. On Linux, once other tests had loaded the system fonts,
the 80x40 rectangle in a_drawn_shape_is_reported_and_left_alone matched
U+05BD in DejaVu Sans Bold, so that test failed in full runs of the
engine's tests.

- When a shape would start a line and its first 16 matched glyphs
  include another character's glyph, in its own font or another loaded
  one, it starts the line as that character. A line's first shape is
  not turned into a mark to take the glyph after it.
- When all of them are marks, the shape stays an outline and is listed
  in unmatched, and the glyph after it starts the line. A lone
  one-contour glyph after it (a dot after a bar) is judged alone, as on
  its own.
- A mark left at the start of a part split off where type stops
  drawing the outlines in place becomes the other character its shape
  matches, on a line of its own, or else stays an outline. The glyphs
  after it are measured for tracking again without the mark's gap.
- A mark that follows another glyph on its line is retyped with it, as
  before.
- type.retypeFonts does not list a font whose glyphs match the shapes
  only as combining marks.

Docs: docs/mcp.md and the params text of type.retype and
type.retypeFonts.
2026-11-19 21:06:58 -08:00
dotCooCoo 90130f37ed Shape tools: the Smart Guide label of a hover goes when the pointer leaves the canvas
With Smart Guides on, hovering a shape tool over another object's anchor
or edge shows the "anchor" or "path" label where the new shape would
start. When the pointer then left the canvas, went under a panel or
menu, or a middle-button drag started panning, the label stayed on the
canvas at the last hover point. The Rectangle, Rounded Rectangle,
Ellipse, Polygon, Star and Line Segment tools now drop it when their
hover ends, and so do the Arc, Spiral, Rectangular Grid and Polar Grid
tools, as the Scissors tool already does.
2026-11-19 20:55:39 -08:00
dotCooCoo c46bdce706 Color Wheel: a remembered pick ends with the document's undo step
The remembered HSB, OKLCH and HSL now also belong to the document's undo
step. Another edit, an Undo or a Redo drops them, also when the slider
rows are hidden and the same color comes back before they show again.

docs/mcp.md: color.convert to oklch answers an object with
model "oklch" and values [L %, C, H°].
2026-11-19 20:35:48 -08:00
dotCooCoo 8483baf11f Retype: the type docs say which two-glyph lines take another line's tracking
A line of two glyphs that untracked type does not draw in place takes the
tracking of the nearest tracked line in the same font, size and turn, and
keeps it only when type at that tracking draws both glyphs in place. A line
of one or two glyphs that joins tracked lines in one object takes their
tracking. The Retype row in docs/type-parity.md said other lines are set
untracked.
2026-11-19 20:13:02 -08:00
dotCooCoo 77f0cf29ff Docs: record Show Opacity in the color area row 2026-11-19 20:13:01 -08:00
dotCooCoo 5f5559b710 Retype: the glyphs after the measured ones read a word space only where it fits better than the joined pair
Past the first 32 glyphs of a rest, a gap now reads as a word space only when spaces fit it better than the joined pair does, as the measured glyphs do. A tracking and kerning that make a kerned pair draw like a space no longer add spaces the source lacks.
2026-11-19 19:46:43 -08:00
yoriswind a1e0be3857 Fix color-conversion fixture swatch storage (#8804) 2026-11-19 19:33:41 -08:00
yoriswind 5027d01fbc Color conversion: index global swatch bases (#8804) 2026-11-19 19:19:14 -08:00
dotCooCoo e0629ad03a Live Paint: canceling keeps the defaults a defaultsOnly preview began with
With New Art Has Basic Appearance off and an object selected, canceling an
interaction that had previewed a command with defaultsOnly: true replaced
the restored defaults with the selection's appearance. Cancel now skips
the new-art inheritance for such an interaction.
2026-11-19 19:08:53 -08:00
dotCooCoo 01f1ffa4cb Quick Pen: choosing the tool again during a length drag keeps the drawing
Choosing Quick Pen while a length drag was under way cleared the drawing, so the next preview of the drag carried no path. The drawing is now cleared only when neither a press nor a length drag is active.
2026-11-19 18:11:43 -08:00
Dylan M. Taylor 54f58fff31 eps: cut over PostScript scanner (lex.rs) to craft-ps (#8793)
* eps: cut over PostScript scanner (lex.rs) to craft-ps

* chore: repin craft-ps to craft-libs main
2026-11-19 21:05:18 -05:00
dotCooCoo c609eb49af Live Paint: canceling restores the defaults after a later ordinary preview
An interaction that previewed a command with defaultsOnly: true keeps
putting the defaults it began with back on every later preview and on
cancel, also when the latest preview gives no defaultsOnly. docs/mcp.md
says that library.use keeps item as the library item.
2026-11-19 17:59:44 -08:00
dotCooCoo 3e8e29891e Retype: a long run after a split keeps its tracking fraction and its spaces
The tracking measured over the first glyphs of a rest is read as a whole number, or as none under one unit, only when the difference moves the last glyph of the rest by no more than the tolerance. A rest whose tracking gives a space a negative advance is measured whole, as one with a small advance is. The whole-rest measure takes the budget for every glyph it reads.
2026-11-19 17:43:38 -08:00
dotCooCoo 10373c02a6 Color Wheel: the ui.colorWheel description names the document's RGB space for oklch
The command rejects sliders: oklch while the active document's RGB space (its assigned profile, else the working RGB space) is not sRGB. Both catalog descriptions now say so.
2026-11-19 17:27:17 -08:00
dotCooCoo 03d14f062d Merge main into feat/color-wheel-opacity 2026-11-19 17:22:23 -08:00
dotCooCoo 946c80f9e1 Merge main into fix/value-fields-arithmetic 2026-11-19 17:22:16 -08:00
dotCooCoo 88e3575a1e Quick Pen: a length drag ends where the pointer is let go and ignores outside edits and piece keys
The end handle's drag now applies the release position before it ends, so a press let go
away from the handle without a drag event still changes the length. An edit made outside
the tool during the press ends the drag, so a later preview does not overwrite it. C and
[ ] do nothing until the drag ends. A selected compound path shows the length handles of
the paths it holds, and path.quickPenLength checks its result against the same canvas rule
as the drag.
2026-11-19 17:22:09 -08:00
dotCooCoo 2d3be0f514 Pen: Quick Pen drags move a selected path's anchors and segments, and its context menu deletes
With no path being drawn, the Quick Pen tool edits the selected paths, as the
help page describes ("Drag the anchor points or the path to edit the object",
and right-click Delete to remove a path):

- A drag on an anchor moves it, and a drag that starts on one of several
  selected anchors moves them all; a drag on a segment moves its two ends.
  The tool selects what it moves (select.anchors or select.segments) and
  sends path.moveAnchors with interpolate, one undo step per drag, so a
  segment with one moved end is turned and scaled to its new ends: a line
  stays a line and an arc an arc of the same angle. A dragged anchor snaps
  to Smart Guides. Escape during the drag takes it back.
- A click on an anchor selects it alone, and Shift-click adds it to the
  selected anchors or takes it out. A click on an open end still goes on
  drawing from it (with the path selected whole again), a drag there moves
  the end, and a click on a segment starts a new path.
- With the Quick Pen chosen, the canvas context menu has Delete
  (edit.clear), which removes the selected anchors or objects.

The cursor shows what a press does over an anchor, a selected anchor, an
open end or a segment. While a path is being drawn, a press adds a piece as
before. Which presses select and which move, and the drag snapping only an
anchor, are VectorCraft's own rules.

Docs: docs/mcp.md, ROADMAP, docs/target-app-parity.md, docs/ui-parity.md,
crates/tools/src/cursors.toml.

https://helpx.adobe.com/illustrator/web/add-and-edit-artwork/draw-and-edit-paths/draw-with-quick-pen-tool.html
2026-11-19 17:19:01 -08:00
dotCooCoo 83d84dedca Color Wheel: the checked Harmony Rule item runs no command
Clicking the rule that is already set ran ui.colorWheel and counted as a
command. It now does nothing, as the checked view and channel items do.
2026-11-19 17:14:51 -08:00
dotCooCoo 99781bb329 Links: Relink and folder Unembed no longer refuse a distorted image
The refusals that ran before the files were read and before a folder was
written stopped Relink and the folder form of Unembed on an image changed
by Perspective Distort or Free Distort, which now keep their corners.
2026-11-19 17:10:00 -08:00
dotCooCoo fe7d225d6f Retype: a contour reaching outside a concave one is no counter of it, and a rejected split gives way to another
A contour counts as lying inside another only when up to eight of its anchor points do. When the paint check rejects the split with the longest runs, the split with the shortest runs is tried before the shape stays an outline.
2026-11-19 17:07:50 -08:00
dotCooCoo b8c39c5f92 Merge main into feat/color-wheel-contrast 2026-11-19 17:06:46 -08:00
dotCooCoo ae34cc3e77 Color Wheel: Show Out-of-Gamut Colors runs through the panel menu's command helper
The item called the command function directly, so it skipped the app's
command entry point and an error went unreported. It now uses the same
helper as the other panel menu items. The menu test checks that one
command runs.
2026-11-19 17:00:33 -08:00