@netless/forge-whiteboard 1.1.0-beta.2 → 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);