Interface: CursorRenderOptions
@roomful/core / CursorRenderOptions
Interface: CursorRenderOptions
Section titled “Interface: CursorRenderOptions”Defined in: packages/core/src/types.ts:837
Configures DOM cursor rendering.
Properties
Section titled “Properties”container?
Section titled “container?”
optionalcontainer:string|HTMLElement
Defined in: packages/core/src/types.ts:841
Selects the container element or selector for rendered cursors.
idleTimeout?
Section titled “idleTimeout?”
optionalidleTimeout:number
Defined in: packages/core/src/types.ts:862
Overrides the idle timeout used by the renderer.
onMount()?
Section titled “onMount()?”
optionalonMount: (element) =>void
Defined in: packages/core/src/types.ts:873
Called with each peer cursor element when it is first created, allowing custom decoration of the rendered node.
Parameters
Section titled “Parameters”element
Section titled “element”HTMLElement
Returns
Section titled “Returns”void
showIdle?
Section titled “showIdle?”
optionalshowIdle:boolean
Defined in: packages/core/src/types.ts:857
Keeps idle cursors visible when true.
showName?
Section titled “showName?”
optionalshowName:boolean
Defined in: packages/core/src/types.ts:852
Shows peer labels when true.
style?
Section titled “style?”
optionalstyle:string&object|"default"|"arrow"|"dot"|"pointer"|"none"
Defined in: packages/core/src/types.ts:847
Chooses the cursor marker style. Use 'none' to disable the built-in
renderer while keeping cursor tracking active.
zIndex?
Section titled “zIndex?”
optionalzIndex:number
Defined in: packages/core/src/types.ts:867
Sets the z-index applied to rendered cursor elements.