Commit Graph
855 Commits
Author SHA1 Message Date
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 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
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 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
yoriswind 0471818814 Merge current main while preserving PR #6713 2026-11-19 06:32:22 +00: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 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 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 c7d78a2dac File formats: open and place .cmx files
.cmx exchange files with 32-bit coordinates open and place as editable
art. vectorcraft-cdr reads the RIFF form CMX1, its header, the color,
pen, line type, dash, outline and arrowhead tables, and each page's
instructions in drawing order, into the drawing model the .cdr reader
uses, so the importer maps pages, layers, groups and curves with uniform
fills and outlines the same way. A layer that holds nothing is left out.
A page that gives no size of its own takes the size of the drawing's
bounds, which the page header stores, and is centered on them.

Text, images, rectangles, ellipses, clipping paths, fills other than
uniform ones and arrowheads are left out, and lenses are not applied;
the warnings name each kind, with rows in every complete catalog.
Big-endian files and files with 16-bit coordinates are refused with a
message. Layouts and their sources are rows R53 to R63 of
crates/cdr/PROVENANCE.md; tests use synthetic files only.
2026-11-18 15:52:44 -08:00
dotCooCoo 95ed13dd80 Color Settings: answer the review of the profile prompts
- An absolute-colorimetric conversion from CMYK starts from the source's
  absolute appearance.
- An assigned profile that was removed counts as the working space when
  copied colors are compared.
- Colors that can't convert are listed with convertible false, start on
  Preserve Numbers, and the dialog disables Convert for them.
- Paste on All Artboards leaves the backgrounds of copied artboards out of
  the question (clipboard.profileMismatch allArtboards).
- A converting paste into its own document keeps its image keys.
- An open answer is refused once Color Settings change the question; the
  dialog asks the new question, or opens by the policy.
- Files opened while a question is open ask their own questions in turn.
- OK on the paste question and on Swatch Conflict checks again where the
  paste runs and asks again when the question changed.
- docs/mcp.md and the command help describe these rules.
2026-11-18 15:42:03 -08:00
dotCooCoo 9754344712 Dimension tool: a dimension locked while another is placed is no longer a level
The engine test that runs commands while a linear dimension is placed now
also locks the other dimension, as well as hiding and deleting it, and
checks that no guide runs along its level.

docs/dimensions.md says that layers and groups count toward the 20,000
objects the tool reads for levels.
2026-11-18 14:52:47 -08:00
dotCooCoo c103a88649 Merge main into feat/cdr-import-all 2026-11-18 14:27:18 -08:00
dotCooCoo 9e61345342 Merge main into feat/color-profile-ask-prompts 2026-11-18 13:16:20 -08:00
dotCooCoo 2c16bb4c67 Merge main into fix/pen-rubber-band-close-join 2026-11-18 13:11:07 -08:00
dotCooCoo 38d9d45522 Merge branch 'fix/dimension-levels-linear' of github.com:dotCooCoo/vectorcraft into fix/dimension-levels-linear 2026-11-18 12:30:15 -08:00
dotCooCoo 9215d2080a Dimension tool: a dimension hidden while another is placed is no longer a level
While a linear dimension is placed with Smart Guides on, the tool reads
the lines of the other dimensions again when the document changes, so a
dimension a command hides, locks or deletes stops being a level, and one
shown again or grouped is a level again. The preview of the dimension
being placed is left out of the lines and out of the 20,000 objects the
tool reads.
2026-11-18 08:37:41 -08:00
dotCooCoo c1c2619146 Merge main into feat/cdr-import-all 2026-11-18 08:21:04 -08:00
dotCooCoo a0873e4bf1 Merge main into feat/smooth-bridge-many 2026-11-18 08:14:05 -08:00
dotCooCoo 4f89536718 Pen: the rubber band over the first anchor or another path's end is the segment a click adds
Over the path's first anchor, a click closes the path on that anchor; over
an end of another open path, it joins the two, and the segment arrives
along that end's own handle. The preview ended at the pointer and arrived
without a handle, so the segment moved by up to the pick tolerance at the
click and changed shape when the other end was smooth. The preview now
ends on the anchor the click uses, with that anchor's handle, and picks
the anchor at the pointer before snapping, in the order a press does.

Part of #8296.
2026-11-18 06:28:21 -08:00
dotCooCoo e3701d14b2 Merge main into feat/color-profile-ask-prompts 2026-11-18 06:03:19 -08:00
dotCooCoo 877fd21dca Merge main into feat/color-profile-ask-prompts 2026-11-18 06:03:13 -08:00
yoriswind 390203c35b 6582: resolve status documentation after the Blend fix merged 2026-11-18 05:13:11 -08:00
BFlat dce8a0c05e Merge pull request #7065 from yoriswind/codex/5179-blend-spine-redraw-bounds
Fix redraw bounds for blends following a curved spine
2026-11-18 19:58:54 +07:00
yoriswind 91898148d6 6582: preserve Eraser behavior with current upstream documentation 2026-11-18 04:55:12 -08:00
yoriswind 1d28f45f58 6582: retain fitted gradients beneath enclosing geometry effects 2026-11-18 04:39:25 -08:00
yoriswind c076b85fcf Use rendered clip paint to verify witness setup 2026-11-18 04:04:44 -08:00
yoriswind 242695b1a1 Add fixed pinning-only paint preservation witnesses 2026-11-18 03:28:38 -08:00
BFlat 91c6a702c6 Merge pull request #8535 from dotCooCoo/fix/dimension-line-level
Dimension tool: a dimension line placed beside another lands on its level
2026-11-18 18:25:01 +07:00
yoriswind 56b4fcb8c6 Fix redraw bounds for rotated Blend effects
Measure effect-bearing Align to Path content after spine placement, retaining
the conservative envelope and covering damage containment with original
software-rendered move and Undo controls.
2026-11-18 03:19:27 -08:00
yoriswind 3f09579dcd Merge upstream main to resolve PR #6601 documentation conflicts 2026-11-18 02:41:17 -08:00
dotCooCoo 18a7f7b84b Dimension tool: a dimension of the same points lines up too
The level a new dimension line lands on now comes from the dimension
lines in the document before the dimension's first preview, so its own
preview is never a level. A dimension drawn earlier between the same two
points now acts as a level as well; before, every dimension of those
points was skipped.

