MCPcopy
hub / github.com/desandro/draggabilly / applyGrid

Function applyGrid

draggabilly.js:295–300  ·  view source on GitHub ↗
( value, grid, method )

Source from the content-addressed store, hash-verified

293};
294
295function applyGrid( value, grid, method ) {
296 if ( !grid ) return value;
297
298 method = method || 'round';
299 return Math[ method ]( value/grid ) * grid;
300}
301
302proto.containDrag = function( axis, drag, grid ) {
303 if ( !this.options.containment ) return drag;

Callers 1

draggabilly.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…