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

Interface: CursorStore\<TCursor\>

@roomful/svelte


@roomful/svelte / CursorStore

Defined in: packages/svelte/src/index.ts:191

Readable cursor store augmented with DOM helpers.

  • Readable<CursorPosition<TCursor>[]>

TCursor extends CursorData = CursorData

The custom cursor payload shape.

mount: Action<HTMLElement, undefined>

Defined in: packages/svelte/src/index.ts:197

Svelte action that mounts cursor tracking on an element.

render(options?): void

Defined in: packages/svelte/src/index.ts:205

Renders remote cursors into the DOM.

CursorRenderOptions

Optional cursor rendering overrides.

void

Nothing.


set(value): void

Defined in: packages/svelte/src/index.ts:213

Partially updates the local cursor payload.

Partial<CursorPosition<TCursor>>

The partial cursor payload to publish.

void

Nothing.


subscribe(this, run, invalidate?): Unsubscriber

Defined in: node_modules/.pnpm/svelte@4.2.20/node_modules/svelte/types/index.d.ts:1619

Subscribe on value changes.

void

Subscriber<CursorPosition<TCursor>[]>

subscription callback

Invalidator<CursorPosition<TCursor>[]>

cleanup callback

Unsubscriber

Readable.subscribe


unmount(): void

Defined in: packages/svelte/src/index.ts:220

Unmounts cursor tracking and rendering.

void

Nothing.


update(updater): void

Defined in: packages/svelte/src/index.ts:228

Updates the local cursor payload from the previous value.

Updater<Partial<CursorPosition<TCursor>>>

The updater that returns the next partial cursor payload.

void

Nothing.