Commit Graph
9846 Commits
Author SHA1 Message Date
.CooCoo a489eb1bf7 Merge pull request #11013 from dotCooCoo/train/carry6642
Brushes: built-in Impact Bursts brush library
2026-12-05 18:34:52 -08:00
dotCooCoo d3ac629e67 Brushes: keep Impact Bursts with the other library builders
The builder sat under the commands section header with a doubled blank line; it now ends the library builders, before that header.
2026-12-05 16:46:46 -08:00
dotCooCoo 5d92e04350 Tests: move the Impact Bursts checks into the brush names and counts test
The assertions sat after the last test function, outside any function, so the engine tests did not compile.
2026-12-05 16:43:44 -08:00
dotCooCoo 3a00fe61f2 Merge main into train/carry6642 2026-12-05 16:43:07 -08:00
dotCooCoo 8235762c4c Merge main into train/carry10596 2026-12-05 15:30:07 -08:00
dotCooCoo 7d1c186423 Merge main into train/carry10596 2026-12-05 15:07:54 -08:00
.CooCoo 4219586a9e Merge pull request #10985 from dotCooCoo/fix/main-freebsd-engine-tests
Main: FreeBSD engine tests clash in one process (shared events plug-ins, shared fixture folder)
2026-12-05 15:04:10 -08:00
.CooCoo 45222a5d52 Merge pull request #10955 from dotCooCoo/fix/stroke-weight-draft-target
Stroke: drop an unfinished value when the stroke it edits changes
2026-12-05 14:54:59 -08:00
.CooCoo 629a706598 Merge pull request #10994 from dotCooCoo/fix/arrowhead-bounds-and-fade-seams
Canvas: arrowhead bounds follow the painted head, and the pasteboard fade has no seams
2026-12-05 14:52:45 -08:00
.CooCoo 06b6c484e9 Merge pull request #10990 from dotCooCoo/feat/width-profile-reorder
Width profiles: reorder the Profile list
2026-12-05 14:52:31 -08:00
dotCooCoo 82dd6df8b6 Width profiles: deleting a profile clears an order that is back to the default
Deleting a saved profile kept only the stored ids, so a profile saved after
the last move was missing from the order passed to set_profile_order and the
default order stayed stored. Delete now builds the whole list as it shows and
stores it only when it differs from the default.
2026-12-05 14:36:00 -08:00
dotCooCooandFredApps 777e0be488 Canvas: arrowhead bounds follow the painted head, and the pasteboard fade has no seams
The visual bounds of a stroke with arrowheads added a square around each
end point, as wide as the head's reach. With the arrowhead's align set to
"Tip on the end point", the head lies back along the path, so the
selection box reached past the tip by the head's whole length, leaving
empty room in front of the arrow. The bounds now take the box of each
head's outline from the same geometry the canvas paints, so the box ends
at the tip. The arrowhead geometry moves from vectorcraft-effects to
vectorcraft-doc so that the bounds code can use it; vectorcraft-effects
re-exports the same items.

The fade outside the artboards filled each of its pieces on its own, and
each faded out along the edges it shares with the next, so thin lighter
lines ran from the artboard's corners to the edges of the canvas. The
pieces are now filled as one unfeathered mesh (Draw::data_fill_tiled).

Fixes #10221
Fixes #10225

Co-authored-by: FredApps <[email protected]>
2026-12-05 13:46:17 -08:00
dotCooCoo 1ecc70f959 Merge main into fix/stroke-weight-draft-target 2026-12-05 13:17:37 -08:00
dotCooCooanderolkarino 7eb1280a7f Width profiles: reorder the Profile list
Rows of the Profile drop-down below Uniform can be dragged to a new
place, and stroke.widthProfile.move {name, to} does the same from a
script. Uniform stays first. The order is kept with the preferences
(widthProfileOrder) and is stored only while it differs from the
default one.

- move takes a profile's id or its label, and refuses Uniform, an
  unknown name and a `to` past the last row.
- Moving a profile to the place it already has changes nothing.
- A deleted saved profile leaves the order, so one saved later under
  the same name goes to the end of the list.
- Reset Profiles also puts the built-ins back in their first order,
  and is enabled when only the order changed.

Ported from the reordering part of #10920.

Co-authored-by: erolkarino <[email protected]>
2026-12-05 13:03:50 -08:00
dotCooCoo 356e07b44c Main: engine tests that share process-wide state run apart under cargo test
FreeBSD CI runs `cargo test --workspace`, which runs a crate's tests as
threads of one process; Linux CI runs nextest, one process per test. Four
vectorcraft-engine tests failed only in the shared process:

- Events plug-ins are installed in the process-wide registry, so every
  installed one reacts to every session's changes and spends handlers of
  each session's frame budget (MAX_FRAME_HANDLERS, 4). With other tests'
  plug-ins installed at the same time, the plug-in a test counts on was
  left for a later frame and its handler never ran.
  a_plugin_installed_before_the_delivery_gets_no_earlier_events,
  a_save_reaches_the_plugin_when_its_document_closes_first and
  background_installs_during_a_drag_record_the_settled_baseline failed
  this way. The tests that install events plug-ins now hold a test lock
  (hold_event_plugins) while their session lives; sessions on one thread
  share it.
