Commit Graph
1472 Commits
Author SHA1 Message Date
.CooCoo 9ce2299580 Merge pull request #9811 from dotCooCoo/fix/ai-envelope-stroked-line
.ai import: envelopes of a stroked straight line map from their stroked box
2026-11-27 23:35:45 -08:00
.CooCoo a91c38ee5c Merge pull request #9868 from dotCooCoo/fix/effect-bounds-lone-anchors
Effects: bounds hold the dot a closed lone anchor draws
2026-11-27 22:17:43 -08:00
.CooCoo 68f4d94d8b Merge pull request #9806 from dotCooCoo/fix/outline-placed-geometry-effects
Outline view: effects reshape a placed document's crossed box
2026-11-27 22:16:43 -08:00
dotCooCoo ee976e1b78 Docs: envelope margins name the 1e-6 pt side threshold
A side of an envelope's content shorter than 1e-6 pt, not only one of
zero length, has its margins measured as shares of the other side
(envelope_margin_lengths). docs/mcp.md, the object.envelope.info params
text and the bounds_margin doc comment now state that threshold.
2026-11-27 22:03:04 -08:00
.CooCoo 5fe987ee2d Merge pull request #9860 from dotCooCoo/feat/ctrl-click-select-behind
Selection: Cmd/Ctrl-clicks step through grouped objects under the pointer
2026-11-27 21:44:40 -08:00
dotCooCoo b73f28dc71 Effects: bounds hold the dot a closed lone anchor draws
A round or projecting cap draws a dot for a closed subpath of one anchor.
The bounds the effects are measured by left that dot out: the visual and
cull bounds, the box Rasterize makes its image over, and the reach of an
effected path's raster effects. A path of only lone anchors was measured
at the origin.

- `vectorcraft_geom::path::drawn_curve_bounds` measures a kurbo path as
  `PathData::drawn_bounds` measures the anchors it stands for.
- `crates/render/src/fx` measures effected paths with it, and a path that
  draws nothing by its anchors, as `Node::visual_bounds` does.
- A stroke measured along its segments (miter and bevel joins, projecting
  caps) gives the dot of a closed lone anchor its reach.
2026-11-27 20:21:07 -08:00
dotCooCoo 1d66710671 Selection: Cmd/Ctrl-clicks step through grouped objects under the pointer
With the Selection tool, the first Cmd-click (Ctrl on Windows and Linux)
now always goes to Direct Selection or Group Selection, also over a
selected object: it picks the object under the pointer, a member of a
group included, and arms Select Behind. While Cmd stays held, each
further Cmd-click over the selection selects the next object under the
pointer, counting the members of groups one by one, and comes back to
the topmost after the last. Letting go of Cmd (a pointer, hover or key
event without it), choosing another tool or switching documents ends it.

Before, the first Cmd-click over a selected object selected the object
behind it at once, and Select Behind stepped through whole groups, so a
member lying under another member of the same group could not be
reached that way.

- doc::hit::leaves_at lists the objects a Direct Selection click picks
  under a point, topmost first, in one traversal of the document; a
  clipping mask or a group drawn with its own geometry effects falls back
  to repeated hit tests. The list stops at 256 objects.
- The session keeps the arming (Session::behind_armed) and passes it to
  the tools as ToolContext::behind_armed.
- Docs: docs/control-protocol.md (ui.pointer), docs/mcp.md,
  docs/target-app-parity.md and docs/ui-parity.md.
2026-11-27 18:47:39 -08:00
dotCooCoo 9d54c7ccec Paths: a lone anchor widens the visual box only where a stroke draws it
The previous commit made PathData::bounds hold the point of a subpath of
one anchor. Node::visual_bounds measures a path from that box, so a lone
anchor that draws nothing (an open one, or a closed one under a butt cap
or with no stroke) widened the visual box by the stroke's reach. The
renderer draws a lone anchor only as the dot of a round or projecting
cap on a closed subpath (point_dots in crates/effects/src/stroke.rs).

- PathData::drawn_bounds measures the segments, and the lone anchors of
  closed subpaths when a cap draws dots. Node::visual_bounds measures
  paths and compound paths from it, falling back to the geometric box
  when nothing is drawn. Geometric bounds still hold every lone anchor.
- The .ai envelope import's box of what type's outlines paint relied on
  PathData::bounds leaving lone anchors out. It now removes contours of
  zero length from the baked pieces before measuring them, so
  a_contour_of_zero_length_paints_nothing passes unchanged.
