@netless/forge-whiteboard 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/WhiteboardApplication.d.ts +1 -0
- package/dist/WhiteboardApplication.d.ts.map +1 -1
- package/dist/whiteboard.esm.js +9 -1
- package/dist/whiteboard.esm.js.map +2 -2
- package/dist/whiteboard.js +9 -1
- package/dist/whiteboard.js.map +2 -2
- package/package.json +2 -2
- package/dist/model/renderable/CurveModel_old.d.ts +0 -28
- package/dist/model/renderable/CurveModel_old.d.ts.map +0 -1
- package/dist/utils/FPS.d.ts +0 -15
- package/dist/utils/FPS.d.ts.map +0 -1
package/dist/whiteboard.js
CHANGED
|
@@ -31613,7 +31613,7 @@ var AsyncMap = class {
|
|
|
31613
31613
|
if (!window.__forge_gl_wb_status__) {
|
|
31614
31614
|
window.__forge_gl_wb_status__ = new AsyncMap();
|
|
31615
31615
|
}
|
|
31616
|
-
var WhiteboardApplication = class extends import_forge_room12.AbstractApplication {
|
|
31616
|
+
var WhiteboardApplication = class _WhiteboardApplication extends import_forge_room12.AbstractApplication {
|
|
31617
31617
|
get undoManager() {
|
|
31618
31618
|
const page = this.pageModel.getCurrentPage(this.userId);
|
|
31619
31619
|
if (page) {
|
|
@@ -32170,9 +32170,11 @@ var WhiteboardApplication = class extends import_forge_room12.AbstractApplicatio
|
|
|
32170
32170
|
this.liveCursor.showLiveCursor = value;
|
|
32171
32171
|
};
|
|
32172
32172
|
this.emitter.updateViewport = (width, height) => {
|
|
32173
|
+
(0, import_forge_room12.log)(`call updateViewport with width: ${width}, height: ${height}`);
|
|
32173
32174
|
this.updateOptionSize(width, height);
|
|
32174
32175
|
};
|
|
32175
32176
|
this.emitter.__setMainCanvasVisible = (visible) => {
|
|
32177
|
+
(0, import_forge_room12.log)(`call __setMainCanvasVisible with visible: ${visible}`);
|
|
32176
32178
|
this.canvasElement.style.opacity = visible ? "1" : "0";
|
|
32177
32179
|
};
|
|
32178
32180
|
this.emitter.on("error", (errorCode, errorMessage) => {
|
|
@@ -32186,6 +32188,7 @@ var WhiteboardApplication = class extends import_forge_room12.AbstractApplicatio
|
|
|
32186
32188
|
return that.delayTranslateOut;
|
|
32187
32189
|
},
|
|
32188
32190
|
set(value) {
|
|
32191
|
+
(0, import_forge_room12.log)(`call __delayTranslateOut with value: ${value}`);
|
|
32189
32192
|
that.delayTranslateOut = value;
|
|
32190
32193
|
}
|
|
32191
32194
|
});
|
|
@@ -32283,6 +32286,8 @@ var WhiteboardApplication = class extends import_forge_room12.AbstractApplicatio
|
|
|
32283
32286
|
return this.getMap(`user/${userId}`);
|
|
32284
32287
|
}
|
|
32285
32288
|
async initialize(option) {
|
|
32289
|
+
_WhiteboardApplication.instanceCount.set(this.appId, (_WhiteboardApplication.instanceCount.get(this.appId) ?? 0) + 1);
|
|
32290
|
+
(0, import_forge_room12.log)(`whiteboard ${this.appId} initialize. instance count: ${_WhiteboardApplication.instanceCount.get(this.appId) ?? 0}`, {}, "info");
|
|
32286
32291
|
this.permissions = new WhiteboardPermissions(this.userManager, (userId) => {
|
|
32287
32292
|
return this.userMap(userId);
|
|
32288
32293
|
});
|
|
@@ -32639,6 +32644,7 @@ var WhiteboardApplication = class extends import_forge_room12.AbstractApplicatio
|
|
|
32639
32644
|
this.camera.updateInitSize(new import_paper.default.Size(width, height));
|
|
32640
32645
|
}
|
|
32641
32646
|
async dispose(removeSubDoc) {
|
|
32647
|
+
_WhiteboardApplication.instanceCount.set(this.appId, (_WhiteboardApplication.instanceCount.get(this.appId) ?? 0) - 1);
|
|
32642
32648
|
if (removeSubDoc) {
|
|
32643
32649
|
this.deleteSubDoc(this.appId);
|
|
32644
32650
|
}
|
|
@@ -32671,8 +32677,10 @@ var WhiteboardApplication = class extends import_forge_room12.AbstractApplicatio
|
|
|
32671
32677
|
this.emitter.indexedNavigation.dispose();
|
|
32672
32678
|
this.permissions.dispose();
|
|
32673
32679
|
(0, import_forge_room13.removeObserver)(this.userMap(this.userId), this.handleSyncedWhiteboardStatusChange);
|
|
32680
|
+
(0, import_forge_room12.log)(`whiteboard ${this.appId} disposed. instance count: ${_WhiteboardApplication.instanceCount.get(this.appId) ?? 0}`, {}, "info");
|
|
32674
32681
|
}
|
|
32675
32682
|
};
|
|
32683
|
+
_defineProperty43(WhiteboardApplication, "instanceCount", /* @__PURE__ */ new Map());
|
|
32676
32684
|
_defineProperty43(WhiteboardApplication, "applicationName", WHITEBOARD_APP_NAME);
|
|
32677
32685
|
/*! Bundled license information:
|
|
32678
32686
|
|