fix(ui): preview actual polygon outlines while drawing (#583)

Inscribed, circumscribed and edge polygon tools preview their actual outline (side count and orientation) while drawing, with the current line type, instead of only the support circle. Preview work is bounded. Fixes #520.

Co-authored-by: lillith <35337584+0xlillith@users.noreply.github.com>
This commit is contained in:
selune authored and GitHub committed 2026-10-13 04:26:00 -04:00
1 parent dc060f8b86
commit 5ad8b3966f
5 files changed
+102 -1

No files matched your search

@@ -0,0 +1,25 @@
[
{"note":"#520: all polygon drawing variants show their real edge outline before committing, including a typed side count."},
{"call":"engine.execute","params":{"command":"sketch.create","params":{"plane":"XY"}}},
{"call":"ui.view","params":{"view":"top"}},
{"start":"sketch.polygon.inscribed"},
{"click":{"sketch":[0,0]}},
{"move":{"sketch":[20,8]}},
{"expect":{"count":{"name":"polygon_preview_edges","value":6},"errors":0}},
{"text":"10"},
{"key":"Tab"},
{"text":"4"},
{"move":{"sketch":[20,10]}},
{"expect":{"count":{"name":"polygon_preview_edges","value":4},"errors":0}},
{"key":"Escape"},
{"start":"sketch.polygon.circumscribed"},
{"click":{"sketch":[0,0]}},
{"move":{"sketch":[20,8]}},
{"expect":{"count":{"name":"polygon_preview_edges","value":6},"errors":0}},
{"key":"Escape"},
{"start":"sketch.polygon.edge"},
{"click":{"sketch":[0,0]}},
{"move":{"sketch":[20,8]}},
{"expect":{"count":{"name":"polygon_preview_edges","value":6},"errors":0}},
{"key":"Escape"}
]