Commit Graph
1375 Commits
Author SHA1 Message Date
BFlat 4ce43b1091 Merge pull request #8532 from dotCooCoo/feat/distorted-image-commands
Links: Relink, Embed and Unembed keep a distorted image's corners
2026-11-21 11:01:53 +07:00
BFlat 9078e13d78 Merge pull request #8867 from dotCooCoo/perf/selection-widgets-kind-first
Selection: on-canvas widgets check an object's kind before its editability
2026-11-21 10:56:16 +07:00
dotCooCoo e2d62de4fe Merge main into feat/distorted-image-commands 2026-11-20 18:54:01 -08:00
dotCooCoo 873a5562a7 Gradient: a freeform line stays open over its object's stroke on a layer with Preview off
The check for whether the pointer is still on the object hit the object's
painted art with outline off, but the hit test turned outline back on for
a layer with Preview off, so a move onto the stroke past the fill ended
the line. A new HitOptions field, ignore_layer_preview, keeps the point
hit tests from switching to outline for such layers, and the freeform
check sets it. the_stroke_counts_as_the_object now runs with the layer's
Preview on and off.
2026-11-20 17:07:31 -08:00
dotCooCoo 125ab66348 Selection: on-canvas widgets check an object's kind before its editability
The type, pie, side count and corner widgets, the Objects on Path, Mirror,
Grid and Radial Repeat controls, the Image Trace Split divider and the
center point now check that a selected object is of a kind that has the
widget before asking whether it is editable. With an artboard locked, the
editability check measures the art of the layer object holding the object,
so a large selected group of another kind was measured on every repaint and
pointer move. The widgets shown are the same.

