@netless/app-slide 0.3.0-canary.14 → 0.3.0-canary.16
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.iife.js +2 -2
- package/dist/main.iife.js.map +1 -1
- package/dist/main.js +2 -2
- package/dist/main.js.map +1 -1
- package/dist/main.mjs +507 -536
- package/dist/main.mjs.map +1 -1
- package/package.json +1 -1
- package/src/SlideViewer/footer.ts +2 -2
- package/src/SlideViewer/index.ts +2 -1
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@ export function create_footer() {
|
|
|
59
59
|
$btnPlay.classList.add(wrap_class("footer-btn-playing"));
|
|
60
60
|
play_callback();
|
|
61
61
|
clearTimeout(returnPlayTimer);
|
|
62
|
-
returnPlayTimer = setTimeout(() => {
|
|
62
|
+
returnPlayTimer = window.setTimeout(() => {
|
|
63
63
|
$btnPlay.classList.remove(wrap_class("footer-btn-playing"));
|
|
64
64
|
}, 500);
|
|
65
65
|
};
|
|
@@ -123,7 +123,7 @@ export function create_footer() {
|
|
|
123
123
|
};
|
|
124
124
|
$saveBtn.appendChild(spinnerIcon);
|
|
125
125
|
|
|
126
|
-
$footer.appendChild($saveBtn);
|
|
126
|
+
// $footer.appendChild($saveBtn);
|
|
127
127
|
|
|
128
128
|
function set_readonly(readonly_: boolean) {
|
|
129
129
|
if (readonly !== readonly_) {
|
package/src/SlideViewer/index.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ISlideConfig } from "@netless/slide";
|
|
2
2
|
import type { SlideAttributes } from "./typings";
|
|
3
3
|
|
|
4
|
-
import { jsPDF } from "jspdf";
|
|
5
4
|
import { Slide } from "@netless/slide";
|
|
6
5
|
import { SideEffectManager } from "side-effect-manager";
|
|
7
6
|
import { Remitter } from "remitter";
|
|
@@ -276,6 +275,8 @@ export class SlideViewer {
|
|
|
276
275
|
}
|
|
277
276
|
|
|
278
277
|
const orientation = pdfWidth > pdfHeight ? "l" : "p";
|
|
278
|
+
const { jsPDF } = await import("jspdf");
|
|
279
|
+
|
|
279
280
|
const pdf = new jsPDF({
|
|
280
281
|
format: [pdfWidth, pdfHeight],
|
|
281
282
|
orientation,
|