Commit Graph
18411 Commits
Author SHA1 Message Date
dotCooCoo 95d1bf91be Path Precision Tools: Add Bounding Circle bounds the work on curves and holds small loops
Add Bounding Circle splits the curves of one command 1,048,576 times at
most in all, shared equally among the shapes with `each`. A piece that
still bends after the last split counts by the hull of its control points
cut down to its bounding box, so a large circle near the canvas edge keeps
a close radius.

- A path of a compound path selected on its own counts as an object, as
  `object.transform` moves it, for both commands.
- A small loop whose ends meet gets a circle instead of being taken for a
  single point.
- The smallest enclosing circle measures its radius from the center it
  returns, after the move back from the first point, and does not copy
  the hull to do so.
- The params text, docs/mcp.md and docs/target-app-parity.md describe the
  limit and the compound path rule.
2026-11-18 18:09:01 -08:00
dotCooCoo fcdeb47a4b Dimension tool: previews no longer make the tool read the levels again
While a linear dimension is placed, the tool reads the other dimensions'
lines again only when the document the interaction began with changes,
not when the revision moves. Each preview moves the revision, so before
this the tool read up to 20,000 objects on every pointer move.
2026-11-18 18:08:24 -08:00
dotCooCoo 743435b584 Merge main into feat/indonesian-translates-every-status-and-error 2026-11-18 18:03:00 -08:00
dotCooCoo d5f17f1945 Tests: the PSD translation check compares whole numbers, the nested reason and the Open heading
Each complete catalog's PSD messages must now keep the same set of numbers (a 3
that becomes 13 fails), show the translated reason inside the slice and layer
warnings, and show the translated Open heading with the right note count.
2026-11-18 18:02:16 -08:00
dotCooCoo adc2b873db Width Point Edit: OK and Delete check the points and document they opened on
- OK and Delete on one or several existing points are refused when those
  points changed in any way since the dialog opened (place, widths,
  stroke weight, or pairing as a discontinuous point), or when another
  document is active.
- OK with no width changed checks the selection before it closes.
- An untouched Total Width above 100000 pt no longer blocks OK; a value
  set above 100000 pt is still refused.
- A width set into a field that OK refuses stays there when another
  field is set afterward, and a negative width typed for several points
  is refused at OK instead of becoming 0.
- `ui.widthPointEdit` refuses `index` together with `t`.
- Double-clicking a selected width point passes every selected entry,
  so points at nearly one place are all edited.
2026-11-18 18:01:13 -08:00
dotCooCoo d3696410d8 Dimension tool: levels come from the document the next preview applies to
While a linear dimension is placed, each preview starts again from the
document as the placement began. The tool now reads the lines of the
other dimensions from that document (the new ToolContext field
interaction_doc), not from the document a command changed in between, so
a dimension that a command moves or hides and that the next preview puts
back does not leave the placed dimension on a level the committed
document does not have.

The engine test now drags a dimension out, runs dimension.update or
object.hide on the other dimension, releases, and checks the committed
line against that dimension as the document has it. The tool test that
checks which dimensions read lines also covers radius and diameter
dimensions.
2026-11-18 18:00:26 -08:00
dotCooCoo 00e3d4a921 Shapes: the Curvature Circle's other-side circle on an arc touches the path at the clicked point
On a cubic that counts as a circular arc but strays slightly from the arc's circle, the circle on the other side was placed against the arc's circle, a few points off the path. It now sits one radius out from the point on the path. The Undo test also checks that the click after Undo draws the first circle's own circle.
2026-11-18 17:58:22 -08:00
dotCooCoo 0690e33f67 Swatches: the selection follows a group through Sort by Name and Edit Color Group
A command.batch step that sorts by name no longer stops the panel's selection from following a
later group rename, and a rename made with swatch.editGroup's rename moves the selection and the
Shift-click anchor as Color Group Options does, alone or in a batch.
2026-11-18 17:56:18 -08:00
dotCooCoo 1c5f97acfc File formats: .cmx gray and CMY colors, unnamed layers, stricter chunk search
- Colors in the older color fields read gray (model 9) and CMY (model 4)
  as the .cdr reader numbers them, instead of opening as black.
- A dash pattern whose lengths are all 0 draws a solid line, as for a
  .cdr outline.
- A curve whose point field is too short for its count and is not whole
  points with their type bytes is left out as damaged, instead of reading
  coordinates as point types.
