Commit Graph
18448 Commits
Author SHA1 Message Date
dotCooCoo 8d30801358 Merge main into feat/actions-clear-actions 2026-11-16 09:47:49 -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 10e1c7472f Tools: measure a tool card only for the button under the pointer
With Show Tool Cards on, every tool button built and translated its card's hint lines on every frame to estimate the card's height. A button the pointer is not over now returns before that work.
2026-11-16 09:37:26 -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 d0f7721d1d Tests: fix build after merging main into feat/tool-cards
category_fields now returns the rows that carry descriptions, so the Show Tool Cards test discards that value in a block, as the other tests that call it do.
2026-11-16 09:29:23 -08: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 7f3656a58d Fix build after merging main
category_fields now returns the rows that carry a description, so the
Hold Shortcut Delay test's UI closure discards the value, as the other
prefs_dialog tests do.
2026-11-16 09:19:53 -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
dotCooCoo f94e4c55ce Merge main into perf/cut-at-anchors-select-set 2026-11-16 08:55:33 -08:00
BFlat d3276cfc51 Merge pull request #8017 from dotCooCoo/feat/palette-search-index
Command Palette: a small search index ranks the best match first
2026-11-16 23:54:23 +07:00
BFlat 5a4cda6382 Merge pull request #8114 from dotCooCoo/feat/drag-into-floating-window
Arrange: a Selection drag released in another document's floating window drops the artwork there
2026-11-16 23:54:12 +07:00
BFlat 9669720367 Merge pull request #8138 from dotCooCoo/feat/live-paint-stroke-drag
Live Paint: a Bucket drag from an edge strokes every edge it crosses
2026-11-16 23:54:02 +07:00
BFlat e6ad615815 Merge pull request #8116 from dotCooCoo/fix/arc-params-reject-invalid
Shapes: invalid arc options and grid counts are errors instead of defaults
2026-11-16 23:53:53 +07:00
BFlat bf73a1450b Merge pull request #8110 from dotCooCoo/feat/place-linked-eps
Place: Link keeps a placed EPS linked to its file, as a placed PDF page already is
2026-11-16 23:53:44 +07:00
BFlat cf9262fd73 Merge pull request #8148 from dotCooCoo/fix/list-item-selected-state
UI: list rows report a selected state and section headers report an expanded state
2026-11-16 23:53:35 +07:00
BFlat c19024b6cc Merge pull request #8120 from dotCooCoo/perf/glyphs-panel-cmap-once
Glyphs: read a face's character list once instead of on every frame
2026-11-16 23:53:24 +07:00
BFlat f11272cfe1 Merge pull request #8102 from slafebre/fix/8093-pathfinder-clip-masks
Fix #8093: Pathfinder takes a clip group's members where its mask shows them
2026-11-16 23:53:15 +07:00
dotCooCoo 9a562bd0ba Font menu: a font preview leaves the Document filter's families as they were
While a font is previewed from the menu, the Document filter reads the
document as it was before the preview, so the family the previewed text
had stays listed and the rows do not move under the pointer. A pick or
an undo still lists the families again.
2026-11-16 08:46:28 -08:00
dotCooCoo c6924c2954 Ellipse: test that a Height typed and not committed does not outlast the copy 2026-11-16 08:43:14 -08:00
dotCooCoo a9b83386bf Merge main into feat/color-guide-drag-to-swatches 2026-11-16 08:39:14 -08:00
dotCooCoo 4a0b146c68 Pathfinder: the line warning names the result's shape
- The warning now says a line does not change the result's shape,
  since Unite, Intersect, Exclude and Minus Back still give the result
  the frontmost object's paint, a line's included. The rows in every
  complete-message catalog follow.
- When a closed path without area leaves the result empty beside a
  line, the error no longer names the line: the check that decides
  whether the line emptied the result now keeps closed paths among the
  other shapes and leaves out only open paths that enclose no area.
- node_path's doc comment is back on node_path.
- docs/mcp.md adds a line in front in Minus Back to the cases whose
  error names the line.
- The test adds a line in a compound path, a group of a line and a
  square selected alone, a line in front in Minus Back, and a flat
  closed path beside a line in Intersect.
2026-11-16 08:38:18 -08:00
dotCooCoo b7eff077f9 Variables: the panel builds its rows once per document version
The Variables panel built its rows on every frame while it was open: the
list's order, each variable's bound objects and object name, and each data
set's drift check, which reads the text of every bound story and the data of
every bound graph. The rows are now kept and built again only when the
document version, the list's order, Identify Objects By, the interface
language or the document's new art on a locked artboard changes. The
selection and the highlighted row are still read on every frame, and the
rows are the same as before.
2026-11-16 08:33:52 -08:00
dotCooCoo 24f064b01e Image Trace: Split View shows the source image and the result on either side of a divider
A sixth Image Trace View, Split View, draws the source image on the part
of the image left of a divider across it, and the tracing result
everywhere else, art past the image's edges included. The divider
follows the image's own width, so it turns with the image, and it works
at any zoom and view rotation. Each side is drawn once under a plain
clip; exports, printing and Expand still draw the tracing result.

- imageTrace.setView takes view "split" and split (0 to 1, default
  0.5). A split outside 0 to 1, or one that is not a number, is an
  error. The object keeps the divider when another view is set and when
  it is traced again, and setting the same view and divider adds no
  undo step.
- With one such object selected, the Selection tool drags the divider
  as one undo step, and Escape cancels the drag. The divider is hidden
  and cannot be dragged with the bounding box hidden or in Outline mode.
- The Image Trace and Properties panels show a Divider slider that the
  arrow keys move a percent at a time, named for screen readers.
- The catalogs gain rows for Split View and Divider (all but gu, which
  has no Image Trace rows).
2026-11-16 08:32:58 -08:00
dotCooCoo 842f81d76a Merge main into fix/export-screens-pdf-bleed 2026-11-16 08:30:35 -08:00
dotCooCoo 6c24a817f5 Merge main into feat/symbols-drag-to-new-duplicates 2026-11-16 08:29:30 -08:00
dotCooCoo 0d8fef4fd6 Merge main into feat/hold-shortcuts 2026-11-16 08:28:14 -08:00
dotCooCoo 9e76750a96 Merge main into feat/3d-classic-map-art 2026-11-16 08:27:46 -08:00
dotCooCoo 9ad7de1d5c Merge main into feat/tool-cards 2026-11-16 08:27:21 -08:00
dotCooCoo d61ba9b9f4 Merge main into feat/windows-screen-color 2026-11-16 08:27:09 -08:00
dotCooCoo 9247538a92 Merge main into feat/color-wheel-harmony 2026-11-16 08:26:22 -08:00
dotCooCoo eeb5bcab7c Merge main into feat/circle-through-three-points 2026-11-16 08:26:14 -08:00
dotCooCoo 40654ded92 Merge main into feat/color-wheel-box 2026-11-16 08:25:33 -08:00
Dylan M. Taylor aa5d042441 deps: synchronize PDF backend pins with shared stream codecs 2026-11-16 11:25:29 -05:00
dotCooCoo b9f7ba955c Merge main into feat/color-wheel-vision-preview 2026-11-16 08:25:24 -08:00