Commit Graph
17504 Commits
Author SHA1 Message Date
dotCooCoo dbaa39140c Command Palette: a search finds a command by a word with the same meaning
A new table, palette/words.rs, holds 21 groups of English words that
mean the same thing when searching ("remove", "delete", "erase" and
"clear"; "background" and "bg"; "reflect" and "flip"). A query word, or
its English base word, that is in a group also meets the other words of
its group in result labels and menu paths and their base words, but not
ids or word starts. A word that names other commands (Merge, Mirror,
Insert) is in no group. A test keeps the table to at most 60 groups of
at most 6 single lowercase words of at most 20 characters, with no word
in two groups.

A label word met through a word with the same meaning grades below a
word start of the label and above a word of the menu path, and a menu
path word met that way grades below a menu path word. So a label holding
the query word ranks first, then a label holding a word with the same
meaning, then a menu path holding the query word. For "type", Scale Text
Attributes now lists above Type › Orientation › Vertical. Results
that tie are ordered by the whole query read with the matched word of
the same meaning, so "colour" lists the Color panel among the first 3.

A catalog may add a group's words in its language with a row in the
search context: the group's English words joined by ", ", then the
language's words. They are used while that language is the UI language.
No catalog has to have these rows; an i18n test checks that each row
names a group and adds single words of no other group.
2026-11-16 00:41:09 -08:00
dotCooCoo 39ed2bbff1 Fix #8041: the Swatches panel shows no Recent Colors or Swatch Tiles heading
The Swatches panel drew a "Recent Colors" heading above the recent
colors row, a divider with 6 px of space on each side, and a "Swatch
Tiles" heading above the list. The panel now draws the row and the list
without those headings or the divider, so the list sits directly under
the row, or under the fill and stroke row while Show Recent Colors is
off. Screen readers still read the row as "Recent Colors" and the list
as "Swatch Tiles". The Color panel keeps its Recent Colors heading.
2026-11-16 00:39:09 -08:00
dotCooCoo 3edb844683 Performance: Low-Latency Drawing preference presents without vsync, capped at 240 fps
Preferences › Performance › Low-Latency Drawing (lowLatencyDrawing, off by
default) is read when the app starts and asks for wgpu's AutoNoVsync. The
present mode comes from --present-mode, then VECTORCRAFT_PRESENT_MODE, then
the preference, then the default; with the preference off and no override
the window surface is unchanged. The startup log names "(preference)" or
"(override)" after the mode.

Whenever the window presents without vsync, from the preference or an
override, main-window frames start at most 240 times a second (about
4.17 ms apart). The wait comes before egui reads the frame's input, and
the frame's time moves on by it. With vsync the display paces the frames
and no cap applies.

The checkbox shows on the desktop with the note that it applies the next
time VectorCraft starts. A value that is not a boolean is an error.

Fixes #6013
2026-11-16 00:35:22 -08:00
dotCooCoo 98f5086c20 Fix #8034: Other Library… brings a .ai library's pattern swatches with their patterns
Swatches › Open Swatch Library › Other Library… read a document's
swatches without its pattern swatches, so a pattern from a .ai swatch
library came in only as the colors it uses.

- swatch.library.load keeps a document's pattern swatches, and keeps
  the document for a library that has them. swatch.library.add brings
  the pattern with its tile and art, as a pattern swatch with the
  library swatch's name, placement and color group.
- The library panel draws those pattern swatches from their pattern.
- The Swatch Libraries filter of Other Library… lists .ai and .eps
  files.
- A file with no swatches, and a .ai or .eps whose swatches are only
  the default ones, are refused with "`<file>` has no swatches of its
  own". Copy to User Defined refuses a loaded library with pattern
  swatches, since a .vcswatches file can't hold them.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-16 00:30:07 -08:00
dotCooCoo e68aa17f0a App bar: a search field in place of the search icon
The magnifier at the right of the app bar becomes a field showing the
magnifier, "Search commands" and the Help › Search Commands… shortcut,
or no shortcut when it is cleared or too long to fit. A click on it, or
Enter or Space with the keyboard focus on it, toggles the command
palette as the shortcut does, and the palette's popup holds the text
field. While a dialog is open the field and the icon do nothing, as the
shortcut does; the icon used to open the palette over a dialog. Screen
readers name the field "Search commands" with the shortcut, and its
tooltip stays "Search commands and tools".

