Commit Graph
12897 Commits
Author SHA1 Message Date
.CooCoo 7488ea4d82 Merge pull request #11017 from dotCooCoo/feat/3d-rendered-paints
3D and Materials: rendered 3D draws see-through and blended solid colors in their opacity and blending mode
2026-12-06 00:56:50 -08:00
.CooCoo b591f4fab0 Merge pull request #11039 from dotCooCoo/fix/open-by-content-text-names
Docs: PICT and CGM open by content except under a .txt name
2026-12-06 00:56:10 -08:00
dotCooCoo e6741d225f Docs: a picture whose application data starts with a PDF header is read as PDF
Format detection checks PDF, PostScript and the other leading signatures before
the PICT version opcodes, so such a file goes to that format's reader under any
name. File > Place still sends a .txt name to the text importer.
2026-12-05 21:56:44 -08:00
dotCooCoo 9421481233 3D: docs qualify rendered images at 0% opacity, the depth buffer and Bitmap
A solid at 0% opacity draws no image, and in Extrude & Bevel and Inflate
its faces still count toward the object's face limit. Only one image has a
depth buffer; separate images of see-through solids draw in order. With a
white background and several images, each image takes the Bitmap
transparent rule over the shared white rectangle.
2026-12-05 21:43:29 -08:00
dotCooCoo 6c5ebca672 Docs: PICT and CGM open by content except under a .txt name
docs/mcp.md said a version 2 PICT and a binary CGM open by their content
under any name. A file whose name ends in .txt goes to the text importer
first (place::text_document and text_story check the .txt extension
before fileio::detect runs), so such a file does not open as a picture.
The open_file row and the PICT and CGM import sections now name that
exception.
2026-12-05 21:31:22 -08:00
dotCooCoo 225db3568d Merge main into fix/rotate-reference-point-drag 2026-12-05 21:24:05 -08:00
dotCooCoo 1b38f8cf7f Merge main into feat/3d-rendered-paints 2026-12-05 21:08:23 -08: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
.CooCoo 230089b371 Merge pull request #11027 from dotCooCoo/chore/craft-libs-pin-6b67abe
Dependencies: craft-libs pin to main, and the workarounds for #4938, #5281, #5381, #5410 and #5513 removed
2026-12-05 20:26:04 -08:00
dotCooCoo 8e5b6f86f0 Merge main into fix/rotate-reference-point-drag 2026-12-05 20:06:03 -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 6954cc6b37 Fix #11020: dragging the transform tools' reference point moves it
With the Rotate, Reflect, Scale or Shear tool, a drag that started on the
reference point transformed the selection about that same point, so there
was no way to drag the point somewhere else. A press within 6 px of the
point now drags the point itself: the pointer shows the move cursor over
it, the point snaps as a drawn point does (the selection's own anchors and
center included, then Smart Guides, ruler guides, the grid or pixels), and
the release sets it there. The drag changes nothing in the document and
records no undo step; Escape leaves the point where it was. A Reflect axis
waiting from the old point is dropped, as a clicked point drops it. The
next drag away from the point transforms about the moved point.
2026-12-05 19:39:20 -08:00
.CooCoo 6123cd0e10 Merge pull request #11004 from dotCooCoo/fix/swatch-strip-context-menu
Swatches: Shift+F10, the Menu key or a screen reader sets the stroke from a Swatch Strip chip
2026-12-05 19:35:22 -08:00
dotCooCoo b7cd610904 Docs: qualify when rendered 3D draws a shadow plane and what a 0% solid changes
The shadow plane needs Shading on, a light above 0% intensity and the
widened shadow bounds on the plane, and a plane image counts toward the
16-image limit even when it shows no shadow. A 0% opacity solid stays in
the shared bounds the projection uses, so it can change the image's size.
2026-12-05 19:14:54 -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 58f7b5cf99 Merge pull request #10498 from Terra854/fix/ai-pattern-symbol-scaling-10477
AI export: retain symbol patterns and scale tile stroke geometry
2026-12-05 19:07:45 -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
dotCooCoo a4b72b19ae Docs: 3D shadow plane conditions and per-effect image limits
The shadow plane for an effect on one fill or stroke draws only with
Shading on and a light that casts a shadow. Each fill's or stroke's
effect counts its own images and pixel limit.
2026-12-05 18:27:46 -08:00
dotCooCoo 3551fa0e7c 3D and Materials: Bitmap on a transparent background makes black and transparent pixels
With Background set to Transparent, the 3D rendered image's Bitmap color
model now makes each pixel opaque black or fully transparent: a dark pixel
at least half covered is black, and a light pixel or one less than half
covered is transparent. Before, white pixels stayed white and edge pixels
kept partial coverage. With a white background each pixel is still black
or white.

