maybeSnapToGrid

See source code

Checks if grid mode is enabled and snaps a point to the grid if so

function maybeSnapToGrid(point: Vec, editor: Editor): Vec;

Parameters

NameDescription

point

Vec;

editor

Editor;

Returns

Vec;
Prev
loopToHtmlElement
Next
MenuClickCapture