Commit Graph
18448 Commits
Author SHA1 Message Date
BFlat 1df314f891 Merge pull request #8518 from dotCooCoo/perf/find-font-list-once
Find Font: the document's font list is worked out once per document version
2026-11-18 13:53:05 +07:00
BFlat 84c21a8b36 Merge pull request #8519 from dotCooCoo/perf/proxy-mixed-index-paths
Color: the Fill and Stroke proxies find the selected objects through the id cache
2026-11-18 13:52:56 +07:00
dotCooCoo f019496286 Merge main into feat/enclosing-shapes 2026-11-17 22:51:21 -08:00
dotCooCoo 4302f4c90b Path Precision Tools: bounding shapes name a shape with no size and stop at the canvas edge
When every shape is left out because it would have no size, for example
Add Bounding Rectangle on a straight horizontal line, the error is now
"the shape would have no size" instead of "nothing to enclose", which
stays for objects with no outline. A shape that would reach more than
4,000,000 pt from the origin, for example with a very large `offset`,
is refused with "the shape would reach past the edge of the canvas"
before anything is drawn. Both messages are in the 24 catalogs that
translate messages.

The params text of addon.pathtools.boundingCircle now names the
sublayer rules that docs/mcp.md states: sublayers that clip their
contents count by their clipping paths, other sublayers by their shown
objects. Both commands' params text lists the errors.

The menu items open no dialog and draw one shape around the whole
selection with no offset. docs/ui-parity.md, docs/target-app-parity.md,
docs/mcp.md and the ROADMAP line now say so, and name `each` and
`offset` as command parameters only.

New tests: the menu items in vectorcraft-ui-egui, the canvas-edge error
in vectorcraft-engine, and shapes::convex_hull in vectorcraft-geom.
2026-11-17 22:50:44 -08:00
dotCooCoo 863d7ebbbb Merge main into feat/paper-cutouts-style-library 2026-11-17 22:49:41 -08:00
dotCooCoo c7c1acc63b Merge main into feat/arrows-brush-library 2026-11-17 22:49:31 -08:00
dotCooCoo b741eb907e Merge main into feat/palette-home-callout 2026-11-17 22:49:23 -08:00
dotCooCoo c24f1fc5a5 Fields: range and mixed fields refuse text that reads as no number
A range, mixed or spinner field that committed text it could not read
(`abc`, `(10+5)*2`) returned nothing and did not mark the commit as
refused. Enter in such a field then confirmed an open dialog with the old
value, and in Save for Web's Optimize to File Size rows it ran the search
with the old size.

The field now refuses that text as unit fields do: it flashes, shows its
value again, and the Enter does not confirm the dialog.
2026-11-17 22:49:09 -08:00
dotCooCoo 667ff774ad Shapes: the Curvature Circle tool passes over the circles it drew
After a click, the circle the tool drew is selected and on top, so the
next hover or click near the point it touches snapped to that circle
instead of the path. The pointer now passes over the circles the tool
drew until an edit, Undo or Redo is made outside the tool.

- An anchor marked smooth is a corner when its handles turn by 90° or
  more; the params text and docs/mcp.md now say so instead of "turn
  back the way they came".
- Tests cover a second click after a draw, in the tool and through the
  session, and a marked-smooth anchor with square handles.
