@web-ppt/viewer-core 0.5.0-beta.1 → 0.5.0-beta.7

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/viewer.d.ts CHANGED
@@ -28,6 +28,9 @@ export declare class Viewer {
28
28
  private media;
29
29
  private textMode;
30
30
  private playing;
31
+ private playingGroup;
32
+ private transition;
33
+ private currentLayer;
31
34
  private cancelAuto;
32
35
  private unsubscribe;
33
36
  onChange: ((index: number) => void) | null;
@@ -66,12 +69,18 @@ export declare class Viewer {
66
69
  exportPng(scale?: number, i?: number): Promise<Blob>;
67
70
  private paint;
68
71
  private play;
72
+ private reportPlaybackError;
73
+ private releasePlayback;
69
74
  /**
70
75
  * 按状态机给出的隐藏集合设置元素可见性。
71
76
  *
72
77
  * 不播动画时也要跑:静态画面取的是动画终态,退场元素同样得藏起来。
73
78
  */
74
79
  private applyVisibility;
80
+ /**
81
+ * 已播完的强调和路径不会写进隐藏集。重绘清掉 fill 之后,要把终态再铺回去。
82
+ */
83
+ private applySettled;
75
84
  private applyZoom;
76
85
  private startAutoAdvance;
77
86
  private handleClick;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@web-ppt/viewer-core",
3
- "version": "0.5.0-beta.1",
3
+ "version": "0.5.0-beta.7",
4
4
  "description": "Headless presentation state machine for Web-PPT: navigation, zoom, search and click-batched animation playback, drivable from any UI framework.",
5
5
  "keywords": [
6
6
  "pptx",
@@ -36,7 +36,15 @@
36
36
  "types": "./dist/index.d.ts",
37
37
  "import": "./dist/viewer-core.js"
38
38
  },
39
- "./package.json": "./package.json"
39
+ "./package.json": "./package.json",
40
+ "./comments": {
41
+ "types": "./dist/comments.d.ts",
42
+ "import": "./dist/comments.js"
43
+ },
44
+ "./video": {
45
+ "types": "./dist/video.d.ts",
46
+ "import": "./dist/video.js"
47
+ }
40
48
  },
41
49
  "files": [
42
50
  "dist",
@@ -45,12 +53,12 @@
45
53
  "LICENSE"
46
54
  ],
47
55
  "scripts": {
48
- "build": "vite build && tsc -p tsconfig.build.json",
56
+ "build": "vite build && vite build --config vite.comments.config.ts && vite build --config vite.video.config.ts && tsc -p tsconfig.build.json",
49
57
  "prepublishOnly": "npm run build",
50
58
  "prepack": "node ../../tooling/sync-package-docs.mjs"
51
59
  },
52
60
  "peerDependencies": {
53
- "@web-ppt/core": "^0.5.0-beta.1"
61
+ "@web-ppt/core": "^0.5.0-beta.7"
54
62
  },
55
63
  "publishConfig": {
56
64
  "access": "public"