Skip to content

Interface: InjectViewportResult

@roomful/angular


@roomful/angular / InjectViewportResult

Defined in: angular/src/index.ts:171

Describes the return value of injectViewport.

broadcast: () => void

Defined in: angular/src/index.ts:195

Starts streaming the local viewport to all peers.

Starts streaming the local viewport to all peers.

void

Nothing.


follow: (peerId) => void

Defined in: angular/src/index.ts:215

Follows a specific peer’s viewport.

Follows a specific peer’s viewport, applying their scroll position to the mounted element as their viewport changes. Zoom is exposed in state for the app to apply.

string

The peer whose viewport to follow.

void

Nothing.


present: () => void

Defined in: angular/src/index.ts:205

Enters present mode, forcing peers to follow the local viewport.

Enters present mode: broadcasts the local viewport and signals peers to follow it until ViewportEngine.stopPresenting is called.

void

Nothing.


states: Signal<ViewportState[]>

Defined in: angular/src/index.ts:175

Exposes remote peer viewport states only.


stopBroadcast: () => void

Defined in: angular/src/index.ts:200

Stops streaming the local viewport.

Stops streaming the local viewport.

void

Nothing.


stopPresenting: () => void

Defined in: angular/src/index.ts:210

Leaves present mode and releases following peers.

Leaves present mode and releases peers that were following.

void

Nothing.


unfollow: () => void

Defined in: angular/src/index.ts:220

Stops following any peer and resumes independent scrolling.

Stops following any peer and resumes independent scrolling.

void

Nothing.

mount(element): void

Defined in: angular/src/index.ts:183

Mounts viewport tracking on a scrollable container.

HTMLElement

The element to observe.

void

Nothing.


unmount(): void

Defined in: angular/src/index.ts:190

Unmounts viewport tracking.

void

Nothing.