As the bar narrows, the community button goes first, then Explore
tutorials, then the field becomes the 28-point icon, then the workspace
switcher narrows to 64 points, then the icon goes. Safe Mode's label
keeps its room first. The order is the same as before, with the field's
collapse to the icon as a new step after Explore tutorials goes.
2026-11-16 00:26:51 -08:00
dotCooCoo 10f7206bbe Attributes: Panel Options sets how many recent URLs the URL menu lists
The Attributes panel menu gets Panel Options..., whose dialog sets how
many of the recent URLs the URL menu lists, a whole number from 1 to 30
(10 by default). ui.attributesPanelOptions {count} sets it without the
dialog; a count out of range is an error and changes nothing. The count
is kept with the UI state.

The recent URL list now keeps the 30 newest distinct URLs of the
session, so a lower count hides older URLs without removing them.
2026-11-16 00:26:27 -08:00
dotCooCoo 83d8bcb5ed Render: wide curved strokes draw their rims closer to the curves
The canvas flattened a stroke's outline at 0.25 device pixels with chords
inside each curve, so a wide curved stroke's outer rim drew too light and
its inner rim too dark. A stroke at least 32 drawing tolerances wide now
draws each curve of its outline that spans 128 tolerances or more as lines
placed by its bend, with each line end moved outward by half the line's
bulge, so the lines lie on both sides of the curve. That is 8 and 32
device pixels at 25% and 1:1, and as little as just over 4 and 16 device
pixels at other zooms, where the cached outline's tolerance is the largest
power of two at or below a quarter device pixel.

At 25% zoom an 80 pt ring's worst edge pixel is 24 levels off the exact
coverage at the outer rim and 32 at the inner rim, where it was 54 and 61;
at 1:1 it is 30 and 29, where it was 64 and 58. Curve ends at corners,
lines and short curves stay on the curve. Outlines are cached per zoom
level as before, with refined and plain outlines kept apart.

Raster exports draw the same refined edges as the canvas. Fills, narrower
strokes, strokes with a width profile, strokes in an unevenly scaled view
and vector exports are unchanged.

Tests: render::tests::curvedstrokeedges and
longstroke::a_long_wide_curved_stroke_draws_the_same_pixels_outlined_near_the_view.
2026-11-16 00:24:52 -08:00
dotCooCoo 6a493e0fee Use Preview Bounds: clicks on a layer with a 3D effect select its members
The art that clicks and marquees test leaves 3D effects unprojected again.
The faces of a layer's 3D effect carry the layer's id, which a click
cannot select, so a click on a member of such a layer selected nothing.
Use Preview Bounds still measures the projected art.
2026-11-16 00:24:24 -08:00
dotCooCoo 8bc2d29d45 Recolor Artwork: Save Changes keeps colors added and removed on the Edit tab
Save Changes now gives the group the same colors OK would: a color removed
with the Remove Color tool removes its swatch, and a color added with the
Add Color tool joins the group after its other colors, also when the art
holds colors of the group. `swatch.editGroup` takes `null` in `colors` to
remove the swatch at that place.

After the save, the rows follow the saved group, so a later edit or OK does
not remove or add a color a second time.
2026-11-16 00:21:37 -08:00
dotCooCoo fe9cfa875c Color: Sample Color from Screen picks where the button was released
The Windows sampler read the pointer with GetCursorPos when it handled
WM_LBUTTONUP, so a pointer that moved after the release picked a
different pixel. It now takes the point from the release message's
lParam, a signed client point, and converts it to screen coordinates.
lParam holds each coordinate in 16 bits, so on a virtual screen wider
or taller than 32,767 pixels the high bits come from the message's own
pointer position (MSG.pt).
2026-11-16 00:18:50 -08:00
dotCooCoo c643f9f5e1 Text Import Options: Character Set offers the other documented encodings
The Character Set menu of Text Import Options now lists Shift JIS, GB2312,
Chinese Big 5, Cyrillic, GB18030, Greek, Turkish, Baltic and Central European
beside Unicode and ANSI, and `file.place {text: {characterSet}}` takes
"shiftJis", "gb2312", "chineseBig5", "cyrillic", "gb18030", "greek",
"turkish", "baltic" and "centralEuropean". Each set decodes with its WHATWG
Encoding Standard decoder from encoding_rs, which the workspace already
locks: GB2312 reads as GBK, Cyrillic as windows-1251 (x-mac-cyrillic with
platform "mac"), and Greek, Turkish, Baltic and Central European as
windows-1253, 1254, 1257 and 1250 on both platforms. A byte-order mark is
read as ordinary bytes and a malformed sequence as U+FFFD. Unicode and ANSI
read as before.

