@netless/forge-whiteboard 1.1.0-beta.1 → 1.1.0-beta.3

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.
@@ -29979,6 +29979,8 @@ var Camera = class extends import_eventemitter37.default {
29979
29979
  this.emit("userViewModeChange", userId, this.requestUserMap(userId).get(WhiteboardKeys.cameraMode), value.oldValue);
29980
29980
  }
29981
29981
  }
29982
+ } else if (value.action === "delete") {
29983
+ debugger;
29982
29984
  }
29983
29985
  }
29984
29986
  });
@@ -32359,6 +32361,7 @@ var WhiteboardApplication = class _WhiteboardApplication extends import_forge_ro
32359
32361
  _WhiteboardApplication.instanceCount.set(this.appId, (_WhiteboardApplication.instanceCount.get(this.appId) ?? 0) + 1);
32360
32362
  (0, import_forge_room12.log)(`whiteboard ${this.appId} initialize. instance count: ${_WhiteboardApplication.instanceCount.get(this.appId) ?? 0}`, {}, "info");
32361
32363
  this.appDoc.transact(() => {
32364
+ console.warn("initialize whiteboard application");
32362
32365
  this.permissions = new WhiteboardPermissions(this.writableManager, this.userManager, (userId) => {
32363
32366
  return this.userMap(userId);
32364
32367
  });
@@ -32487,6 +32490,7 @@ var WhiteboardApplication = class _WhiteboardApplication extends import_forge_ro
32487
32490
  this.shadowScope.settings.insertItems = false;
32488
32491
  this.snapshotCanvasElement.setAttribute("id", `${this.appId}-snapshot`);
32489
32492
  this.snapshotScope.setup(this.snapshotCanvasElement);
32493
+ this.snapshotScope.settings.insertItems = false;
32490
32494
  this.resizeObserver = new ResizeObserver(() => {
32491
32495
  if (this.internalResizeObserver) {
32492
32496
  const rootBounds = this.rootElement.getBoundingClientRect();
@@ -32556,6 +32560,8 @@ var WhiteboardApplication = class _WhiteboardApplication extends import_forge_ro
32556
32560
  this.rootElement.appendChild(this.liveCursor.container);
32557
32561
  this.getMap("attrs").observe(this.handleViewportUpdate);
32558
32562
  this.writableManager().on("writableChanged", this.handleWritableChanged);
32563
+ console.warn("initialize whiteboard application end");
32564
+ console.log(this.appDoc.toJSON());
32559
32565
  }, "whiteboard-initialize");
32560
32566
  }
32561
32567
  clearElements() {