[ {"note": "The view cube is a cube with chamfered corners. Its targets are the 6 faces, the 12 edges (a band along each edge, on both faces it joins) and the 8 corner facets; hover lights exactly the one under the pointer, and a click turns the view to it."}, {"call": "ui.view", "params": {"view": "home"}}, {"move": {"cube": [0, 0, 1]}}, {"expect": {"count": {"name": "cube_highlights", "value": 1}, "shown_handles": ["cube_hover:top"]}}, {"move": {"cube": [0.3, -1, 0.2]}}, {"expect": {"count": {"name": "cube_highlights", "value": 1}, "shown_handles": ["cube_hover:front"]}}, {"note": "On the top-front edge, and just off it on the top face: the edge."}, {"move": {"cube": [0, -1, 1]}}, {"expect": {"count": {"name": "cube_highlights", "value": 1}, "shown_handles": ["cube_hover:top-front"]}}, {"move": {"cube": [0, -0.9, 1]}}, {"expect": {"count": {"name": "cube_highlights", "value": 1}, "shown_handles": ["cube_hover:top-front"]}}, {"move": {"cube": [0.873, -0.873, 0.873]}}, {"expect": {"count": {"name": "cube_highlights", "value": 1}, "shown_handles": ["cube_hover:top-front-right"]}}, {"click": {"handle": "cube:top-front-right"}}, {"expect": {"camera": {"yaw_deg": -45, "pitch_deg": 35.26}}}, {"click": {"handle": "cube:front"}}, {"expect": {"camera": {"yaw_deg": 0, "pitch_deg": 0}}}, {"note": "Looking straight at FRONT, its top edge is a band along the face's top: it turns to the view halfway between FRONT and TOP."}, {"move": {"cube": [0, -1, 0.95]}}, {"expect": {"count": {"name": "cube_highlights", "value": 1}, "shown_handles": ["cube_hover:top-front"]}}, {"click": {"handle": "cube:top-front"}}, {"expect": {"camera": {"yaw_deg": 0, "pitch_deg": 45}}}, {"click": {"handle": "cube:front-right"}}, {"expect": {"camera": {"yaw_deg": -45, "pitch_deg": 0}}}, {"note": "TOP turns as little as it can: from the right side it keeps the heading, so RIGHT stays at the bottom instead of the view spinning round to FRONT."}, {"click": {"handle": "cube:top-right"}}, {"expect": {"camera": {"yaw_deg": -90, "pitch_deg": 45}}}, {"click": {"handle": "cube:top"}}, {"expect": {"camera": {"yaw_deg": -90, "pitch_deg": 90}}}, {"call": "ui.view", "params": {"view": "home"}}, {"click": {"handle": "cube:top-back-right"}}, {"expect": {"camera": {"yaw_deg": -135, "pitch_deg": 35.26}}}, {"note": "Pressing on the cube and dragging orbits the view by the whole drag (48 px right: 22°), and the release is not a click on the face pressed."}, {"call": "ui.view", "params": {"view": "front"}}, {"expect": {"camera": {"yaw_deg": 0, "pitch_deg": 0}}}, {"drag": [{"cube": [0, -1, 0]}, {"cube": [1.5, -1, 0]}]}, {"expect": {"camera": {"yaw_deg": 22, "pitch_deg": 0}}}, {"move": [800, 500]}, {"expect": {"count": {"name": "cube_highlights", "value": 0}}} ]