Description:
We need a way to share a room code with people who are only allowed to view the board, not edit it.
How to Implement:
- Room State: When creating or joining a room, pass a role (e.g.,
editor vs viewer). This could be handled by different URL parameters or server-side logic.
- Fabric Constraints: If the user is a viewer, set
canvas.selection = false, disable drawing tools (isDrawingMode = false), and iterate through all objects setting selectable: false and evented: false.
- UI Constraints: Hide the left toolbar and top properties bar for viewer roles.
Description:
We need a way to share a room code with people who are only allowed to view the board, not edit it.
How to Implement:
editorvsviewer). This could be handled by different URL parameters or server-side logic.canvas.selection = false, disable drawing tools (isDrawingMode = false), and iterate through all objects settingselectable: falseandevented: false.