Commit Graph
1573 Commits
Author SHA1 Message Date
dotCooCoo 4080708714 Merge main into feat/stylus-wheel 2026-11-18 17:25:37 -08:00
dotCooCoo f5b2dfa8b4 Merge main into feat/curvature-circle 2026-11-18 17:15:45 -08:00
dotCooCoo 1f26501f91 Pen: no rubber band where a click adds no segment, and the label measures the band
A click on the last anchor retracts its handle, an Alt click over the path
goes to the Anchor Point tool, and a join with an end that lies on the last
anchor merges the two ends. None of these adds a segment, so no rubber band
shows there. The measurement label measures to the anchor the band ends on
instead of the snapped pointer. A press and a hover no longer search for an
end at the snapped point when snapping left the pointer where it was.
2026-11-18 17:05:57 -08:00
dotCooCoo 32e7344cb9 Merge main into feat/arc-by-points 2026-11-18 17:04:49 -08:00
dotCooCoo b92cdba3e0 Repeat: switching tools during a mirror axis or repeat handle drag puts it back
Switching away from the Selection tool while dragging a mirror axis or a
grid or radial repeat's handles left the drag's preview open under the
next tool. The Selection tool now cancels these drags on a tool switch,
as Escape already did, so the repeat goes back to its options from
before the press. A press that has not changed anything leaves no undo
step.

The deactivate doc comment now lists these drags and the Image Trace
divider.
2026-11-18 16:54:56 -08:00
dotCooCoo 3d5a6c3c01 Three-Point Arc: ] while hovering moves the shown third point to the new mode
With both ends placed and Shift held, switching modes with `]` left the
point the tool showed where the old mode put it until the pointer moved,
while a click there drew the arc of the new mode.
2026-11-18 16:47:52 -08:00
dotCooCoo e3ccd346ad Selection: widget drags read the release point and a tool switch cancels them
A drag of a corner, pie or blend widget, an Objects on Path widget, a
bracket of type on a path or a 9-slice guide released away from its last
drag event now drags there before it ends, so the release keeps what a
drag to that point would show. The Objects on Path tool reads the release
the same way.

Switching tools during a drag of an Objects on Path widget, a bracket, a
repeat control or a 9-slice guide now cancels it, as Escape does, in the
Selection tool and the Objects on Path tool. Before, the preview stayed
open after the tool was gone.
2026-11-18 16:40:59 -08:00
dotCooCoo 61cc30e9b8 Image Trace: a shown center point keeps its drag over the divider
With Show Center on, a press on a selected Image Trace object's center
point where the Split view's divider crosses it moved the divider
instead of the object. The divider now leaves a press on a shown center
point to the Selection tool, as it already did for the bounding-box
handles.
2026-11-18 16:40:27 -08:00
dotCooCoo 9f859372e4 Reflect tool: a click released after the document changed sets nothing
A press that the document or selection changed under before its release, without
becoming a drag, now sets no reference point and starts no Reflect axis, as a
drag from such a press already did.
2026-11-18 16:40:21 -08:00
dotCooCoo bd54c2a63b Three-Point Arc: measure the arc's curve, not its handles, against the canvas
An arc near the canvas edge whose handles reach past it while the curve
stays inside showed "Arc too large", though shape.threePointArc draws it.
The tool now measures the curve's bounds, as the document's range check
does for such a path.
2026-11-18 16:37:07 -08:00
dotCooCoo e6b6a3dc78 Merge main into feat/circle-tool-options 2026-11-18 16:24:04 -08:00
dotCooCoo b66e43f048 Shapes: Circle tool options pass the tool's own option check
The Circle tool now answers Tool::check_option with the values
check_options takes, so tool.setOption and the option check that runs
on every tool accept the options the tool reports.

- With Third Point by Dragging off, a click in reach of both placed
  points is on the nearer one (or the one it snapped to).
- A press on the second point previews the circle on the two points
  that its release draws, and a press on the first point previews none.
- With Anchors at Standard Positions off, the preview is the path with
  an anchor at each point, which the release draws.
- A move of less than 2 screen points keeps the second or third point
  where it was pressed.
- circle_with_anchors_at gives the two ends of a diameter four anchors
  also where rounding of the midpoint puts the second point more than
  half a turn from the first.
- The canvas-edge test checks for an outline whether dashed or solid.
- docs/mcp.md says that only anchors: "standard" draws a live ellipse.
2026-11-18 16:15:07 -08:00
dotCooCoo e9650d17a4 Image Trace: switching tools during a divider drag puts the view back
Switching away from the Selection tool while dragging the Split view's
divider left the drag's interaction open with its preview in the
document. The Selection tool now cancels the drag on deactivate, as
Escape does, as it already did for the corner, pie, side and blend
widgets.
2026-11-18 16:09:36 -08:00
dotCooCoo e39e6713d9 Reflect tool: Enter or a dropped press ends a press not yet a drag
Enter between the press and the release of a click now ends that press,
so the release sets no reference point and starts no Reflect axis behind
the dialog. A press the engine drops ends whether or not it became a
drag, and drops a waiting axis, so the release sent after it starts no
axis. A press whose document or selection changes before it becomes a
drag is dropped, so the reference point or axis set for one selection
is never applied to another.