2026-11-27 15:33:20 -08:00
dotCooCoo 823619c46e .ai import: envelopes of a stroked straight line map from their stroked box
An envelope whose file saves the size of its contents with their
strokes maps from that box, with margins stored as shares of the
contents' height and width. A straight line along an axis has no
height (or no width), so it got no margins and mapped from its
zero-height geometric box instead.

Margins along a side with no length are now shares of the other
side's length (envelope_margin_lengths). The reader, the envelope's
map, leaving Edit Contents and the .ai writer all measure through it,
so a stroked line opens mapping from its stroked box and saves that
box's size again.

Docs: object.envelope.info params text, docs/mcp.md,
docs/target-app-parity.md.
2026-11-27 13:45:00 -08:00
dotCooCoo 6245d6b118 Outline view: effects reshape a placed document's crossed box
In Outline mode without Show Images in Outline Mode, a placed document
with an effect that changes geometry (Transform, Roughen, plug-in
effects), its own or its group's, drew its file's art reshaped and
without the X. The effects now reshape the crossed box instead, so a
Transform effect moves the crossed box.

- While a frame draws placed documents crossed, a placed document's art
  is its box with both diagonals (PlacedDocument::crossed_art), so every
  effect and evaluation that reads that art uses the crossed box.
- Layers are drawn and measured in the mode their Layer Options give
  them: a template layer in Outline view still shows the file's art,
  and a layer or sublayer whose Preview is off shows the crossed box.
  A layer with effects of its own now follows its Layer Options too;
  before, it drew in the view's mode.
- Kept effect art, cull bounds and the areas redrawn after an edit are
  measured in that mode and kept apart per mode.

Docs: docs/ui-parity.md row done, docs/mcp.md outlineImages.
2026-11-27 13:30:42 -08:00
ruchirguitarandClaude Opus 5.5 4c36d9a9cc Merge main into the Document Info path area branch
docs/gaps.md conflict: both evidence paragraphs kept, this branch's first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 19:53:29 +05:30
ruchirguitarandClaude Opus 5.5 2d497db368 Merge main into the Document Info path area branch
Docs conflicts: main's "Last updated" banner; both sides' evidence and
history rows, newest first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:59:24 +05:30
dotCooCoo f391e8f952 Initialize guide labels in artboard test fixtures 2026-11-26 23:17:29 -08:00
.CooCoo 9b914feb20 Merge pull request #4481 from el-j/fix/artboard-copy-oversized-art-4479
Fix #4479: duplicate and Alt-drag copy artwork larger than artboard
2026-11-26 21:29:53 -08:00
dotCooCoo 1715d85828 Merge commit 'refs/check/mac2-20261126-properties-fixed' into HEAD 2026-11-26 15:42:32 -08:00
dotCooCoo df0ee01cf2 Unit Converter: reject ambiguous commas in expressions 2026-11-26 14:20:18 -08:00
dotCooCoo 93a5d81d2e Merge main into feat/scripts-api-d7b-tags-notes-uuid 2026-11-26 09:34:56 -08:00
dotCooCoo 38d4832ef2 Merge main into fix/selection-marks-skip-view-hidden-members 2026-11-26 07:14:22 -08:00
BFlat 1a960da2d3 Merge pull request #9116 from dotCooCoo/feat/plugin-api-filter-type-images-symbols
Plug-ins: filters at API level 3 change type, images and symbol instances
2026-11-26 16:51:11 +07:00
BFlat 6ab2d4c25d Merge pull request #9372 from dotCooCoo/fix/transform-guide-path-ids
Guides: a transform's reply lists the guide paths it makes of ruler guides
2026-11-26 16:44:57 +07:00
dotCooCoo 562bec3f1e Merge main into feat/scripts-api-d7b-tags-notes-uuid 2026-11-25 23:07:28 -08:00
dotCooCoo 272c24a119 Selection: a selected group leaves out guides and templates the view hides
A selected group or layer outlined and marked a member made into a guide
while the guides were hidden, and the art of a template sublayer while
View > Hide Template was on, although the canvas does not draw them.

- Node::hidden_by_view (crates/doc/src/node/ops.rs) holds the rule; the
  renderer's left_out now uses it too.
- walk_drawn and the overlay's point limit in canvas/outline.rs leave out
  the members the view hides, so the selection's outlines, key outline,
  anchors, hover outline and point count skip them.
