Skip to content

Interface: UseCursorsResult\<TCursor\>

@roomful/vue


@roomful/vue / UseCursorsResult

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

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:151

Exposes the latest cursor positions.


ref: ShallowRef<HTMLElement | null>

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

Holds the mounted cursor host element.

mount(element): void

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

Mounts cursor tracking on an element.

HTMLElement

The element to observe.

void

Nothing.


unmount(): void

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

Unmounts cursor tracking.

void

Nothing.