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

Function getLimit

src/js/components/Move/Move.ts:255–257  ·  view source on GitHub ↗

* Returns the limit number that the slider can move to. * * @param max - Determines whether to return the maximum or minimum limit. * * @return The border number.

( max: boolean )

Source from the content-addressed store, hash-verified

253 * @return The border number.
254 */
255 function getLimit( max: boolean ): number {
256 return toPosition( max ? Components.Controller.getEnd() : 0, !! options.trimSpace );
257 }
258
259 /**
260 * Checks if there is enough width to shift the slider.

Callers 4

shiftFunction · 0.85
exceededLimitFunction · 0.85
getAdjacentFunction · 0.85
updateFunction · 0.85

Calls 2

toPositionFunction · 0.85
getEndMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…