@mocanvas/editor · interface
interface PresenceStateDerivationOptions extends CreatePresenceStateDerivationOptsThis one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.
Properties · 4
chatMessage?: Signal<string>The "say something" bubble above the cursor. Empty string means no bubble.
id?: InstancePresenceIdThe id to publish under. Defaults to a fresh one per derivation, which is the right thing: presence is per *instance*, so a second tab belonging to the same person is a second cursor.
now?: () => numberClock for lastActivityTimestamp. Injectable so tests are deterministic.
pointer?: Signal<PointLike>Where this client's pointer is, in page space.
mocanvas keeps the live pointer on editor.inputs, which is a plain object
and therefore invisible to a signal graph. Pass a signal — see
trackPointer — to make the broadcast cursor actually move; without
one the cursor sits at the origin while camera, selection and brush still
update.
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.