The engine test checks that the Alt copy is reflected across y = 300.
The docs state that the first click is a plain click, that the 3 px
check compares the snapped points, and what a double-click does while
an axis waits.
2026-11-18 16:09:31 -08:00
dotCooCoo 1ea9a2775a Three-Point Arc: save the direction option, fix two placement cases
- `tool.setOption` (and the Tool Options dialog) now accepts `direction`
  as true or false and refuses other values or unknown options.
- The first press counts as a drag when the pointer moves 2 pt from
  where it was pressed, not from the point it snapped to.
- `]` pressed while the third point is held down places that point as
  the new mode keeps it.
2026-11-18 16:01:23 -08:00
dotCooCoo f4071dd56a Merge main into feat/image-trace-split-view 2026-11-18 15:58:59 -08:00
dotCooCoo d94d3ef097 Type: the missing-font question takes its answer through tool.setOption
- `tool.setOption {key: "missingFontEdit", value: {token, ok}}` now passes
  the Type tool's option check, so a client can answer the question that
  a click on type in a missing font asks. Before, it failed as an unknown
  option.
- A press on such type that reaches the Type tool while another dialog is
  open (sent with `pointer_gesture`) leaves that dialog open and starts no
  edit, instead of replacing it.
- docs/mcp.md says which double-clicks ask, and that OK starts no edit
  when the document changed after the question opened.
- The doc comment of `GENERIC_FAMILIES` notes that `emoji` is kept
  although CSS Fonts Module Level 4 dropped it.
2026-11-18 15:41:34 -08:00
dotCooCoo 83a1fbbcd8 Symbolism: the Sprayer's User Defined Style applies the style picked in Graphic Styles
A click in the Graphic Styles panel set the style only for the Symbol
Styler, so the Sprayer with Style: User Defined sent no style and sprayed
the document's first style after the default one. The two tools now share
the style option.
2026-11-18 15:28:52 -08:00
dotCooCoo 6e8a8e8cdb Shapes: a Circle tool release near the press is a click, also after a drag
A press dragged away and let go within 2 screen points of where it was
pressed was still taken as a drag. A second press dragged out and back
drew the circle through three nearly collinear points, or nothing, and a
press on the first point drew a circle about 1 pt across. The release
distance now decides: such a release keeps the press's point, so a second
press draws the circle on the diameter to it, a press on the first point
places nothing, and a first press places the first point. The preview
and the guides of the drag go with it.
2026-11-18 15:18:56 -08:00
dotCooCoo 3ef0e5e588 Symbols: the Symbolism tools take their new options, and OK checks them before any change
tool.setOption now accepts usePressure, method, showBrush, the Symbol
Sprayer options, proportional and affectsDensity for the Symbolism
tools, so the Symbolism Tools Options dialog can save them. The dialog
checks every option, the number ranges included, before
symbol.setDensity re-spaces the selected symbol sets.

- Size: Average gives a sprayed instance the mean size under the brush,
  or the symbol's own size with none there, without the size jitter.
- A stroke that moves an instance away and back again does not count
  it, and adds no undo step.
- symbol.adjust reads an instance's own values for Average only.
2026-11-18 15:10:38 -08:00
dotCooCoo 97a2b802a4 Symbolism: tool.setOption takes every Symbolism option, and OK checks ranges first
- The Symbolism tools' check_option accepts usePressure, method,
  showBrush, the six Sprayer options, proportional and affectsDensity,
  so tool.setOption and the options dialog's OK save them.
- OK runs both of tool.setOption's checks, ranges included, before
  symbol.setDensity, so a refused diameter leaves the sets' density.
- Average skips a stain or style at opacity 0: the Sprayer's mean and
  the Stainer and Styler take the visible one's paint.
- symbol.adjust reads an instance's look only for Average and the Shift
  recolor, so the Shifter moves an instance whose transform flattens it.
- restack collects the parents in a BTreeSet.
- The symbol.spray, symbol.setDensity and symbol.adjust texts and
  docs/mcp.md describe the size base and jitter, the third point value,
  the starting density, the Random and Alt Styler, and density errors.
2026-11-18 15:02:02 -08:00
dotCooCoo b6fdf59eb9 Fix #8568: Shift moves check an artboard guide's reach as before
A diagonal Shift move that slides onto a ruler guide again checks an
artboard guide's run where the move put the bounds, not where the slide
would put them, so the guides a Shift move reaches are the same as on
main. A selection held by its edge still checks where the slide puts
the bounds. A test covers a diagonal Shift move whose middle is beyond
an artboard guide's end.

