Skip to content

Interface: CursorBasePosition

@roomful/core


@roomful/core / CursorBasePosition

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

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

color: string

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

Supplies the peer color.


optional element: string

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

Identifies the focused element when available.


idle: boolean

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

Indicates whether the cursor is currently idle.


name: string

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

Supplies the peer display name.


userId: string

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

Identifies the peer that owns the cursor.


x: number

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

Supplies the normalized X coordinate within the mounted element.


xAbsolute: number

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

Supplies the absolute X coordinate within the mounted element.


y: number

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

Supplies the normalized Y coordinate within the mounted element.


yAbsolute: number

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

Supplies the absolute Y coordinate within the mounted element.