Skip to content
Roomful is in public beta — install with the @beta tag. Share feedback →

Interface: CursorBasePosition

@roomful/core


@roomful/core / CursorBasePosition

Defined in: packages/core/src/types.ts:804

Describes the built-in cursor position fields shared by all peers.

color: string

Defined in: packages/core/src/types.ts:818

Supplies the peer color.


optional element: string

Defined in: packages/core/src/types.ts:843

Identifies the focused element when available.


idle: boolean

Defined in: packages/core/src/types.ts:848

Indicates whether the cursor is currently idle.


name: string

Defined in: packages/core/src/types.ts:813

Supplies the peer display name.


userId: string

Defined in: packages/core/src/types.ts:808

Identifies the peer that owns the cursor.


x: number

Defined in: packages/core/src/types.ts:823

Supplies the normalized X coordinate within the mounted element.


xAbsolute: number

Defined in: packages/core/src/types.ts:833

Supplies the absolute X coordinate within the mounted element.


y: number

Defined in: packages/core/src/types.ts:828

Supplies the normalized Y coordinate within the mounted element.


yAbsolute: number

Defined in: packages/core/src/types.ts:838

Supplies the absolute Y coordinate within the mounted element.