Skip to content

Commit 705a8e0

Browse files
[LEMS-3971/vector-pr2] Adjust starting position to match design
1 parent 823530d commit 705a8e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/perseus/src/widgets/interactive-graphs/reducer/initialize-graph-state.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,11 +321,11 @@ export function getVectorCoords(
321321
return graph.startCoords;
322322
}
323323

324-
// Default: diagonal vector in the upper portion of the graph,
325-
// offset from axes so it's clearly visible.
324+
// Default: 45° diagonal vector in the upper-right area of the graph.
325+
// Equal x/y offsets ensure a true 45° angle on a square grid.
326326
return normalizePoints(range, step, [
327-
[0.25, 0.55],
328-
[0.75, 0.75],
327+
[0.6, 0.6],
328+
[0.85, 0.85],
329329
]);
330330
}
331331

0 commit comments

Comments
 (0)