I apologize for any confusion. You are correct that there is no direct rotation option for the line in the Arrange section. Instead, you can achieve the desired angle by using a workaround with a coordinate system or manually adjusting the points. Here’s a step-by-step method to set an axis to a 60-degree angle in Draw.io:
Method 1: Using Connection Points
-
Open Draw.io:
- Go to Draw.io and open or create a new diagram.
-
Draw the Line:
- Use the "Line" tool from the left sidebar to draw a line.
-
Select the Line:
- Click on the line to select it.
-
Edit the Geometry:
- With the line selected, right-click on the line and choose "Edit Geometry" from the context menu. This allows you to manually set the XY coordinates of the line endpoints.
-
Set Coordinates Based on Angles:
-
You need to calculate the endpoint coordinates based on trigonometry to create a line at a 60-degree angle. For a simple example:
- Starting point (x1, y1):
(0, 0)
- Length
L: Assume you want the line to be L units long.
- Ending point (x2, y2):
- x2 = L * cos(60 degrees) = L * 0.5
- y2 = L * sin(60 degrees) = L * (sqrt(3)/2)
-
For a line of length 100 units, the endpoint would be approximately (50, 86.6).
-
Set the End Coordinates:
- Manually drag the line's end points to the approximate calculated coordinates.
Method 2: Using Shape Tool and Rotate
-
Draw a Shape/Line:
- Draw a vertical line as a reference axis (temporary).
-
Position and Clone:
- Draw another line starting from the base of the vertical line.
- Keep this selected.
-
Use the Rotation Handle or Vertex Manipulation:
- Click on the line you want to rotate.
- Hover near one end of the line until a rotation handle appears (a circular arrow).
- Click and start rotating. Hold the Shift key to rotate in 15-degree increments or just rotate manually.
- For more precise control, use the connection point approach and manually adjust those.
Final Adjustment
- Fine-tune the positions by using the arrow keys for minute adjustments.
Unfortunately, Draw.io does not offer a straightforward method for rotating lines to exact angles via the "Arrange" -> "Rotate" dialog directly, but with careful positioning and using coordinate-based placement for the line endpoints, you can still achieve the desired effect.
I hope this explains the process! If you need further help, please let me know.