Commit Graph
6277 Commits
Author SHA1 Message Date
bflatastic e4169d7412 Merge main into #7515
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 15:19:43 +07:00
BFlat bccb824be6 Merge pull request #8619 from dotCooCoo/feat/retype-matching-fonts
Retype: the Retype panel lists the fonts that match outlined text
2026-11-19 15:18:29 +07:00
bflatastic 43950a1874 Merge main into #8451
# Conflicts:
#	crates/ui-egui/src/i18n/bg.tsv
#	crates/ui-egui/src/i18n/bs.tsv
#	crates/ui-egui/src/i18n/ca.tsv
#	crates/ui-egui/src/i18n/cs.tsv
#	crates/ui-egui/src/i18n/da.tsv
#	crates/ui-egui/src/i18n/de.tsv
#	crates/ui-egui/src/i18n/el.tsv
#	crates/ui-egui/src/i18n/es.tsv
#	crates/ui-egui/src/i18n/fi.tsv
#	crates/ui-egui/src/i18n/fr.tsv
#	crates/ui-egui/src/i18n/gu.tsv
#	crates/ui-egui/src/i18n/hi.tsv
#	crates/ui-egui/src/i18n/hu.tsv
#	crates/ui-egui/src/i18n/id.tsv
#	crates/ui-egui/src/i18n/it.tsv
#	crates/ui-egui/src/i18n/ja.tsv
#	crates/ui-egui/src/i18n/ka.tsv
#	crates/ui-egui/src/i18n/ko.tsv
#	crates/ui-egui/src/i18n/nl.tsv
#	crates/ui-egui/src/i18n/pl.tsv
#	crates/ui-egui/src/i18n/pt-br.tsv
#	crates/ui-egui/src/i18n/ru.tsv
#	crates/ui-egui/src/i18n/sv.tsv
#	crates/ui-egui/src/i18n/tr.tsv
#	crates/ui-egui/src/i18n/uk.tsv
#	crates/ui-egui/src/i18n/vi.tsv
#	crates/ui-egui/src/i18n/zh-hans.tsv
#	crates/ui-egui/src/i18n/zh-hant.tsv
#	docs/mcp.md
#	docs/target-app-parity.md
2026-11-19 15:10:17 +07:00
BFlat 31c2107b73 Merge pull request #8649 from dotCooCoo/feat/actions-automatic-align-to
Actions: an action can choose Align To when it plays
2026-11-19 15:09:04 +07:00
BFlat 2c1c36c77a Merge pull request #8632 from dotCooCoo/feat/cmx-open
File formats: open and place .cmx files
2026-11-19 15:07:21 +07:00
BFlat f5a35d3fa2 Merge pull request #8629 from dotCooCoo/fix/linked-handle-repeat-no-undo
Anchor Point: a repeated linked handle request records no undo step
2026-11-19 15:07:02 +07:00
BFlat cb094669ae Merge pull request #8628 from dotCooCoo/fix/live-paint-bucket-fill-color
Live Paint: a color chosen with the Live Paint Bucket is the color it paints with
2026-11-19 15:06:53 +07:00
BFlat fd0ff592b7 Merge pull request #8624 from dotCooCoo/fix/followup-8408
Type: the missing-font question takes its answer through tool.setOption
2026-11-19 15:06:39 +07:00
BFlat 8ed64fe0f4 Merge pull request #8622 from dotCooCoo/fix/followup-8405
Live Paint: Layers drags keep the sources group and rebuild on hidden moves
2026-11-19 15:06:18 +07:00
bflatastic feb024d8a7 Merge main into #8347
# Conflicts:
#	crates/ui-egui/src/i18n/bg.tsv
#	crates/ui-egui/src/i18n/bs.tsv
#	crates/ui-egui/src/i18n/ca.tsv
#	crates/ui-egui/src/i18n/da.tsv
#	crates/ui-egui/src/i18n/el.tsv
#	crates/ui-egui/src/i18n/es.tsv
#	crates/ui-egui/src/i18n/fi.tsv
#	crates/ui-egui/src/i18n/gu.tsv
#	crates/ui-egui/src/i18n/id.tsv
#	crates/ui-egui/src/i18n/ka.tsv
#	crates/ui-egui/src/i18n/ru.tsv
#	crates/ui-egui/src/i18n/sv.tsv
#	crates/ui-egui/src/i18n/vi.tsv
#	crates/ui-egui/src/i18n/zh-hans.tsv
#	crates/ui-egui/src/i18n/zh-hant.tsv
#	docs/gaps.md
2026-11-19 15:04:59 +07:00
BFlat 971a31f021 Merge pull request #8615 from dotCooCoo/fix/followup-8397
Layers: layer.locate's reference names when the panel does not scroll
2026-11-19 15:04:34 +07:00
BFlat 9deb48d562 Merge pull request #8658 from storytold/train/carry8341
Graphic Styles: Add original Paper Cutouts library (#8341)
2026-11-19 15:04:23 +07:00
BFlat fa4817823c Merge pull request #8578 from dotCooCoo/fix/point-tangents-same-lines-test
Path Precision Tools: test that every Tangents choice keeps the same lines from a point
2026-11-19 15:03:35 +07:00
BFlat f8a355786e Merge pull request #8575 from dotCooCoo/fix/pen-rubber-band-close-join
Pen: the rubber band over the first anchor or another path's end is the segment a click adds
2026-11-19 15:03:23 +07:00
bflatastic 497af8e79b Merge main into #8341
# Conflicts:
#	crates/ui-egui/src/i18n/bg.tsv
#	crates/ui-egui/src/i18n/bs.tsv
#	crates/ui-egui/src/i18n/ca.tsv
#	crates/ui-egui/src/i18n/da.tsv
#	crates/ui-egui/src/i18n/el.tsv
#	crates/ui-egui/src/i18n/es.tsv
#	crates/ui-egui/src/i18n/fi.tsv
#	crates/ui-egui/src/i18n/fr.tsv
#	crates/ui-egui/src/i18n/gu.tsv
#	crates/ui-egui/src/i18n/id.tsv
#	crates/ui-egui/src/i18n/ka.tsv
#	crates/ui-egui/src/i18n/ru.tsv
#	crates/ui-egui/src/i18n/sv.tsv
#	crates/ui-egui/src/i18n/vi.tsv
#	crates/ui-egui/src/i18n/zh-hans.tsv
#	crates/ui-egui/src/i18n/zh-hant.tsv
2026-11-19 15:03:22 +07:00
BFlat c03765a22d Merge pull request #8571 from dotCooCoo/fix/dimension-levels-linear
Dimension tool: only a linear dimension reads the dimension lines
2026-11-19 15:02:00 +07:00
BFlat 2769afa489 Merge pull request #8540 from dotCooCoo/fix/classic-overprint-separations
Separations Preview: keep Classic 3D black shading on the Black plate
2026-11-19 15:01:48 +07:00
BFlat 7784d2f1a5 Merge pull request #8528 from dotCooCoo/feat/curvature-circle
Shapes: the Curvature Circle tool draws the circle a path bends along
2026-11-19 15:01:28 +07:00
BFlat 1fa8b7f535 Merge pull request #8526 from dotCooCoo/feat/tangent-circle-tool
Path Precision Tools: the Tangent Circle Tool draws a circle on two clicked segments
2026-11-19 15:01:11 +07:00
BFlat de32f5cf96 Merge pull request #8525 from dotCooCoo/feat/enclosing-shapes
Path Precision Tools: Add Bounding Rectangle and Add Bounding Circle enclose the selection
2026-11-19 15:01:00 +07:00
BFlat 3892841db0 Merge pull request #8511 from dotCooCoo/fix/export3d-revolve-side-graphics
3D: Export 3D Object writes the art mapped onto a Revolve's side
2026-11-19 15:00:20 +07:00
BFlat 0a648aa23e Merge pull request #8497 from dotCooCoo/feat/layers-panel-isolation-list
Layers: isolation mode lists only the isolated art
2026-11-19 15:00:00 +07:00
BFlat 2988a7ed53 Merge pull request #8492 from dotCooCoo/feat/save-pdf-custom-flattener
Save PDF: Custom… beside Flattener preset sets the flattener options the save uses
2026-11-19 14:59:41 +07:00
BFlat 5a07d30f73 Merge pull request #8476 from dotCooCoo/feat/reflect-tool-two-click-axis
Reflect tool: a second click reflects across the line through both points
2026-11-19 14:59:20 +07:00
BFlat e78c20a543 Merge pull request #8456 from dotCooCoo/feat/swatches-color-group-options
Swatches: Color Group Options renames the selected color group
2026-11-19 14:58:45 +07:00
BFlat 233a536341 Merge pull request #8378 from dotCooCoo/perf/appearance-written-set
Appearance: row edits look up written objects in a set
2026-11-19 14:57:57 +07:00
BFlat 6ccbf05651 Merge pull request #8361 from dotCooCoo/feat/control-bar-shape-widgets
Control bar: Hide Shape Widgets hides the selected live shapes' widgets
2026-11-19 14:57:37 +07:00
BFlat c9f742fc2c Merge pull request #8183 from dotCooCoo/feat/transform-show-on-shape-creation
Transform panel: Show on Shape Creation shows the panel after a shape is drawn
2026-11-19 14:56:18 +07:00
BFlat 4c1b27bc41 Merge pull request #8178 from dotCooCoo/feat/image-trace-split-view
Image Trace: Split View shows the source image and the result on either side of a divider
2026-11-19 14:56:07 +07:00
BFlat 8e55ffdddf Merge pull request #7229 from dotCooCoo/feat/kinsoku-sets
Type: Kinsoku Shori sets can be created, edited and chosen per paragraph
2026-11-19 14:54:38 +07:00
BFlat 4da9768637 Merge pull request #7996 from dotCooCoo/fix/i18n-psd-import-options-and-slices
i18n: PSD Import Options and the PSD layer and slice warnings are translated
2026-11-19 14:54:07 +07:00
BFlat e016f7cb28 Merge pull request #7981 from dotCooCoo/feat/tool-cards
Tools: General › Show Tool Cards shows what a tool does and what its keys do
2026-11-19 14:53:53 +07:00
BFlat df42e09ba5 Merge pull request #7733 from dotCooCoo/feat/color-profile-ask-prompts
Color Settings: Ask When Opening and Ask When Pasting prompt about profile mismatches
2026-11-19 14:52:30 +07:00
BFlat 408c94c0ed Merge pull request #7701 from dotCooCoo/feat/symbolism-options-method
Symbols: Symbolism Tools Options gain Method, pen pressure and the Sprayer and Sizer options
2026-11-19 14:52:13 +07:00
BFlat d77930b619 Merge pull request #7647 from dotCooCoo/feat/3d-classic-map-art
3D (Classic): Map Art maps symbols onto Extrude & Bevel and Revolve surfaces
2026-11-19 14:51:19 +07:00
BFlat a8a16041cd Merge pull request #7565 from dotCooCoo/feat/docinfo-font-details
Document Info: Fonts gives each font's type and number of uses
2026-11-19 14:49:29 +07:00
BFlat 49f5da65ae Merge pull request #7331 from dotCooCoo/feat/hpgl-options-dialog
HP-GL: Export As opens HP-GL Options for the version, pens, origin and path order
2026-11-19 14:48:03 +07:00
BFlat 3f0707e64f Merge pull request #7103 from dotCooCoo/feat/stylus-wheel
Brushes: an airbrush pen's stylus wheel varies brush size and width
2026-11-19 14:46:40 +07:00
yoriswind 0471818814 Merge current main while preserving PR #6713 2026-11-19 06:32:22 +00:00
yoriswind b21a218b21 Merge current main while preserving PR #7515 2026-11-19 06:30:20 +00: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
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
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
dotCooCoo 7d44690b52 Merge main into feat/retype-matching-fonts 2026-11-18 18:52:29 -08:00
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 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 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 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