An unknown character set is an error that lists the sets, and nothing is
placed. A `text` option of the wrong type (`characterSet: 3`,
`removeLineReturns: "yes"`) is now an error instead of the default. The
dialog remembers the last set confirmed, and Show Import Options off places
with it.
2026-11-16 00:16:03 -08:00
dotCooCoo c367a8e991 Arrange: a Selection drag released in another document's tiled pane drops the artwork there
Under Window › Arrange › Tile, a Selection move dragged from the current
pane and released over another document's pane copies the artwork into
that document with edit.dropSelection, with no tab hover first. The pane
becomes the current window, and the grab point lands under the pointer in
that pane's own zoom and rotation. A release over another view of the
source document moves the artwork with object.move, and Alt copies it.
The source move is rolled back before the canvas sees the release, also
when the pointer enters the pane and the button goes up in one frame.
Artwork carried to a document through its tab can also be released in a
third document's pane. A release over a pane's rulers or scroll bars, or
after Escape, changes neither document, and a press in another pane with
no artwork carried still only makes its document current. Dragging into a
floating document window and the tab overflow menu are not covered.

Docs: development.md, target-app-parity.md, gaps.md, roadmap.md,
ui-parity.md.
2026-11-16 00:14:41 -08:00
dotCooCoo 6eb973f8dd Export for Screens: Include Bleed keeps a PDF page's TrimBox at the artboard
With Include Bleed, every artboard was grown by the document's bleed and
PDF rows were written from the grown artboard. A row that used the
document's bleed then put the bleed around it a second time: a 100 pt
artboard with a 9 pt bleed wrote a 118 pt TrimBox in a 136 pt BleedBox,
and printer's marks lined up with the bleed edge instead of the trim.

PDF rows now write the artboards as they are, with the row's bleed around
each one once (PDF 32000-1:2008, 14.11.2: the TrimBox is the finished
page and the BleedBox holds it). The bleed is the row's own values, zero
included, else the document's bleed when the row sets none and its PDF
preset gives none or a bleed of 0. That gives a 100 pt TrimBox in a
118 pt BleedBox for one file per artboard, a single file and the Full
Document. Raster, SVG, EPS, AI and native rows still write the grown
artboard.

A PDF/X row that sets a bleed of 0 itself warns again that it leaves the
document's bleed out. A row without a bleed and a row that asks for the
document's bleed write one file.
2026-11-16 00:07:17 -08:00
dotCooCoo 9d722b8342 Layers: a Shift-click in the selection column adds or removes a layer's art in one pass
layer.selectAll {id, add: true} checked each of the row's K objects with
a scan of the S selected objects, then removed or added them one id at a
time, each removal rebuilding the selection and each addition scanning
it again, so a Shift-click on a large layer took O(K*S + K^2). It now checks
the row's art against a set of the selected objects and calls
Selection::remove_all or Selection::add_all once. The resulting
selection, its order, the reply and the highlighted rows are the same
as before.

crates/engine/examples/layer_select_bench.rs times the old loop against
the new command in one process. On a layer of 50,000 objects the whole
command took a median of 733 ms before and 6.9 ms after with all of the
layer's art selected, and 369 ms before and 24 ms after with every other
object selected (7 runs, wall clock on Linux while other builds were
running).
2026-11-16 00:06:39 -08:00
dotCooCoo 2c270a1d57 Context menu: the Spelling submenu on type also has Check Spelling…
A right-click on type now has Check Spelling… after Auto Spell Check in
its Spelling submenu, as Edit › Spelling has it. The item runs the
existing ui.checkSpelling command on the selection, which the
right-click sets to the type under the pointer. A right-click on an
underlined word offers it too. The help page describes this right-click
route to the dialog:
https://helpx.adobe.com/illustrator/desktop/design-with-text/edit-format-text/check-and-correct-spelling.html

The context menu draws check marks only in a submenu of toggles alone.
The Spelling submenu now also shows them, so Auto Spell Check keeps its
mark next to the plain Check Spelling… item. Other submenus are
unchanged.
2026-11-16 00:03:55 -08:00
dotCooCoo 631e23ac8e i18n: drop the old Search commands and tools rows
The merge of main kept the rows for "Search commands and tools" and
"Search commands and tools…" beside their replacements. No source string
uses them, so they are removed from the 28 catalogs that had them.
docs/target-app-parity.md: Recent Commands lists panels and effects too.
2026-11-16 00:02:56 -08:00
dotCooCoo 9de3938495 Save: a status line set after Cancel Save stays when the saves finish
A save that was already replacing its file when Cancel Save came, and a
save that Cancel stopped, now set their line only while the status bar
still shows Cancel Save's line or the line a save it reached set after
it. A line another command or job set since the Cancel stays.