`RENDER_COLOR_MODELS` is exported from the effects crate beside
`RENDER_BACKGROUNDS` and `RENDER_QUALITIES`.

Docs: docs/three-d.md, docs/mcp.md, docs/target-app-parity.md, params text.
2026-12-05 17:59:49 -08:00
dotCooCoo 6e76ee0d74 Docs: count every built-in brush library
docs/mcp.md names all twenty-one built-in libraries, adding Paint, Ornamental, Image Brush, Artistic Brushes and Vector Packs; the Strokes rows count twenty-one; the Impact Bursts bullet drops a brush length its art does not share.
2026-12-05 17:07:46 -08:00
dotCooCoo 9f6e817063 Swatches: two swatches with one name keep a Swatch Strip chip each
Each chip's control was keyed by its document and the paint it sends,
so two swatches with the same name (which an opened file can hold) gave
two chips one control, sharing hover, press, focus and one accessibility
node. Chips that send the same paint are now numbered in list order, so
each keeps a control of its own; distinct swatches keep their keys.

docs/control-protocol.md now says the Menu key on a focused chip works
off macOS only.
2026-12-05 16:47:26 -08:00
dotCooCoo 3f0606b3e7 Docs: list Impact Bursts in the brush library counts
docs/mcp.md names Impact Bursts and its six brushes with id impact-bursts, and the Dry Media brushes go back to Dry Media; the Strokes rows count sixteen generated libraries; an evidence bullet describes the library. The gaps.md status line keeps main's text.
2026-12-05 16:46:47 -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 78a6c7460d PICT: warn when a brushed stroke's blending mode is left out
Scene::stroke returned from the brush branch before it checked the stroke's
blending mode, so a brushed stroke with Multiply lost its blend in WMF, EMF
and PICT output without the blending warning. The check now runs first.

docs/mcp.md: name the output files for one and several artboards, the
visible-art frame limit, and when oversized fills are split or thinned.
docs/control-protocol.md: Open and Place also read .pct, .pic and .pict.
2026-12-05 16:08:31 -08:00
dotCooCoo 8235762c4c Merge main into train/carry10596 2026-12-05 15:30:07 -08:00
dotCooCoo 15949962fb Swatches: Shift+F10, the Menu key or a screen reader sets the stroke from a Swatch Strip chip
A right-click or an Alt-click on a Swatch Strip chip sets the stroke, but
keyboard and screen-reader users had no way to do the same. The strip now
reads the swatch's context request (SwatchOutput::context), so Shift+F10,
or the Menu key off macOS, on the focused chip sets the stroke as a
right-click does. Each chip offers AccessKit's ShowContextMenu action,
which sets the stroke too.

The swatch's request also counts any right-button release over it,
wherever the press began. The strip keeps its own press tracking for
the pointer, so a right-drag from elsewhere, a press on a layer over the
chip or a release in another document still sets nothing, and it takes
the context request only in a frame without a right-button release.

Each chip's control is now keyed by its document and the paint it sends
rather than by its place in the list, so a click whose press lands on one
swatch sets that swatch even when the list reorders before the release,
and a release after the active document changes sets nothing there.

The panel test harness gains offers_context_menu and show_context_menu
for a control's AccessKit context menu action.
2026-12-05 15:27:19 -08:00
dotCooCoo 7d1c186423 Merge main into train/carry10596 2026-12-05 15:07:54 -08:00
dotCooCoo d69995131f Merge main into feat/pict-export 2026-12-05 15:00:08 -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
.CooCoo e38ca45bac Merge pull request #10965 from dotCooCoo/fix/sonarcloud-newest-main
CI: analyze main in SonarCloud only at the nightly's commit
2026-12-05 14:48:43 -08:00
.CooCoo 7da5c39148 Merge pull request #10930 from dotCooCoo/fix/dxf-scaled-block-dashes
DXF/DWG import: scaled block inserts scale their dashes and polyline widths
2026-12-05 14:39:47 -08:00
dotCooCoo f033a17bd0 3D and Materials: rendered 3D draws see-through and blended solid colors in their opacity and blending mode
Render Settings > Rendered drew the shaded faces instead of the image whenever
a solid's fill or stroke was below 100% opacity or in a blending mode other
than Normal. Such a solid now draws its own image in that opacity and blending
mode, lit and shadowed as in the single image, in the order of the fills and
strokes; with Shadows on, the shadow plane draws first, one image for each run
of solids in the same opacity and blending mode. An effect on one fill or
stroke draws its shadow plane behind the object's other fills and strokes, and
with background white one white rectangle goes behind its images. A solid at
0% opacity draws nothing, casts no shadow and is left out of the image's size
and of the rendered mesh budget. The images share the pixel and work limits;
past 16 images the shaded faces are drawn.

Revolve on a group still draws its shaded faces when a member's surface is
see-through or blended, now with its own warning. Gradients, patterns,
mapped graphics and masked members keep the shaded faces.
2026-12-05 14:27:44 -08:00
Terra854 0654b4ce4a Merge branch 'main' into fix/ai-pattern-symbol-scaling-10477 2026-12-06 06:16:35 +08:00
.CooCoo 5ac4a390a9 Merge pull request #10968 from dotCooCoo/feat/color-palette-strip
Swatches: a Swatch Strip panel of one-click color chips that docks along any edge
2026-12-05 14:14:55 -08:00
.CooCoo 29927c6df2 Merge pull request #10975 from dotCooCoo/fix/ci-lint-cache
CI: build the tests without bundled fonts in the build job, not the lint leg
2026-12-05 14:09:21 -08:00
Terra854 a7e541e3f2 Merge branch 'main' into fix/ai-pattern-symbol-scaling-10477 2026-12-06 05:28:05 +08:00
dotCooCoo c914f6963d DXF/DWG import: keep symbols apart only where their art differs
A block's symbol was looked up by its scale alone, so a placement whose
art the nesting limit cut short, or that left out a block placing one of
its ancestors, could hand that shortened art to a complete placement at
the same scale. The symbol key now also holds the depth where the
block's art reaches the nesting limit (counted under the ancestors it
places) and the ancestors it places within that limit.

The scale scan reuses a "yes" only while none of the blocks it went
into to reach the dashes is an ancestor, and keeps up to four of them;
it checks anonymous blocks with everything they inherit, as they are
drawn. Inserts on hidden layers are not followed. The new shape checks
have an import-wide work budget and a memory budget.
2026-12-05 13:15:01 -08:00
dotCooCoo a7a5bfff70 Merge main into feat/width-profile-reorder 2026-12-05 13:04:00 -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
.CooCoo c47b079671 Merge pull request #10964 from dotCooCoo/train/carry10603
i18n: Gujarati status and error messages, and the remaining interface strings (carries #10603)
2026-12-05 11:55:04 -08:00
.CooCoo 3451868b24 Merge pull request #10967 from dotCooCoo/fix/script-picker-document-cmyk
Color Picker: a script's picker shows color in its own document's profiles
2026-12-05 11:34: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 f55d3c6643 Merge pull request #10973 from dotCooCoo/train/carry10920
Stroke: the Profile drop-down ends in Add, Delete and Reset Profiles
2026-12-05 11:14:57 -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
dotCooCoo e261728b49 Merge main into feat/pict-export 2026-12-05 10:02:47 -08:00
dotCooCoo b7604a54e7 CI: build the tests without bundled fonts in the build job, not the lint leg
The lint leg's dependency cache keeps no compiled workspace crates, so on
a pull request `cargo test -p vectorcraft-ui-egui --no-default-features
--test install_fonts` rebuilt every workspace crate without the bundled
fonts: 35 of the lint leg's 60 minutes, and the longest leg of the run.

`cargo xtask ci` splits its no-bundled-fonts step in two. The
`no-bundled-fonts` step (the `cargo tree` checks and the clippy run
without default features) stays in `cargo xtask ci checks`. The new
`no-bundled-fonts-tests` step runs the two tests, and the new
`cargo xtask ci after-archive` runs it after the doctests in the gate's
build job, whose rolling cache entry keeps the workspace crates. The
tests' builds record their units in CRAFT_CACHE_UNITS, so the cache trim
keeps the crates built without the fonts.
2026-12-05 09:53:20 -08:00
dotCooCoo 6a2231e5bb Merge main into train/carry10596 2026-12-05 09:36:54 -08:00
dotCooCoo c7e6cd5487 Color Picker: a script's picker uses its document's CMYK profile in RGB documents too
The CMYK fields of a script's picker now convert through the CMYK profile
of the script's document whenever one is given, not only in a CMYK
document, matching the gamut warning. An RGB color opens through the
active RGB profile, which the picker's RGB fields read its channel values
in, so the opening swatch and the fields agree. docs/mcp.md names the
profiles the picker uses.
2026-12-05 09:20:58 -08:00