element
element: HTMLElement
scrollContainer?: HTMLElement
isDestroyed
isDestroyed: () => boolean
isDragging
isDragging: () => boolean
isAnimating
isAnimating: () => boolean
isTopSheet
isTopSheet: () => boolean
isVerticalAxis
isVerticalAxis: () => boolean
getSize
getSize: () => number
getActiveId
getActiveId: () => string
getAllowedIds
getAllowedIds: () => string[]
allowedIdsBySize
allowedIdsBySize: () => string[]
getMaxAxisSize
getMaxAxisSize: () => number
resolveSnap
resolveSnap: (id: string) => { id: string; size: number } | null
resolveActiveSnap
resolveActiveSnap: () => { id: string; size: number } | null
setSize
setSize: (size: number) => void
setMaxAxisSize
setMaxAxisSize: (size: number) => void
applySize
applySize: (size: number) => void
recomputeSnaps
recomputeSnaps: () => void
newCycle
newCycle: () => void
cancelInFlight
cancelInFlight: () => void
resyncAfterResize
resyncAfterResize: () => void
snapTo
snapTo: (id: string) => void
attachDragSurface
attachDragSurface: (
surface: HTMLElement,
kind: DragSurfaceKind,
) => (() => void) | void
addTeardown
addTeardown: (fn: (() => void) | null | undefined) => void