feat: support to not render remote cursor & username (#7130)

This commit is contained in:
David Luzar 2024-03-18 10:41:06 +01:00 committed by GitHub
parent 068895db0e
commit 15bfa626b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 36 additions and 13 deletions

View file

@ -70,6 +70,19 @@ export type CollaboratorPointer = {
x: number;
y: number;
tool: "pointer" | "laser";
/**
* Whether to render cursor + username. Useful when you only want to render
* laser trail.
*
* @default true
*/
renderCursor?: boolean;
/**
* Explicit laser color.
*
* @default string collaborator's cursor color
*/
laserColor?: string;
};
export type DataURL = string & { _brand: "DataURL" };