Skip to content
Roomful is in public beta — install with the @beta tag. Share feedback →

Interface: UseCursorsResult\<TCursor\>

@roomful/vue


@roomful/vue / UseCursorsResult

Defined in: vue/src/index.ts:78

Describes the return value of useCursors.

TCursor extends CursorData = CursorData

The custom cursor payload shape.

cursors: ReadonlyRef<CursorPosition<TCursor>[]>

Defined in: vue/src/index.ts:87

Exposes the latest cursor positions.


ref: ShallowRef<HTMLElement | null>

Defined in: vue/src/index.ts:82

Holds the mounted cursor host element.

mount(element): void

Defined in: vue/src/index.ts:95

Mounts cursor tracking on an element.

HTMLElement

The element to observe.

void

Nothing.


unmount(): void

Defined in: vue/src/index.ts:102

Unmounts cursor tracking.

void

Nothing.