The Drawing aids line now names the Selection tool for edge holds and
says the slide does not go past the path's ends.
2026-11-18 14:50:33 -08:00
dotCooCoo 728d30b5e5 Merge main into feat/circle-from-center
# Conflicts:
#	crates/ui-egui/src/i18n/tests.rs
2026-11-18 14:47:04 -08:00
dotCooCoo cf4dd8b375 Merge main into feat/control-bar-shape-widgets 2026-11-18 14:13:10 -08:00
ncic 59461a08a9 Merge main into pencil-redraw-extend
# Conflicts:
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-18 23:02:27 +01:00
dotCooCoo 247bfeb11d Merge main into feat/symbolism-options-method 2026-11-18 13:32:30 -08:00
dotCooCoo 49c4ae5851 Merge main into feat/reflect-tool-two-click-axis 2026-11-18 13:24:45 -08:00
dotCooCoo bcfeca7c48 Merge main into feat/tool-cards 2026-11-18 13:19:27 -08:00
dotCooCoo a9cd206c04 Merge main into feat/tangent-circle-tool 2026-11-18 13:19:09 -08:00
dotCooCoo 2c16bb4c67 Merge main into fix/pen-rubber-band-close-join 2026-11-18 13:11:07 -08:00
dotCooCoo abdd32bdd1 Merge main into feat/symbolism-shift-gestures 2026-11-18 13:10:13 -08:00
dotCooCoo 38d9d45522 Merge branch 'fix/dimension-levels-linear' of github.com:dotCooCoo/vectorcraft into fix/dimension-levels-linear 2026-11-18 12:30:15 -08:00
dotCooCoo d515b1fb96 Dimension tool: the dimension reads stop at the 20,000-object limit
The walks that look for dimension ends and lines to snap to, and the
dimension lines a linear dimension lines up with, stop going through the
remaining layers and siblings once they have read 20,000 objects.
2026-11-18 12:30:12 -08:00
dotCooCoo cb3d274550 Fix #8568: a selection held by its edge lands that point on other paths
With Smart Guides on, a selection the Selection tool held by a point of
a path's edge (a press on its stroke, on its outline in Outline view, or
on the fill within 6 screen points of the edge) snapped that point only
to other anchors and centers, or lined its bounds up. It now also lands
on the other objects' paths ("path") and where paths and ruler guides
cross ("intersect"), as a selection grabbed by an anchor does since

On a straight path, the selection then slides along that path, the
point staying on it, until its bounds line up with other objects, are
spaced evenly with them or line up with a ruler guide. The slide goes
at most twice the Snapping Tolerance and not past the path's ends. On a
curved path and at a crossing the point lands as an anchor does, and
the bounds do not line up.
2026-11-18 12:29:10 -08:00
jayzed80 f64e61a986 Merge remote-tracking branch 'upstream/main' into HEAD
# Conflicts:
#	crates/doc/src/hit.rs
#	crates/tools/src/text.rs
2026-11-18 20:13:37 +00:00
yoriswind 2226777d00 Update image tracing sampling to the current target API 2026-11-18 11:26:06 -08:00
dotCooCoo 9d16998435 Merge main into fix/dimension-levels-linear 2026-11-18 10:41:39 -08:00
dotCooCoo 87fcec7fcc Merge main into feat/width-point-edit-all-selected 2026-11-18 10:41:24 -08:00
dotCooCoo c025b4e8ff Merge main into feat/reflect-tool-two-click-axis 2026-11-18 10:34:17 -08:00
yoriswind 9455062fd1 8068: preserve image trace sampling alongside current mesh options 2026-11-18 10:30:49 -08:00
dotCooCoo 275dff5d31 Merge main into feat/arc-by-points 2026-11-18 10:30:34 -08:00
bflatastic 1e3e559820 combo: #8559 2026-11-19 01:26:13 +07:00
bflatastic 5c6d82aa58 combo: #8517 2026-11-19 01:26:09 +07:00
bflatastic 9fe3884d67 Merge main into #8559 2026-11-19 01:21:18 +07:00
bflatastic f79889da55 Merge main into #8517 2026-11-19 01:21:06 +07:00
bflatastic 86eb9aa115 Merge main into #7867 2026-11-19 01:19:48 +07:00
BFlat 981b2b1db3 Merge pull request #8586 from storytold/fix/type-overlay-font-race
tests: Type tool layout counts no longer race tests that add fonts
2026-11-19 01:17:56 +07:00
BFlat 16ef2053b3 Merge pull request #8562 from dotCooCoo/fix/issue-8537
Fix #8537: Dimension tool points land on preview bounds corners
2026-11-19 00:43:48 +07:00
BFlat a0bc3a7900 Merge pull request #8500 from dotCooCoo/feat/bristle-pen-cursor
Paintbrush: preview Bristle tip for rotation-capable pens
2026-11-19 00:43:00 +07:00
BFlat ca812ef78e Merge pull request #8408 from dotCooCoo/feat/type-missing-font-edit-confirm
Type: editing type set in a missing font asks to confirm first
2026-11-19 00:42:06 +07:00