- A layer without a name comes in unnamed, and the importer names it by
  its place, as for a .cdr drawing.
- After stray bytes, a chunk id starts with a letter and may hold digits
  and spaces, and the id found must name a chunk the reader uses or have
  a length that fits its list. Padding is no longer taken for a chunk.
- A canvas or a container in an object's attributes gives the
  unsupported-objects warning.
- A page with no size and no bounds is 612 x 792 pt, VectorCraft's own
  size, as for a .cdr page; PROVENANCE R61 says so. PROVENANCE also names
  the other program's .cmx reader, read for field order.
2026-11-18 17:54:13 -08:00
dotCooCoo 59012217f6 Tests: the Format list test chooses a built-in format away from the list's end
The test chose the last format Export As lists. A test running beside it
can add an exporter plug-in's format after the built-in ones, which
moves that end of the list. The test now chooses the built-in format
six from the end of the built-in ones, which is out of view when the
list opens at its top and keeps the same rows around it whether or not
a plug-in format follows.
2026-11-18 17:53:57 -08:00
dotCooCoo 915a609fc4 i18n: Indonesian translates the compound shape no-area warning
The Indonesian catalog had no row for the warning Make Compound Shape
gives when a member encloses no area, so the status bar showed it in
English and compound_shape_no_area_warning_is_translated failed for id.
2026-11-18 17:53:45 -08:00
dotCooCoo b4d565aeea Merge main into fix/palette-typo-swap-insert 2026-11-18 17:49:56 -08:00
dotCooCoo 33098bd347 Command Palette: a word another result means still finds its typo matches
A query word that some result matched only through a word with the same
meaning was not compared with the words it may be a typo of. "spin" means
rotate, so "spin anchors" found neither Zz Rotate Canvas nor Zz Span
Anchors. Such a word is now compared like a word that matches only
descriptions. A word that is itself a word, base word or word start of a
name, menu path or id still gets no typo matches, and a result matched
through the word with the same meaning still ranks above a typo match.

