@netless/forge-slide 1.0.8 → 1.0.10
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 +17 -2
- package/dist/slide.esm.js.map +2 -2
- package/dist/slide.js +17 -2
- package/dist/slide.js.map +2 -2
- package/package.json +3 -3
package/dist/slide.js
CHANGED
|
@@ -62988,11 +62988,17 @@ var ImageModel = class extends ElementModel {
|
|
|
62988
62988
|
}
|
|
62989
62989
|
styleKeys() {
|
|
62990
62990
|
return {
|
|
62991
|
-
include: [],
|
|
62991
|
+
include: ["src"],
|
|
62992
62992
|
exclude: ["dashArray", "strokeColor", "fillColor", "strokeWidth"]
|
|
62993
62993
|
};
|
|
62994
62994
|
}
|
|
62995
|
-
onStyleKeyUpdate(
|
|
62995
|
+
onStyleKeyUpdate(key) {
|
|
62996
|
+
if (key === "src") {
|
|
62997
|
+
const imgElement = this.imageSets.querySelector(`[id='${this.uuid}']`);
|
|
62998
|
+
if (imgElement) {
|
|
62999
|
+
imgElement.src = this.src;
|
|
63000
|
+
}
|
|
63001
|
+
}
|
|
62996
63002
|
}
|
|
62997
63003
|
editorConfig() {
|
|
62998
63004
|
const cfg = new EditorConfig();
|
|
@@ -67340,6 +67346,9 @@ var WhiteboardApplication = class _WhiteboardApplication extends import_forge_ro
|
|
|
67340
67346
|
}
|
|
67341
67347
|
};
|
|
67342
67348
|
this.emitter.clearPage = () => {
|
|
67349
|
+
if (!this.writableManager().isWritable()) {
|
|
67350
|
+
return;
|
|
67351
|
+
}
|
|
67343
67352
|
this.getCurrentRendererModel().then((model) => {
|
|
67344
67353
|
if (model) {
|
|
67345
67354
|
if (model.elements.doc) {
|
|
@@ -67353,9 +67362,15 @@ var WhiteboardApplication = class _WhiteboardApplication extends import_forge_ro
|
|
|
67353
67362
|
});
|
|
67354
67363
|
};
|
|
67355
67364
|
this.emitter.undo = () => {
|
|
67365
|
+
if (!this.writableManager().isWritable()) {
|
|
67366
|
+
return;
|
|
67367
|
+
}
|
|
67356
67368
|
this.undoManager?.undo();
|
|
67357
67369
|
};
|
|
67358
67370
|
this.emitter.redo = () => {
|
|
67371
|
+
if (!this.writableManager().isWritable()) {
|
|
67372
|
+
return;
|
|
67373
|
+
}
|
|
67359
67374
|
this.undoManager?.redo();
|
|
67360
67375
|
};
|
|
67361
67376
|
this.emitter.rasterizeViewport = (scale, page) => {
|