A test-only counter (vectorcraft-doc feature locked-artboard-count) counts
those measurements; widget_order_tests checks that objects of other kinds
are not measured, compares every widget with the editability-first result
on a mixed document, and holds an ignored timing test, widget_order_perf.
2026-11-20 15:03:29 -08:00
Dylan M. Taylor 063f550802 doc: share CMYK TIFF read and write (#8751)
* doc: share CMYK TIFF read and write

* doc: fix craft_image_codecs encode/Image/Truncated calls and fmt

* cmyk: decode TIFF samples from the metadata directory

* doc: guard TIFF metadata tag sizes before decoding CMYK source

* doc: fix TIFF metadata preflight scan bound and repin craft-libs

* test(doc): distinguish shared craft-image-codecs CMYK TIFF read/write

* test(doc): pass written.bytes.as_slice() to Cursor

* chore: restore origin/main craft-libs pin (d7c9632bfb)
2026-11-20 12:45:50 -05:00
bflatastic e1aa78590a Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/target-app-parity.md
2026-11-20 23:41:24 +07:00
dotCooCoo 3f8e4b1fdc Merge main into feat/distorted-image-commands 2026-11-19 16:54:09 -08:00
Dylan M. Taylor b8c15be445 Merge remote-tracking branch 'origin/main' into cutover/jpeg-icc-replace
# Conflicts:
#	Cargo.toml
2026-11-19 16:47:43 -05:00
BFlat 67c9c0ef35 Merge pull request #8761 from dotCooCoo/feat/retype-area-text
Retype: stacked lines become one area type object
2026-11-20 04:42:23 +07:00
dotCooCoo 1800ca6949 Retype: a pair of lines' glyphs takes the tracking of the lines around it, and a wrap object below all area type makes no outline
A leading of exactly a quarter of the size joins lines.
2026-11-19 12:33:02 -08:00
datatimp 50be36392d Merge remote-tracking branch 'upstream/main' into fix/8639-target-circle-modifiers
# Conflicts:
#	docs/target-app-parity.md
2026-11-19 14:53:35 -05:00
dotCooCoo 70a36623ad Merge main into feat/distorted-image-commands 2026-11-19 11:17:21 -08:00
BFlat 9d334e90ea Merge pull request #8392 from dotCooCoo/feat/distort-images
Free Transform: Perspective Distort and Free Distort put an image's corners on the handles
2026-11-20 02:02:42 +07:00
BFlat 06ba6108ca Merge pull request #8732 from storytold/train/carry7739
Symbols: the Symbol Shifter, Sizer, Stainer and Styler take Shift (#7739)
2026-11-20 01:40:08 +07:00
dotCooCoo cdcaab9301 Retype: stacked lines become one area type object
Part of #4934. type.retype set each line of outlined text as its own
point type object, even when the lines stack as one paragraph.

- Opaque, Normal lines with a solid fill or none and no stroke that
  follow each other in paint order, with the same group, paint, font,
  size, turn and tracking, each the same leading (0.25 to 3 times the
  size) below the one before and lined up at their starts, ends or
  centers, become one area type object. Its leading is Auto when Auto
  puts the last baseline in place, else the mean distance between the
  baselines, and its alignment is left, right or center. Its frame is
  Convert To Area Type's, now shared through typemenu::point_to_area.
  An untracked line of one or two glyphs takes the others' tracking.
- Every object is laid out and compared with the outlines first: when
  area type would move a glyph the lines stay multi-line point type.
  When that also moves a glyph, the block ends at that glyph's line and
  the lines after it join again. Type whose bounds would reach past the
  coordinate limit stays apart.
- Text Wrap objects above new area type are taken into account; when
  checking them on the changed layers would copy more than 2,000,000
  anchors, subpaths and shapes, the lines stay multi-line point type.
  text::wrap_copy_units counts that work without copying the outlines,
  and wrap_work no longer copies them to count.
- The result's fonts entries add leading and area, and texts join an
  object's lines with line breaks.

These rules are VectorCraft's own. Docs: docs/mcp.md (Retype several
lines), docs/type-parity.md (Retype row), docs/target-app-parity.md,
docs/roadmap.md (M7 row).
2026-11-19 10:22:49 -08:00
bflatastic 8157194da2 Merge remote-tracking branch 'origin/main' into fix/8585 2026-11-19 23:23:53 +07:00
Dylan M. Taylor 05fffe3020 doc: delegate JPEG ICC replacement to craft-image-codecs 2026-11-19 11:00:14 -05:00
bflatastic 41e1b41603 Merge remote-tracking branch 'origin/main' into fix/7739 2026-11-19 22:53:32 +07:00
dotCooCoo f8a5534abb Merge main into feat/distorted-image-commands 2026-11-19 07:42:56 -08:00
dotCooCoo 82ef5176bc Merge main into feat/distort-images 2026-11-19 06:39:02 -08:00
dotCooCoo 55438151f3 Merge main into feat/distort-images 2026-11-19 06:08:29 -08:00
BFlat 6b7ad6cf55 Merge pull request #8605 from dotCooCoo/feat/dimension-stroke-arrowheads
Dimension: Arrow Style offers every built-in stroke arrowhead
2026-11-19 21:07:19 +07:00
dotCooCoo b20c22500a Merge main into feat/symbolism-shift-gestures 2026-11-19 06:05:13 -08:00
datatimp 04f818823e Merge remote-tracking branch 'upstream/main' into fix/8639-target-circle-modifiers
# Conflicts:
#	crates/ui-egui/src/panels/layers.rs
#	crates/ui-egui/src/panels/layers/tests.rs
#	docs/target-app-parity.md
2026-11-19 08:48:56 -05:00
BFlat 778b95918d Merge pull request #8460 from dotCooCoo/feat/transform-rect-ellipse-angle
Transform: Rectangle and Ellipse Properties show the shape's angle
2026-11-19 20:44:43 +07:00
dotCooCoo 056059d8cb Merge main into feat/direct-select-mirror-handles 2026-11-19 05:18:05 -08:00
dotCooCoo d084e90cba Merge main into feat/dimension-stroke-arrowheads 2026-11-19 04:54:39 -08:00
dotCooCoo 173d72a867 Merge main into feat/distorted-image-commands 2026-11-19 04:49:23 -08:00
dotCooCoo b0bebd324d Merge main into feat/transform-rect-ellipse-angle 2026-11-19 04:42:52 -08:00
Sven Lafebre 4c20c3e21f Merge remote-tracking branch 'origin/main' into fix/8188-ai-arrowheads
# Conflicts:
#	crates/engine/src/cmd/stroke.rs
#	crates/eps/src/import/ai/read/ops.rs
#	docs/file-format-parity.md
2026-11-19 12:34:27 +01:00
BFlat 74591771b5 Merge pull request #7626 from jayzed80/fix/area-type-hit-7274
Selection: clicks in the empty part of an area type frame reach the art behind it (#7274)
2026-11-19 15:20:20 +07:00
bflatastic 497af8e79b Merge main into #8341
# Conflicts:
#	crates/ui-egui/src/i18n/bg.tsv
#	crates/ui-egui/src/i18n/bs.tsv
#	crates/ui-egui/src/i18n/ca.tsv
#	crates/ui-egui/src/i18n/da.tsv
#	crates/ui-egui/src/i18n/el.tsv
#	crates/ui-egui/src/i18n/es.tsv
#	crates/ui-egui/src/i18n/fi.tsv
#	crates/ui-egui/src/i18n/fr.tsv
#	crates/ui-egui/src/i18n/gu.tsv
#	crates/ui-egui/src/i18n/id.tsv
#	crates/ui-egui/src/i18n/ka.tsv
#	crates/ui-egui/src/i18n/ru.tsv
#	crates/ui-egui/src/i18n/sv.tsv
#	crates/ui-egui/src/i18n/vi.tsv
#	crates/ui-egui/src/i18n/zh-hans.tsv
#	crates/ui-egui/src/i18n/zh-hant.tsv
2026-11-19 15:03:22 +07:00
BFlat 4c1b27bc41 Merge pull request #8178 from dotCooCoo/feat/image-trace-split-view
Image Trace: Split View shows the source image and the result on either side of a divider
2026-11-19 14:56:07 +07:00
dotCooCoo 4696b3b010 Merge main into feat/transform-rect-ellipse-angle 2026-11-18 23:55:03 -08:00
BFlat 8e55ffdddf Merge pull request #7229 from dotCooCoo/feat/kinsoku-sets
Type: Kinsoku Shori sets can be created, edited and chosen per paragraph
2026-11-19 14:54:38 +07:00
BFlat 3f0707e64f Merge pull request #7103 from dotCooCoo/feat/stylus-wheel
Brushes: an airbrush pen's stylus wheel varies brush size and width
2026-11-19 14:46:40 +07:00
jayzed80 c955f9b789 Merge remote-tracking branch 'upstream/main' into HEAD 2026-11-19 06:10:27 +00:00
ruchirguitar 8fcadbc3c1 Fix #864: SVG export preserves the document unit in viewBox and width/height (#8610)
* SVG export: preserve document unit in viewBox and width/height (#864)

When exporting SVG documents with physical units (mm, cm, in, pc), emit
the physical unit suffix on the root <svg width=... height=...>
attributes while keeping viewBox numbers and inner coordinates in 1:1 points
per SVG 1.1 coords §7.10. This avoids the 75% scaling mismatch when opening
drawings in external tools such as Inkscape or LightBurn, and preserves
the document unit setting across save/open round trips. Unitless documents
(points, pixels) continue to emit unitless dimensions.

Tested via export_physical_units_writes_unit_suffixes in vectorcraft-svg
and full round-trip svg_round_trip_preserves_document_units in vectorcraft-engine.
Ran cargo xtask ci (fmt, clippy, tests, xtask gates).

* SVG export: preserve nonzero width and viewBox on extreme small dimensions
2026-11-18 23:27:00 -05:00
datatimp 10a7fac40e Merge remote-tracking branch 'upstream/main' into fix/8639-target-circle-modifiers
# Conflicts:
#	docs/target-app-parity.md
2026-11-18 22:55:08 -05:00
datatimp 2c78f2e2cb Layers: target circles take Ctrl/Cmd-click to add and Shift-Click to select a range (#8639) 2026-11-18 22:42:59 -05:00
dotCooCoo 3f253b4da2 Merge main into feat/distort-images 2026-11-18 18:48:32 -08:00
dotCooCoo eb7f64d5b3 Transform: a shape turn past the coordinate limit is an error
- object.setLiveShape checks every shape named in `ids` against the
  coordinate limit (±4,000,000 pt) after the edit, so a rectangle,
  ellipse or polygon that is not selected can no longer be turned
  out of range; the call is an error and changes nothing.
- LiveShape::set_shape_angle brings the angle into [0, 360) before it
  works out the turn, so a very large angle reaches the same final
  angle from any starting angle.
- The params text and docs/mcp.md say that `null` counts as an
  omitted key, that a pixel-aligned shape goes back on the pixel grid
  after the turn, and that a turn out of range is an error.
- The panel test reads the Rotate and Angle fields by name, and checks
  that the Angle field is empty for mixed angles.
2026-11-18 18:25:27 -08:00
dotCooCoo fb0a82b095 Distort: keep blend steps, saved corners, previews and deep masks right
- A blend step whose interpolated corners and nearer key's corners both
  fail the check is placed as the nearer key is.
- Corners an image can't take are dropped when a file is read, so a
  later transform does not make them its distortion.
- The .ai editing data writes a distorted image at any nesting depth, as
  it does a gradient mesh, so an opacity mask at the limit keeps it.
- A linked image's preview keeps the clipping path its file keeps, so a
  document reopened from its preview still knows the file's clip group
  and Update Links replaces it instead of nesting a new one.
- Docs: `corners` in the plugin API covers only corners that are not a
  parallelogram; Relink's warning for distorted images needs `preserve`.
2026-11-18 17:44:10 -08:00
dotCooCoo 4080708714 Merge main into feat/stylus-wheel 2026-11-18 17:25:37 -08:00
dotCooCoo 621c06bd26 Free Transform: distorted images keep their corners and placement through files, exports and refusals
- A file's corners are kept only when there are exactly four that the
  image can take; a longer list is skipped without decoding it. Corners
  the affine map misses stay a distortion, and a scale past the
  perspective limit leaves the image at its nearest affine placement.
- Distort checks the corners in a frame local to the quad, so a missed
  corner far from the origin is still refused.
- Relink and Unembed refuse a named or selected distorted image before
  searching a folder or writing a file. Create Gradient Mesh lists the
  distorted images it leaves in `skipped`. Place with Replace refuses
  only when the measured image is distorted and the file is not text.
- SVG cuts a distorted image in a scaled symbol instance at the placed
  size. EMF pieces store only the pixels inside their clip. PDF mesh
  pieces of a CMYK image keep a same-corner mask as its soft mask, color
  mask included. Both `.ai` writers write an image at the nesting limit
  at its nearest placement with a warning. DXF warns only when it writes
  the image.
- The canvas cuts the mesh by the view's largest stretch. Warped images
  with a singular placement keep finite corners.
- docs/mcp.md and docs/plugins.md describe the tolerances, the DXF and
  WMF fallback, the partial result of Create Gradient Mesh, and when a
  plug-in sees `corners`.
2026-11-18 17:13:56 -08:00
dotCooCoo 76705afc2f Dimension: leave a null arrowHead out of saved options
Saved and recorded dimension options carried "arrowHead": null even
without a stroke head, so a recorded dimension.create failed in versions
that do not know the option. The field is now left out when it is null.
dimension.create, dimension.update and Dimension Tool Options still take
it. The name is read without a copy of its own, and a name longer than
any built-in one is refused before it is parsed. Through ui.dialog.set,
an arrowStyle set in Dimension Tool Options clears arrowHead, and a
built-in arrowHead sets the arrowStyle of its Arrow Style entry, as that
menu does. The Arrow Style field reads only a built-in head's name from
a draft.

The Stroke panel and Arrow Style look up a built-in arrowhead's name in
the catalog's arrowhead rows first, then its plain row. Every complete
catalog gets an arrowhead row for Feather, so the Feather arrowhead is
named as an arrowhead in each, and the de, gu, it, ja, ko, uk, vi,
zh-hans and zh-hant catalogs no longer show it in English.

Versions that have the stroke arrowhead but do not read arrowHead keep a
dimension's saved arrows until they draw the dimension again, and then
draw arrowStyle; versions without the stroke arrowhead do not open the
file. The params text, the doc comments, docs/dimensions.md, docs/mcp.md
and docs/target-app-parity.md say so.

The French Line Arrow row moves next to the other rows of its block.
2026-11-18 16:46:10 -08:00
dotCooCoo d6bc984cad Merge main into feat/distorted-image-commands 2026-11-18 16:24:18 -08:00
dotCooCoo f4071dd56a Merge main into feat/image-trace-split-view 2026-11-18 15:58:59 -08:00
dotCooCoo f02f35a7da Merge main into feat/paper-cutouts-style-library 2026-11-18 14:50:56 -08:00