Docs: the typo line in docs/target-app-parity.md.
2026-11-18 17:49:09 -08:00
dotCooCoo 00f9a9c205 Brushes: main's eraser and bristle tip tests take the stylus wheel
The Bristle tip outline reads the five pen controls and leaves the
wheel unused. The bristle tip test's pen pose gives no wheel, and the
eraser test's mode error lists `stylusWheel`.
2026-11-18 17:44:35 -08:00
dotCooCoo e886b7ddfd Shapes: a Circle tool click near the first point leaves no circle shown
A second press within 3 screen points of the first point but not on it,
let go where it was pressed, placed nothing but left the pointer at the
press, so the tool showed a circle about 2 pt across until the pointer
moved. Such a click now puts the pointer back on the first point.
2026-11-18 17:38:54 -08:00
dotCooCoo b211724589 Merge main into feat/save-pdf-save-summary 2026-11-18 17:36:48 -08:00
dotCooCoo 8e98dbb310 Isolation: object.isolate refuses a ruler guide
An isolated ruler guide left the Layers panel with no rows, since the
panel lists no object row for a ruler guide. object.isolate now returns
"ruler guides can't be isolated" and isolation mode stays as it was.
2026-11-18 17:36:46 -08:00
dotCooCoo bae4defa45 Symbols: Average sizes are sizes on the page, and a pen pressure change where the pen stays is kept
The Sizer's and the Sprayer's Average compare each instance's size on the page, so a set that
holds instances of different symbols meets at their mean drawn size. A symbol without a recorded
size is measured by its art, once per command. With Size: Average and no instance under the brush,
a sprayed instance has its symbol's own size whatever `scale` is, and new instances are spaced by
the size they are placed at. With Use Pressure Pen, a drag sample at the same position is kept when
the pressure changes by 0.05 or more.
2026-11-18 17:34:48 -08:00
dotCooCoo c433837981 Shapes: Curvature Circle docs say when a smooth mark counts and when drawn circles are reachable
shape.curvatureCircle's description and docs/mcp.md now say a smooth mark only overrides the corner test when both handles are pulled out and no segment of no length lies before the anchor. The tool and docs/mcp.md say the pointer reaches the drawn circles again once another tool is chosen.
2026-11-18 17:30:45 -08:00
dotCooCoo 22a630b54e Merge feat/proof-setup-customize into feat/proof-setup-save-load 2026-11-18 17:25:55 -08:00
dotCooCoo 4080708714 Merge main into feat/stylus-wheel 2026-11-18 17:25:37 -08:00
dotCooCoo 6c36bd840d Merge main into feat/3d-classic-map-art 2026-11-18 17:24:41 -08:00
BFlat 1233b23b19 Merge pull request #8636 from storytold/revert/8627
Revert #8627 (palette_io through craft-cms) and its two test fixes: messages leave the catalogs
2026-11-19 08:22:38 +07:00
dotCooCoo 0a8c2468ba Fix #8584: the document tab that doesn't fit whole fills the rest of the strip
When the open documents' tabs don't all fit, the strip stopped at the
last tab that fit whole and left the room before the » button empty,
even where it could hold most of the next tab. That tab now fills the
room with its title shortened and ending in "…", as long as at least
40 pt of the title fits, and its tooltip shows the whole title, wrapped
to fit inside the window. An active tab wider than the whole strip is
shortened the same way, so its × no longer runs under the » button.
2026-11-18 17:22:14 -08:00
dotCooCoo bed8685d53 Merge main into feat/tool-cards 2026-11-18 17:22:09 -08:00
dotCooCoo 2b56129505 Merge main into feat/prefs-descriptions-clipboard 2026-11-18 17:21:39 -08:00
bflatastic bd23b310ef Revert "color: cut over palette_io GPL/ASE/ACB to craft-cms (#8627)"
This reverts commit 0087be0452.
2026-11-19 08:21:30 +07:00
bflatastic ed0fde6593 Revert "color: the palette tests define the swatch exchange constants craft-cms keeps private"
This reverts commit 4e63316d9a.
2026-11-19 08:21:29 +07:00
bflatastic 6d8674bde8 Revert "Merge pull request #8635 from storytold/fix/ase-cap"
This reverts commit fc2a525ee1, reversing
changes made to bab45a99f3.
2026-11-19 08:21:29 +07:00
dotCooCoo b5333e6af1 Merge main into feat/indonesian-translates-every-status-and-error 2026-11-18 17:20:43 -08:00
dotCooCoo e506b7ed74 Color Settings: a scope narrowed several times keeps every script gate
Narrowing a scope that already carried two composed gates replaced the earlier gate's chain with the new gate, so a path only that earlier gate refused could be read. The new gate is now added at the end of the chain.
2026-11-18 17:20:18 -08:00
dotCooCoo 8642b3e2b0 Merge main into feat/recolor-dialog-undo-redo 2026-11-18 17:20:11 -08:00
dotCooCoo dc26a6acd7 Merge main into feat/reflect-tool-two-click-axis 2026-11-18 17:20:11 -08:00
dotCooCoo e828270ab7 Docs: a locked artboard does not hide the polygon side widget in pattern editing or for new art
Document::is_editable leaves out the art of pattern editing mode and new art while it stays selected, so the widget shows for them on a locked artboard.
2026-11-18 17:19:25 -08:00
dotCooCoo d8d9cc4717 Docs: note that the pixel grid snap can move the key anchor after Align 2026-11-18 17:17:46 -08:00
dotCooCoo e2e5307106 Retype: the docs say the panel lists fonts matching any selected shape
The Retype panel lists every font whose glyphs exactly match at least one
selected outlined shape, ranked by how many shapes each matches. The rows
in docs/type-parity.md and docs/ui-parity.md now say so.
2026-11-18 17:17:08 -08:00
ruchirguitar 175c180a62 Merge origin/main into feat/layers-guide-context-menu 2026-11-19 06:46:44 +05:30
dotCooCoo 2eeb582f35 Merge main into feat/proof-setup-save-load 2026-11-18 17:16:14 -08:00
dotCooCoo f5b2dfa8b4 Merge main into feat/curvature-circle 2026-11-18 17:15:45 -08:00
dotCooCoo 1350134d3f Path Precision Tools: test switching the Tangents choice with Preview on
The point-and-ellipse test now also switches the choice in place while the
preview shows, checking that the same two lines stay on the canvas and that
Cancel restores the document. After each undo it compares the whole document
with its starting state.
2026-11-18 17:11:56 -08:00
dotCooCoo 6561c30c8f Layers: isolation mode keeps menus, drops and Show Layers Only to the isolated art
- With Show Layers Only on, an isolated group or object is listed as the
  top row instead of leaving the panel empty.
- Duplicate Selection in the panel menu sends the rows the panel lists,
  so a highlighted row outside the isolated art is not copied.