The docs state the Cancel cutoff: a save whose file is already being
replaced finishes and is reported as saved, and a save of several files
whose first file is in place writes the rest.
2026-11-15 23:59:47 -08:00
dotCooCoo cbf0ce838b Type: type on a path takes Justification's Desired spacing and glyph scaling
Each paragraph of type on a path now sets its glyphs at its Desired word
spacing, letter spacing and glyph scaling, as point and area type do. The
spaced glyphs feed the steps along the path, alignment, the hangs and the
overflow, so text after a wider gap starts further along and a right or
centered line is aligned by its spaced length. Minimum and Maximum are not
used, vertical type is not glyph scaled, and a list marker keeps its width.

This changes existing documents: type on a path whose paragraphs carry
non-default Desired values now spaces differently and can overflow where
it did not.

SVG export writes such type as outlines with a warning, since a
<textPath> places its characters at their own advances.

Docs: docs/mcp.md, docs/type-parity.md, docs/gaps.md,
docs/target-app-parity.md.
2026-11-15 23:59:19 -08:00
dotCooCoo 4e5a6953ba AI editing data: write Perceptual gradients with the stops on their curve
A gradient definition in the .ai editing data holds each stop's color, opacity, midpoint and ramp point, and VectorCraft's reader opens it as a Classic gradient. A Perceptual gradient was written with its own stops, so the file opened with different colors between them.

The writer now treats a Perceptual gradient as it treats a gradient mixed around the hue wheel, in the art and in the Swatches panel: the colors on its curve become stops of their own in process colors, at most 256, with a warning that names Perceptual gradients. A stop linked to a global process color reports its lost link for both methods. Dither is reported as its own loss. A freeform gradient, or one with more than 256 stops, is still written as its average color whatever its method.
2026-11-15 23:59:10 -08:00
dotCooCoo 05feb87685 Selection: a press on members picked with Group Selection drags only them
With objects inside a group selected (with Group Selection, for example),
a Selection tool press on one of them selected the whole outer group, so
a drag moved the group instead of the selected members, and the pointer
showed the arrow instead of the move pointer. A press on selected art
under the pointer now keeps the selection: the pointer shows the move
pointer, the drag moves the selected objects, and the anchor or edge
grabbed for snapping is taken from the selected art. A press on a member
that is not selected, or that has only some anchors selected, still
selects the outermost group.

Part of #8047
2026-11-15 23:59:05 -08:00
dotCooCoo 1957c18c02 Layers: dragging objects into an Intertwine group adds them to it
An Intertwine group's row in the Layers panel now takes dragged rows and
selected art inside it, as a group's row does, and an object dropped
beside one of its members joins the group too. The new member has no
arranged areas and is drawn in its row's order; the other members keep
theirs. Alt-drag adds copies. layer.move and node.move refuse an object
that is or holds an Intertwine group, a Repeat, a graph or a Live Paint
group with the reason Make gives. For such an object the panel shows no
inside box on the group's row and no drop line beside a member's row.

