@joplo-app/plugin-content 0.3.0 → 0.4.1
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/runtime.js +3 -1
- package/dist/version.json +1 -1
- package/package.json +7 -2
package/dist/runtime.js
CHANGED
|
@@ -187,7 +187,9 @@ function Canvas({ ctx: context }) {
|
|
|
187
187
|
const mounted = lastMark.current !== null;
|
|
188
188
|
const jumped = jumpedSince(lastMark.current, ctx);
|
|
189
189
|
lastMark.current = markOf(ctx);
|
|
190
|
-
|
|
190
|
+
// 时钟停了(不是暂停)而镜头段还没走完:直接落到目标,不卡在半路(D97:手动单步的收尾比作者写的 ms 短时)
|
|
191
|
+
const stranded = timed && !!clock && !clock.running && !clock.paused && seg.current.ms > 0 && now < seg.current.start + seg.current.ms;
|
|
192
|
+
if (camMoves || jumped || !mounted || stranded || dk !== driftKey.current || !timed && seg.current.drift) {
|
|
191
193
|
target.current = next;
|
|
192
194
|
driftKey.current = dk;
|
|
193
195
|
// 只有连续播放中(时钟在走、已经挂载过、不是跳转)才补间;首次挂载、停止状态、跳转、截图与静态画面直接落定(D92 R1)。
|
package/dist/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joplo-app/plugin-content",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"joplo": {
|
|
6
6
|
"api": 2
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"zod": "4.6.7",
|
|
25
|
-
"@joplo-app/kit": "0.
|
|
25
|
+
"@joplo-app/kit": "0.4.1",
|
|
26
26
|
"react": "19.3.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -32,6 +32,11 @@
|
|
|
32
32
|
},
|
|
33
33
|
"description": "Joplo first-party visual explainers, camera and motion",
|
|
34
34
|
"license": "PolyForm-Shield-1.0.0",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/Joplo-app/Joplo.git",
|
|
38
|
+
"directory": "plugins/content"
|
|
39
|
+
},
|
|
35
40
|
"engines": {
|
|
36
41
|
"node": ">=22"
|
|
37
42
|
},
|