Are you an LLM? You can read better optimized documentation at /documentation/api/cursors/interfaces/CursorSmoother.md for this page in Markdown format
ws-asyncapi API / cursors / CursorSmoother
Interface: CursorSmoother
Defined in: .api-entries/cursors/index.d.ts:35
Pluggable receiver-side smoothing. The interface is exactly what perfect-cursors implements (new PerfectCursor(onChange) has addPoint/dispose), so it's a drop-in without being a dependency — pass (cb) => new PerfectCursor(cb), the built-in lerpSmoother, or omit it.
Methods
addPoint()
addPoint(
point):void
Defined in: .api-entries/cursors/index.d.ts:36
Parameters
point
[number, number]
Returns
void
dispose()
dispose():
void
Defined in: .api-entries/cursors/index.d.ts:37
Returns
void