@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 +1 -5
- package/dist/slide.esm.js.map +2 -2
- package/dist/slide.js +1 -5
- package/dist/slide.js.map +2 -2
- package/package.json +3 -3
package/dist/slide.js
CHANGED
|
@@ -63055,6 +63055,7 @@ var RenderableModel = class extends import_eventemitter3.default {
|
|
|
63055
63055
|
this.emit("elementInsert", [model]);
|
|
63056
63056
|
});
|
|
63057
63057
|
}
|
|
63058
|
+
this.maxIndex = Math.max(this.maxIndex, model?.index ?? 0);
|
|
63058
63059
|
}
|
|
63059
63060
|
} else if (value.action === "delete") {
|
|
63060
63061
|
this.emit("elementRemove", key, this.layerId);
|
|
@@ -65188,8 +65189,6 @@ var Camera = class extends import_eventemitter36.default {
|
|
|
65188
65189
|
this.emit("userViewModeChange", userId, this.requestUserMap(userId).get(WhiteboardKeys.cameraMode), value.oldValue);
|
|
65189
65190
|
}
|
|
65190
65191
|
}
|
|
65191
|
-
} else if (value.action === "delete") {
|
|
65192
|
-
debugger;
|
|
65193
65192
|
}
|
|
65194
65193
|
}
|
|
65195
65194
|
});
|
|
@@ -67525,7 +67524,6 @@ var WhiteboardApplication = class _WhiteboardApplication extends import_forge_ro
|
|
|
67525
67524
|
_WhiteboardApplication.instanceCount.set(this.appId, (_WhiteboardApplication.instanceCount.get(this.appId) ?? 0) + 1);
|
|
67526
67525
|
(0, import_forge_room.log)(`whiteboard ${this.appId} initialize. instance count: ${_WhiteboardApplication.instanceCount.get(this.appId) ?? 0}`, {}, "info");
|
|
67527
67526
|
this.appDoc.transact(() => {
|
|
67528
|
-
console.warn("initialize whiteboard application");
|
|
67529
67527
|
this.permissions = new WhiteboardPermissions(this.writableManager, this.userManager, (userId) => {
|
|
67530
67528
|
return this.userMap(userId);
|
|
67531
67529
|
});
|
|
@@ -67724,8 +67722,6 @@ var WhiteboardApplication = class _WhiteboardApplication extends import_forge_ro
|
|
|
67724
67722
|
this.rootElement.appendChild(this.liveCursor.container);
|
|
67725
67723
|
this.getMap("attrs").observe(this.handleViewportUpdate);
|
|
67726
67724
|
this.writableManager().on("writableChanged", this.handleWritableChanged);
|
|
67727
|
-
console.warn("initialize whiteboard application end");
|
|
67728
|
-
console.log(this.appDoc.toJSON());
|
|
67729
67725
|
}, "whiteboard-initialize");
|
|
67730
67726
|
}
|
|
67731
67727
|
clearElements() {
|