Commit Graph
488 Commits
Author SHA1 Message Date
BFlat 9daf4163eb Merge pull request #10568 from ruchirguitar/fix/web-served-fonts
Web: the site publishes the interface's served fonts under fonts/ui/
2026-12-03 23:14:15 +07:00
.CooCoo 7a14274d56 Merge pull request #10211 from dotCooCoo/feat/vector-3d-materials
3D: Roughness and Metallic on the Materials tab shade and export the surface
2026-12-03 07:21:12 -08:00
.CooCoo 79fdfedfb5 Merge pull request #9075 from dotCooCoo/feat/scripts-api-d8c-rasterize-capture
Scripts: Document.rasterize and Document.imageCapture with their option classes
2026-12-03 07:14:28 -08:00
ruchirguitar e2e4b3b917 xtask: web-fonts writes its scratch table in a private tempfile folder 2026-12-03 14:25:33 +05:30
dotCooCoo 5e68ecd7c8 macOS: closing Preferences no longer crashes on Macs with a Touch Bar
Clicking OK or Cancel in Preferences ended the app with an uncaught
NSRangeException from -[_NSTouchBarFinderObservation invalidate]
whenever the Touch Bar server runs (any Mac with a Touch Bar). When a
window closes, accesskit_macos 0.27.1 put the content view's original
class back, which removed the key-value observing subclass AppKit's
Touch Bar support had installed on the view. AppKit then failed to
remove its observer.

