Interface: CursorRenderOptions
@roomful/core / CursorRenderOptions
Interface: CursorRenderOptions
Section titled “Interface: CursorRenderOptions”Defined in: packages/core/src/types.ts:757
Configures DOM cursor rendering.
Properties
Section titled “Properties”container?
Section titled “container?”
optionalcontainer:string|HTMLElement
Defined in: packages/core/src/types.ts:761
Selects the container element or selector for rendered cursors.
idleTimeout?
Section titled “idleTimeout?”
optionalidleTimeout:number
Defined in: packages/core/src/types.ts:782
Overrides the idle timeout used by the renderer.
onMount()?
Section titled “onMount()?”
optionalonMount: (element) =>void
Defined in: packages/core/src/types.ts:793
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:777
Keeps idle cursors visible when true.
showName?
Section titled “showName?”
optionalshowName:boolean
Defined in: packages/core/src/types.ts:772
Shows peer labels when true.
style?
Section titled “style?”
optionalstyle:string&object|"default"|"arrow"|"dot"|"pointer"|"none"
Defined in: packages/core/src/types.ts:767
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:787
Sets the z-index applied to rendered cursor elements.