- a_stale_placed_item_is_not_a_relative_object and
  a_stale_placed_item_is_refused_as_the_relative_object_of_move used the
  same fixture folder name, and each test empties its folder first, so
  one deleted the other's a.png. The second one now uses its own folder.

`cargo test -p vectorcraft-engine --lib` on Linux reproduces all of them
before this change.
2026-12-05 12:30:58 -08:00
dotCooCoo cb5ec21878 Merge main into chore/craft-libs-pin-5489
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	apps/vectorcraft-web/Cargo.toml
#	xtask/src/pdf_deps.rs
2026-12-05 11:45:52 -08:00
.CooCoo c22dc54e54 Merge pull request #10874 from dotCooCoo/feat/open-text-documents
Open: text, RTF and Word files open as a new document
2026-12-05 11:16:01 -08:00
.CooCoo 57262ba325 Merge pull request #10588 from ruchirguitar/feat/language-packs-ui
Language packs: a Preferences page to install them and a bar that offers a missing one
2026-12-05 10:55:19 -08:00
.CooCoo 68d102561e Merge pull request #10970 from dotCooCoo/fix/live-shape-draft-target
Transform: an unfinished live shape value stays with the shape it was typed for
2026-12-05 10:34:53 -08:00
dotCooCoo 07ba517a0d Merge main into fix/stroke-weight-draft-target 2026-12-05 10:23:53 -08:00
.CooCoo d847eef951 Merge pull request #10966 from dotCooCoo/fix/clip-self-crossing-area
Scripting: a self-crossing clip path counts as enclosing an area
2026-12-05 09:54:59 -08:00
.CooCoo 5a11dde8bc Merge pull request #10833 from ruchirguitar/fix/type-menu-conversion-10830
Type menu: show conversions for the selected text kinds
2026-12-05 09:39:40 -08:00
dotCooCoo 6a2231e5bb Merge main into train/carry10596 2026-12-05 09:36:54 -08:00
dotCooCoo 17719029b6 Merge main into fix/stroke-weight-draft-target 2026-12-05 09:18:36 -08:00
dotCooCoo 5d69721b42 Open: refuse a truncated RTF file, wait for other dialogs
File > Open refuses an RTF file that ends inside a group as damaged
instead of opening the text read before the end; File > Place still
places that text. Binary data and bytes after the document's closing
brace are skipped, as the reader skips them.

Text Import Options for a file File > Open asks about now waits while
any dialog is open, as Missing Fonts does, so the two never show at
once.

The File > Open filter test uses the extensions and formats this build
reads, so it holds where no DWG decoder is built in.
2026-12-05 09:12:33 -08:00
.CooCoo 71c3002af4 Merge pull request #8817 from Hassan1305/fix-8753-draw-inside-stroke
Draw Inside: keep the object drawn into as the clipping path, with its stroke
2026-12-05 09:11:36 -08:00
dotCooCoo 2743fa338d Merge main into chore/craft-libs-pin-5489
# Conflicts:
#	Cargo.toml
2026-12-05 09:08:16 -08:00
dotCooCoo d4e73489ef Dependencies: craft-libs pin to main, with the opacity and edit-target workarounds removed
Every craft-libs rev moves from 4f3e34d0dd, the head of craft-libs#5489, to craft-libs main.
The egui and winit revs are the ones that craft-libs rev pins, unchanged.

- Opacity fields (Control bar, Color Wheel, Gradient) show the stored fraction times 100 again.
  craft-libs#5466 makes the number field step on from a value such as 50.999999 %, so
  panels::shown_percent is removed.
