@netless/forge-whiteboard 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30909,6 +30909,7 @@ var WhiteboardApplication = class extends import_forge_room3.AbstractApplication
30909
30909
  this.toolbarModel.dashArray = evt.target.get(TOOLBAR_KEYS.dashArray);
30910
30910
  }
30911
30911
  if (key === "permission" && (value.action === "add" || value.action === "update")) {
30912
+ this.permissions.removePermission(WhiteboardPermissionFlag.all);
30912
30913
  this.permissions.addPermission(evt.target.get("permission"), this.userId);
30913
30914
  }
30914
30915
  }
@@ -31513,6 +31514,7 @@ var WhiteboardApplication = class extends import_forge_room3.AbstractApplication
31513
31514
  this.toolbarModel.fontFamily = this.linkTarget.get(TOOLBAR_KEYS.fontFamily);
31514
31515
  this.toolbarModel.strokeWidth = this.linkTarget.get(TOOLBAR_KEYS.strokeWidth);
31515
31516
  this.toolbarModel.dashArray = this.linkTarget.get(TOOLBAR_KEYS.dashArray);
31517
+ this.permissions.removePermission(WhiteboardPermissionFlag.all);
31516
31518
  this.permissions.addPermission(this.linkTarget.get("permission"), this.userId);
31517
31519
  this.linkTarget.observe(this.handleLinkedMapChange);
31518
31520
  }