@netless/app-slide 0.3.0-canary.20 → 0.3.0-canary.21

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.20",
3
+ "version": "0.3.0-canary.21",
4
4
  "main": "dist/main.js",
5
5
  "module": "dist/main.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -10,16 +10,16 @@
10
10
  "README-zh.md"
11
11
  ],
12
12
  "dependencies": {
13
- "@netless/slide": "^1.1.6",
13
+ "@netless/slide": "^1.2.0",
14
14
  "jspdf": "2.5.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@types/color-string": "^1.5.2",
17
+ "@types/color-string": "^1.5.5",
18
18
  "color-string": "^1.9.1",
19
- "remitter": "^0.2.9",
20
- "side-effect-manager": "^1.2.1",
19
+ "remitter": "^0.2.17",
20
+ "side-effect-manager": "^1.2.2",
21
21
  "value-enhancer": "^1.3.2",
22
- "vanilla-lazyload": "^17.8.3"
22
+ "vanilla-lazyload": "^17.8.5"
23
23
  },
24
24
  "scripts": {
25
25
  "types": "cross-env NODE_ENV=production tsc --declaration --emitDeclarationOnly --outDir dist",
@@ -6,7 +6,7 @@ import { SideEffectManager } from "side-effect-manager";
6
6
  import { Remitter } from "remitter";
7
7
 
8
8
  import { DefaultUrl } from "../constants";
9
- import { append, block, hc, noop } from "../utils";
9
+ import { append, block, hc } from "../utils";
10
10
  import { fetch_slide_info, make_prefix, on_visibility_change } from "./utils";
11
11
 
12
12
  import styles from "../style.scss?inline";
@@ -165,6 +165,7 @@ export class SlideViewer {
165
165
  });
166
166
 
167
167
  // TODO: export `once()` in the slide package.
168
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
168
169
  (this.slide as any).once("renderEnd", () => {
169
170
  // ready = first render end
170
171
  if (!this._ready) {
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { NetlessApp } from "@netless/window-manager";
2
+ import type { ISlideConfig } from "@netless/slide";
2
3
  import type { SlideViewerOptions } from "./SlideViewer";
3
4
  import type { AddHooks, AppOptions, Attributes, MagixEvents, SlideState } from "./typings";
4
5
 
@@ -49,6 +50,7 @@ const SlideApp: NetlessApp<Attributes, MagixEvents, AppOptions, void> = {
49
50
  enableGlobalClick: true,
50
51
  timestamp: make_timestamp(context),
51
52
  logger: appOptions.logger || logger,
53
+ whiteTracker: (context.displayer as unknown as { tracker: ISlideConfig["whiteTracker"] }).tracker,
52
54
  renderOptions: {
53
55
  minFPS: renderOptions.minFPS || 25,
54
56
  maxFPS: renderOptions.maxFPS || 30,