Files
OneCAD/crates/ui-egui/tests/scenarios/s39_view_cube_hover.json
T

17 lines
788 B
JSON

[
{"note": "View cube hover from the home view: a face lights one patch, an edge the 2 patches on its faces, a corner the 3 around it (Fusion)."},
{"call": "ui.view", "params": {"view": "home"}},
{"move": {"cube": [0, 0, 1]}},
{"expect": {"count": {"name": "cube_highlights", "value": 1}}},
{"move": {"cube": [0, -0.9, 1]}},
{"expect": {"count": {"name": "cube_highlights", "value": 2}}},
{"move": {"cube": [1, -0.9, 0]}},
{"expect": {"count": {"name": "cube_highlights", "value": 2}}},
{"move": {"cube": [0.9, -0.9, 1]}},
{"expect": {"count": {"name": "cube_highlights", "value": 3}}},
{"move": {"cube": [0.9, -1, 0.9]}},
{"expect": {"count": {"name": "cube_highlights", "value": 3}}},
{"move": [800, 500]},
{"expect": {"count": {"name": "cube_highlights", "value": 0}}}
]