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

Function orient

src/js/components/Direction/Direction.ts:70–72  ·  view source on GitHub ↗

* Orients the value towards the current direction. * * @param value - A value to orient. * * @return The oriented value.

( value: number )

Source from the content-addressed store, hash-verified

68 * @return The oriented value.
69 */
70 function orient( value: number ): number {
71 return value * ( options.direction === RTL ? 1 : -1 );
72 }
73
74 return {
75 resolve,

Callers 12

shiftFunction · 0.85
toPositionFunction · 0.85
getPositionFunction · 0.85
trimFunction · 0.85
canShiftFunction · 0.85
exceededLimitFunction · 0.85
moveFunction · 0.85
general.test.tsFile · 0.85
buildTranslateMethod · 0.85
cssOffsetClonesMethod · 0.85
cssOffsetCenterMethod · 0.85
cssOffsetGapsMethod · 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…