A member moved out of the group, by a drag, node.move or Send to Current
Layer, drops its arranged areas. A group left with one member is
replaced by that member, or becomes a plain group of it when the group
has an opacity, blending, appearance, mask, lock or hidden state of its
own; a group left with none is removed. Each move is one undo step.
2026-11-15 23:54:08 -08:00
FredApps e9b9e93dcc fix(codecs): Place still refuses a header-only image within the allowance
decode_within mapped every LimitExceeded to Ok(None) ("oversized, accept
unread"). craft-image-codecs raises that for its decompression-bomb guard
when a tiny file declares a large image, so Place accepted a header-only
23,170² gray PNG instead of reporting that its pixels can't be read.

Ok(None) now only when the header says the image would take more than the
allowance as samples or as RGBA. A decode that hits a limit stays an error.
2026-11-16 08:54:03 +01:00
dotCooCoo e0f880ab1a Arc: arcs follow the axes General › Constrain Angle turns
With a Constrain Angle other than 0° or a whole turn, an arc dragged out
with the Arc tool or placed from the Arc Segment Tool Options click dialog
is drawn along the turned x and y axes, with its bounding box turned. The
drag's box and Shift's equal lengths are measured along those axes, the
reference point stays at the drag's corner or the click, and F, C and
Up/Down keep the turn. At 0° and whole turns arcs are drawn as before.

shape.arc takes an optional rotation (degrees clockwise, about x1, y1 or
about the reference point x, y); a rotation that is not a number is an
error and adds nothing.
2026-11-15 23:50:29 -08:00
dotCooCoo d62cc8af27 Tools: option check treats the Polygonal Lasso's meshPoints as read-only like the Lasso's
The Polygonal Lasso reports the Lasso's picked mesh points under meshPoints and, like the
Lasso, does not take it back through tool.setOption, so the test lists it with the other
read-only meshPoints tools.
2026-11-15 23:49:48 -08:00
dotCooCoo bed9c71f61 Effects: a group's copies keep their random moves when the raster budget leaves one
Expand Appearance gave each copy of a group's or layer's Transform effect
new ids after expanding it. When the raster budget refused the image for a
copy that held a random Transform effect, the copy stayed unexpanded, but
its new ids gave that effect a new seed, so the copy moved.

The group or layer now stays as it is in that case, as it does when its
own raster effects go past the budget. That rollback also removes the
images its earlier copies added to the document and gives their charge
back to the budget, so later objects in the same command can still use it.
2026-11-15 23:45:35 -08:00
yoriswind a829b54a24 M2: ignore hidden Rasterize and path-gradient rows 2026-11-15 23:43:42 -08:00
dotCooCoo 43cb6f0c0c Merge main into fix/tool-set-option-errors 2026-11-15 23:28:59 -08:00
dotCooCoo 46d9310b0e Direct Selection: saved moves without interpolate keep their rigid handles
A journal entry or action step recorded before the preference existed has
no `interpolate` key. On replay it now moves the handles as it did when it
was recorded, instead of following the live preference. A command run
directly still defaults to the preference, and an explicit value is still
used as given.
2026-11-15 23:27:03 -08:00
dotCooCoo 4200156914 Repeat: a selected Radial Repeat has handles for its instances and radius
With one radial repeat selected, the Selection tool shows a handle below
it and a handle on its circle between the first two instances. Dragging
the first one down adds an instance for every 16 px and dragging it up
removes them (1 to 1,000). Dragging the second one outward or inward
makes the radius larger or smaller (0 or more); only the part of the drag
along the line from the center counts. Each drag previews and commits
object.repeat.options as one undo step, Escape cancels it, and a drag
that ends where it began leaves no undo step. The handles hide with the
edges or the bounding box and for a locked or hidden repeat, and
bounding-box handles keep priority where they meet, as with Grid Repeat.
2026-11-15 23:18:17 -08:00
dotCooCoo 388044db13 Color: Sample Color from Screen works on Windows
Windows had no screen color sampler, so the Color Picker's eyedropper
button was gray and ui.sampleScreenColor returned an error there.

The new sampler copies the virtual screen (every monitor, including
ones at negative coordinates and at other display scales) and covers it
with a borderless topmost window that shows the copy under a crosshair.
A left click picks the copied pixel, read as sRGB. Escape, a click of
another mouse button, Alt+F4 or switching to another window cancels.
The window runs on its own thread, so the app keeps drawing, and the
copy's size is checked before it is allocated.

Docs: docs/mcp.md, docs/control-protocol.md, docs/target-app-parity.md
and the ui.sampleScreenColor params text.
2026-11-15 23:15:43 -08:00
dotCooCoo b10ceca2aa Use Preview Bounds: Extrude & Bevel, Revolve, Inflate and Rotate are measured by their 3D art
With Use Preview Bounds on, Align, Distribute, Distribute Spacing, the
Transform panel and the bounding box measured a 3D object by its flat
source path, so the drawn surface stuck out past the box and aligned
edges did not touch. They now measure the projected vector art the
renderer draws, built with the document's symbols as the renderer builds
it: effects on single fills and strokes, group and symbol members, a
symbol instance with its own 3D effect, appearance overrides on dynamic
symbols, and geometry effects after the 3D effect. An instance with its
own 3D effect counts toward the 4,096-instance limit. Raster effects are
still not measured, and with the preference off the geometric bounds
are unchanged.

Docs: params text of object.align, object.distribute and
object.distributeSpacing, docs/mcp.md, docs/target-app-parity.md.
2026-11-15 23:15:00 -08:00
dotCooCoo 934c999742 Scripts: File › Scripts shows a Loading scripts row until the folder is first read
Before the first read of the Scripts folder ended, File › Scripts showed only
Check Script… and Other Script…, the same as an empty folder. The menu now
shows a disabled "Loading scripts…" row above them until the first listing
arrives, and "The Scripts folder is still being read" once that read has
taken 2 seconds. A first read that cannot start, or ends without a listing,
shows "The Scripts folder cannot be read", and the next read tries again.
Later reads keep the last listing in the menu while they run.

The menu revision changes when the row appears, turns slow and goes away, so
the macOS menu bar rebuilds with it. Both labels have rows in every catalog,
and docs/mcp.md describes the row next to the other Scripts-folder notes.
2026-11-15 23:14:42 -08:00
yoriswind 573a924d19 M2: preserve evaluated ancestor gradients while erasing 2026-11-15 23:07:02 -08:00
dotCooCoo 43f48ba33f Selection: loaded text shows a link cursor over an object a click threads it into
With text loaded from a port, the pointer adds a link badge over a closed
path, area type or type on a path that a click threads the text into, and
keeps the loaded-text cursor over empty canvas and other art. The hover
and the click use one target test, the same rules text.thread.add applies
to `to`: not the frame the text came from, not a frame already in a
thread and not a path inside a compound path. A click on such a frame or
path now makes a new frame there instead of a text.thread.add error.

Docs: type-parity.md and ui-parity.md no longer say the loaded cursor
borrows the I-beam; target-app-parity.md gets a progress line.
2026-11-15 23:02:50 -08:00
dotCooCoo a6c3ffe90f Type: text hyphenates in Bulgarian, Turkish and Russian, and in German, Polish, Portuguese and Italian with CRAFT_I18N_DIR
A run whose language is German, Polish, Portuguese or Italian (any region)
now breaks at that language's hyph-utf8 patterns from craft-proof, and a
Bulgarian, Turkish or Russian run at that language's syllable rules. The
paragraph's Hyphenation options and the Preferences exceptions apply as
before, and points that would split a grapheme are dropped.

For Bulgarian, Turkish and Russian, craft-proof hyphenates a word outside
the language's script as English. For German, Polish, Portuguese and
Italian it can also return points from its own heuristics. Those points
are refused, so a word outside its language's script stays whole.
German, Polish, Portuguese and Italian need craft-proof built with
CRAFT_I18N_DIR; without it they keep today's behavior. Other languages,
English and the eleven Indian languages are unchanged.
2026-11-15 23:01:31 -08:00
dotCooCoo 7528f4963a Find Font: Escape over an open list closes only the list
Escape with the Replace With Font From or Find In list open closed the
whole dialog: the dialog checked Escape after drawing, when the list had
already closed itself, and also took Escape's key repeats. It now checks
whether a list was open before drawing and takes only a new press, so
the list closes, Find Font stays open with its choices and its search,
and the next press closes the dialog.

The replacement search also survived a close by Escape, which goes
through Cancel, and Find in Folder... when the Missing Fonts dialog takes
Find Font's place, so the next Find Font opened with the old search.
Cancel and a successful Find in Folder... now clear it as Done and Enter
do; with no folder picked, Find Font stays open with its search.

Tests run the app's key handling and dialogs together, as a frame does.
2026-11-15 23:00:51 -08:00
HassanKhan cec81c81f3 PDF import: a stroke of another glyph never joins the glyph just filled (#8015) 2026-11-16 12:00:35 +05:00
dotCooCoo c07d939c3a Command Palette: a search with a typo still finds the command
A query word of 4 or more letters that is not a word, a base word or the
start of a word of any result is compared with the words of result names
and menu paths. A word within 1 edit (2 for a query word of 8 or more
letters) matches, where a letter added, left out or changed, or two
adjacent letters swapped, counts as one edit. The bounded check stops as
soon as the bound is passed and skips words whose length differs by more
than the bound. A query word meets at most the 32 nearest words. A word
repeated in the query is compared once, and after a word that matches
nothing at all the later words are not compared.

Results matched through a typo come after every result matched without
one. Among them, the query is read as typed with each such word replaced
by the word it meets, from the label when the label holds one, so
"gruop" lists Object › Group first, as "group" does, and a word of the
label ranks above a word of the menu path. Query words and result words
with Han, kana or Hangul letters, and ids, are not compared. Results
without typos keep their order.
2026-11-15 23:00:01 -08:00
dotCooCoo c6c6f7c90d Save: a background save shows in the progress window with Cancel and Continue in Background
A save running in the background (Background Save) now shows in the
progress window after 0.4 s, with the file name, a moving bar and how
many more saves wait. Cancel (also Esc, file.cancelSave) stops the save
before it replaces its file: the file stays as it was, and the document
keeps its file and format and stays modified. Continue in Background
(file.saveInBackground) leaves the save to the status bar.

- The streamed native save stops writing into its temporary file once
  canceled, and the atomic writer checks once more after the temporary
  file is flushed, so a canceled write never replaces the file or
  enters the copy fallback.
- A save of several files whose first file is in place writes the rest
  and is reported as saved.
- Save and export jobs are told apart, so each window's Cancel acts only
  on its own jobs.
2026-11-15 22:59:31 -08:00
dotCooCoo b4e45fa93c Direct Selection: a marquee picks the points of a selected blend's spine
A Direct Selection marquee now picks the spine points inside it on the
topmost selected blend, and the picked points drag together as
Shift-clicked ones do. With Shift the marquee adds points or takes
picked ones away, and the blend stays selected. A plain marquee around
none of them drops the picks, and Escape during the marquee keeps them.
Unselected, locked and hidden blends are skipped.
2026-11-15 22:51:59 -08:00
FredApps 46ddf177e3 fix(codecs): keep the remaining decodes within the project's limits
A stored texture longer than the codec's default 2^18-pixel side still
reads back, and a gray PNG is not expanded to RGBA just to get its
levels. The AI writer and the EPS scene refuse an oversized image from
its header, then decode within MAX_IMAGE_PIXELS, keeping the pixels at
their stored depth. Flatten's see-through check uses ImageBlob's
allowance, and links.unembed decodes within MAX_RASTER_ALLOC.
2026-11-16 07:50:43 +01:00
bflatastic 30b37b7e31 i18n: French tangent messages take a no-break space before the colon
The French spacing rule (be414ae5) and three new tangent message rows landed in the same
batch; the rows used an ordinary space before ':', so
french_catalog_uses_nonbreaking_prose_punctuation fails on main.
2026-11-16 13:47:42 +07:00
dotCooCoo 87b21ebe55 Selection: select.toggle and select.add with many ids go through the selection once
A Shift-drag marquee sends every object it reaches as one select.toggle
{ids}. Each id used to scan and rebuild the selected objects, so K ids
against S selected objects took O(K*(S+K)). Selection::toggle_all and
Selection::add_all now handle the ids in one pass with a map of each id's
current slot, and the commands use them. The result is the same as
toggling or adding each id in order: an id toggled twice is selected
again at the end, and a removal clears that id's anchors, segments, key
and key anchor.

Select > Inverse looks each selectable object up in a set of the
selected ones instead of scanning the selection for each.
Selection::toggle_target, set_slices and set_guides use the same set
lookups.

crates/engine/examples/selection_bench.rs times the old per-id loops
against the new ones in one process. With 50,000 objects, toggling every
object off took 528 to 655 ms before and 2.5 to 4.6 ms after in 7 runs
(wall clock on a machine that was running other builds).
2026-11-15 22:45:42 -08:00
dotCooCoo 7c71315468 Pathfinder: Shape Mode buttons show a question mark for selected members in different modes
When the selected compound-shape members do not share one shape mode,
each of the four Shape Mode buttons draws a question mark and screen
readers report its pressed state as mixed. A click still gives every
selected member the clicked mode in one undo step. A whole compound
shape, one member, or members in one mode show no mark.
2026-11-15 22:41:15 -08:00
dotCooCoo f7ee7183b3 i18n: drop the Danish and French rows the merge of main doubled
The merge of main brought Danish rows for the five literal-brace
messages, so the branch's own Danish rows became duplicates, and it
brought back the French placeholder rows for "each font must be" and
"give fonts" next to their exact rows. Each message now has one row.
2026-11-15 22:40:53 -08:00
dotCooCoo dd669d33fa Swatches: CSS export writes gradient midpoints and curves as stops
A gradient swatch saved as CSS wrote only its own stops, so CSS put an
off-center midpoint at the center and mixed a Perceptual or hue gradient
in a straight line between its stops. CSS mixes hex colors evenly in sRGB
between two stops (https://www.w3.org/TR/css-color-4/#interpolation-space),
so the export now writes the midpoints and the curve as stops of their
own, each with its color and opacity, also on repeated, reflected and
mirrored conic swatches. A gradient that would need more than
MAX_SPREAD_STOPS stops that way is written with its own stops.
2026-11-15 22:40:49 -08:00
HassanKhan 6f35a12cc7 PDF import: a stroke at another opacity never joins the glyph just filled (#8015) 2026-11-16 11:40:03 +05:00
dotCooCoo d738e7f0c0 Image Trace: Flat Logo traces a disc on a gray panel without slivers of a paler ground
When the colors of an image lie on one line, as a pale gray ground, a
gray panel and a charcoal disc do, an edge pixel between the panel and
the disc is also reproduced by a mix of the ground and the disc. Flat
Logo switches such a pixel to the mix of the classes beside it only when
its neighbors lie on both sides of the class it drops, which a class
beyond both classes of the edge never satisfies. A charcoal disc on a
gray panel on a paler ground traced with 28 slivers of the ground, of at
most two pixels each, around it when its edges were sharp, and with one
sliver when they were blurred by 0.7 pixel, with the colors found or
named.

A pixel now also takes the mix of the classes beside it when the class
it drops lies beyond both of them on their line, the pixel's own
neighbors lie on each side of it, no neighbor lies past the nearer of
the two toward the dropped class, and a chain of neighbors, each nearer
that class than the one before, leads from the pixel, in at most 6
steps, to that class's color or to a flat area of that class. A class
named some levels off the color of its flat areas still counts. The pixels of a pale line on the disc, whether one pixel wide,
blurred over three pixels or falling between two pixels, and the edge of
a gap of the ground's color between the disc and the panel keep the
ground in their mixes. An edge blurred by a pixel or more can still
leave slivers of the ground.

Docs: docs/image-trace-adjustments.md, docs/target-app-parity.md.
2026-11-15 22:32:15 -08:00
dotCooCoo 0f4cc60018 Actions: Reset Actions restores the default set
The Actions panel menu has Reset Actions. It asks first: OK replaces
every set in the panel with the built-in Default Actions set, which
becomes current and selected, and Append adds the built-in set after the
sets there are, with the next free number when its name is in use
(Default Actions 2). Cancel changes nothing. The item is off while an
action records or plays, and the reset records no undo step.

- ui.actionSet.reset {mode?: "replace" | "append"} runs it; omitted
  params count as {}, and another type, key or mode is an error.
- Replace clears the panel's selected action and step, expanded actions
  and a dragged step, and closes an open dialog that holds a set index.
  On the built-in set already shown that way it changes nothing.
- New strings have rows in every catalog. Three French messages about
  tangents get the no-break space before the colon that fr.tsv uses.

Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md.
2026-11-15 22:30:25 -08:00
dotCooCooandbentschener 49a9a0f4cb Direct Selection: optional preference interpolates curve handles when an anchor moves
The new General preference Interpolate Control Points When Moving
Anchors (`interpolateControlPoints`, off by default) is the default of a
new `interpolate` param of path.moveAnchors (a Direct Selection drag),
object.nudge (the arrow keys), object.move, object.transform and
object.transformAgain. With it on, a move of direct-selected anchors
re-maps both handles of each segment with one moved end by the turn,
uniform scale and move that take the segment's old ends to its new
ends, so a segment between two corner anchors keeps its shape relative
to its ends.

- A segment with both ends moved, or with its ends at the same place
  before or after the move, moves as it does with the preference off.
  Only an exact move re-maps handles; any other transform of the anchors
  is applied as before.
- A smooth anchor keeps its handles in line: its re-mapped handle takes
  the new length and stays in line with the other handle, and when both
  of its handles were re-mapped they point along the mean of their
  directions. When the two point the same way, both move with the
  anchor as with the preference off.
- The value used joins the command's journal entry and Transform
  Again's options, so a replay or a repeat re-maps the handles alike
  whatever the preference is then. A non-boolean value is an error.
- A retracted handle stays retracted, each drag or nudge is one undo
  step, and a nudge of 0 still records none. Align and Distribute, and
  the anchors of type paths and area type frames, move as before.

With the preference off, moves give the same result as before. The
label has a row in every catalog. The hook in transform_anchors follows
the patch bentschener attached to #7832; the handle math differs.

Fixes #7832

Docs: docs/mcp.md, docs/target-app-parity.md.

Co-authored-by: bentschener <353895224+bentschener@users.noreply.github.com>
2026-11-15 22:26:18 -08:00