Sometimes I need every point of my working path to be snapped to document grid.
Right now I have do it manually — cycle every point and type new rounded coordinates or turn on snapping to grid and drag every point with mouse.
Is there a way to automate it with JS?