Interface: InjectPointerResult
@roomful/angular / InjectPointerResult
Interface: InjectPointerResult
Section titled “Interface: InjectPointerResult”Defined in: angular/src/index.ts:226
Describes the return value of injectPointer.
Properties
Section titled “Properties”activate()
Section titled “activate()”activate: () =>
void
Defined in: angular/src/index.ts:250
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.
Returns
Section titled “Returns”void
Nothing.
beams:
Signal<PointerBeam[]>
Defined in: angular/src/index.ts:230
Exposes remote peers’ pointer beams only.
deactivate()
Section titled “deactivate()”deactivate: () =>
void
Defined in: angular/src/index.ts:255
Stops broadcasting the local pointer beam so peers drop it.
Stops broadcasting and announces an inactive beam so peers drop it (the laser disappears).
Returns
Section titled “Returns”void
Nothing.
render()
Section titled “render()”render: (
options?) =>Unsubscribe
Defined in: angular/src/index.ts:261
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.
Parameters
Section titled “Parameters”options?
Section titled “options?”PointerRenderOptions
The overlay container and style.
Returns
Section titled “Returns”Unsubscribe
A cleanup function that removes the overlay.
Methods
Section titled “Methods”mount()
Section titled “mount()”mount(
element):void
Defined in: angular/src/index.ts:238
Mounts pointer tracking on a container element.
Parameters
Section titled “Parameters”element
Section titled “element”HTMLElement
The element to observe.
Returns
Section titled “Returns”void
Nothing.
unmount()
Section titled “unmount()”unmount():
void
Defined in: angular/src/index.ts:245
Unmounts pointer tracking.
Returns
Section titled “Returns”void
Nothing.