Commit Graph
940 Commits
Author SHA1 Message Date
.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
dotCooCoo d660414ef4 Docs: Gujarati counts, the web font prerequisite and the tests that need rows
The Gujarati status notes now give the catalog's real counts: 4,946 `@msg`
rows and 10,890 rows in all, and the revision rows give 4,926 new message
rows. They also say that a web build offers Gujarati only when it is built
with `CRAFT_FONTS_DIR` pointing at a craft-fonts checkout that has Noto Sans
Gujarati; without it `offered_codes` leaves `gu` out on the web.

docs/development.md no longer says a missing translation never fails a test.
It names the four tests that need a row in every complete catalog or every
`COMPLETE_MESSAGES` language.
2026-12-05 08:34:13 -08:00
dotCooCoo c0b682ba78 Merge main into train/carry10603 2026-12-05 07:21:23 -08:00
dotCooCoo c2485d29ef Swatches: a Swatch Strip panel of one-click color chips
Window › Swatch Strip shows a None chip and then the document's color
swatches as a row of chips that wraps to the panel's room and scrolls
when the chips do not fit. Docked on the window's bottom edge the chips
run across in one line; in a dock column or a narrow floating window
they run down it. Gradient and pattern swatches are left out.

A click on a chip sets the fill (paint.setFill) and a right-click or an
Alt-click sets the stroke (paint.setStroke). Both pass focus: false, so
the active Fill or Stroke proxy stays as it was.

- window.panel {panel: "swatchStrip"} shows the panel, and
  window.panel.dock with placement {"Edge": "Bottom"} beside the canvas
  docks it along the bottom edge.
- The Swatches panel's shown() is shared so the strip draws a spot
  color the way its art shows it.

Docs: docs/control-protocol.md, ROADMAP.

Fixes #10951
2026-12-05 07:05:45 -08:00
dotCooCoo c5e2098a59 Merge main into fix/raster-settings-opened-objects
# Conflicts:
#	ROADMAP.md
2026-12-04 19:25:58 -08:00
dotCooCoo 8ff9964b13 3D: Raster Settings OK sets the objects the dialog opened on
Raster Settings opened with the selected objects' render settings, but
OK applied the edited values to whatever was selected at OK time. An
object selected while the dialog was open took settings it was never
shown.

OK now sets the objects selected when the dialog opened. When the
document is no longer the active one, was reverted, had an Undo or
Redo, or one of those objects was changed, deleted, locked or hidden,
OK keeps the dialog open with the reason.
2026-12-04 16:41:41 -08:00
dotCooCoo 889327e85d Paste: read CAD apps' metafiles on Windows and copied DXF, DWG and HP-GL files
Paste on Windows never read the enhanced metafile that CAD and office
apps put on the clipboard as vector art: windows_formats had no entry for
EMF, so the app pasted their bitmap instead, or nothing. The Windows
clipboard holds an EMF as a handle (CF_ENHMETAFILE, which Windows also
makes from CF_METAFILEPICT), so the app now copies its records with
GetEnhMetaFileBits, at most 64 MiB, and pastes them through
clipboard.importEmf.

A .dxf, .dwg or HP-GL plot file copied in a file manager did not paste,
because file_flavour had no flavour for them, though Open and Place read
all three. They now paste as image/vnd.dxf, image/vnd.dwg and
application/vnd.hp-hpgl through the new command clipboard.importCad
{dataBase64, format: dxf|dwg|hpgl, center?}, read as document.open reads
the file. A file pastes this way only when its bytes are the format, so
a chart script named .plt is not taken for a plot.

Fixes #10819.
2026-12-04 14:32:59 -08:00
.CooCoo f010eb86f7 Merge pull request #10811 from dotCooCoo/fix/comb-line-reversal
Curvature comb: the line through the tips breaks where a straight segment turns back
2026-12-04 10:15:16 -08:00
ruchirguitar 92ac129631 Merge main into i18n/gujarati-messages
Resolves the conflicts with #10566 (Gujarati on the web) in docs/localization-parity.md,
docs/roadmap.md and docs/target-app-parity.md: the Gujarati status lines now say both that
messages are translated (machine-assisted, review pending) and that the web fetches Noto Sans
Gujarati on demand. ROADMAP.md's status note gets the same web wording.

