@netless/forge-slide 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.
package/dist/slide.esm.js CHANGED
@@ -63046,6 +63046,7 @@ var RenderableModel = class extends EventEmitter {
63046
63046
  this.emit("elementInsert", [model]);
63047
63047
  });
63048
63048
  }
63049
+ this.maxIndex = Math.max(this.maxIndex, model?.index ?? 0);
63049
63050
  }
63050
63051
  } else if (value.action === "delete") {
63051
63052
  this.emit("elementRemove", key, this.layerId);
@@ -65179,8 +65180,6 @@ var Camera = class extends EventEmitter7 {
65179
65180
  this.emit("userViewModeChange", userId, this.requestUserMap(userId).get(WhiteboardKeys.cameraMode), value.oldValue);
65180
65181
  }
65181
65182
  }
65182
- } else if (value.action === "delete") {
65183
- debugger;
65184
65183
  }
65185
65184
  }
65186
65185
  });
@@ -67516,7 +67515,6 @@ var WhiteboardApplication = class _WhiteboardApplication extends AbstractApplica
67516
67515
  _WhiteboardApplication.instanceCount.set(this.appId, (_WhiteboardApplication.instanceCount.get(this.appId) ?? 0) + 1);
67517
67516
  log4(`whiteboard ${this.appId} initialize. instance count: ${_WhiteboardApplication.instanceCount.get(this.appId) ?? 0}`, {}, "info");
67518
67517
  this.appDoc.transact(() => {
67519
- console.warn("initialize whiteboard application");
67520
67518
  this.permissions = new WhiteboardPermissions(this.writableManager, this.userManager, (userId) => {
67521
67519
  return this.userMap(userId);
67522
67520
  });
@@ -67715,8 +67713,6 @@ var WhiteboardApplication = class _WhiteboardApplication extends AbstractApplica
67715
67713
  this.rootElement.appendChild(this.liveCursor.container);
67716
67714
  this.getMap("attrs").observe(this.handleViewportUpdate);
67717
67715
  this.writableManager().on("writableChanged", this.handleWritableChanged);
67718
- console.warn("initialize whiteboard application end");
67719
- console.log(this.appDoc.toJSON());
67720
67716
  }, "whiteboard-initialize");
67721
67717
  }
67722
67718
  clearElements() {