mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-28 19:57:05 -06:00
Part of #394: Smart Guides display options and Snapping Tolerance
Color, Alignment Guides, Anchor/Path Labels, Measurement Labels, Transform Tools, Object Highlighting and Snapping Tolerance are read: - tools: `guides::GuideStyle` on `Targets` (`styled(cx)`) colours the lines and labels and leaves them out when their option is off, the snap itself unchanged; `ToolContext` gains the six fields and `snap_tol()`, replacing the 5 px literal for every smart guide snap (drawn points, moves, bounding-box handles, ruler guides, artboards, reference points). The tools gate their `Overlay::Measure` readouts on Measurement Labels (drawing, moving, ruler guides, artboards) or Transform Tools (scaling, rotating, Free Transform, transform tools). - engine: `with_tool_cx` fills them from `Prefs` (the colour parsed, magenta as fallback); the colour's default is `#ff3dfc`, what the tools drew. - ui-egui: the hover outline needs Object Highlighting and Smart Guides. - Tests in tools (guides, select), engine (tests_prefs) and the canvas; docs/mcp.md and ROADMAP. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
committed by
bflatastic
co-authored by
Claude Fable 5.1
parent
d92ade9117
commit
14d7b3ddce
+20
@@ -1162,6 +1162,26 @@ wheel zooms about the pointer, Shift-wheel scrolls up and down, Cmd/Ctrl-wheel s
|
||||
`scrubNumericFields` (on: a horizontal drag on a numeric field's label steps the field, one undo step per drag; the
|
||||
control channel's `ui.drag` scrubs).
|
||||
|
||||
The Smart Guides preferences (Preferences › Smart Guides) apply to `pointer_gesture` with Smart Guides on (the
|
||||
default view) and to the mouse; they change what the tools show and how far a target pulls, never where a snapped
|
||||
point lands:
|
||||
|
||||
- `smartGuideColor` (`#ff3dfc` by default): the colour of the smart guides' lines and labels.
|
||||
- `alignmentGuides` (on by default): off, no line is drawn along the edge or centre the art lines up with; the art
|
||||
still snaps into line.
|
||||
- `anchorPathLabels` (on by default): off, no "anchor", "center", "path" or "align" label.
|
||||
- `measurementLabels` (on by default): off, no size or offset readout while drawing, moving, dragging a ruler guide or
|
||||
drawing and resizing an artboard.
|
||||
- `transformToolsGuides` (on by default): off, no readout while scaling or rotating with the Selection tool, the
|
||||
Free Transform tool or the Rotate, Scale, Shear and Reflect tools.
|
||||
- `objectHighlighting` (on by default; desktop app): off, the Selection tools no longer outline the object under the
|
||||
pointer. The outline also needs View › Smart Guides on.
|
||||
- `snappingTolerance` (0–40 px, 4 by default): how near an anchor, edge, centre or artboard edge pulls a drawn point,
|
||||
a dragged selection, a bounding-box handle, a ruler guide or an artboard. With Smart Guides off, Snap to Point uses
|
||||
`snapToPointTolerance` instead.
|
||||
|
||||
Not read yet: Construction Guides and their Angles, and Spacing Guides (the tools draw neither).
|
||||
|
||||
## Type preferences
|
||||
|
||||
- `placeholderText` (on by default): type the Type tools place (`pointer_gesture` with `type`, `areaType`…) starts with
|
||||
|
||||
Reference in New Issue
Block a user