@mocanvas/mocanvas · interface

CollaboratorOverlayUtilOptions

interface CollaboratorOverlayUtilOptions

Shared configuration for the collaborator painters.

These exist so a subclass that redraws a cursor can read the label's measurements instead of hard-coding them next to a super.render it does not control. zIndex is not here because it is a static on the util itself — class Mine extends CollaboratorCursorOverlayUtil { static override zIndex = 1100 }.


Properties · 4

chatMaxWidth: number

The same, for a chat message, which is usually allowed more room.

fontSize: number

Point size of the name and chat chips.

idleOpacity: number

Opacity applied to everything drawn for an idle collaborator.

nameMaxWidth: number

Widest a name chip may draw before its text is clipped with an ellipsis.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.