gu.tsv: the two messages main added since (the script-warning confirm and the script palette
event limit), so `gu` stays complete in COMPLETE_MESSAGES.
2026-12-04 16:17:27 +05:30
dotCooCoo d5be27f55a Curvature comb: a seam segment whose anchors coincide uses its handle direction
comb_closes took a straight segment's chord as its direction at the seam.
When the segment's anchors sit on one point and its handle is too short to
count, that chord has no length, the reversal test compared against a zero
vector, and the comb closed across a seam where the path turns back. The
seam check now uses the chord only when it has a length, as curvature_comb
does, and falls back to the handle direction otherwise.

The View › Show Curvature Comb params help and the ROADMAP line now say
that the line through the tips starts again at a cusp, a straight segment
included; ui_catalog.rs is regenerated.
2026-12-04 02:38:51 -08:00
ruchirguitar 227df7a41c Merge main into feat/5547-show-missing-links 2026-12-04 09:44:42 +05:30
.CooCoo 7fcf5f33e4 Merge pull request #10735 from dotCooCoo/feat/curvature-comb
View: Curvature Comb overlay on selected paths (Fixes #10659)
2026-12-03 10:46:43 -08:00
ruchirguitar 1fd7a20055 Merge main into feat/5547-show-missing-links
Conflicts:
- crates/engine/src/tests.rs: keep both the missing_links and moved test modules.
- crates/ui-egui/src/panels/links.rs: take main's labelled menu entries and give
  the Show Missing Links row its translated title.
- docs/roadmap.md, docs/target-app-parity.md: take main's rows and re-apply this
  PR's #5547 notes.
- docs/ui-parity.md: take main's Headless column layout, re-add this PR's history
  and behaviour rows (Headless: unknown), and count the new row in the summary.
2026-12-03 22:48:06 +05:30
.CooCoo 20d8cda7af Merge pull request #10366 from dotCooCoo/docs/roadmap-stage-line
ROADMAP: the Stage line uses the rescored readiness, ~67%
2026-12-03 07:24:09 -08: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 de87966ac0 Merge pull request #10182 from dotCooCoo/docs/roadmap-current
Docs: ROADMAP matches what main ships
2026-12-03 07:19:16 -08:00
.CooCoo 44c6916bde Merge pull request #10077 from dotCooCoo/feat/artboard-flood-fill
Document Tools: Flood Fill Artboards adds an artboard-sized rectangle on its own layer
2026-12-03 07:17:43 -08:00
dotCooCoo 9803e7438d View: Curvature Comb overlay on selected paths
View > Show Curvature Comb (view.curvatureComb) draws the curvature comb
of the selected paths, and of each path in a selected compound path,
while edges show. Each segment gets 16 evenly spaced teeth along the
normal, on the outer side of the bend, each as long as the curvature at
that point, and a line joins the tips in the path's layer color. A bend
with a radius of 100 screen points gives 20-point teeth at any zoom.

- vectorcraft-geom: curvature_comb samples the signed curvature of a
  subpath. Straight segments give teeth of no length, points with no
  direction give none, and the line through the tips breaks at those
  points and at cusps between teeth.
- The comb draws at most 20,000 teeth, shared among the selected paths
  by their number of segments, so a large selection gets fewer teeth
  everywhere instead of losing whole stretches.
- The toggle is a view setting: it is not saved in the document, makes
  no undo step and rejects parameters.

Docs: docs/mcp.md, ROADMAP progress log.

Fixes #10659
2026-12-03 07:03:18 -08:00
ruchirguitar 945d6a1de9 docs: Gujarati status separates reviewed rows from the new draft, and the pinned fonts include Noto Sans Gujarati 2026-12-03 08:33:59 +05:30
ruchirguitar 53a941656c i18n: Gujarati menu items, interface labels and undo steps
Adds the 155 menu strings, tl! literals and undo step names the
untranslated report listed for gu (machine-assisted; Kinsoku stays in
Latin letters as in the reviewed rows), and dates the earlier 4,673-row
count in the docs.
2026-12-03 00:22:39 +05:30
ruchirguitar 7585026453 i18n: Gujarati status and error messages
Adds 4,924 @msg and @msgplural rows to gu.tsv, so every message the
untranslated report scans has a Gujarati row, and puts gu in
COMPLETE_MESSAGES. Machine-assisted draft from the English meaning;
native review pending.
2026-12-03 00:15:34 +05:30
dotCooCoo 11dfa1ce09 Print: the dialog finds printers on a background job
File > Print listed the system's printers on the UI thread when the
dialog opened and on each Refresh, so a slow or unreachable print
server froze the app. The desktop print service now offers its
discovery to a background job; the dialog opens on Default Printer and
PDF File, shows and announces the lookup, and takes the list when it
arrives.

- Discovery on Windows lists the queues without asking each driver for
  its capabilities (`craft::print::printer_queues`).
- PDF File, its preview and Done stay available during the lookup.
  Print to a printer is disabled until the list is applied, and a held
  Print to a printer is not submitted.
- Setup... appears once the lookup has ended, since it reads the
  printers again on Windows.
- Discovery starts on the first pass even when another drawing is
  active, and a lookup that ends without a list leaves Default Printer
  and PDF File.

The Print dialog's discovery came with #8800.
2026-12-02 07:55:04 -08:00
dotCooCoo f902da5d30 Merge main into feat/vector-3d-materials 2026-12-02 02:25:15 -08:00
dotCooCoo ebbb369c0c Merge main into feat/artboard-flood-fill 2026-12-02 00:38:46 -08:00
.CooCoo 3860a8025c Merge pull request #10502 from dotCooCoo/fix/common-tangents-metaball
Path Precision Tools: Common Tangents and Smooth Bridge are one dialog
2026-12-01 18:28:19 -08:00
.CooCoo aa557da659 Merge pull request #8808 from dotCooCoo/feat/quick-pen-scroll-arc
Quick Pen: Ctrl+wheel over the canvas changes the arc size
2026-12-01 14:57:33 -08:00
dotCooCoo 6f684e6da9 Path Precision Tools: Common Tangents and Smooth Bridge are one dialog
Common Tangents… now also does what Smooth Bridge… did (#10465).

- Connect tangents joins the two tangents of each kind into one closed
  shape, along the chords between where they touch each path (a point's
  two lines make a triangle). `connect` on
  `addon.pathtools.commonTangents`.
- With External, the dialog shows Straight and Curved. Straight keeps
  the tangent lines; Curved joins the circles along concave arcs, as
  Smooth Bridge did, with Radius, Constant Gap, Reach and Keep
  Originals, which take input only with Curved. `curved`, `radius`,
  `gap`, `reach` and `keepOriginals` on the command; options of the
  other mode are an error.
- The Smooth Bridge… menu item is gone. `addon.pathtools.bridge` still
  runs for scripts and actions, opens the merged dialog with External
  and Curved, and is left out of the command palette and Keyboard
  Shortcuts. A palette search for "metaball" or "smooth bridge" finds
  Common Tangents.

Docs: docs/mcp.md, docs/ui-parity.md, ROADMAP.
2026-12-01 11:16:00 -08:00
dotCooCoo 094adcad4d Merge main into feat/artboard-flood-fill 2026-12-01 09:04:42 -08:00
dotCooCoo a992850228 Merge main into feat/color-randomly
# Conflicts:
#	crates/mcp/src/ui_catalog.rs
#	crates/ui-egui/src/menus/ui_commands.rs
2026-12-01 06:26:48 -08:00
dotCooCoo 8ba55104f0 Merge main into feat/group-rows
# Conflicts:
#	crates/engine/src/cmd/plugin_call/reviewed.rs
#	crates/mcp/src/ui_catalog.rs
#	crates/ui-egui/src/addons/arrange.rs
#	crates/ui-egui/src/menus/ui_commands.rs
#	docs/mcp.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-12-01 06:20:46 -08:00
dotCooCoo eadf345932 Merge main into feat/color-randomly 2026-12-01 01:04:32 -08:00
dotCooCoo 3fcb278b24 Merge main into feat/group-rows 2026-12-01 01:03:49 -08:00
dotCooCoo 98a039da33 Merge main into feat/artboard-flood-fill 2026-12-01 01:03:07 -08:00
dotCooCoo 9c4f01faf1 Merge main into feat/corner-marks 2026-12-01 01:03:01 -08:00
dotCooCoo 5fbeb88f1d Docs: Flood Fill Artboards makes its layer when no top-level layer has that name 2026-11-30 22:44:27 -08:00
dotCooCoo 2dc04d8b38 ROADMAP: the Stage line uses the rescored readiness, ~67%
#10199 rescored full ready-for-real-work readiness from ~62% to ~67%
in docs/target-app-parity.md, and left ROADMAP's Stage line at the old
figure. The line now reads ~67% → ~75%, so beta is ~8 points away
instead of ~13. The hours to beta are unchanged; they come from the
beta list in docs/gaps.md.
2026-11-30 21:07:31 -08:00
dotCooCoo 86a036f724 Merge main into feat/vector-3d-materials 2026-11-30 15:37:03 -08:00
dotCooCoo 3919499f10 Merge main into feat/artboard-flood-fill 2026-11-30 06:57:07 -08: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 87005e7ae7 Docs: readiness and depth scores match what main ships
Rescore the area, dimension and audience tables against the code on
main, using each doc's own formulas: feature depth 8342/105 (~79%),
breadth ~96% (menu items 815 of 816 wired, tools 91 of 92, vector
effects 50 of 50), full readiness ~67%, mainstream ~65%, essentials
~77%, UI/UX ~60%. File formats stay at ~75%. Stability, Raster effects
in ROADMAP, and Export/print in the essentials table go down where open
crash reports or the area table say so. Hours are not recomputed.
2026-11-29 22:58:55 -08:00
dotCooCoo b385852729 Merge main into feat/quick-pen-scroll-arc 2026-11-29 21:17:46 -08:00
dotCooCoo ef8c477ba6 Docs: Simplified Chinese row notes untranslated messages
The ROADMAP language row for zh-hans now says some messages remain
untranslated, matching the untranslated report recorded in
docs/target-app-parity.md.
2026-11-29 21:04:42 -08:00
dotCooCoo 1b8927db9f Merge main into feat/group-rows 2026-11-29 19:10:04 -08:00
dotCooCoo 1bf9a00828 Docs: ROADMAP matches what main ships
- Feature breadth: 3D maps graphics on the Materials page (#6960); base
  materials are still missing.
- Simplified Chinese: status and error messages are translated (#2578);
  the row stays partial at 85%.
- Current focus, G11: the Transform effect in a fill's or stroke's own
  effects is fixed (#5221, #885); the unit preference (#864) remains.
2026-11-29 18:40:33 -08:00
dotCooCoo 5fccf73431 Color Effects: Randomize Fill Colors colors compound marks in a graph series
A compound path or live compound shape directly in a graph series group now
takes a color. Generated column, marker and legend swatch copies carry a new
graph_design_art flag and keep their design's fill; in documents saved before
the flag, a compound in a series whose assigned design is itself a compound is
still treated as design art. Paths a user groups inside a series keep their
fills, as for paint.setFill. Nested members resolve to the outermost compound
in one walk of the ancestry, and series membership is looked up once per run.
2026-11-29 18:02:26 -08:00
dotCooCoo 9d3d9bde76 Document Tools: Flood Fill Artboards takes keepModel
- `keepModel: true` keeps an explicit RGB color in RGB in a CMYK
  document, as paint.setFill does; it is declared in the params text,
  docs/mcp.md and ROADMAP.
- A `keepModel` of null or another non-boolean is an error, and nothing
  is edited.
2026-11-29 17:26:32 -08:00
dotCooCoo 8a29b0ac66 Merge main into feat/corner-marks 2026-11-29 17:10:09 -08:00
dotCooCoo e969d29387 Merge main into feat/corner-marks 2026-11-29 16:16:11 -08:00
dotCooCoo f11aac5aaa Merge main into feat/match-objects-to-key 2026-11-29 15:00:53 -08:00