@netless/forge-slide 1.0.1 → 1.0.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.
- package/dist/index.esm.js +9 -1
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +9 -1
- package/dist/index.js.map +2 -2
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -66768,7 +66768,7 @@ var AsyncMap = class {
|
|
|
66768
66768
|
if (!window.__forge_gl_wb_status__) {
|
|
66769
66769
|
window.__forge_gl_wb_status__ = new AsyncMap();
|
|
66770
66770
|
}
|
|
66771
|
-
var WhiteboardApplication = class extends AbstractApplication {
|
|
66771
|
+
var WhiteboardApplication = class _WhiteboardApplication extends AbstractApplication {
|
|
66772
66772
|
get undoManager() {
|
|
66773
66773
|
const page = this.pageModel.getCurrentPage(this.userId);
|
|
66774
66774
|
if (page) {
|
|
@@ -67325,9 +67325,11 @@ var WhiteboardApplication = class extends AbstractApplication {
|
|
|
67325
67325
|
this.liveCursor.showLiveCursor = value;
|
|
67326
67326
|
};
|
|
67327
67327
|
this.emitter.updateViewport = (width, height) => {
|
|
67328
|
+
log4(`call updateViewport with width: ${width}, height: ${height}`);
|
|
67328
67329
|
this.updateOptionSize(width, height);
|
|
67329
67330
|
};
|
|
67330
67331
|
this.emitter.__setMainCanvasVisible = (visible) => {
|
|
67332
|
+
log4(`call __setMainCanvasVisible with visible: ${visible}`);
|
|
67331
67333
|
this.canvasElement.style.opacity = visible ? "1" : "0";
|
|
67332
67334
|
};
|
|
67333
67335
|
this.emitter.on("error", (errorCode, errorMessage) => {
|
|
@@ -67341,6 +67343,7 @@ var WhiteboardApplication = class extends AbstractApplication {
|
|
|
67341
67343
|
return that.delayTranslateOut;
|
|
67342
67344
|
},
|
|
67343
67345
|
set(value) {
|
|
67346
|
+
log4(`call __delayTranslateOut with value: ${value}`);
|
|
67344
67347
|
that.delayTranslateOut = value;
|
|
67345
67348
|
}
|
|
67346
67349
|
});
|
|
@@ -67438,6 +67441,8 @@ var WhiteboardApplication = class extends AbstractApplication {
|
|
|
67438
67441
|
return this.getMap(`user/${userId}`);
|
|
67439
67442
|
}
|
|
67440
67443
|
async initialize(option) {
|
|
67444
|
+
_WhiteboardApplication.instanceCount.set(this.appId, (_WhiteboardApplication.instanceCount.get(this.appId) ?? 0) + 1);
|
|
67445
|
+
log4(`whiteboard ${this.appId} initialize. instance count: ${_WhiteboardApplication.instanceCount.get(this.appId) ?? 0}`, {}, "info");
|
|
67441
67446
|
this.permissions = new WhiteboardPermissions(this.userManager, (userId) => {
|
|
67442
67447
|
return this.userMap(userId);
|
|
67443
67448
|
});
|
|
@@ -67794,6 +67799,7 @@ var WhiteboardApplication = class extends AbstractApplication {
|
|
|
67794
67799
|
this.camera.updateInitSize(new import_paper.default.Size(width, height));
|
|
67795
67800
|
}
|
|
67796
67801
|
async dispose(removeSubDoc) {
|
|
67802
|
+
_WhiteboardApplication.instanceCount.set(this.appId, (_WhiteboardApplication.instanceCount.get(this.appId) ?? 0) - 1);
|
|
67797
67803
|
if (removeSubDoc) {
|
|
67798
67804
|
this.deleteSubDoc(this.appId);
|
|
67799
67805
|
}
|
|
@@ -67826,8 +67832,10 @@ var WhiteboardApplication = class extends AbstractApplication {
|
|
|
67826
67832
|
this.emitter.indexedNavigation.dispose();
|
|
67827
67833
|
this.permissions.dispose();
|
|
67828
67834
|
removeObserver7(this.userMap(this.userId), this.handleSyncedWhiteboardStatusChange);
|
|
67835
|
+
log4(`whiteboard ${this.appId} disposed. instance count: ${_WhiteboardApplication.instanceCount.get(this.appId) ?? 0}`, {}, "info");
|
|
67829
67836
|
}
|
|
67830
67837
|
};
|
|
67838
|
+
_defineProperty43(WhiteboardApplication, "instanceCount", /* @__PURE__ */ new Map());
|
|
67831
67839
|
_defineProperty43(WhiteboardApplication, "applicationName", WHITEBOARD_APP_NAME);
|
|
67832
67840
|
|
|
67833
67841
|
// src/SlideApplication.ts
|