MCPcopy
hub / github.com/Splidejs/splide / getPosition

Function getPosition

src/js/components/Move/Move.ts:218–221  ·  view source on GitHub ↗

* Returns the current position. * * @return The position of the list element.

()

Source from the content-addressed store, hash-verified

216 * @return The position of the list element.
217 */
218 function getPosition(): number {
219 const left = resolve( 'left' );
220 return rect( list )[ left ] - rect( track )[ left ] + orient( getPadding( false ) );
221 }
222
223 /**
224 * Trims spaces on the edge of the slider.

Callers 12

moveFunction · 0.85
cancelFunction · 0.85
canShiftFunction · 0.85
exceededLimitFunction · 0.85
saveFunction · 0.85
computeDestinationFunction · 0.85
scrollFunction · 0.85
getAdjacentFunction · 0.85
computeMovableDestIndexFunction · 0.85
scrollFunction · 0.85
updateFunction · 0.85
general.test.tsFile · 0.85

Calls 4

rectFunction · 0.90
resolveFunction · 0.85
orientFunction · 0.85
getPaddingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…