- Of two lines on one level, a line the pointer lies across wins over a
  line whose end is nearer the pointer.
- A dropped press while placing removes the level guide with the
  preview.
- The reach uses the Smart Guides snapping tolerance helper.
- docs/dimensions.md says the rule applies to a dimension anywhere in
  the document.
- The tests are split by behavior, with new tests for the same points,
  pointer moves in small steps, the guide after a dropped press and
  with Alignment Guides off, and the tie-break.
2026-11-18 01:40:21 -08:00
bflatastic ca187dfcbf Merge main into #8424 2026-11-18 16:25:39 +07:00
yoriswind a9b4015e40 Merge pinned current main for the confirmed #7065 bounds repair 2026-11-18 00:37:17 -08:00
BFlat abb2503bc9 Merge pull request #8536 from dotCooCoo/fix/dimension-arrow-previews
Dimension: Arrow Style shows each style's arrowhead drawn before its name
2026-11-18 15:23:50 +07:00
bflatastic 6c337442d9 Merge main into #8424 2026-11-18 14:04:27 +07:00
BFlat ada472586e Merge pull request #8135 from dotCooCoo/fix/confined-exporter-and-placed-pdf-paths
MCP: confined exporter plug-ins and unreadable linked files keep paths outside the read roots
2026-11-18 13:53:34 +07: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
BFlat 20d8217312 Merge pull request #7950 from dotCooCoo/feat/smooth-bridge
Path Precision Tools: Smooth Bridge joins two circles with concave arcs
2026-11-18 13:12:40 +07:00
BFlat 3b25ff3945 Merge pull request #6697 from yoriswind/codex/6625-visible-fill-selection
Fix path interior selection across enabled fill rows
2026-11-18 13:01:16 +07:00
BFlat 10b2d14d1b Merge pull request #8342 from dotCooCoo/fix/issue-1954
Fix #1954: PDF/X CMYK in the output intent's profile is written as DeviceCMYK
2026-11-18 12:57:50 +07:00
BFlat c0ec570d0f Merge pull request #8371 from dotCooCoo/feat/transform-line-properties
Transform: a live line shows Line Properties with Line Length and Line Angle
2026-11-18 12:57:04 +07:00
dotCooCoo dc92781181 Part of #5590: Dimension tool lines line up with dimensions already drawn
A linear dimension placed next to another one had its line exactly where
the pointer was. Chained dimensions only lined up when the pointer hit
the other line's level exactly, which at a normal zoom it rarely does.

- With Smart Guides on, a linear dimension placed with its line within
  the Smart Guides snapping tolerance of the level of a parallel line of
  a visible, unlocked linear dimension already drawn has its line on
  that level. This applies to two clicked points and to a segment
  dragged out.
- With Alignment Guides on, a guide runs along that level across both
  lines while the dimension is placed.
- Smart Guides off, a level further off, a locked dimension or one that
  is not parallel leaves the line where the pointer puts it.

Docs: docs/dimensions.md, docs/target-app-parity.md.
2026-11-17 21:33:30 -08:00
dotCooCoo dace34d9a8 Merge main into feat/cdr-import-all 2026-11-17 20:24:50 -08:00
dotCooCoo 5945e6e12a Merge main into fix/confined-exporter-and-placed-pdf-paths 2026-11-17 20:13:03 -08:00
dotCooCoo d89f6b72c4 Merge main into feat/smooth-bridge-many 2026-11-17 19:59:55 -08:00
dotCooCoo da061c6dc8 Merge main into fix/confined-exporter-and-placed-pdf-paths 2026-11-17 19:33:39 -08:00
BFlat 3dfd692304 Merge pull request #8078 from dotCooCoo/feat/text-import-character-sets
Text Import Options: Character Set offers the other documented encodings
2026-11-18 10:31:10 +07:00
BFlat 3a9bb87022 Merge pull request #7925 from dotCooCoo/feat/brush-options-of-selected-object
Brushes: Options of Selected Object changes one brushed path's brush settings without changing the brush
2026-11-18 10:18:41 +07:00
BFlat 1380e9c480 Merge pull request #7675 from dotCooCoo/feat/unit-converter
Unit Converter: one length in every unit, read from and applied to the selection
2026-11-18 10:16:26 +07:00