@@ -48,23 +48,23 @@ def callback(self, state: bool) -> None:
48
48
49
49
# use the length of the diagonal to adjust the movement speed
50
50
if self .direction == CameraPanDirection .XUP :
51
- self .current_camera_pos [0 ][0 ] += 0.05 * self .plotter .length
52
- self .current_camera_pos [1 ][0 ] += 0.05 * self .plotter .length
53
- elif self .direction == CameraPanDirection .XDOWN :
54
51
self .current_camera_pos [0 ][0 ] -= 0.05 * self .plotter .length
55
52
self .current_camera_pos [1 ][0 ] -= 0.05 * self .plotter .length
53
+ elif self .direction == CameraPanDirection .XDOWN :
54
+ self .current_camera_pos [0 ][0 ] += 0.05 * self .plotter .length
55
+ self .current_camera_pos [1 ][0 ] += 0.05 * self .plotter .length
56
56
elif self .direction == CameraPanDirection .YUP :
57
- self .current_camera_pos [0 ][1 ] += 0.05 * self .plotter .length
58
- self .current_camera_pos [1 ][1 ] += 0.05 * self .plotter .length
59
- elif self .direction == CameraPanDirection .YDOWN :
60
57
self .current_camera_pos [0 ][1 ] -= 0.05 * self .plotter .length
61
58
self .current_camera_pos [1 ][1 ] -= 0.05 * self .plotter .length
59
+ elif self .direction == CameraPanDirection .YDOWN :
60
+ self .current_camera_pos [0 ][1 ] += 0.05 * self .plotter .length
61
+ self .current_camera_pos [1 ][1 ] += 0.05 * self .plotter .length
62
62
elif self .direction == CameraPanDirection .ZUP :
63
- self .current_camera_pos [0 ][2 ] += 0.05 * self .plotter .length
64
- self .current_camera_pos [1 ][2 ] += 0.05 * self .plotter .length
65
- elif self .direction == CameraPanDirection .ZDOWN :
66
63
self .current_camera_pos [0 ][2 ] -= 0.05 * self .plotter .length
67
64
self .current_camera_pos [1 ][2 ] -= 0.05 * self .plotter .length
65
+ elif self .direction == CameraPanDirection .ZDOWN :
66
+ self .current_camera_pos [0 ][2 ] += 0.05 * self .plotter .length
67
+ self .current_camera_pos [1 ][2 ] += 0.05 * self .plotter .length
68
68
else : # pragma: no cover
69
69
raise NotImplementedError (
70
70
f"CameraPanDirection { self .direction .name } is not implemented as a widget."
0 commit comments