- In isolation mode the Hide, Outline and Lock Others pairs in the panel
  menu and the row menu are off, and Alt-clicks on an eye or a lock
  change nothing. Locate Layer is off while a group or object is
  isolated.
- OK in Delete Selection's question deletes nothing when isolation mode
  started while it asked and a row it asked about is outside the
  isolated art.
- The isolated row shows no drop place for an Alt-drag onto itself, and
  a guide is not dropped on a layer outside the isolated art.
- Each document's isolation mode is followed on its own, so a document
  first shown in isolation mode opens its isolated row.
- The isolation test steps out of a sublayer one level at a time, as
  Exit Isolation Mode now does.
2026-11-18 17:07:30 -08:00
dotCooCoo 1f26501f91 Pen: no rubber band where a click adds no segment, and the label measures the band
A click on the last anchor retracts its handle, an Alt click over the path
goes to the Anchor Point tool, and a join with an end that lies on the last
anchor merges the two ends. None of these adds a segment, so no rubber band
shows there. The measurement label measures to the anchor the band ends on
instead of the snapped pointer. A press and a hover no longer search for an
end at the snapped point when snapping left the pointer where it was.
2026-11-18 17:05:57 -08:00
dotCooCoo 322e02954f Proof Setup: another dialog in its place undoes its preview
When another dialog replaces a previewing Proof Setup dialog, the proof
view the dialog found comes back. Opening Proof Setup again starts from
that view, and a Proof Setup dialog that comes back from under another
dialog previews its settings again. A proof setup that a command sets
after the preview starts stays when the preview is undone, whether by
another dialog, Preview off or Cancel, and so does Overprint Preview.
2026-11-18 17:04:50 -08:00
BFlat fc2a525ee1 Merge pull request #8635 from storytold/fix/ase-cap
color: an .ase library over the cap gets VectorCraft's own, translated message again
2026-11-19 08:00:13 +07:00
bflatastic 891dd6310d color: an .ase library over the cap gets VectorCraft's own, translated message again
#8627 left the check to craft-cms, whose wording isn't in the catalogs, and
main's test of the message failed.
2026-11-19 07:59:02 +07:00
dotCooCoo ec6068e62e i18n: the Georgian Hyphenation Exceptions sentence fits in three lines
The Georgian row for the Hyphenation Exceptions description wrapped to a fourth line, which failed every_description_names_a_setting_and_fits_in_every_language. The row now opens with a shorter phrase for "in paragraphs with Hyphenate on".
2026-11-18 16:58:55 -08:00
dotCooCoo 59752f7ebf Swatches: Color Group Options renames only the group it opened on
OK closes the dialog and renames nothing when another document has
become the active one, or when the color group at the group's place in
the list no longer has the name and swatches the dialog opened with.

swatch.renameGroup makes a drag still in progress an undo step of its
own first, so canceling or undoing the drag leaves the rename.

ui.colorGroupOptions without group opens on the color group selected
alone in the Swatches panel, as long as the panel's selection still
belongs to the active document and art.

The panel's selection follows renames in a command.batch only up to the
first step that may switch documents or replace a group. Ungroup Color
Group and Delete Swatch take the names they removed out of the
selection.

The es catalog had the missing `group` and no colour group `{group}`
rows twice after the last merge of main; the duplicates are removed.
2026-11-18 16:58:21 -08:00
dotCooCoo b92cdba3e0 Repeat: switching tools during a mirror axis or repeat handle drag puts it back
Switching away from the Selection tool while dragging a mirror axis or a
grid or radial repeat's handles left the drag's preview open under the
next tool. The Selection tool now cancels these drags on a tool switch,
as Escape already did, so the repeat goes back to its options from
before the press. A press that has not changed anything leaves no undo
step.

The deactivate doc comment now lists these drags and the Image Trace
divider.
2026-11-18 16:54:56 -08:00
dotCooCoo 82edccca6f Save PDF: OK on Custom… keeps the overprint option it opened with over a preset saved again
When the saved flattener preset was deleted and saved again under the
same name with another Preserve Overprints value while Custom… was open,
OK took the new preset's value instead of the one the dialog showed.
OK now keeps the value the options opened with, and reads the preset
only when that value is missing.
2026-11-18 16:48:42 -08:00
dotCooCoo a396be39be Merge main into fix/linked-handle-repeat-no-undo 2026-11-18 16:47:55 -08:00