- The Blend Options Ramp and Shift sliders, the Image Trace rows and the Divider field use
  SliderField::edit_target (craft-libs#5024) in place of the id-salt workarounds. A value typed
  for one object and not yet committed is still dropped when another is selected.
- CDR import: craft-libs now reads bitmaps as their own object kind. They are not placed; the
  warnings name them with the other objects not read, and a PowerClip frame that clips only a
  bitmap is named as a frame that opened empty.
2026-12-05 09:07:54 -08:00
dotCooCoo 47421a1ef2 Merge main into train/carry10596 2026-12-05 08:48:58 -08:00
dotCooCoo cf429ac1d8 Locale: a text resolution uses one digit set, exponent included
`document.rasterEffectsSettings` read `"१e2"` and `"१e+2"` as 100 ppi:
`ascii_digits` treats `e` and `+` as the end of a number, so each side
could use its own digit set. The resolution now goes through
`vectorcraft_doc::ascii_digits_one_number`, which requires one digit set
for the whole value. `"१e२"` still reads as 100, and `"1e२"`, `"१e2"`
and `"१e+2"` are refused.
2026-12-05 08:48:58 -08:00
.CooCoo b143faa667 Merge pull request #10365 from yoriswind/codex/5233-graph-command-availability
Graph: enable editing commands only for a selected graph
2026-12-05 08:29:40 -08:00
dotCooCoo fc84b657d3 Scripting: a self-crossing clip path counts as enclosing an area
The clip-outline check behind `pathItems.removeAll()` measured each
subpath by its signed area. The loops of a figure eight turn opposite
ways and cancel, so the check treated the outline as enclosing nothing,
although both fill rules fill it. A subpath whose signed area is within
roundoff of zero is now measured by the area it fills under nonzero.
A subpath whose points all lie on one line still encloses nothing.
2026-12-05 08:26:28 -08:00
dotCooCoo 2e58bf49f7 Merge main into fix/live-shape-draft-target 2026-12-05 07:59:51 -08:00
.CooCoo 72e746543e Merge pull request #10870 from dotCooCoo/fix/dwg-export
DWG: export writes the DXF drawing as DWG 2000 to 2018
2026-12-05 07:49:06 -08:00
.CooCoo 485611102e Merge pull request #10961 from dotCooCoo/fix/preview-place-runs-outside
Plug-ins: a file placed during an add-on preview survives Cancel
2026-12-05 07:39:24 -08:00
.CooCoo 48c7b50394 Merge pull request #10942 from dotCooCoo/fix/live-corners-anchor-add-delete
Live Corners: adding or removing an anchor keeps the corners live
2026-12-05 07:34:48 -08:00
dotCooCoo cb45500f1f Merge main into fix/dwg-export 2026-12-05 07:12:45 -08:00
dotCooCoo 1889f48ccd Open: a PDF file named .txt opens as a PDF
A .txt, .rtf, .docx or .doc file that starts with a PDF header (%PDF-
and a version such as 1.7) or an Affinity signature opens as that
format again, as it did before File > Open read text documents, and
File > Open asks no Text Import Options for it. A plain text note that
only starts with "%PDF" or "<svg" still opens as text.

Docs: docs/mcp.md (open_file), open_file's description.
2026-12-05 07:07:21 -08:00
dotCooCoo 0a0ebb5279 Plug-ins: a file placed during an add-on preview survives Cancel
With an add-on dialog previewing (Arrange in Grid, for example),
File > Place ran inside the preview's interaction, because every
`file.*` command other than `file.documentColorMode` was treated as one
that reads the drawing on show. The placed art went into the preview
document with no undo step of its own, and Cancel removed it.

`file.place` now runs on the document without the preview, as other
edits do: it records its own undo step and stays after Cancel and OK.
Save, Export, Copy and the other `file.*` commands still act on the
drawing as the preview shows it.

Docs: docs/mcp.md (undo/redo row).
2026-12-05 07:03:59 -08:00
.CooCoo 971bc00f8d Merge pull request #10904 from dotCooCoo/fix/print-bitmap-shared-grid
Print: Print as Bitmap prints at 72 ppi when the raster effects resolution is not a number
2026-12-05 07:03:51 -08:00
dotCooCoo f7c14f635b Merge main into fix/dwg-export 2026-12-05 07:03:46 -08:00
dotCooCoo 211b57e712 Merge main into train/carry10596 2026-12-05 07:00:18 -08:00
.CooCoo b1f9008704 Merge pull request #10124 from dotCooCoo/feat/screen-print-marks
Color Effects: Create Screen Print Marks draws registration targets and ink lines
2026-12-05 06:56:26 -08:00
dotCooCoo d327a20efd Locale: raster resolution and Export for Screens sizes read Unicode digits
document.rasterEffectsSettings' text resolution ("300 ppi") and
ScreenSize::parse ("2x", "100w", "144ppi") read their numbers with
str::parse and an ASCII-only check, so "३०० ppi" and "२x" were refused
while number fields read them. Both now convert digits with
vectorcraft_doc::ascii_digits, now public, before their own grammar and
range checks; one number mixing digit sets is still refused.
2026-12-05 06:54:48 -08:00
.CooCoo 7aefbb8cee Merge pull request #9060 from dotCooCoo/feat/scripts-api-d10-print-options
Scripts: Document.print prints to a file with PrintOptions and its option classes
2026-12-05 06:52:50 -08:00
.CooCoo dbf59eded6 Merge pull request #10883 from dotCooCoo/feat/cgm-open-place
File formats: CGM files open and place
2026-12-05 06:50:37 -08:00
.CooCoo e58d945341 Merge pull request #10638 from dotCooCoo/fix/retrace-keeps-note-and-tags
Image Trace: tracing again keeps the tracing's note and tags
2026-12-05 06:41:34 -08:00
.CooCoo 5e108fd768 Merge pull request #9059 from dotCooCoo/feat/scripts-api-d11-perspective-presets
Scripts: documents show, hide and set their perspective grid, and app gives preset settings
2026-12-05 06:34:26 -08:00
dotCooCoo 70134a5719 Merge main into fix/print-bitmap-shared-grid 2026-12-05 06:29:43 -08:00
dotCooCoo 9706d36bc6 Merge main into feat/scripts-api-d10-print-options 2026-12-05 06:19:46 -08:00