MCPcopy Index your code
hub / github.com/SortableJS/Sortable / calculateRealTime

Function calculateRealTime

modular/sortable.core.esm.js:672–674  ·  view source on GitHub ↗
(animatingRect, fromRect, toRect, options)

Source from the content-addressed store, hash-verified

670 return target.offsetWidth;
671}
672function calculateRealTime(animatingRect, fromRect, toRect, options) {
673 return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;
674}
675
676var plugins = [];
677var defaults = {

Callers 1

AnimationStateManagerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…