@netless/app-slide 0.2.96-alpha.1 → 0.2.96-alpha.2
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/main.cjs.js +2 -2
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +6 -6
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +2 -2
- package/dist/main.iife.js.map +1 -1
- package/package.json +1 -1
- package/src/DocsViewer/ResizableContainer.ts +6 -6
package/dist/main.es.js
CHANGED
|
@@ -39608,11 +39608,11 @@ class ResizableContainer {
|
|
|
39608
39608
|
this.root.appendChild(this.scrollContainer);
|
|
39609
39609
|
if (this.enableResize) {
|
|
39610
39610
|
this.scrollBar = new ScrollBar(this.root, this);
|
|
39611
|
-
this.resizeObserver = new ResizeObserver(() => {
|
|
39612
|
-
this.updateResizableContainer();
|
|
39613
|
-
});
|
|
39614
|
-
this.resizeObserver.observe(this.scrollContainer);
|
|
39615
39611
|
}
|
|
39612
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
39613
|
+
this.updateResizableContainer();
|
|
39614
|
+
});
|
|
39615
|
+
this.resizeObserver.observe(this.scrollContainer);
|
|
39616
39616
|
}
|
|
39617
39617
|
getTranslate() {
|
|
39618
39618
|
return { x: this.translateX, y: this.translateY };
|
|
@@ -39673,7 +39673,7 @@ class ResizableContainer {
|
|
|
39673
39673
|
if (options.triggerScrollBar) {
|
|
39674
39674
|
(_a = this.scrollBar) == null ? void 0 : _a.handleNormalizeTranslate(x, y);
|
|
39675
39675
|
}
|
|
39676
|
-
if (options.triggerSync) {
|
|
39676
|
+
if (options.triggerSync && this.enableResize && this.context.getIsWritable()) {
|
|
39677
39677
|
this.context.storage.setState({ translateX: this.translateX, translateY: this.translateY });
|
|
39678
39678
|
}
|
|
39679
39679
|
}
|
|
@@ -40355,7 +40355,7 @@ class SlidePreviewer {
|
|
|
40355
40355
|
}
|
|
40356
40356
|
}
|
|
40357
40357
|
const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
|
|
40358
|
-
const version = "0.2.96-alpha.
|
|
40358
|
+
const version = "0.2.96-alpha.2";
|
|
40359
40359
|
const SlideApp = {
|
|
40360
40360
|
kind: "Slide",
|
|
40361
40361
|
setup(context) {
|