Interface: CursorBasePosition
@roomful/core / CursorBasePosition
Interface: CursorBasePosition
Section titled “Interface: CursorBasePosition”Defined in: packages/core/src/types.ts:884
Describes the built-in cursor position fields shared by all peers.
Properties
Section titled “Properties”color:
string
Defined in: packages/core/src/types.ts:898
Supplies the peer color.
element?
Section titled “element?”
optionalelement: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
Section titled “userId”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
Section titled “xAbsolute”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
Section titled “yAbsolute”yAbsolute:
number
Defined in: packages/core/src/types.ts:918
Supplies the absolute Y coordinate within the mounted element.