Commit Graph
16972 Commits
Author SHA1 Message Date
dotCooCoo 097eaba2b5 Merge main into fix/transform-copies-raster-effects-groups 2026-11-16 10:35:16 -08:00
dotCooCoo 6076b01b1c Merge main into feat/3d-graphics-extrude-side 2026-11-16 10:34:59 -08:00
dotCooCoo 11c7264773 Merge main into fix/i18n-script-run-parameter-refusals 2026-11-16 10:34:26 -08:00
dotCooCoo fd02a3ff20 Merge main into fix/svg-filter-messages-tr-labels 2026-11-16 10:34:20 -08:00
.CooCoo 1cb78a0ccf i18n: French palette position label takes a no-break space before the colon (#8193)
main's gate fails french_catalog_uses_nonbreaking_prose_punctuation on
the "{pos} of {total}: {name}" row of fr.tsv, added by #8017, which has a
plain space before the colon. The row now uses U+00A0 there.

Open #8053 fixes three other rows that main already has right, so it
does not clear this failure.
2026-11-16 19:31:11 +01:00
dotCooCoo 62ef2f4e68 Docs: Tile counts each view of a document as a window
window.arrange.tile counts windows for its two-window minimum, its grid
columns and the panes of the 2-Up to 6-Up layouts. docs/mcp.md said
documents.
2026-11-16 10:24:23 -08:00
dotCooCoo 4911e102b1 Packaging Tools: Fold Preview folds the blank in 3D with the printed art on its panels
Fold Preview (Object › Plug-ins › Packaging Tools, and the Fold Lines panel's button) shows the
document's blank folded about its largest panel, or the panel double-clicked. Creases and
perforations fold 90° away from the printed side and partial cuts 90° toward it. Each panel
samples a raster of the print, with the fold lines and non-printing layers left out, through its
projective map, with a depth buffer; the back shows the board's inside color. The window has a
Fold slider, seven view presets, orbit, zoom, pan and perspective, and its status line reports a
joint that does not close and panels that pass through each other.

- addon.packaging.fold returns each panel's frame, the hinges with their angle and gap, and the
  collisions. A closing hinge's gap is measured with every hinge folded all the way.
- ui.foldPreview sets the window and rejects values of the wrong kind or out of range; saved
  settings out of range are brought into range.
- The print renders off the UI thread where a worker exists and once per document revision. The
  fold and the view image are worked out again only when the document, the settings or the
  window's size change.
2026-11-16 10:20:36 -08:00
dotCooCoo e316492d27 Fix #8090: the Eyedropper samples into picked gradient mesh points
Mesh points picked with the Mesh tool, Direct Selection or the Lasso
were dropped when switching to the Eyedropper, so a sample from an
image went to the whole mesh object instead of the picked points.

The picks now carry over to the Eyedropper, which shows them filled,
and go back to the Mesh tool, Direct Selection or a Lasso chosen next.
While a selected, editable mesh has points picked, a click or
Shift-click on an image or other art samples the color under the
pointer into those points alone (one undo step, none when the color is
unchanged); other selected objects keep their paint. A click on the
mesh itself, Alt-click and Shift+Alt-click are unchanged.
2026-11-16 10:20:32 -08:00
dotCooCoo 11664a0848 Menus: list Start at fields in ui.bulletsAndNumbering's params text
The desktop UI_COMMANDS entry for ui.bulletsAndNumbering now names the
startAt and startNumber dialog fields, matching crates/mcp/src/ui_catalog.rs,
so cargo xtask ui-commands --check passes.
2026-11-16 10:19:30 -08:00
dotCooCoo bc795dc9c5 Package: copy the files a placed EPS file's native document links
Package copied a placed EPS file as it is, but did not read the native
document a VectorCraft EPS file carries, so the images that document
links stayed out of the package. Placing the EPS reads that document
and looks for its linked files, so once the original folder was gone
the packaged copy showed only the previews.

Package now reads the carried document of a placed EPS or PostScript
file the way it reads a .ai file's editing data, and copies the files
it links beside the EPS file's copy, which finds them there by name.
2026-11-16 10:16:27 -08:00
dotCooCoo d68f14a857 Merge main into chore/no-app-names-in-comments 2026-11-16 10:15:25 -08:00
dotCooCoo b527035150 Merge main into feat/app-bar-search-field 2026-11-16 10:15:23 -08:00
dotCooCoo 22fd959cdd Print: keep faint overprint ink on PDF plates and follow inline graphics
- A PDF plate no longer drops an overprinting paint whose ink on that
  plate is under half a percent: it draws with Darken. PostScript plates,
  which have no blending modes, still draw such a paint as nothing.
- With Overprint Black on, the art of a symbol that type shows as an
  inline graphic has its repainting instances placed too, so their own
  fill and stroke changes decide whether they overprint.
2026-11-16 10:12:41 -08:00
dotCooCoo f095e95603 Merge main into feat/spiral-constrain-angle 2026-11-16 10:12:32 -08:00
dotCooCoo 3934c1f7d5 Merge main into feat/palette-panels-and-effects 2026-11-16 10:07:48 -08:00
dotCooCoo 6f131341b2 Merge main into feat/text-import-character-sets 2026-11-16 10:05:40 -08:00
dotCooCoo 90a8dc4258 Merge main into feat/palette-compact-rows 2026-11-16 10:05:26 -08:00
dotCooCoo c00b464b3e Command Palette: rows show the kind of item and where it lives
Each result row now starts with a 14-point icon for its kind: a tool's
own icon, or one for a panel, an effect, a filter plug-in or a command.
After the label, in 11-point dim text, the row shows where the result
lives: the menu path of the menu bar item that runs it, with that
item's label when it differs from the result's (File › Exit for Quit
VectorCraft), or "No menu item". A panel's row shows "Window".

A row with a home shows its label without the menu path in front of
it. A path that keeps two results' names apart stays in the label,
unless the row's home shows the same path; a tool's row drops the
"Tools" in front of its name.

A tool's row names the toolbar it is on, read from the current layout
each frame: "Toolbar" for its button on the Tools panel, or the name of
a toolbar made with New Toolbar, followed by ", in the <tool> group"
when the tool is hidden in the group of a slot whose button shows
another tool, and "All Tools" when no toolbar holds it. A toolbar shown
now comes first (the Tools panel, then the toolbars made with New
Toolbar), then a hidden Tools panel, then hidden toolbars made with New
Toolbar. Toolbars count as hidden in Presentation Mode and while Tab
hides the panels.

The home is cut with "…" first. A label too long for the row is cut
before the id it shows after its name, and the id stays whole unless it
alone is wider than the row. A cut row shows its full text on hover,
and screen readers read the kind, label, home and shortcut, as does the
search field's description. The row height is unchanged.

Window › Learn now also gives the Learn command (window.learn) its
home; before, only the Learn panel's result had it. A search reads that
menu path like any other result's, and among results that tie on
everything else the command ranks as a command of the menu bar.

New catalog rows: "No menu item", "Toolbar" and "{toolbar}, in the
{tool} group" in every catalog, "Tool" and "Command" where a catalog
lacked them, and "Panel" in Gujarati.
2026-11-16 10:05:14 -08:00
dotCooCoo b1725719f9 Merge main into feat/arrange-documents-layouts 2026-11-16 10:04:33 -08:00
dotCooCoo ec7ff8bb96 Merge main into perf/cut-at-anchors-select-set 2026-11-16 10:02:03 -08:00
dotCooCoo 58f1129123 Cut Path: the cut ends are selected with one set call
Cut Path at Selected Anchor Points cleared the selection and then added
each cut path in turn, and each add searched the paths already added, so
selecting the cut ends took time that grows with the square of the number
of cut paths. The command now selects them with one Selection::set call,
which skips repeats through a hash set and keeps the order in which each
path first appears, and then adds each cut end's anchor. The selection is
the same in every field; a new test compares it with the one-by-one build
on open, closed and multi-subpath cuts, long lists and an empty list.

The gain shows on large documents. With the 8 middle anchors of each of
5,000 open paths of 10 anchors selected, building the selection of 40,000
cut ends takes 9.7 ms instead of 232 ms of CPU time, and with 2,000 paths
3.2 ms instead of 39 ms (medians of 7 runs of the new
cut_path_select_bench example, both ways in one process).
2026-11-16 10:02:01 -08:00
dotCooCoo 47acbed378 MCP: regenerate the UI catalog for the Windows screen sampler text
Run `cargo xtask ui-commands` so crates/mcp/src/ui_catalog.rs matches the updated ui.sampleScreenColor params text in crates/ui-egui/src/menus/ui_commands.rs.
2026-11-16 09:59:36 -08:00
dotCooCoo f1dd88399f Merge main into feat/prefs-descriptions-selection 2026-11-16 09:59:26 -08:00
dotCooCoo 4fdeeb0223 Font menu: a Recently Added filter lists the families installed in the last 30 days, newest first
The font menu's Recently Added chip, on its own row under Font Technology,
lists only the installed families with a font file created in the last 30
days, the newest at the top. It combines with the search, script, kind,
Variable, star and Document filters, lists the recently used families in
the same order without the Recent Fonts section, leaves Show Similar Fonts
to order only these families, steers the closed field's wheel, and is
shared by every font menu for the session.

The font scan keeps each file's creation time, and
FontDb::recently_added(now) dates a family by its newest file at or
before `now`, the 30th day included. Files without a creation time or
dated in the future do not count, and families added at the same instant
are in name order. The open menu lists a family no longer once its 30
days end.
2026-11-16 09:58:48 -08:00
dotCooCoo ce6a84bbd9 Merge main into fix/issue-7849-shape-mode 2026-11-16 09:56:10 -08:00
dotCooCoo 27295b0530 Merge main into feat/area-type-first-baseline-em-box 2026-11-16 09:55:33 -08:00
dotCooCoo d01d409eac Merge main into fix/blur-drag-test-clock 2026-11-16 09:55:25 -08:00
dotCooCoo 49240f08e1 Print: Overprint Black follows instance paints and drawn gradient colors
- A gradient's freeform points count only when its kind is Freeform, in
  the Overprint Black check and in the plate separator. A gradient of
  another kind is checked by its stops.
- Characters inside opacity mask art no longer draw with Darken on
  separations, as the mask art's fills and strokes already do not.
- With Overprint Black on, a symbol instance whose own fill or stroke
  changes or fill stain repaint its art, or whose symbol holds such an
  instance, prints as its placed art and is checked with the paints it
  prints with. Placement stays within the symbol object limit and the
  drawn depth limit, and skips hidden objects and template layers.
2026-11-16 09:54:37 -08:00
dotCooCoo 39d776aa2b Merge main into feat/web-korean-devanagari-fonts 2026-11-16 09:54:01 -08:00
dotCooCoo ff7064219b Merge main into perf/legacy-ai-hex-samples 2026-11-16 09:53:19 -08:00
dotCooCoo 8d94673fae Legacy .ai: image samples are written as hex through a digit table
Writer::raster formatted every sample byte with write!("{:02X}") into a
separate String and then copied that String into the file body. The new
Writer::push_hex looks each nibble up in a 16-digit table and appends the
comment lines straight to the body, so a large image no longer holds a
second copy of its hex text. The written bytes are unchanged: upper-case
digits, 60 per `%` line, a newline after the last line and no line for
an empty image.

On the 36 MB of samples of a 12 MP RGB image, the hex step took a median
of 735.5 ms before and 90.8 ms after (7 runs each, both versions in one
release process). The gain matters on documents with large images.
2026-11-16 09:47:07 -08:00
dotCooCoo 4253f17c6c Font menu: the Document filter looks up each run's family with its style
A run whose family and style were split from a PostScript name, such as
Honoka and Mincho, now counts under the family of the installed font of
that name, as the font lookup finds it with both values. The wheel's
order over the closed field stays as it was listed at the first notch
until the pointer leaves the field or the selection changes, the
Document filter's families included.
2026-11-16 09:45:35 -08:00
yoriswind ffa507e293 M2: reconcile Eraser imports with current Scissors changes (#6582) 2026-11-16 09:44:37 -08:00
dotCooCoo 353f7ed480 Preferences: General settings describe themselves under the fields
The line under the Preferences fields now shows a sentence for each of
the 32 General settings, Enable Contextual Task Bar included, when the
pointer is over the setting's row or its control has the keyboard
focus. Screen readers get the same sentence as the focused control's
description. Each sentence states what the app does with the setting,
and every catalog has a row for it.

A test checks that every General setting has exactly one sentence, and
two more check the line on hover and on keyboard focus in General. The
test of a row without a sentence now uses Type > Size/Leading.
2026-11-16 09:32:14 -08:00
dotCooCoo df456ce5d6 Packaging Tools: each document keeps its own Check Fold Lines result
The Fold Lines panel kept one check for the whole app. Checking a second
document replaced the first document's result, so switching back to the
first document, unchanged since its check, showed no issues. The panel now
keeps the last check of each document by its id, and each result is still
shown only while its document has not changed since. Results of documents
that changed or closed are dropped when the next check is stored.
2026-11-16 09:31:17 -08:00
Davit Matchakhelidze b3f2f3ffca i18n(ka): review of the rows added upstream, and the 115 strings main added since 2026-11-15 2026-11-16 21:30:55 +04:00
dotCooCoo 1712dbd247 Merge main into feat/print-custom-scale-link 2026-11-16 09:27:43 -08:00
dotCooCoo b2a1e86fe9 Print: a link button keeps Custom Scale W and H equal
The Print dialog's General section (and the print preset editor) gets a
link button after Scale W and H. While it is on, typing either percentage
sets the other, and turning it on sets H to W. It is on for new settings,
dimmed with the fields unless Scaling is Custom or a tiling choice,
toggled with a click, Space or Enter, and screen readers hear its name
and on or off state. W and H now take 1 to 1000 %.

The link is saved as scale.linked with the other print settings, in the
document and in print presets. A scale saved without it reads as unlinked,
so earlier settings print as they did. print.setup, print.preview,
file.print and print.presets.save apply the same rules: one percentage
sets the other while linked, a different width and height without a
linked key turn the link off, and with linked: true (or linked: null over
a linked scale) they are an error.
2026-11-16 09:27:38 -08:00
dotCooCoo 54538090ce Trim at Crossings: the tool is in the Scissors tool's flyout and shows a knife cursor
The Trim at Crossings Tool joins the Scissors group in both shipped
toolbars, after the Knife, and stays in Object › Plug-ins › Path
Precision Tools. The All Tools drawer lists it once, in the Scissors
group, and Edit › Keyboard Shortcuts › Tools lists it once. It has no
default shortcut. A toolbar the user already edited keeps its saved
layout; Reset Toolbar adds the tool.

The Knife's cursor is now drawn as a knife, its blade's point on the
hotspot, instead of borrowing the crosshair. The Knife tool and the Trim
at Crossings Tool both show it. Use Precise Cursors still shows the
crosshair.

Suggested by erolka and leanma.
2026-11-16 09:26:29 -08:00
dotCooCoo 466b93f4d0 MCP: a confined package refuses a PDF whose attachment search was cut short
When a PDF's attachment name tree has more nodes than the editing-file
search reads (65,536), a confined package still copied the PDF if the
search had found a readable editing file, so attachments past the limit
went unchecked. The search now walks on after finding the editing file,
reading only the Kids, and records whether nodes were left unsearched.
Under read roots, file.package refuses such a PDF with the error for
editing data that can't be read, even when an editing file was read.
Opening the PDF is unchanged: it reads the first editing file found.
2026-11-16 09:25:44 -08:00
dotCooCoo 287f70ca9a Image Trace: Flat Logo keeps gray bands along black on nearly sharp edges
With #8144, an edge pixel between black and white is read as a blend of
black and white when paths of up to 5 steps reach past a gray between
them both ways. On edges blurred by 0.6 pixel, the outer pixels of a gray
band 3 or 4 pixels wide along black also met that rule: their first step
outward is white, and the path toward black crosses the band's gray. A
3 px band at that blur kept 16 of its 48 samples gray, against 46 before
#8144.

When the first step of one path already stands for its color (the edge
on that side is sharp), the other path now stops at a pixel of the gray
it comes to before getting past it. Bands 2 to 4 pixels wide blurred by
0.6 pixel keep 306 of their 432 samples gray (207 with #8144, 324 before
it). Edges blurred by 1 to 3 pixels trace as with #8144, except that a
light gray (230) blurred by 1.5 pixels leaves at most 4 slivers of up to
3 pixels beside the disc.

The band test now also runs at blurs of 0.6, 1 and 3 pixels, the spoke
test at 2 pixels, and the stroke test's ranges are the measured ones.
The docs state the distance rule as the code computes it and limit each
measured claim to the blur it was measured at.
2026-11-16 09:18:35 -08:00
dotCooCoo f5f22bd6be Export for Screens: a saved PDF preset row with no bleed and one asking for the document's write one file
Under Include Bleed, a PDF row that sets no bleed now keeps the bleed values a saved PDF preset writes out and turns on useDocument, instead of replacing the whole bleed object. Its file key then matches a row of the same preset that asks for the document's bleed, so the two rows write one PDF.
2026-11-16 09:18:23 -08:00
dotCooCoo 5ffe485da1 Links: Unembed takes ids of one image as id
links.unembed now reads `ids` of one image as `id`, and `id` with
`folder` as `ids` of that image, as the other commands that name both
keys do. `id` with `ids`, and `path` with `folder`, are refused with the
shared "give `a` or `b`, not both" error, in a replayed step too, and the
catalog rows for the old combined message are removed.
2026-11-16 09:15:37 -08:00
dotCooCoo c06e79ec81 Symbols: only a primary-button release drops a symbol on New or Delete Symbol
A secondary button released while a symbol is held over New Symbol or
Delete Symbol ends the drag without making a copy or deleting the
symbol.
2026-11-16 09:14:56 -08:00
dotCooCoo 1143546a0a Symbols: keep per-object measuring in the export walks; live walks and SVG import use the index
The export walks for type and fonts and the artboard crop shared one
SymbolBoxes for every object. A SymbolBoxes also holds measuring budgets
(effect reaches, 9-slice placements), so in a large document objects late
in a walk could be measured by estimates where main measured them exactly.
SymbolBoxes::unmeasured makes new boxes that share the name index, and each
object is measured in boxes of its own again.

- The live-object walk (render/src/live.rs) finds symbols through the
  frame's SymbolBoxes.
- SVG export's filter regions measure each object in unmeasured boxes, and
  the region boxes share the writer's index.
- SVG import keeps each imported symbol's index, so a symbol whose art
  holds instances no longer scans or indexes the list again.
- Object › Rasterize's clipping mask is left as it is on main, with
  drawn_outline_with removed.
- The symbol-read-count feature of vectorcraft-doc gives other crates'
  tests vectorcraft_doc::symbols_read. New tests check that a frame, an SVG
  export, a PDF export, the type walk and the artboard crop read the symbol
  list once among 2,000 symbols and 300 instances with drop shadows.
2026-11-16 09:07:50 -08:00
dotCooCoo be4d00c615 Symbols: a symbol dragged from another document places that document's symbol
A symbol dragged from the Symbols panel carries the document it came from. Dropped on the canvas after another document became active, it no longer places a same-named symbol of the active document: symbol.placeFromDocument adds the dragged symbol, with the symbols and resources its art uses, and places it in one undo step. A symbol with the same name, art and Symbol Options is reused; one with the same name but other art or options is added under a free name. The pointer chip shows the dragged symbol, and a symbol whose document was closed places nothing.
2026-11-16 09:04:44 -08:00
dotCooCoo 34be162513 Merge main into feat/font-menu-recently-added 2026-11-16 09:00:07 -08:00
dotCooCoo 6c7f538e76 Actions: Replace Actions puts a file's set in place of every set
The Actions panel menu has Replace Actions… after Load Actions…. It
opens an action set file and replaces every set in the panel, the
built-in Default Actions set included, with the file's set, which keeps
its name and becomes current and selected. It reads .vcactions and .aia
files as Load Actions… does, with the same limits and reports. The item
asks no question first and is off while an action records or plays.

- ui.actionSet.replace {path? | data?} runs it and returns
  {changed, set, name, actions} with Load's reports. Omitted params
  count as {}; another type or key, or a path or data that is not a
  string, is an error.
- A canceled pick, or a file that can't be read or is refused (an empty
  one too), changes nothing. Replace records no undo step.
- Replace clears what named the old sets as Reset Actions does, and the
  two share that code.

Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md.
2026-11-16 08:59:11 -08:00
FredApps e142c5fcee Merge pull request #8159 from storytold/cutover/shared-asciihex
refactor(eps): use shared ASCIIHex decoding
2026-11-16 17:58:46 +01:00
dotCooCoo 98c76c8367 Flatten Transparency: a value of the wrong type shows blank and can be typed over
A flattener option field holding a value of the wrong type showed the default preset's value, and typing that same value committed nothing, so OK kept failing. Such a field now shows blank, and every control the user sets writes its option into the dialog's fields, also when the value equals the one shown. This applies to Flatten Transparency and to EPS Options' Custom Transparency Flattener Options.
2026-11-16 08:56:25 -08:00