Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dbismut/draggable-slider
/ functions
Functions
49 in github.com/dbismut/draggable-slider
⨍
Functions
49
◇
Types & classes
10
↓ 13 callers
Function
clamp
(value: number, min: number, max: number)
src/utils.ts:9
↓ 7 callers
Method
stop
(cb: Function)
src/FrameLoop.ts:55
↓ 5 callers
Method
clean
()
src/Emitter.ts:20
↓ 4 callers
Method
init
( el: HTMLElement, { index = 0, mouseDrag = false }: CarouselEngineOptions = {} )
src/CarouselEngine.ts:74
↓ 3 callers
Function
getXY
(e: Event)
src/DragEngine.ts:170
↓ 2 callers
Function
computeConfig
(config?: ConfigOrFnConfig)
src/DragEngine.ts:159
↓ 2 callers
Function
findClosestIndex
( target: number, steps: number[], sorted = false )
src/utils.ts:38
↓ 2 callers
Function
getResizeObserver
(polyfill?: any)
src/resizeObserver.ts:60
↓ 2 callers
Function
now
()
src/FrameLoop.ts:5
↓ 2 callers
Function
rubberband
(distance: number, dimension: number, constant: number)
src/utils.ts:67
↓ 2 callers
Function
rubberbandIfOutOfBounds
( position: number, min: number, max: number, constant = 0.15 )
src/utils.ts:74
↓ 1 callers
Function
createResizeObserver
(polyfill?: any)
src/resizeObserver.ts:6
↓ 1 callers
Method
run
()
src/FrameLoop.ts:39
↓ 1 callers
Function
setScrollAlignment
(value: string)
src/react/Slider.tsx:16
↓ 1 callers
Method
start
(cb: Function)
src/FrameLoop.ts:50
↓ 1 callers
Method
stopAll
()
src/FrameLoop.ts:65
↓ 1 callers
Function
update
(t = motion.elapsed)
src/Motion.ts:97
↓ 1 callers
Method
update
()
src/FrameLoop.ts:31
↓ 1 callers
Method
updateTime
()
src/FrameLoop.ts:71
↓ 1 callers
Function
useCarousel
( element: React.MutableRefObject<HTMLElement | null>, { index = 0, mouseDrag }: CarouselEngineOptions = {
src/react/useCarousel.ts:6
↓ 1 callers
Function
vectorLength
(x: number, y: number)
src/utils.ts:33
Method
#index
()
src/CarouselEngine.ts:43
Method
#length
()
src/CarouselEngine.ts:39
Function
Slider
()
src/react/Slider.tsx:8
Method
activate
(eventActivate: Event)
src/DragEngine.ts:314
Method
canScrollNext
()
src/CarouselEngine.ts:70
Method
canScrollPrev
()
src/CarouselEngine.ts:67
Method
constructor
(valOrObject?: any, key?: string)
src/Motion.ts:147
Method
constructor
( element?: EventTarget, handler?: Handler, config?: ConfigOrFnConfig )
src/DragEngine.ts:205
Function
damping
( motion: Motion, { momentum = 0.998, snapPoints, velocity: v, min = -Infinity, max =
src/Motion.ts:85
Function
delay
(value: number, offset: number)
src/utils.ts:30
Method
end
()
src/DragEngine.ts:333
Function
immediate
(motion: Motion)
src/Motion.ts:29
Method
index
()
src/CarouselEngine.ts:54
Function
interpolate
(min: number, max: number, ratio: number)
src/utils.ts:35
Function
lerp
(motion: Motion, { factor = 0.05 }: LerpConfig)
src/Motion.ts:72
Function
lerp
(curr: number, dest: number, factor: number)
src/utils.ts:20
Method
move
(eventMove: Event)
src/DragEngine.ts:253
Function
noop
()
src/DragEngine.ts:3
Function
onChange
()
src/react/Slider.tsx:23
Function
onChange
()
src/vanilla/main.ts:28
Method
resize
()
src/CarouselEngine.ts:275
Function
sleep
(ms = 1000)
src/utils.ts:92
Function
spring
( motion: Motion, { tension: k = 170, friction: c = 26, mass: m = 1, velocity: v }: SpringConfig )
src/Motion.ts:41
Function
subscribe
(target: Element, callback: ResizeObserverCallback)
src/resizeObserver.ts:36
Method
tick
()
src/FrameLoop.ts:23
Function
unsubscribe
(target: Element, callback: ResizeObserverCallback)
src/resizeObserver.ts:42
Function
useCarousel
( element: Ref<HTMLElement | null>, { index = 0, mouseDrag }: CarouselEngineOptions = {} )
src/vue/useCarousel.ts:7
Method
value
()
src/Motion.ts:154