Files
makeCAD/crates/ui-egui/tests/scenarios/s35_construction_mode.json
T

48 lines
2.1 KiB
JSON

[
{"note": "With nothing selected, X or the palette Construction icon sets the drawing mode until switched back. With a selection, X converts it. The four Line Type icon segments use named handles."},
{"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"},
{"click": {"handle": "dialog:Line Type:normal"}},
{"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}}},
{"click": {"handle": "dialog:Line Type:construction"}},
{"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}}}
]