Commit Graph
8726 Commits
Author SHA1 Message Date
yoriswind 4fb16fbab2 Merge current main while preserving pattern-only keyboard nudges 2026-11-19 06:21:54 +00:00
yoriswind 6bca1e4fb4 Merge current main for Brush Options Key Color canvas sampling
Retain the owned canvas aperture and upstream modal opened-state handling,
keep both appended test functions and complete documentation histories, and
pass None in the new ordinary-modal test call.
2026-11-18 22:21:51 -08:00
jayzed80 744b54ee76 Merge remote-tracking branch 'upstream/main' into fix/all-tools-panel-text-dim-8294
# Conflicts:
#	docs/target-app-parity.md
2026-11-19 06:13:14 +00:00
HassanKhan 2113b214f1 PDF import: forget lost fills at flush points (#8549 follow-up)
Since #8549 the glyphs of lines finished past MAX_PARKED were kept
until the next stroke and, past 4096 of them, matched every stroke.
A `2 Tr` word after a dense page of filled-only type then came in as a
filled object and a stroked one.

- flush_text forgets them: nothing is drawn between an operator's fill
  pass and its stroke pass. end_text keeps them, since it also runs
  mid fill pass for a glyph kept as an outline.
- LostFills keeps the first 4096 glyphs and matches only those; there
  is no overflow that matches every stroke.
- replayed counts the lines its `left` check looks at toward
  MAX_REPLAY_WORK.
2026-11-19 11:06:23 +05:00
ruchirguitar fc5d16f29c Place: show progress window with Cancel for slow placed files (part of #5930) 2026-11-19 11:21:06 +05:30
jmvergesandClaude Opus 5.5 dc57c26f69 Merge main (8fcadbc3c) into fix/ai-art-brush-tints-of-a-spot-color
Conflicts in docs only (status lines, changelog rows and table rows):
main's entries and this branch's are both kept, each once. Main now has
this branch's first File formats row fix (#868) itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 05:43:15 +00:00
datatimp 4d08d08e20 Merge remote-tracking branch 'upstream/main' into fix/8646-layer-target-ring
# Conflicts:
#	docs/target-app-parity.md
2026-11-19 00:42:57 -05:00
datatimp 92af2b2d9e Layers: a layer whose art is all selected from its target circle shows as targeted (#8646) 2026-11-19 00:34:56 -05:00
dotCooCoo ea7e831c2d Live Paint: Stroke Weight Up and Down use the same bucket routing as stroke.set
stroke.weightUp and stroke.weightDown now go through bucket_color_params and
item_target, as stroke.set and stroke.setAdvanced do, instead of skipping
item_target while the Live Paint Bucket is active. Each command still
refuses `target` and `aligned` with any tool, since neither is one of its
parameters.

- live_paint_bucket_refuses_a_bad_target_or_aligned (renamed from
  live_paint_bucket_refuses_a_bad_target) runs with the Selection tool and
  with the bucket, and adds stroke.set, stroke.weightUp, stroke.weightDown,
  paint.swap and paint.default.
- live_paint_bucket_paint_and_stroke_commands_leave_the_selection_unpainted
  adds stroke.set with `ids: null` and stroke.weightUp with `id: null`.
- The params text of the bucket-routed commands says a null ids or id
  counts as none.
- docs/mcp.md names gradient.presets.apply next to paint.editGradient for a
  picked symbol part, lists when a stop selected on the bucket's gradient is
  deselected, and rewraps the two long lines.
2026-11-18 21:32:55 -08:00
dotCooCoo 53665d1dfa Docs: Distribute steps keep their recorded Align To in automatic playback
docs/mcp.md now says that `automaticAlignTo` changes only `object.align`
steps, and that `object.distribute` and `object.distributeSpacing` steps
play with the `to` they were recorded with. The edited paragraphs are
rewrapped to the width of the rest of the file.
2026-11-18 21:21:45 -08:00
yoriswind 9a6025e029 Merge current main into PR #7668
Preserve both the qualified feature and current main documentation.
2026-11-18 21:09:02 -08:00
yoriswind 0580e3fbb5 Merge current main into PR #7652
Preserve both the qualified feature and current main documentation.
2026-11-18 21:09:02 -08:00
dotCooCoo 11262135b6 Fix #8582: inactive document tabs show the name alone, so more tabs fit
An inactive document tab shows the document's name, the view number and
the unsaved-changes mark, without the zoom and the mode in parentheses
(the color mode and view, or the opacity mask being edited). The active
tab keeps its whole title, and an inactive tab's tooltip shows the whole
title. In a 1000 pt window with twelve short-named documents, 7 tabs fit
whole instead of 3.

Tests that found tabs by the " @ " of their titles now find them by the
document's name, and the overflow tests use longer names so that a tab
still overflows. Tests that drag back to a tab read its place again
after another tab becomes current, since the current tab is wider, and
one of them checks that the pointer stays over the tab it switched to.
The drag along the strip in the tear-off test stays short of the next
tab's middle, and the reorder test checks that a long drag along the
strip floats no document.
2026-11-18 20:55:12 -08:00
dotCooCooandyoriswind d92a1f9134 Actions: an action can choose Align To when it plays
object.align takes to: "auto", which aligns to the key object, key
anchor or key guide when the selection has one, else to the artboard
when exactly one object is selected and no anchor points are, else to
the selection.

New Action and Action Options have Choose Align To at playback
(automaticAlignTo on ui.action.new and ui.action.options), off by
default. With it on, playback sends to: "auto" for each object.align
step, without any artboard index the step stores, so the step uses the
active artboard; the stored steps keep their recorded params. Save
Actions writes the option, and a set that uses it is saved as file
version 7.

The dialog's strings have rows in every catalog, and docs/mcp.md
describes to: "auto", automaticAlignTo and file version 7.

Fixes #6972. Supersedes #7635.

Co-authored-by: yoriswind <yoriswind@yahoo.com>
2026-11-18 20:46:38 -08:00
ruchirguitar 82c5ad7a31 docs: distinguish G5 revised estimate from unchanged milestone estimates 2026-11-19 10:08:27 +05:30
ruchirguitar 0c65ede5de G5: Add built-in Media Controls symbol library
# Conflicts:
#	docs/gaps.md
#	docs/target-app-parity.md
2026-11-19 10:08:20 +05:30
dotCooCoo db8301307c Live Paint: null ids and bad options under the bucket; docs
- While the Live Paint Bucket is active, a paint or stroke command with
  a null ids or id goes to the bucket's colors, as one without them does.
  Before, it painted the selection, since other commands read a null ids
  or id as no target.
- A bad target or aligned value is refused while the bucket is active,
  as it is with any other tool, instead of changing the bucket's colors.
- stroke.weightUp and stroke.weightDown no longer read the selection's
  active Appearance row while the bucket takes the weight, as stroke.set
  and stroke.setAdvanced already do. The row was not used in that case.
- The params text of gradient.selectStop says that, while the bucket is
  active, it selects a stop of the default paint's gradient, also with an
  object of a symbol instance picked. docs/mcp.md says the same, and that
  paint.editGradient without ids, id or item then changes the bucket's
  gradient.
- docs/mcp.md again says that another tool chosen after the bucket keeps
  its colors until a command or a new selection changes them.
2026-11-18 20:29:39 -08:00
ruchirguitar 8fcadbc3c1 Fix #864: SVG export preserves the document unit in viewBox and width/height (#8610)
* SVG export: preserve document unit in viewBox and width/height (#864)

When exporting SVG documents with physical units (mm, cm, in, pc), emit
the physical unit suffix on the root <svg width=... height=...>
attributes while keeping viewBox numbers and inner coordinates in 1:1 points
per SVG 1.1 coords §7.10. This avoids the 75% scaling mismatch when opening
drawings in external tools such as Inkscape or LightBurn, and preserves
the document unit setting across save/open round trips. Unitless documents
(points, pixels) continue to emit unitless dimensions.

Tested via export_physical_units_writes_unit_suffixes in vectorcraft-svg
and full round-trip svg_round_trip_preserves_document_units in vectorcraft-engine.
Ran cargo xtask ci (fmt, clippy, tests, xtask gates).

* SVG export: preserve nonzero width and viewBox on extreme small dimensions
2026-11-18 23:27:00 -05:00
dotCooCoo e6d8e2d23f Path Precision Tools: Add Bounding Circle keeps curves close past its split budget
Once a shape has used its 1,048,576 splits at any depth, Add Bounding Circle
still splits each further curve into up to 8 pieces, from a second budget of
7,340,032 splits shared among the shapes as the first one is. Only after
both are used up does a curve count whole by its control points' hull cut
down to its bounding box. Before, every curve past the first budget counted
whole, which can make the circle around a circle about 14% larger; with the
8 pieces the fit stays less than 0.3% larger.

- The comment on the shared budget no longer claims that the shape around
  one object is independent of the other objects selected.
- shapes::enclosing_circle and convex_hull move below the star helpers.
- The "Each" label mapping in the dialog form sits after "Flip Cols".
- docs/mcp.md and docs/target-app-parity.md describe both budgets and the
  size of the fit before the 0.01 pt is added.
2026-11-18 19:51:39 -08:00
jayzed80 4443403b3b Merge remote-tracking branch 'upstream/main' into fix/all-tools-panel-text-dim-8294
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-19 03:40:16 +00:00
dotCooCoo 9ae8317fa3 Merge main into feat/prefs-descriptions-hyphenation 2026-11-18 18:56:38 -08:00
dotCooCoo 7d44690b52 Merge main into feat/retype-matching-fonts 2026-11-18 18:52:29 -08:00
ruchirguitar 36cc381f40 Merge main into raster editor picker branch (#5804) 2026-11-19 08:14:23 +05:30
dotCooCoo 2b0d6e5b14 Live Paint: bucket previews, gradient stops and presets use the bucket's colors
While the Live Paint Bucket is the active tool:
- each preview in one interaction starts from the colors the
  interaction began with, so previewing paint.swap twice and committing
  swaps once;
- a gradient stop selected on the selection's gradient is not selected,
  and one selected on the bucket's gradient is not selected after
  another tool is chosen;
- gradient.selectStop selects a stop of the bucket's gradient even
  with an object of a symbol instance picked;
- gradient.presets.apply picks the fill or stroke by the active proxy,
  not by the selection's active Appearance row;
- stroke.set and stroke.setAdvanced no longer read the selection's
  Appearance row;
- the Stroke panel's Align Stroke buttons are on, as with nothing
  selected, matching stroke.set, which takes every alignment.

The params text of paint.sampleColor, gradient.presets.apply,
stroke.set, stroke.weightUp and stroke.setAdvanced, the set_paint note
and the Live Paint paragraph of docs/mcp.md now describe this, and say
that the bucket takes only the color and weight of the stroke for new
art.
2026-11-18 18:44:05 -08:00
dotCooCoo 0f6be1ba6d Tabs: with the last document active, the tab before the shown ones fills the room
When the active tab was one of the last documents, the strip showed the
tabs from it to the end and left the room before them empty. The tab
before them now fills that room with its title shortened, as the tab
after the whole ones does. The tab strip takes each tab's window and
title from one list, so a docked window without a document no longer
shifts which tab is drawn as the active one. The tests check that 3
tabs fit whole and a fourth is shortened in a window 1000 pt wide.
2026-11-18 18:42:52 -08:00
yoriswind 5a06d5bddd #7645: put status notes in Change metadata 2026-11-18 18:31:40 -08:00
dotCooCoo ad60b1e8c5 Proof Setup: saved setups are listed by names that load them
- view.proofSetup.list lists only files named <name>.vcproof whose name
  `name` takes unchanged, sorted by that name before the 100 limit.
  An entry that can't be read or whose file name is not valid Unicode
  sets `truncated`, and a folder that can't be read is an error instead
  of an empty listing.
- ui.inspect leaves out the path of a saved setup picked in an open
  Insert Menu Item dialog when it is outside the read root.
- The listing Save… starts asks for a frame when it ends, so an idle
  window shows the new setup.
- Load…'s picker starts in its own default folder until a save has made
  the Proof Setups folder.
- The command help, docs/mcp.md and the progress line say the buttons
  and the saved setups are desktop only.
2026-11-18 18:25:31 -08:00
dotCooCoo 9b0fc2e249 HP-GL Options: check and list pens from what the export writes
- Export Selection to HP-GL checks the selection and starts Pen Table
  from its pens, as the export writes it, and `exportSelection` is no
  longer remembered for the next whole-document export.
- Pen Table with options or an artboard choice the export refuses keeps
  One Pen per Color and shows the error, instead of starting from one
  black pen that corrected options would keep. `automatic_pens` returns
  that error.
- `automatic_pens` refuses `rect`, as `check` and the export do.
- A save panel shown in line that is canceled keeps the dialog open,
  and a canceled save panel keeps the options remembered before.
2026-11-18 18:24:51 -08:00
dotCooCoo 686fd46c9d Layers: in isolation mode the trash deletes no row outside the isolated art
Rows dragged to the trash before isolation mode started went to
layer.delete at once when none needed a question. ui.layerDelete now
returns an error for any row outside the isolated art, given or dropped,
and deletes nothing. OK in its question with no rows given deletes the
highlighted rows the panel lists, not every highlighted row.
2026-11-18 18:12:34 -08:00
dotCooCoo 2d58a80b96 Merge main into feat/enclosing-shapes 2026-11-18 18:09:57 -08:00
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 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 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 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 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
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
dotCooCoo b5333e6af1 Merge main into feat/indonesian-translates-every-status-and-error 2026-11-18 17:20:43 -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 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