@mocanvas/editor · class
declare class CollaboratorsManager extends EditorManagerThis one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.
Methods · 6
getCollaborators(): InstancePresence[]Everybody else with a presence record, however stale — the raw list, for a caller doing its own filtering.
getCollaboratorsOnCurrentPage(): InstancePresence[]Everybody else looking at the page we are on, however stale.
getPresencesForUser(userId: UserId): InstancePresence[]The presence records belonging to one person, across all their tabs.
getVisibleCollaborators(): InstancePresence[]Everybody who counts as present: their record was refreshed within
collaboratorInactiveTimeoutMs. This is the list a people-menu shows.
getVisibleCollaboratorsOnCurrentPage(): InstancePresence[]getVisibleCollaborators, narrowed to this page — the cursors to draw.
isCollaboratorIdle(presence: InstancePresence): booleanWhether a collaborator is idle: present, but not doing anything.
Idle is a *display* state — a dimmed cursor, a greyed avatar — never a reason to stop showing somebody, which is why it is separate from the inactive cut-off.
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.