@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/app-slide",
3
- "version": "0.3.0-canary.14",
3
+ "version": "0.3.0-canary.16",
4
4
  "main": "dist/main.js",
5
5
  "module": "dist/main.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -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_) {
@@ -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,