2026-11-17 22:47:24 -08:00
HassanKhan 0865242d2f PDF export: write the document language as the catalog's /Lang (#3644)
The writer passed no language to craft-pdf, so exported and printed
PDFs had no /Lang and accessibility checkers failed primary-language.
Writer::new now passes the BCP 47 tag of the Document Setup language
(new vectorcraft_doc::setup::language_tag, en-US by default) through
write::Writer::new_with_language, which writes the catalog's /Lang and
the XMP dc:language. A language with no tag writes none. /MarkInfo is
left for tagged PDF (#3643).
2026-11-18 11:46:27 +05:00
dotCooCoo 314e78c4ce Merge main into feat/actions-clear-actions 2026-11-17 22:44:16 -08:00
dotCooCoo bec193c6bc Merge main into feat/polygon-side-widget 2026-11-17 22:44:14 -08:00
dotCooCoo c6b657b96f Merge main into feat/editable-flares 2026-11-17 22:42:31 -08:00
dotCooCoo 1d9ba0dc0a Path Precision Tools: state when a point counts as on the outline
A point counts as on the path's outline when it is less than the
touching tolerance from it, with its distance from the path's center in
place of the distance between centers. The params text, docs/mcp.md and
the progress doc now say so, and say that every Tangents choice in the
dialog gives the same lines for a point.

Tests: a point half the tolerance inside and outside a circle gets the
one line there, and farther off gets none or two; a point placed on a
turned outline gets a line as long as the outline is wide along it; the
dialog previews the same two lines for every Tangents choice and keeps
them as one step, and a point inside changes nothing and says why.
2026-11-17 22:39:13 -08:00
dotCooCoo 9e059d6e99 Merge main into perf/ai-save-gradient-index 2026-11-17 22:38:32 -08:00
dotCooCoo 40c5c174f7 Merge main into feat/palette-row-homes 2026-11-17 22:38:07 -08:00
dotCooCoo a166087f55 Fields: test a product through a length param and keep upstream's doc text
- `Unit::parse` keeps main's paragraph about units after `*` and `/` as it
  was; the new `x` paragraph follows it, and the limit line names the
  signs it counts again.
- `object.path.offsetPath` takes `"0.05x2 in"` (0.1 in), which it refused
  before; `"0x10"` reads as 0 pt. docs/mcp.md states both.
2026-11-17 22:36:30 -08:00
dotCooCoo 2275ca2fe0 Find and Replace: confirming with a field of the wrong type runs no action
ui.dialog.confirm used to read a replace that is not a string as empty text, so Replace All could delete every match, and a switch that is not true or false as off. It now returns the error, which shows under the match found, and runs nothing; the match stays for Replace once the field is set right.
2026-11-17 22:36:13 -08:00
ruchirguitar a56ffe0949 Merge remote-tracking branch 'upstream/main' into feat/4934-retype
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-18 12:05:01 +05:30
dotCooCoo b3f1f9bc0b Merge main into feat/palette-description 2026-11-17 22:32:54 -08:00
dotCooCoo 8086c7b6dd Merge main into feat/superscript-subscript-shortcuts 2026-11-17 22:32:45 -08:00
dotCooCoo 29dc3dda3f Fix #5941: drop-down lists open at their first option
A drop-down list kept the scroll position it had when it closed, so the
Export As Format list could open again with SVG, its first format, above
the top of the list. Each list built on the shared drop-down widget now
starts at its first option when it opens.

The Export As test now reads the list's own rect instead of assuming the
field's width, checks the bar only while the list does not show every
format, and opens the list again after scrolling it.
2026-11-17 22:31:04 -08:00
ruchirguitar 783437f775 M7/G4: retype review: hidden art, compositing, half turns, cost (#4934)
Hidden and locked shapes stay outlines and end the line. Isolated and
knockout groups keep their type inside. Type turned 180 degrees stays
one object (angles compared wrapped). A lone one-contour glyph beside
other shapes stays an outline unless it is the only shape selected.

The index samples only glyphs whose key (segments per contour) a selected
shape has, reads outlines past the shared outline cache, keeps each
face's keys once worked out, and loads no more faces than it takes. With
Microsoft YaHei (29,905 glyphs) loaded: 877 ms the first time, 23 ms
after.
2026-11-18 11:58:41 +05:30
dotCooCoo 54e4b6e1f0 Align: Object › Align lists the Align To choices, and each can be given a key
Align to Selection, Align to Key Object and Align to Artboard follow the
align items in Object › Align, with the choice the Align panel shows
checked. Each is a UI command (align.toSelection, align.toKeyObject,
align.toArtboard) that sets the choice as the panel's Align To button
does, and Edit › Keyboard Shortcuts lists them under Align with no
default key. align.toKeyObject fails with "no key object" when no
object can be made the key.
2026-11-17 22:28:14 -08:00
dotCooCoo b9d34c41aa Merge main into feat/background-save-progress 2026-11-17 22:27:57 -08:00
dotCooCoo 924fd72183 Merge main into feat/attributes-url-count 2026-11-17 22:27:54 -08:00
dotCooCoo ef3659caa5 Merge main into feat/plugin-budget-preference 2026-11-17 22:27:52 -08:00
dotCooCoo a956d25582 Merge main into feat/palette-typos 2026-11-17 22:27:49 -08:00
dotCooCoo 51c0c21624 Map Art: art on a facet with curved edges is clipped to those edges
A wall facet whose edges follow the profile's curves kept the straight
corners of its cell, so the mapped art was clipped to the chord and could
reach past a curve that bows into the facet. Such a facet now clips the
art to its curved outline.
2026-11-17 22:26:14 -08:00
dotCooCoo 2fa55b2aeb Merge main into feat/symbols-panel-options-button 2026-11-17 22:24:17 -08:00
dotCooCoo 847c2e9536 Merge main into feat/graphic-styles-alt-drag-style-onto-style 2026-11-17 22:24:16 -08:00
dotCooCoo 2d33d8e82b Merge main into feat/eraser-tip-preview-drag 2026-11-17 22:24:14 -08:00
dotCooCoo 1ccf0e4f08 Merge main into fix/metafile-empty-artboard-first 2026-11-17 22:24:07 -08:00
dotCooCoo 6645c7f487 Path Precision Tools: a canceled press keeps the Tangent Circle Tool's first segment
- A canceled press on the second segment (a canceled touch, a second
  finger) draws nothing and leaves the first segment picked. A canceled
  press that picked the first segment leaves no segment picked. Before
  this change a canceled press worked as Escape and forgot the first
  segment.
- Shift pressed or let go during a click on the second segment, before
  the pointer moves far enough to start a drag, counts at the release:
  the circle is looked for again with or without the tool's radius.
- A session test sends the tool's release with a command that fails and
  checks that the first segment stays picked.
- The radius option's test checks that a value outside 0.01 to 1000000,
  or one that is not a number, leaves the radius as it is.

Docs: docs/target-app-parity.md lists every kind of circle the tool
leaves out: circles whose nearest point on the second segments is not on
the circle, circles that cross the first segment, circles that touch
both segments at one point, circles without a finite radius above 0, and
circles too small or too large for three of their points to give them
back. A circle found twice is kept once. docs/mcp.md says that in a
drag the circle touching nearest the press is drawn, and that the
radius option is not checked yet.

Part of #7178.
2026-11-17 22:20:58 -08:00
dotCooCoo 84c9d93956 Symbols: a marquee touches what an instance's fill and stroke effects paint
A marquee across the shapes that the geometry effects of a symbol
instance's active fill or stroke paint outside its box now selects the
instance, as a click there does. An image is likewise touched where its
own fills and strokes paint outside its frame. Outline mode keeps the
box alone.
2026-11-17 22:18:27 -08:00
dotCooCoo 285fc75c95 Dimension: test each Arrow Style's arrowhead against the expected head
The engine test now names the head each style draws (Filled a filled
triangle, Open an open triangle, Tick a slash, None no head) instead of
comparing the dimension line with ArrowStyle::arrowhead, which the
engine itself calls. It moves to crates/engine/tests/it/dimensions.rs.

The Arrow Style previews take each style from a constant list in the
order of the dropdown entries instead of parsing the entry's value
every frame, and a test checks that each entry's value matches its
style.

Part of #8049.
2026-11-17 22:17:50 -08:00
dotCooCoo f1dbcb9e69 Part of #5941: Save for Web's Preview in Browser no longer covers the lists
With the preview panes at their narrowest (a 640 by 400 window), Preview
in Browser was drawn over the Download list. It now goes on a row of its
own below the Zoom and Download lists when the panes are too narrow for
it beside them. The Save for Web test checks that it clears the list.
2026-11-17 22:17:29 -08:00
dotCooCoo b838b9036e Merge main into feat/color-wheel-harmony 2026-11-17 22:16:53 -08:00
dotCooCoo 2e650d4160 Merge main into feat/color-wheel-vision-preview 2026-11-17 22:16:51 -08:00
dotCooCoo a83c1a5f1b Merge main into fix/library-panel-names-translated 2026-11-17 22:16:43 -08:00
BFlat 50c7208fe3 Merge pull request #8466 from dotCooCoo/perf/find-command-index
Commands: find_command looks commands up in an index built once
2026-11-18 13:15:20 +07:00
BFlat e49686185e Merge pull request #8465 from dotCooCoo/feat/scatter-brush-hue-jitter
Brushes: Scatter Brush Options has Hue Jitter, a per-copy hue turn
2026-11-18 13:15:11 +07:00
BFlat de6d1851d3 Merge pull request #8468 from dotCooCoo/feat/new-type-normal-character-style
Type: new type takes the font and size of a redefined [Normal Character Style]
2026-11-18 13:15:00 +07:00
BFlat 405668a384 Merge pull request #8486 from dotCooCoo/fix/place-into-its-layer
Place: a file read in the background goes into the layer it was placed in
2026-11-18 13:14:52 +07:00
BFlat da0c76dc69 Merge pull request #8484 from dotCooCoo/perf/three-d-export-enabled-once
3D and Materials: the Export 3D Object button's state is worked out once per document revision
2026-11-18 13:14:44 +07:00
BFlat 7c6eb1b289 Merge pull request #8426 from dotCooCoo/perf/shape-builder-hatch-sweep
Shape Builder: the hover and drag hatch tests each line only against the edges spanning it
2026-11-18 13:14:34 +07:00
BFlat add89a0606 Merge pull request #8488 from dotCooCoo/perf/live-selected-of-one-pass
Blend: selected blends, envelopes and meshes are found along one path per object
2026-11-18 13:14:25 +07:00
BFlat 0c7b92730b Merge pull request #8467 from dotCooCoo/perf/direct-blend-spine-guard
Direct Selection: the selected blend spine check returns at once when no blend is selected
2026-11-18 13:14:15 +07:00
BFlat ec6c053bdd Merge pull request #8504 from dotCooCoo/perf/select-step-siblings
Select: Next Object Above and Below check only the selected object's siblings
2026-11-18 13:14:06 +07:00
BFlat 2c091873c1 Merge pull request #7779 from dotCooCoo/fix/pl-catalog-translates-art-artwork-two-ways-in
i18n: Polish labels and messages call art and artwork kompozycja
2026-11-18 13:13:58 +07:00