- The selection's bounds are unchanged.
2026-11-25 22:40:11 -08:00
dotCooCoo b5d62ade36 Selection: a turned or skewed symbol instance is outlined along its frame
The selection outline and the hover highlight drew a symbol instance as
the box square to the page around it, so a turned, skewed or
perspective instance showed a box larger than its frame. Type in
perspective had the same box.

Node::drawn_corners gives the four corners of an instance's art box
placed by its transform, and of type's flat bounds, both through the
projection of an object in perspective. node_outline joins them, as it
already does for a placed document's corners.
2026-11-25 22:19:27 -08:00
dotCooCoo 9c34c3a2fa Guides: a transform's reply lists the guide paths it makes of ruler guides
A selected ruler guide that a transform turns to an angle becomes a
selected guide path, but the reply's ids left it out: object.rotate
with copy on a lone guide returned {"ids": []}. transform_ruler_guides
now returns the ids of the paths it adds, and the transform commands
add them after the transformed objects, on the direct-selected anchor
route too.
2026-11-25 21:51:20 -08:00
dotCooCoo 132d2da4a1 Merge main into feat/plugin-api-filter-type-images-symbols 2026-11-25 19:01:04 -08:00
BFlat dc0c47a9a3 Merge pull request #9329 from dotCooCoo/feat/rotate-ruler-guides
Guides: selected ruler guides rotate with the Rotate tool and Object › Transform › Rotate
2026-11-26 08:48:18 +07:00
dotCooCoo 29d6542c9f Merge main into fix/selection-marks-skip-hidden-members 2026-11-25 15:07:56 -08:00
dotCooCoo c0fd2170d0 Merge main into feat/plugin-api-filter-type-images-symbols 2026-11-25 13:59:45 -08:00
dotCooCoo 05b6a15d48 Guides: selected ruler guides rotate with the Rotate tool and Object › Transform › Rotate
A selected ruler guide was left out of every transform but a move: the
Rotate tool did nothing with only guides selected, and Object › Transform
› Rotate… refused with "nothing selected".

Each selected ruler guide now transforms as the line Release Guides makes
of it (across its artboard, or across the artboards' bounds for a canvas
guide), about the center of the selected objects' box and those lines
together. A guide that ends up vertical or horizontal stays a ruler guide:
a half turn keeps it and a quarter turn makes a horizontal guide vertical.
At any other angle it becomes a guide path along its line, on the guide's
layer, so it snaps, releases, locks and saves as other guide paths do.

- Object › Transform › Rotate… (Copy included), Transform Again and the
  Rotate tool's drag and Alt-click work with only guides selected, in one
  undo step. A turn that leaves the guides where they were records none.
- Scale, Reflect, Shear and the bounding box now transform selected guides
  along with the selected objects and direct-selected anchors, where
  before the guides stayed put.
- Locked and hidden guides, guides with ids given and guides with
  Transform Objects off do not transform. `absolute` with only guides
  selected is an error.

Part of #2418.
2026-11-25 10:37:15 -08:00
dotCooCoo 24101cc724 Merge feat/linked-image-x into fix/selection-marks-skip-hidden-members
Brings in main at 08425c9610 through #9090's merge of it. The hidden-member tests move to canvas/selection/tests.rs, where main now keeps the selection outline and anchor tests, and check the selection's outlines, anchors and hover outline directly.
2026-11-25 09:55:15 -08:00
dotCooCoo 2ffccc3e90 SVG export: feet, yards, meters, Q and Ha documents keep their printed size
Since #8610, a document in millimeters, centimeters, inches or picas is
exported with that unit on the root width and height. A document in
feet, feet and inches, yards, meters, Q or Ha still got unitless point
values, which SVG readers take as CSS pixels at 96 per inch, so the art
opened at 75% of its size. These units have no SVG unit identifier, so
the export now writes feet and yards in inches, meters in centimeters,
and Q and Ha in millimeters. The viewBox stays in points, and
VectorCraft reads the file back at the same size.
2026-11-25 06:07:34 -08:00
dotCooCoo b0f74500ee Scripts: a native file with a tag id that is not a whole number opens
A tag id in a native file that is negative, a fraction or text read as
an error, so the whole file failed to open. It now reads as 0, and
opening gives the tag a new id as it does for a missing or repeated id,
with its name and value kept.

