mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: allow host to pass color for collaborators (#2943)
* feat: allow host to pass color for collaborators * remove user prop as its not used anywhere * update changelog and readme * add pr link
This commit is contained in:
parent
86222662f2
commit
e63a0ec5be
8 changed files with 19 additions and 20 deletions
|
@ -33,6 +33,10 @@ export type Collaborator = {
|
|||
selectedElementIds?: AppState["selectedElementIds"];
|
||||
username?: string | null;
|
||||
userState?: UserIdleState;
|
||||
color?: {
|
||||
background: string;
|
||||
stroke: string;
|
||||
};
|
||||
};
|
||||
|
||||
export type AppState = {
|
||||
|
@ -166,9 +170,6 @@ export interface ExcalidrawProps {
|
|||
appState: AppState,
|
||||
) => void;
|
||||
initialData?: ImportedDataState | null | Promise<ImportedDataState | null>;
|
||||
user?: {
|
||||
name?: string | null;
|
||||
};
|
||||
excalidrawRef?: ForwardRef<ExcalidrawAPIRefValue>;
|
||||
onCollabButtonClick?: () => void;
|
||||
isCollaborating?: boolean;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue