Computes and returns an affine transformation that makes toMakeVisible
visible and roughly centered on the screen.
Returns a Command that transforms the view such that [rect] is visible, and perhaps centered in the viewport. Returns null if no transformation is necessary
Static
getReturns the size of a grid cell (in canvas units) as used by snapToGrid.
Static
roundRounds the given point
to a multiple of 10 such that it is within tolerance
of
its original location. This is useful for preparing data for base-10 conversion.
Static
roundStatic
transform
Get the screen's visible region transformed into canvas space.