The Scripts line in docs/target-app-parity.md now describes
PageItem.tags and Document.tags separately: Document.tags reads, renames
and deletes tags but its add throws.
2026-11-25 05:07:46 -08:00
BFlat 9ddc6b64e0 Merge pull request #8906 from dotCooCoo/feat/eyedropper-hover-highlight
Eyedropper: Object Highlighting outlines the object a click would act on
2026-11-25 19:56:02 +07:00
dotCooCoo ee179f34dd Merge main into feat/plugin-api-filter-type-images-symbols 2026-11-25 04:26:13 -08:00
BFlat 0e4bf6dae6 Merge pull request #9200 from lehni/feature/segment-nudge
Direct Selection: the arrow keys bend a selected curved segment
2026-11-25 17:50:11 +07:00
BFlat 08ceee64e8 Merge pull request #8846 from adambelis/fix/width-profile-shape
Width profiles: keep the profile's shape and smooth its outline
2026-11-25 17:46:31 +07:00
FredApps 929c09f2a4 Merge main into the Document Info path area branch
Keep the current Document Info command fields when adding Path Area, and cover selecting a compound path member by itself and with its parent.
2026-11-25 09:13:15 +01:00
dotCooCoo 34b5706d1f Merge main into feat/eyedropper-hover-highlight 2026-11-24 23:28:44 -08:00
BFlat 817daf24e8 Merge pull request #9148 from dotCooCoo/fix/white-spot-ink-overprints
Overprint: a white spot ink keeps overprinting with Discard White Overprint on
2026-11-25 11:32:02 +07:00
ruchirguitar b887ddf843 feat(docinfo): add path area to Document Info (#6965)
- Add Unit::format_area(self, pt2: f64) -> String to format area in document units.
- Add pathArea (pt²) to document.info output and insert Path Area row in Objects section.
- Calculate compound path net enclosed area using fill rules (Non-Zero / Even-Odd), subtracting holes.
- Exclude guides and open paths, and avoid double-counting on nested compound paths.
- Update progress evidence and entries in docs/gaps.md and docs/target-app-parity.md (identifying Path Area as a VectorCraft addition beyond reference panel).
2026-11-25 09:49:32 +05:30
dotCooCoo 0a36ef97e1 Merge main into fix/ctrl-lends-selection-tool 2026-11-24 18:02:30 -08:00
dotCooCoo f16defe5db Merge main into feat/scripts-api-d7b-tags-notes-uuid 2026-11-24 17:00:39 -08:00
dotCooCoo 8f474a41a3 Merge main into fix/white-spot-ink-overprints
The white checks for colorized images in PDF export, EPS export and Print
Ink Fixes now go through DiscardWhite, which replaces
Document::spot_ink and Document::discards_white_overprint. Printed
separations read DiscardWhite with the spot inks they print, so a white
spot ink converted to process inks knocks out there.
2026-11-24 12:31:45 -08:00
dotCooCoo e990b43681 Merge main into feat/scripts-api-d7b-tags-notes-uuid
New Document's More Settings now shows the columns a preset's rows give
the current artboards, and a new layout or column count replaces those
rows, in the dialog main rewrote.
2026-11-24 10:50:38 -08:00
.CooCoo 4c60269d1a Select: adding objects one at a time checks and reads only the added ones (#9145) 2026-11-25 00:55:44 +07:00
BFlat d48c4207f7 Merge pull request #9102 from dotCooCoo/feat/colorized-image-overprint
Images: Overprint Fill makes a colorized image's color overprint
2026-11-24 16:39:55 +07:00
BFlat 0773e17df5 Merge pull request #9161 from dotCooCoo/feat/outline-linked-image-x
Outline view: linked images and placed documents show their box with an X
2026-11-24 16:07:52 +07:00
BFlat 74870a8fb8 Merge pull request #9150 from dotCooCoo/fix/delete-keeps-id-cache
Delete: removing objects one at a time keeps the id lookup cache
2026-11-24 16:07:15 +07:00
BFlat 86a03fcdff Merge pull request #8986 from dotCooCoo/feat/dimension-alt-object-size
Dimension tool: Alt over a path places its overall width or height
2026-11-24 16:04:27 +07:00
dotCooCoo 116a8c2411 Overprint: a white spot ink keeps overprinting with Discard White Overprint
With Discard White Overprint on, PDF export, Overprint Preview,
Separations Preview and printed separations took the overprint off any
white paint, including a tint above 0% of a spot swatch whose color is
white, which prints as that ink. Such a tint now keeps its overprint in
fills, strokes, character paints and a colorized image's color; process
white and a 0% tint still knock out.

DiscardWhite holds the setting and the document's spot inks, and
Document::discards_white_overprint gives the same answer for the PDF and
EPS writers.
2026-11-24 00:45:00 -08:00