Files
OneCAD/crates/ui-egui/tests/scenarios/s35_construction_mode.json
T
William Dunn 4a989f6e2d Three readable line type icons in the Sketch Palette, with construction orange moved to a caller contract (#747)
The Sketch Palette's line types are three drawn icons (solid, one gap, gap with a dot) instead of text glyphs, and the construction orange is now chosen by the caller (`fixed_accent` on the toolbar) rather than hardcoded in the icons.
2026-10-13 11:53:59 -04:00

48 lines
2.3 KiB
JSON

[
{"note": "Construction mode like Fusion: with nothing selected, X (or the palette's Construction linetype) makes new curves construction until switched back; with a selection X converts it. The palette's linetype buttons still carry their old glyphs ('--', '- -', '-.-') as an invisible accessible label and hit target. A drawn icon (icons.rs) now paints over each, in the construction orange for construction and centerline. The widgets below are still reached by the glyph."},
{"start": "sketch.create"},
{"click": {"plane": "XY"}},
{"expect": {"dialog": null}},
{"key": "X"},
{"expect": {"tool": null}},
{"start": "sketch.rectangle.two_point"},
{"click": {"sketch": [0, 0]}},
{"click": {"sketch": [30, 20]}},
{"key": "Escape"},
{"start": "sketch.circle.center"},
{"click": {"sketch": [15, 10]}},
{"click": {"sketch": [20, 10]}},
{"key": "Escape"},
{"expect": {"query": {"command": "sketch.inspect", "path": ["curves", 4, "construction"], "value": true}}},
{"expect": {"query": {"command": "sketch.inspect", "path": ["curves", 0, "construction"], "value": true}}},
{"expect": {"query": {"command": "sketch.inspect", "path": ["profiles"], "value": []}}},
{"key": "Z", "cmd": true},
{"expect": {"query": {"command": "sketch.inspect", "path": ["curves", 4], "value": null}}},
{"key": "Y", "cmd": true},
{"shot": "s35_construction_mode"},
{"widget": "—"},
{"start": "sketch.circle.center"},
{"click": {"sketch": [40, 10]}},
{"click": {"sketch": [45, 10]}},
{"key": "Escape"},
{"expect": {"query": {"command": "sketch.inspect", "path": ["curves", 5, "construction"], "value": false}}},
{"widget": "- -"},
{"start": "sketch.line"},
{"click": {"sketch": [0, 30]}},
{"click": {"sketch": [30, 30]}},
{"key": "Escape"},
{"key": "Escape"},
{"expect": {"query": {"command": "sketch.inspect", "path": ["curves", 6, "construction"], "value": true}}},
{"key": "X"},
{"click": {"sketch": [40, 15]}},
{"key": "X"},
{"expect": {"query": {"command": "sketch.inspect", "path": ["curves", 5, "construction"], "value": true}}},
{"key": "Escape"},
{"start": "sketch.line"},
{"click": {"sketch": [0, 40]}},
{"click": {"sketch": [30, 40]}},
{"key": "Escape"},
{"key": "Escape"},
{"expect": {"query": {"command": "sketch.inspect", "path": ["curves", 7, "construction"], "value": false}}}
]