You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/tab-reference/2d-field.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,16 @@ To zoom, place the cursor over the timeline and scroll up or down. A range can a
24
24
25
25
</details>
26
26
27
+
## Camera Controls
28
+
29
+
Scroll up and down over the field to zoom in and out. Click and drag to pan across the field. Right-click anywhere on the field to open the camera menu with the following options:
30
+
31
+
-**Unlocked**: Pan and zoom are manual.
32
+
-**Locked to Robot**: The camera automatically pans to track the robot.
33
+
-**Locked to Robot & Rotation**: The camera automatically pans and rotates to track the robot and its rotation.
34
+
35
+
In either locked mode, the camera can be freely panned away from the robot. The orientation buttons in the control pane can be used to rotate the camera in any mode.
36
+
27
37
## Adding Objects
28
38
29
39
To get started, drag a field to the "Poses" section. Delete an object using the X button, or hide it temporarily by clicking the eye icon or double-clicking the field name. To remove all objects, click the trash can near the axis title and then `Clear All`. Objects can be rearranged in the list by clicking and dragging.
@@ -19,13 +19,22 @@ export default class ScrollSensor {
19
19
20
20
privatepanActive=false;
21
21
privatepanLastCursorX=0;
22
+
privatepanLastCursorY=0;
23
+
24
+
privatelastCursorX=0;
25
+
privatelastCursorY=0;
22
26
23
27
/**
24
28
* Creates a new ScrollSensor.
25
29
* @param container The container element. The overflow should be "scroll" and the scrollbar should be hidden. The child element should have the dimensions 1000000x1000000px.
26
30
* @param callback A function to be called after each scroll event, with the relative change in x and y.
31
+
* @param mouseControl The mouse control mode for drag-panning.
0 commit comments