Interface: UseCursorsResult\<TCursor\>
@roomful/react / UseCursorsResult
Interface: UseCursorsResult<TCursor>
Section titled “Interface: UseCursorsResult<TCursor>”Defined in: react/src/index.ts:125
Describes the return value of useCursors.
Type Parameters
Section titled “Type Parameters”TCursor
Section titled “TCursor”TCursor extends CursorData = CursorData
The custom cursor payload shape.
Properties
Section titled “Properties”cursors
Section titled “cursors”cursors:
CursorPosition<TCursor>[]
Defined in: react/src/index.ts:134
Exposes the latest cursor positions.
ref:
RefCallback<HTMLElement>
Defined in: react/src/index.ts:129
Callback ref that mounts the cursor engine on an element.
Methods
Section titled “Methods”mount()
Section titled “mount()”mount(
element):void
Defined in: react/src/index.ts:142
Mounts cursor tracking on an element.
Parameters
Section titled “Parameters”element
Section titled “element”HTMLElement
The element to observe.
Returns
Section titled “Returns”void
Nothing.
unmount()
Section titled “unmount()”unmount():
void
Defined in: react/src/index.ts:149
Unmounts cursor tracking.
Returns
Section titled “Returns”void
Nothing.