mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-27 11:17:01 -06:00
Fix #321: the perspective grid hides while a perspective tool is chosen
The grid was drawn whenever its `visible` flag was set or a perspective tool was active, and choosing the Perspective Grid tool (Shift+P) didn't set the flag. So with the tool chosen, View > Perspective Grid > Hide Grid (perspective.grid.show) turned the hidden flag on instead of off and the grid stayed on screen however it was toggled. Choosing a perspective tool now shows the grid (sets `visible`, view state, no undo step), and the grid, its widget and the Perspective Grid tool's handles are drawn only while it is visible. Hide Grid hides it with the tool still chosen; choosing the tool again shows it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
committed by
bflatastic
co-authored by
Claude Opus 5.5
parent
f17c34a067
commit
4a676c4d5e
+5
-4
@@ -1994,10 +1994,11 @@ keeps one axis), the left and right extents (separate: `extent` and `extentRight
|
||||
whole cells), the vertical extent and the cell size widget (on the line where the planes meet, a cell up, or more
|
||||
cells while they're small) reshape the grid; Lock Grid stops them. The Plane Switching Widget stays put in a corner
|
||||
of the document window (headless: the first artboard's top-left corner); a press on it picks the plane with any tool
|
||||
while the grid shows (a perspective tool shows it), and the keys 1–4 (`key` with `"1"`…`"4"`) pick the left,
|
||||
horizontal, right and no plane. `perspective.widget.options {show?, position?}` (Perspective Grid Options,
|
||||
double-click the tool) hides it or moves it to `topLeft`, `topRight`, `bottomLeft` or `bottomRight`, kept with the
|
||||
preferences (`prefs.get`/`prefs.set` key `perspectiveWidget`).
|
||||
while the grid shows (choosing a perspective tool shows it, and `perspective.grid.show` hides it again with the tool
|
||||
still chosen), and the keys 1–4 (`key` with `"1"`…`"4"`) pick the left, horizontal, right and no plane.
|
||||
`perspective.widget.options {show?, position?}` (Perspective Grid Options, double-click the tool) hides it or moves
|
||||
it to `topLeft`, `topRight`, `bottomLeft` or `bottomRight`, kept with the preferences (`prefs.get`/`prefs.set` key
|
||||
`perspectiveWidget`).
|
||||
|
||||
## Envelopes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user