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

Function calculateRealTime

Sortable.js:678–680  ·  view source on GitHub ↗
(animatingRect, fromRect, toRect, options)

Source from the content-addressed store, hash-verified

676 return target.offsetWidth;
677 }
678 function calculateRealTime(animatingRect, fromRect, toRect, options) {
679 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;
680 }
681
682 var plugins = [];
683 var 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…