Commit Graph
9871 Commits
Author SHA1 Message Date
FredAppsandautocraft-bot[bot] bfbc863cf4 Merge pull request #10327
Co-authored-by: autocraft-bot[bot] <354215646+autocraft-bot[bot]@users.noreply.github.com>
2026-12-06 04:54:50 +00:00
.CooCoo 7478e3f61e Merge pull request #11022 from dotCooCoo/feat/3d-raster-color-mode
3D and Materials: Raster Settings › Color makes the rendered image RGB, grayscale or bitmap
2026-12-05 20:54:50 -08:00
dotCooCoo 425c7a33df Dependencies: craft-libs pin to main, and the workarounds for #4938, #5281, #5381, #5410 and #5513 removed
Moves every craft-libs rev (Cargo.toml, Cargo.lock, apps/vectorcraft-web,
xtask pdf_deps) from 138ce9929e to craft-libs main 6b67abe4b3. The egui,
winit and acadrust revs match the ones that craft-libs rev pins.

- Canvas: the drag-session restart after a Removed cancel (resume_carry
  and CanvasCache::removed_press) is removed; craft-libs #5281 keeps the
  session running while the canvas is hidden for a pass.
- DXF export: blocks_compat is removed; group blocks are written through
  craft_dxf::drawing::Block, Drawing::blocks and Codes::insert
  (craft-libs #5381), so Drawing::blocks now holds them.
- DXF import: VectorCraft's copy of the REGION reader (import/acis.rs and
  the region helpers in reader.rs) is removed; regions are read with
  craft_dxf::acis (craft-libs #5513), capped at the import's element limit.
  The hex and size checks of the binary data are tested in craft-dxf.
- CGM import: the cgm feature is removed, so binary CGM files open and
  place in every build (craft-libs #5410). The reader's notes on unread
  fonts, appended text, continuous alignment, marker types and character
  sets now come back as warnings too. docs/mcp.md describes the import.
- Canvas: the anchor marks draw a mark's fill and edge as one shape and
  leave out other paths' handles that cannot reach the canvas, as
  BezierOverlay does since craft-libs #4938, so they keep painting what
  the overlay paints.
- Native files: craft-vectorcraft-format's VERSION is 5 (craft-libs
  #5366). Saves for version 4 keep placed documents, Color Halftone's Max
  Radius in pixels and Twist angles as before (new PLACED_SINCE), and only
  live stars become paths there (LIVE_STAR_SINCE). A version 4 file from
  0.21.0 or later still opens with its Twist angles as saved. Save As
  lists version 5, and the version option defaults to 5.
- Layers panel test: icons share packed atlas pages since craft-libs
  #4275, so the test tells icons apart by texture and atlas rectangle.
2026-12-05 19:59:01 -08:00
dotCooCoo f0031ebe25 Merge main into chore/craft-libs-pin-138ce99 2026-12-05 19:22:31 -08:00
.CooCoo 337d644214 Merge pull request #10869 from dotCooCoo/fix/dwg-replace-keeps-selection
DXF Import: a failed DWG Replace keeps the user's selection
2026-12-05 19:15:06 -08:00
.CooCoo 12f78e75d1 Merge pull request #10806 from yoriswind/codex/10799-freeform-point-eyedropper
Gradients: sample a color into a freeform point
2026-12-05 19:08:07 -08:00
.CooCoo 712bd08549 Merge pull request #10974 from dotCooCoo/feat/pict-export
PICT: Export As writes QuickDraw pictures
2026-12-05 18:45:59 -08:00
.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
Dylan M. Taylor 78b192e5f5 Pin craft-libs at 138ce992, which carries the shared vector kernel
craft-libs main now holds craft-geom, craft-pathops and craft-trace
(storytold/craft-libs#2260, RFC-0030 step 1). The pin moves first, as its
own change, so the cutover that deletes VectorCraft's copies only swaps
crates.

API changes since f9e5cecc, behaviour kept:
- craft-dxf's Drawing has block definitions; VectorCraft writes none.
- craft-cdr reads text as Object::Text and counts what a CMX read left out;
  CDR text stays left out under the existing unsupported-objects warning,
  as it was when the reader dropped it.
2026-12-05 21:07:11 -05:00
dotCooCoo 14f92a1fa1 DXF Import: a restored Objects on Path member keeps the paints
A restored selection loads its paints for new art only when the journal
records it with a selection command that loads them on replay. An
Objects on Path member, recorded as object.objectsOnPath.selectMember,
now keeps the paints as they are, as a symbol part already does.
2026-12-05 17:46:16 -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 d83fa66454 3D and Materials: Raster Settings › Color makes the rendered image RGB, grayscale or bitmap
The 3D effects' `render` object takes `colorModel` (`document`, the default,
`grayscale` or `bitmap`). Grayscale gives each pixel of the rendered image the
Rec. 709 luma of its color, and Bitmap makes it black or white, after the
background and with each pixel's transparency kept, as Effect › Rasterize does
with the same model ids. Edge pixels are mapped from their straight color
before the coverage is rounded. Grayscale and Bitmap images are stored as gray
PNGs, and the model is part of the rendered image's cache key.

Any other value is refused with an error and leaves the object and the undo
history unchanged. The setting is saved with the effect.

Render Settings › Raster Settings… gets a Color row (RGB, Grayscale, Bitmap).
It opens blank for a selection that holds different models, and OK sets the
picked model on every selected object in one undo step.

Docs: docs/three-d.md, docs/mcp.md, docs/target-app-parity.md, params text.
2026-12-05 16:24:16 -08:00
dotCooCoo 374176f3c6 DXF Import: a restore inherits after a defaults-only paint; a part keeps the paints
Restoring a selection now clears the marker a defaults-only paint left,
as every top-level command does, so new art takes the restored
selection's appearance live as it does when the journaled select.set
replays. A restored symbol part no longer loads its paints for new art,
as symbol.instance.selectPart, the step the journal records for it,
does not.
2026-12-05 16:01:45 -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
dotCooCoo d69995131f Merge main into feat/pict-export 2026-12-05 15:00:08 -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
dotCooCoo 8848ba21f3 DXF Import: a restored selection is journaled and loads its paints
When a failed DWG Replace gives the user's selection back in the active
document, the journal now records that selection (through the same steps
an interaction uses, in open undo groups too), so a recorded action
replays later commands on the restored objects. The paints for new art
load from the restored selection as they do after select.set, so the
next shape does not take the swapped object's paints.
2026-12-05 10:10:08 -08:00
dotCooCoo e261728b49 Merge main into feat/pict-export 2026-12-05 10:02:47 -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 be9e3cc116 Merge main into feat/pict-export 2026-12-05 09:17:38 -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 442845c121 Merge main into feat/pict-export 2026-12-05 08:54:26 -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