@mocanvas/mocanvas · interface
interface CollaboratorOverlayUtilOptionsShared 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: numberThe same, for a chat message, which is usually allowed more room.
fontSize: numberPoint size of the name and chat chips.
idleOpacity: numberOpacity applied to everything drawn for an idle collaborator.
nameMaxWidth: numberWidest 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.