@netless/app-presentation 0.1.9-beta.4 → 0.1.9-beta.5
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.global.js +24 -14
- package/dist/index.js +24 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/scrollbar/index.ts +23 -12
package/dist/index.mjs
CHANGED
|
@@ -6919,9 +6919,8 @@ var Scrollbar = class {
|
|
|
6919
6919
|
}
|
|
6920
6920
|
setReadonly(bol) {
|
|
6921
6921
|
this.readonly = bol;
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
} else {
|
|
6922
|
+
this.destroy();
|
|
6923
|
+
if (!this.readonly) {
|
|
6925
6924
|
this.init();
|
|
6926
6925
|
}
|
|
6927
6926
|
}
|
|
@@ -6986,16 +6985,27 @@ var Scrollbar = class {
|
|
|
6986
6985
|
this.onCameraUpdated();
|
|
6987
6986
|
}
|
|
6988
6987
|
destroy() {
|
|
6989
|
-
var _a, _b, _c, _d;
|
|
6990
6988
|
this.view.callbacks.off("onCameraUpdated", this.onCameraUpdated);
|
|
6991
|
-
(
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
this.
|
|
6998
|
-
|
|
6989
|
+
if (this.scrollbarX && this.scrollbarContainerX) {
|
|
6990
|
+
this.scrollbarContainerX.removeChild(this.scrollbarX);
|
|
6991
|
+
this.scrollbarX.remove();
|
|
6992
|
+
this.scrollbarContainerX.remove();
|
|
6993
|
+
this.scrollbarX = void 0;
|
|
6994
|
+
}
|
|
6995
|
+
if (this.scrollbarY && this.scrollbarContainerY) {
|
|
6996
|
+
this.scrollbarContainerY.removeChild(this.scrollbarY);
|
|
6997
|
+
this.scrollbarY.remove();
|
|
6998
|
+
this.scrollbarContainerY.remove();
|
|
6999
|
+
this.scrollbarY = void 0;
|
|
7000
|
+
}
|
|
7001
|
+
if (this.draggableX) {
|
|
7002
|
+
this.draggableX.destroy();
|
|
7003
|
+
this.draggableX = void 0;
|
|
7004
|
+
}
|
|
7005
|
+
if (this.draggableY) {
|
|
7006
|
+
this.draggableY.destroy();
|
|
7007
|
+
this.draggableY = void 0;
|
|
7008
|
+
}
|
|
6999
7009
|
}
|
|
7000
7010
|
};
|
|
7001
7011
|
|
|
@@ -7232,7 +7242,7 @@ var NetlessAppPresentation = {
|
|
|
7232
7242
|
dispose2.add(view$$.addStateChangedListener(() => syncViewFromRemote(false, true)));
|
|
7233
7243
|
const box = context.getBox();
|
|
7234
7244
|
const app = dispose2.add(createPresentation(box, pages, jumpPage, pageIndex$, options.thumbnail));
|
|
7235
|
-
app.contentDOM.dataset.appPresentationVersion = "0.1.9-beta.
|
|
7245
|
+
app.contentDOM.dataset.appPresentationVersion = "0.1.9-beta.5";
|
|
7236
7246
|
app.scaleDocsToFit = scaleDocsToFit;
|
|
7237
7247
|
app.log = log;
|
|
7238
7248
|
if (options.justDocsViewReadonly) {
|
|
@@ -7480,7 +7490,7 @@ var install = (register, options = {}) => {
|
|
|
7480
7490
|
};
|
|
7481
7491
|
|
|
7482
7492
|
// src/index.ts
|
|
7483
|
-
var version = "0.1.9-beta.
|
|
7493
|
+
var version = "0.1.9-beta.5";
|
|
7484
7494
|
/*! Bundled license information:
|
|
7485
7495
|
|
|
7486
7496
|
lodash/lodash.js:
|