MCPcopy
hub / github.com/dolphin-wood/smooth-scrollbar / Scrollbar

Interface Scrollbar

src/interfaces/scrollbar.ts:103–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101
102// Scrollbar Class
103export interface Scrollbar {
104 readonly parent: Scrollbar | null;
105
106 readonly containerEl: HTMLElement;
107 readonly contentEl: HTMLElement;
108
109 readonly track: TrackController;
110
111 readonly options: ScrollbarOptions;
112
113 bounding: ScrollbarBounding;
114 size: ScrollbarSize;
115
116 offset: Data2d;
117 limit: Data2d;
118
119 scrollTop: number;
120 scrollLeft: number;
121
122 destroy(): void;
123
124 update(): void;
125 getSize(): ScrollbarSize;
126 isVisible(elem: HTMLElement): boolean;
127
128 addListener(fn: ScrollListener): void;
129 removeListener(fn: ScrollListener): void;
130
131 addTransformableMomentum(x: number, y: number, fromEvent: Event, callback?: AddTransformableMomentumCallback): void;
132 addMomentum(x: number, y: number): void;
133 setMomentum(x: number, y: number): void;
134
135 scrollTo(x?: number, y?: number, duration?: number, options?: Partial<ScrollToOptions>): void;
136 setPosition(x?: number, y?: number, options?: Partial<SetPositionOptions>): void;
137 scrollIntoView(elem: HTMLElement, options?: Partial<ScrollIntoViewOptions>): void;
138
139 updatePluginOptions(pluginName: string, options?: any): void;
140}

Callers 22

destroyMethod · 0.65
destroyAllMethod · 0.65
_renewMethod · 0.65
updateMethod · 0.65
updateMethod · 0.65
updateFunction · 0.65
setPositionFunction · 0.65
updateFunction · 0.65
scrollIntoViewFunction · 0.65
monitor.tsFile · 0.65
wheelHandlerFunction · 0.65
keyboardHandlerFunction · 0.65

Implementers 1

Scrollbarsrc/scrollbar.ts

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…