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

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.
@@ -27802,6 +27802,7 @@ var RenderableModel = class extends import_eventemitter3.default {
27802
27802
  this.emit("elementInsert", [model]);
27803
27803
  });
27804
27804
  }
27805
+ this.maxIndex = Math.max(this.maxIndex, model?.index ?? 0);
27805
27806
  }
27806
27807
  } else if (value.action === "delete") {
27807
27808
  this.emit("elementRemove", key, this.layerId);
@@ -29979,8 +29980,6 @@ var Camera = class extends import_eventemitter37.default {
29979
29980
  this.emit("userViewModeChange", userId, this.requestUserMap(userId).get(WhiteboardKeys.cameraMode), value.oldValue);
29980
29981
  }
29981
29982
  }
29982
- } else if (value.action === "delete") {
29983
- debugger;
29984
29983
  }
29985
29984
  }
29986
29985
  });
@@ -32361,7 +32360,6 @@ var WhiteboardApplication = class _WhiteboardApplication extends import_forge_ro
32361
32360
  _WhiteboardApplication.instanceCount.set(this.appId, (_WhiteboardApplication.instanceCount.get(this.appId) ?? 0) + 1);
32362
32361
  (0, import_forge_room12.log)(`whiteboard ${this.appId} initialize. instance count: ${_WhiteboardApplication.instanceCount.get(this.appId) ?? 0}`, {}, "info");
32363
32362
  this.appDoc.transact(() => {
32364
- console.warn("initialize whiteboard application");
32365
32363
  this.permissions = new WhiteboardPermissions(this.writableManager, this.userManager, (userId) => {
32366
32364
  return this.userMap(userId);
32367
32365
  });
@@ -32560,8 +32558,6 @@ var WhiteboardApplication = class _WhiteboardApplication extends import_forge_ro
32560
32558
  this.rootElement.appendChild(this.liveCursor.container);
32561
32559
  this.getMap("attrs").observe(this.handleViewportUpdate);
32562
32560
  this.writableManager().on("writableChanged", this.handleWritableChanged);
32563
- console.warn("initialize whiteboard application end");
32564
- console.log(this.appDoc.toJSON());
32565
32561
  }, "whiteboard-initialize");
32566
32562
  }
32567
32563
  clearElements() {