Function: movePoint()
movePoint(
points,index,x,y):ProfilePoint[]
Defined in: src/ui/elements/PcProfileGraph/index.ts:50
Move a point within the grid, keeping it between its neighbours (and the first and last points at the edges), to multiples of 0.1. Returns new points.
Parameters
points
readonly ProfilePoint[]
index
number
x
number
y
number
Returns
Example
movePoint(points, 1, 4.04, -3); // points[1] at { x: 4, y: -3 }