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:
@ -313,7 +313,7 @@ export const renderScene = (
|
||||
if (sceneState.remoteSelectedElementIds[element.id]) {
|
||||
selectionColors.push(
|
||||
...sceneState.remoteSelectedElementIds[element.id].map((socketId) => {
|
||||
const { background } = getClientColors(socketId);
|
||||
const { background } = getClientColors(socketId, appState);
|
||||
return background;
|
||||
}),
|
||||
);
|
||||
@ -441,7 +441,7 @@ export const renderScene = (
|
||||
y = Math.max(y, 0);
|
||||
y = Math.min(y, normalizedCanvasHeight - height);
|
||||
|
||||
const { background, stroke } = getClientColors(clientId);
|
||||
const { background, stroke } = getClientColors(clientId, appState);
|
||||
|
||||
const strokeStyle = context.strokeStyle;
|
||||
const fillStyle = context.fillStyle;
|
||||
|
Reference in New Issue
Block a user