accesskit_macos 0.27.2 leaves the class alone when key-value observing
has subclassed the view (AccessKit/accesskit#835). Cargo.lock moves to
it, with accesskit 0.25.2 and accesskit_consumer 0.39.2, which it
requires.

Fixes #10473
2026-12-02 23:39:52 -08:00
dotCooCoo 14e8959bc0 Scripts: tighten rasterize clip bounds and imageCapture destination checks
- object.rasterize and Document.rasterize refuse clipBounds that reach
  none of the selected objects' own bounds, including a rectangle in the
  gap between two of them, instead of replacing the art with a
  background-only image.
- imageCapture checks its destination again on every write the export
  makes and as the file is committed, so a destination that becomes a
  link to an open document or a linked file while the art renders is
  refused.
- imageCapture refuses a destination whose real path is not valid UTF-8
  instead of writing under a name with its bytes replaced.
- A missing linked file's name in the other Unicode normalization form
  counts as the linked file in folders that ignore the form (macOS, and
  casefolded folders on Linux).
- The hard-link tests skip on volumes without hard links.
- docs/mcp.md: imageCapture rounds clip dimensions to the nearest pixel;
  rasterize rounds fractional dimensions up.
2026-12-02 22:19:16 -08:00
ruchirguitar dd9f8e6d10 Web: the site publishes the interface's served fonts under fonts/ui/
The web interface font stack fetches its craft-fonts faces from the
`fonts/ui/` URLs in SERVED_FONTS, but only crates/text/build.rs's
OUT_DIR held those files: the Trunk hook copied the `fonts/<sha16>/`
faces alone. On a built site every served interface face (Noto Sans
Arabic, Thai and Georgian, NanumGothic, Noto Sans Devanagari) failed to
load, and the interface drew those scripts as missing-glyph boxes.

`cargo xtask web-fonts` now also publishes the `startup` and `demand`
faces of crates/text/web-fonts.txt under `fonts/ui/`, licence beside
each, with the same craft-fonts-build `Embed::serve` that build.rs
uses, so the files match the table's URLs and integrity values.

Test: publishes_the_interface_faces_at_their_served_urls.

Fixes #10567.
2026-12-02 19:43:47 +05:30
dotCooCoo f902da5d30 Merge main into feat/vector-3d-materials 2026-12-02 02:25:15 -08:00
dotCooCoo c6c7de257f Dependencies: move the craft-libs pin to craft-libs main 77ade517
craft-libs #4659 (swatch chips that fit a one-column rail) and #4723
have merged, so every craft-libs rev moves from #4659's head edbf2117
to craft-libs main at 77ade517. The egui revisions move to 861d60a6,
the ones that craft-libs rev pins; winit stays at 0dfcec0e. Cargo.lock
changes only the sources of those packages.
2026-12-01 20:14:00 -08:00
dotCooCoo 184978b9a6 Tools: Color, Gradient and None share one line in a one-column rail
craft-libs #4609 measures the Fill and Stroke proxy at the width of its
column, so the proxy no longer widens a one-column Tools panel. The
column is then one rail button less one tight gap wide, and the three
swatch chips (a third of a rail button each, a tight gap apart) took
more than that: None wrapped onto a second line.

The craft-libs pin moves to storytold/craft-libs#4659, which sizes a
swatch chip so the three chips and their gaps fit the column. That rev
also carries #4609 and the other craft-libs changes merged up to
d73e274a. The one-column toolbar test now also checks that the chips
stay inside the column of tools and do not overlap, and a new test
checks the same at UI scale 2.
2026-12-01 14:44:03 -08:00
dotCooCoo 55cba88a89 Merge main into fix/toolbar-chips-one-line 2026-12-01 13:58:56 -08:00
dotCooCoo 7da8771139 Tests: check Affinity pixels and DXF goldens against the formats
The Affinity raster tests compared decoded pixels with CRCs captured from
the reader's own output, so a decoding error present when the CRC was
taken would pass. They now read the image's tiles straight from the
archive (256-byte by 256-row planes, states 2 and 4), interleave them,
scale 16-bit samples with rounding, and compare the whole buffer. The
Affinity 3 signatures drop the CRC of the model's Debug output and keep
the feature counts.

The DXF golden test no longer rewrites its expected files when
WRITE_DXF_GOLDENS is set. Each golden file is first checked against the
drawing it should hold (rectangle corners, circle center, radius and
bulges, ACI and true colors, lineweights), and a mismatch saves the
output to the temp directory for review.
2026-12-01 02:34:00 -08:00
dotCooCoo 946774792a Pin craft-libs at 965c7beeb 2026-11-30 20:40:43 -08:00
dotCooCoo e880f695a2 New Document: Preset Details rows stand a stack gap apart
The Preset Details rows stood a tight gap apart, so each caption touched
the field above it. craft-libs now lays them out a stack gap apart, with
a fixed details column and Create and Close at its foot (storytold/
craft-libs e93e6f62a and e433cdfa8). The pin moves to craft-libs main
26f293d78, which holds both; the egui and winit revisions are unchanged.

- More Settings and Manage Profiles stand side by side, each as wide as
  its words, instead of two buttons across the whole column.
- The pin brings two API changes: CanvasScrollbars::clear_of takes
  ShownBars, and a LegacyFile lists its paths and parses one slot per
  path.
- Accessible names now read a line break as a space, so the Color Wheel
  document-color tests name a swatch "#0000ff Used 1 time".
- The small-window test accepts the Bleed fields in one row when the
  fixed column holds them.
2026-11-30 20:40:26 -08:00
dotCooCoo 86a036f724 Merge main into feat/vector-3d-materials 2026-11-30 15:37:03 -08:00
.CooCoo 90e08df23f Merge pull request #10312 from dotCooCoo/fix/ui-frame-stability
Menus: a menu opens under its title on a monitor beside a portrait one
2026-11-30 15:02:38 -08:00
BFlat 77ed301775 SVG import: refuse an SVG the memory can't hold instead of running out (#10303)
* SVG import: refuse an SVG the memory can't hold instead of running out

The element limit now follows the installed memory, or the process's
cgroup limit where that is lower: about 8 KB an element, up to the
999,999 elements usvg reads. Past it the SVG is refused with an error
naming the memory, before usvg makes its tree.

Fixes #10165

* Tests: the shared element limit test follows the machine's limit
2026-12-01 03:42:59 +07:00
dotCooCoo 58923e0d78 Menus: a menu opens under its title on a monitor beside a portrait one
Moves craft-libs to a5669ed2f, which places overlays in the room of the
monitor the window is on (craft-libs f31beb26d, merged in #4506). The
old room assumed monitors tile the desktop by their size, so on a
landscape monitor to the right of a portrait one the File menu opened
at (726, 442), far from its title, with scroll arrows.

The new pin is craft-libs main just before #4278, whose dialog changes
need VectorCraft test updates that come with a later pin bump.

The new test menu_on_second_monitor opens the File menu with the window
on the landscape monitor at 1x and 1.5x; it fails on the old pin with
the menu at (726, 442).
2026-11-30 12:21:21 -08:00
dotCooCoo 0f3aee366c Merge main into feat/vector-3d-materials 2026-11-30 05:33:55 -08:00
.CooCoo ba67cc58eb Merge pull request #10195 from dotCooCoo/fix/layers-order-revision
Layers: a selection change keeps the panel's row order
2026-11-30 04:21:58 -08:00
dotCooCoo 41ab3908ef Dependencies: craft-libs moves to 2680a3b3f and egui to 07c20531
craft-libs main at 2680a3b3f adds #4364 (its egui pin moves to
07c20531, which VectorCraft's egui lines now match), #4425, #4409, #4414,
#4406, #4349, #4393, #4392, #4398, #4415, #4411, #4402, #4400, #4417,
#4399, #4407, #4375, #4428 and #4451. winit stays at 0dfcec0e, the rev
craft-libs pins. craft-nightly and craft-web-api move with the other
craft-libs crates, and xtask pdf-deps checks the new rev. Cargo.lock:
epaint_default_fonts now depends on brotli 9.1.3 and brotli-decompressor
6.3.2.
2026-11-30 02:52:53 -08:00
Codex 8cc75fd856 Release: VectorCraft v0.25.1 2026-11-30 11:35:00 +01:00
dotCooCoo b8b8f4c110 Merge main into feat/vector-3d-materials 2026-11-29 23:33:15 -08:00
dotCooCoo 6866aa8190 3D: Roughness and Metallic on the Materials tab shade and export the surface
Extrude & Bevel, Revolve, Inflate and Rotate take a `material` parameter,
{roughness, metallic}, each a number from 0 to 1 (defaults 1 and 0). The
3D and Materials panel's Materials tab shows them under Properties as two
sliders; each change is one undo step for every selected 3D object. A
value the selected objects hold differently is shown blank with its reset
dot filled, and a typed or dragged value or a reset sets it on all of
them while each keeps its own value of the other property.

- The default material draws exactly as before and calls no BRDF.
- Any other material is shaded through craft-pbr with the glTF 2.0
  metallic-roughness BRDF (Appendix B, with the separable Smith
  visibility of B.3.2) for each light and a split-sum environment scaled
  by Ambient Light. The reflected light is screened over each face as
  vector gradient ramps; graphics on a side or on Inflate's faces lie
  under it, and graphics on caps and the plane take the cap's mean
  reflected light in their colors.
- Smoothed bevel bands take the normals they share at their edges and
  draw as two triangles, so neighboring bands meet without a step, with
  perspective and twist too. A bevel whose split bands would pass the
  solid's face limit keeps one facet per band, so a material never makes
  a solid that draws with the default material too complex. Wireframe
  mode draws the same edges for every material.
- A gradient with transparent stops stays transparent: the faces are drawn
  opaque under one mask of its coverage. A pattern surface takes no
  highlight.
- glTF exports write roughnessFactor and metallicFactor, and USD exports
  write inputs:roughness and inputs:metallic (when it is not 0). OBJ's
  MTL writes neither, so parts of one color and picture share one OBJ
  material as before.
- A material that is not an object, an unknown key, or a value that is not
  a number from 0 to 1 is refused; the 3D (Classic) effects take none. A
  loaded material that fails these rules draws as the default.

Docs: docs/three-d.md (Material properties; the Inflate graphics text is
corrected; the Properties are listed as built), README, docs/mcp.md,
docs/effects-parity.md, docs/target-app-parity.md, ROADMAP.
2026-11-29 23:32:57 -08:00
dotCooCoo 1588d43a2d Nightly: craft-nightly uses the same craft-libs rev as the other crates
craft-nightly was still pinned at 1f6c3a21f while every other craft-libs
crate moved to aa7e668ec. The newer craft-nightly brings:

- craft-libs#4297: profile-root validation requires HOME on Unix and
  APPDATA and LOCALAPPDATA on Windows, and refuses a configured OS
  directory that is relative or contains `..`
  (ProfileError::MissingStableBoundary and InvalidStableBoundary).
- craft-libs#4304: a Unix socket (or AF_UNIX socket on Windows) in a
  profile's single-instance/ folder is accepted when the app lists that
  folder, and Launch reports whether the launcher's `--` separator was
  present (passthrough_args_with_launcher_separator).
- craft-libs#4309: a Windows test fix only.

VectorCraft builds against these without code changes: it does not
construct Launch or match ProfileError exhaustively, and its
single-instance record is instance.json with a TCP listener. Cargo.lock
adds uds_windows (already in the lock) to craft-nightly's dependencies.
2026-11-29 22:02:45 -08:00
dotCooCoo 32a5fef78d Layers: a selection change keeps the panel's row order
The Layers panel built its row order again on every selection change:
each change made a new Tracked for the rows, and the rows reported no
order revision, so the panel asked every row for the rows inside it
(7 calls for the 6 rows of the new test's document).

- LayerRows reports LayerTree::order_revision: a hash of the document,
  the open rows, Show Layers Only and the isolated node. The selection,
  the highlighted rows, the current layer and the names are not in it.
- refresh_rows writes new rows into the kept Tracked while the document
  (uid and revert count) stays the same, and makes a new Tracked for
  another document or after File > Revert.
- The craft-libs pin moves from 186a229c8 to aa7e668ec, current
  craft-libs main, which has craft-libs#4319 (LayerTree::order_revision).
  The winit rev moves to 0dfcec0eb, as craft-libs pins it; egui stays
  at 14c39fed1. xtask pdf-deps checks the new rev. craft-nightly keeps
  the rev main pins it at.

Two tests failed on the new craft-libs:

- canvas::tests::a_selection_drag_draws_its_marks_in_the_frame_the_pointer_moves:
  since craft-libs#4143 a frame runs one pass where it ran two, and the
  bounding box, Live Corners, hollow corners and shape widgets were drawn
  before the tool host took the frame's pointer event, so the box showed
  at the old corner. They are now drawn after it, into paint slots kept
  in their old order.
- tests::nativemenu::applying_a_dialog_preview_reads_the_menus: since
  craft-libs#4350 the closed dialog's angle field gives up the keys one
  frame sooner, so the menus are sent again without the text-editing
  gate within the frames the test ran. The test now waits for the gate
  and counts the read and that send apart.
2026-11-29 21:37:32 -08:00
Dylan M. Taylor 970b34a727 feat(nightly): wire craft-nightly for self-isolated direct launch (#10088)
* feat(nightly): wire craft-nightly for self-isolated direct launch

* fix(nightly): answer plain version before resolving profile root

* test(nightly): retain exact version and saved profile coverage
2026-11-29 22:04:23 -05:00
dotCooCoo d2210d1508 Merge main into ci/workspace-manifest-warnings 2026-11-29 14:01:35 -08:00
FredApps 3ef21dcb09 Merge pull request #10100 from storytold/chore/release-0.25.0
Release: VectorCraft v0.25.0
2026-11-29 21:23:48 +01:00
.CooCoo cdafb992f3 Merge pull request #10095 from dotCooCoo/ci/warnings-G2
CI: app manifests and cdylib doc tests no longer warn
2026-11-29 10:57:43 -08:00
Fredrik Hallin a17883546e Release: VectorCraft v0.25.0
Ship the drawing, text, import/export and editing fixes merged since 0.24.1.
2026-11-29 18:58:59 +01:00
dotCooCoo 4a0b07d91c Merge main into ci/workspace-manifest-warnings
# Conflicts:
#	Cargo.lock
#	Cargo.toml
2026-11-29 09:37:25 -08:00
dotCooCoo c2230ee61e CI: app manifests and doc tests no longer warn
- apps/vectorcraft-web: egui_extras moves to the wasm32 dependencies.
  Its only use is src/web.rs, which builds only for wasm32, so cargo
  reported it unused on native builds.
- apps/vectorcraft: drop the socket2 dev-dependency. Its loopback
  tests left control_server in #8800 and nothing uses it now.
- xtask: the doc-test steps (`cargo xtask ci shard` and the workspace
  doctests) leave out packages whose only library target is a cdylib,
  dylib or staticlib. Cargo printed "doc tests are not supported for
  crate type(s) `cdylib`" for vectorcraft-thumbnail-handler. Packages
  without a library stay selected, so the shard keeps its features.

Warnings on the build host, before and after (cache warm shard
`cargo test -p vectorcraft-mcp -p vectorcraft -p vectorcraft-cli
-p vectorcraft-web -p xtask --lib --bins --no-run` on a fresh build, and
`cargo test -p vectorcraft-thumbnail-handler --doc`): 4 before, 1 after.
The one left is `vectorcraft-testkit` in apps/vectorcraft-cli: only the
integration tests use it, and the warm step builds only library and
binary tests.
2026-11-29 09:25:58 -08:00
ruchirguitar a4659724f6 Merge main into feat/spell-check
Cargo.toml: #10049 moved craft-libs to 186a229c; the font store crates this
branch adds move with it, so every craft-libs crate stays at one rev.
2026-11-29 22:41:45 +05:30
dotCooCoo 59b4e54710 Build: the workspace manifest prints no unused-dependency or unused-patch warnings
Every cargo command printed seven manifest warnings, and clippy on all
targets printed one more. Each entry below had no reader on main.

- peniko (workspace dependency): no member crate has ever declared it.
  It has been in the list since the workspace skeleton (bfee80a22c).
  crates/render reaches peniko through vello_cpu::peniko.
- rfd and webbrowser (workspace dependencies): #8800 moved the app onto
  the craft UI framework and removed their last declarations in
  apps/vectorcraft and crates/ui-egui. The folder picker and the browser
  links now come from craft-libs. The rfd name in xtask's layer check
  is a crate name to reject, so it does not read this entry.
- workspace.package.repository: no member crate sets
  repository.workspace = true, and no packaging script, xtask command or
  workflow reads the field.
- egui_demo_lib, egui_inspection and egui_system_font_provider
  ([patch.crates-io]): #8800 copied these from craft-libs' own patch
  list, and nothing in VectorCraft's graph depends on them. Cargo.lock
  listed them under [[patch.unused]]. A dependency's [patch] does not
  apply in this workspace, so removing them does not change how
  craft-libs builds. The egui crates that are in the graph keep their
  patches at 932a73b285.
- apps/vectorcraft-web declared egui_extras for every target, but only
  the wasm32 module web.rs calls it. It now sits under the wasm32
  target dependencies.

Cargo.lock drops the three [[patch.unused]] entries.
2026-11-29 09:08:57 -08:00
FredApps 69e325e462 Pin craft-libs 186a229c for the VectorCraft release
Carry the upstream properties-dialog tab retention and layout fixes into the tested release pin. Retain the same egui revision and dependency graph.
2026-11-29 15:09:23 +01:00
FredApps 36ec203ef5 Pin current craft-libs and its matching egui revision 2026-11-29 12:44:11 +01:00
FredApps 6f3703bbab Advance shared PDF pin and honor Standard-mode Tab hiding
Keep the native and web craft-libs pins, Cargo.lock and PDF source checks on 57c8c8d4. Preserve the matching egui pin. Consult the shared Standard-mode chrome state for visibility and for show-panel requests; the dock already honors that state when drawing.
2026-11-29 08:38:26 +01:00
FredApps 0488c58928 Pin VectorCraft to current craft-libs and its matching egui
Keep native and web manifests, the lockfile, and the PDF source guard on the same craft-libs revision. Align the egui patch revision with craft-libs to retain one crate source.
2026-11-29 07:48:25 +01:00
dotCooCoo fe968bfd33 Dependencies: Cargo.lock takes craft-libs 869c9704d9 2026-11-28 22:43:57 -08:00
dotCooCoo cc7d17d70c Dependencies: craft-libs 8bea6009f9
Moves every craft-libs crate from 07a8c471ed to craft-libs main at
8bea6009f9.
2026-11-28 20:49:41 -08:00
dotCooCoo 3496bbc6a2 Dependencies: craft-libs 07a8c471ed 2026-11-28 19:36:20 -08:00
ruchirguitar 8d3895d491 Merge main into feat/spell-check
Cargo.toml: main moved craft-libs to 610c8679; the font store crates this
branch adds move with it, so every craft-libs crate stays at one rev.
2026-11-29 08:29:24 +05:30
dotCooCoo 19fecfb749 Dependencies: craft-libs 81bca5c8e2
Every craft-libs crate moves from f762f98a to 81bca5c8e2 (craft-libs
main). The new rev adds the title bar's item gap, docking of part of a
collapsed column, the tool rail's footer rule, disabled accessibility
nodes that ignore actions, and built-in themes that load without a
cycle search. VectorCraft builds on it without other changes.
2026-11-28 18:09:21 -08:00
dotCooCoo 9ed5e06ff3 Dependencies: craft-libs f762f98a, with the status-bar zoom look and the compass clear of the scroll bars
- Every craft-libs crate moves from 610c86792a to f762f98a (craft-libs
  main), which adds the fixed corner-widget inset, the ruler corner's
  plus, popover padding, and a native window's move recorded once.
- The status bar's Zoom field uses ZoomField::status_bar, so it draws
  without an outline in the status bar's look.
- The Rotate View compass is placed in CanvasScrollbars::clear_of
  instead of a copy of the scroll bars' sizes.
- The tools' corner-widget inset is public, and a test holds it equal
  to CornerWidgets::INSET, the inset the canvas draws the widgets at.
2026-11-28 17:12:28 -08:00
dotCooCoo a7373ec7d6 Dependencies: take every craft-libs crate from craft-libs main at 610c86792a
Every storytold/craft-libs crate and the hayro, krilla and linesweeper
patches move from 51fcc3b041 to 610c86792a, the head of craft-libs main.
xtask pdf-deps expects the new rev.
2026-11-28 14:17:43 -08:00
ruchirguitarandClaude Opus 5.5 38da965223 Merge main into feat/spell-check
As asked in review. Cargo.toml: main moved craft-libs to 51fcc3b0; the font
store crates this branch adds move with it, so every craft-libs crate stays
at one rev.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-28 21:54:53 +05:30
.CooCoo ab4b8bb64a Merge pull request #9136 from dotCooCoo/feat/plugin-api-generated-art
Plug-ins: generators draw generated art objects that keep their parameters
2026-11-28 08:06:06 -08:00
.CooCoo 57b715c359 Merge pull request #9829 from dotCooCoo/fix/previewbounds-memo-flake
Tests: hover memo counts hold plug-ins and hyphenation steady
2026-11-28 08:03:26 -08:00
.CooCoo 8cdd897b23 Merge pull request #9909 from dotCooCoo/feat/windows-thumbnail-handler
Windows: Explorer shows thumbnails of VectorCraft documents
2026-11-28 08:03:20 -08:00