Skip to content

Interface: PointerStore

@roomful/svelte


@roomful/svelte / PointerStore

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

Readable pointer (laser pointer) store augmented with DOM and control helpers.

  • Readable<PointerBeam[]>

activate: () => void

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

Starts broadcasting the local pointer beam to all peers.

Starts broadcasting this peer’s pointer beam. While active, pointer movement over the mounted element is broadcast to peers.

void

Nothing.


deactivate: () => void

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

Stops broadcasting the local pointer beam so peers drop it.

Stops broadcasting and announces an inactive beam so peers drop it (the laser disappears).

void

Nothing.


mount: Action<HTMLElement, undefined>

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

Svelte action that mounts pointer tracking on a container element.


render: (options?) => Unsubscribe

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

Renders the built-in pointer overlay over a container, returning a cleanup function.

Renders a built-in, zero-config DOM overlay that draws every remote active beam over the container, updating as beams change. This is a convenience layer; apps that draw their own pointers can ignore it and use PointerEngine.subscribe instead.

PointerRenderOptions

The overlay container and style.

Unsubscribe

A cleanup function that removes the overlay.

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<PointerBeam[]>

subscription callback

Invalidator<PointerBeam[]>

cleanup callback

Unsubscriber

Readable.subscribe


unmount(): void

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

Unmounts pointer tracking.

void

Nothing.