@usemosio/cli-linux-x64 1.0.0-next.1 → 1.0.0-next.2

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.
Files changed (163) hide show
  1. package/THIRD_PARTY_NOTICES.md +22 -0
  2. package/apps/studio/dist/assets/Workspace-DsbQ04kb.js +34 -0
  3. package/apps/studio/dist/assets/{agent-panel-CqJuv5Sn.js → agent-panel-DUWPbpew.js} +5 -5
  4. package/apps/studio/dist/assets/{boundary-bK2S8z05.js → boundary-DuK3AiqM.js} +1 -1
  5. package/apps/studio/dist/assets/{feedback-BqzXUdVd.js → feedback-x6ZumR_x.js} +1 -1
  6. package/apps/studio/dist/assets/index-CjDBKmB_.css +2 -0
  7. package/apps/studio/dist/assets/index-DPLtb0kT.js +1905 -0
  8. package/apps/studio/dist/assets/inspector3d-B8pkZTye.js +1 -0
  9. package/apps/studio/dist/index.html +4 -3
  10. package/apps/studio/dist-host/studio-host.mjs +262 -3
  11. package/bin/mosio +0 -0
  12. package/bin/mosio-agent +0 -0
  13. package/crates/mosio/src/adapters/mosio-three.js +111 -7
  14. package/crates/mosio/src/adapters/room-env-pmrem.json +1 -0
  15. package/crates/mosio/src/runtime.js +126 -6
  16. package/fixtures/camera-inspect/mosio.json +56 -0
  17. package/fixtures/camera-inspect/scenes/behind.html +22 -0
  18. package/fixtures/camera-inspect/scenes/cut.html +18 -0
  19. package/fixtures/camera-inspect/scenes/edges.html +18 -0
  20. package/fixtures/camera-inspect/scenes/good.html +23 -0
  21. package/fixtures/camera-inspect/scenes/read.html +22 -0
  22. package/fixtures/camera-inspect/scenes/shake.html +23 -0
  23. package/fixtures/camera-inspect/scenes/speed.html +18 -0
  24. package/fixtures/camera-inspect-vertical/mosio.json +31 -0
  25. package/fixtures/camera-inspect-vertical/scenes/good.html +20 -0
  26. package/fixtures/camera-inspect-vertical/scenes/safe.html +18 -0
  27. package/fixtures/inspect-physics/expect.json +18 -0
  28. package/fixtures/inspect-physics/mosio.json +29 -0
  29. package/fixtures/inspect-physics/scenes/calm.html +46 -0
  30. package/fixtures/inspect-physics/scenes/physics.html +47 -0
  31. package/package.json +1 -1
  32. package/primitives/README.md +23 -2
  33. package/primitives/example/shared/mosio-prims.js +349 -1
  34. package/primitives/impact-burst/golden/f030.png +0 -0
  35. package/primitives/impact-burst/golden/f032.png +0 -0
  36. package/primitives/impact-burst/golden/f036.png +0 -0
  37. package/primitives/impact-burst/impact-burst.js +51 -0
  38. package/primitives/impact-burst/primitive.json +130 -0
  39. package/primitives/impact-burst/scene.html +24 -0
  40. package/primitives/stick-figure/golden/f030.png +0 -0
  41. package/primitives/stick-figure/golden/f092.png +0 -0
  42. package/primitives/stick-figure/golden/f140.png +0 -0
  43. package/primitives/stick-figure/primitive.json +179 -0
  44. package/primitives/stick-figure/scene.html +40 -0
  45. package/primitives/stick-figure/stick-figure.js +297 -0
  46. package/primitives/zoom-through/primitive.json +7 -2
  47. package/primitives/zoom-through/zoom-through.js +6 -5
  48. package/scripts/3d-acceptance.sh +8 -1
  49. package/scripts/3d-attach-bench.mjs +119 -0
  50. package/scripts/3d-bake-room-env.mjs +74 -0
  51. package/scripts/3d-e2b-job.sh +1 -0
  52. package/scripts/3d-gen-heavy-fixture.py +65 -0
  53. package/scripts/3d-trace-summary.py +14 -0
  54. package/scripts/acceptance/camera-inspect.sh +49 -0
  55. package/scripts/acceptance/export.sh +5 -3
  56. package/scripts/acceptance/hardening.sh +37 -6
  57. package/scripts/acceptance/hub.sh +208 -0
  58. package/scripts/acceptance/inspect.sh +21 -2
  59. package/scripts/acceptance/revisions-git.sh +137 -0
  60. package/scripts/acceptance/revisions-sync.sh +323 -0
  61. package/scripts/acceptance/revisions.sh +118 -4
  62. package/scripts/acceptance/segcache.sh +100 -0
  63. package/scripts/acceptance/split.sh +78 -0
  64. package/scripts/bootstrap.sh +20 -1
  65. package/scripts/check-error-codes.py +8 -0
  66. package/scripts/check-file-size.sh +49 -0
  67. package/scripts/ci.sh +4 -4
  68. package/scripts/dedupe-report.sh +47 -0
  69. package/scripts/e2b/template/provision.sh +1 -1
  70. package/scripts/fastpath/cdp.mjs +25 -0
  71. package/scripts/fastpath/dbg.mjs +11 -0
  72. package/scripts/fastpath/e2b.mjs +40 -0
  73. package/scripts/fastpath/features/gen.py +109 -0
  74. package/scripts/fastpath/features/mosio.json +100 -0
  75. package/scripts/fastpath/features/scenes/backdrop.html +11 -0
  76. package/scripts/fastpath/features/scenes/blend.html +11 -0
  77. package/scripts/fastpath/features/scenes/canvas2d.html +11 -0
  78. package/scripts/fastpath/features/scenes/filter.html +11 -0
  79. package/scripts/fastpath/features/scenes/gradient.html +11 -0
  80. package/scripts/fastpath/features/scenes/iframe.html +11 -0
  81. package/scripts/fastpath/features/scenes/image.html +11 -0
  82. package/scripts/fastpath/features/scenes/svg.html +11 -0
  83. package/scripts/fastpath/features/scenes/text.html +11 -0
  84. package/scripts/fastpath/features/scenes/typo.html +11 -0
  85. package/scripts/fastpath/features/scenes/video.html +11 -0
  86. package/scripts/fastpath/features/scenes/video2.html +11 -0
  87. package/scripts/fastpath/features-xfade/mosio.json +49 -0
  88. package/scripts/fastpath/features-xfade/scenes/image.html +11 -0
  89. package/scripts/fastpath/features-xfade/scenes/video.html +11 -0
  90. package/scripts/fastpath/fixtures/gen_layout.py +80 -0
  91. package/scripts/fastpath/fixtures/l12-no-reset/assets/img/photo-1015.jpg +0 -0
  92. package/scripts/fastpath/fixtures/l12-no-reset/mosio.json +34 -0
  93. package/scripts/fastpath/fixtures/l12-no-reset/scenes/main.html +20 -0
  94. package/scripts/fastpath/fp.mjs +91 -0
  95. package/scripts/fastpath/inpage.js +68 -0
  96. package/scripts/fastpath/recipes.py +49 -0
  97. package/scripts/fastpath/sandbox.sh +68 -0
  98. package/scripts/fastpath/sandbox10.sh +57 -0
  99. package/scripts/fastpath/sandbox11.sh +18 -0
  100. package/scripts/fastpath/sandbox12.sh +30 -0
  101. package/scripts/fastpath/sandbox13.sh +16 -0
  102. package/scripts/fastpath/sandbox14.sh +28 -0
  103. package/scripts/fastpath/sandbox15.sh +36 -0
  104. package/scripts/fastpath/sandbox16.sh +60 -0
  105. package/scripts/fastpath/sandbox17.sh +34 -0
  106. package/scripts/fastpath/sandbox18.sh +59 -0
  107. package/scripts/fastpath/sandbox19.sh +67 -0
  108. package/scripts/fastpath/sandbox2.sh +41 -0
  109. package/scripts/fastpath/sandbox20.sh +34 -0
  110. package/scripts/fastpath/sandbox21.sh +22 -0
  111. package/scripts/fastpath/sandbox22.sh +22 -0
  112. package/scripts/fastpath/sandbox23.sh +21 -0
  113. package/scripts/fastpath/sandbox3.sh +151 -0
  114. package/scripts/fastpath/sandbox4.sh +161 -0
  115. package/scripts/fastpath/sandbox5.sh +69 -0
  116. package/scripts/fastpath/sandbox6.sh +85 -0
  117. package/scripts/fastpath/sandbox7.sh +81 -0
  118. package/scripts/fastpath/sandbox8.sh +62 -0
  119. package/scripts/fastpath/sandbox9.sh +130 -0
  120. package/scripts/fastpath/srv.mjs +15 -0
  121. package/scripts/fastpath/www/probe.html +1 -0
  122. package/scripts/hpbench/make-bench-fixtures.sh +43 -0
  123. package/scripts/hpbench/render-cgroup.sh +56 -0
  124. package/scripts/install.sh +2 -1
  125. package/scripts/npm-clean-install-proof-win.sh +64 -0
  126. package/scripts/platform-smoke.sh +67 -0
  127. package/scripts/prim.mjs +31 -13
  128. package/skills/mosio-3d/SKILL.md +1 -1
  129. package/skills/mosio-brief/SKILL.md +80 -0
  130. package/skills/mosio-brief/references/brief.md +141 -0
  131. package/skills/mosio-brief/references/copy.md +99 -0
  132. package/skills/mosio-brief/references/narration.md +61 -0
  133. package/skills/mosio-brief/references/storyboard.md +98 -0
  134. package/skills/mosio-collab/SKILL.md +104 -0
  135. package/skills/mosio-collab/references/hub.md +62 -0
  136. package/skills/mosio-engine/SKILL.md +44 -13
  137. package/skills/mosio-engine/references/camera.md +12 -2
  138. package/skills/mosio-engine/references/character.md +88 -0
  139. package/skills/mosio-engine/references/checks.md +10 -3
  140. package/skills/mosio-engine/references/delivery.md +29 -2
  141. package/skills/mosio-engine/references/kit-primitives.md +8 -4
  142. package/skills/mosio-engine/references/layout.md +8 -0
  143. package/skills/mosio-engine/references/plan.md +3 -1
  144. package/skills/mosio-engine/references/project.md +3 -3
  145. package/skills/mosio-engine/references/publish.md +79 -0
  146. package/skills/mosio-engine/references/registry.md +27 -15
  147. package/skills/mosio-engine/references/timeline.md +18 -0
  148. package/skills/mosio-engine/references/timing.md +2 -1
  149. package/skills/mosio-import/SKILL.md +1 -1
  150. package/skills/mosio-import/references/from-hyperframes.md +1 -1
  151. package/skills/mosio-import/references/from-remotion.md +1 -1
  152. package/skills/mosio-media/SKILL.md +16 -4
  153. package/skills/mosio-media/references/audio.md +29 -11
  154. package/skills/mosio-media/references/captions.md +22 -4
  155. package/skills/mosio-media/references/editing.md +70 -0
  156. package/skills/mosio-media/references/footage.md +40 -8
  157. package/skills/mosio-media/references/voice.md +52 -7
  158. package/skills/mosio-replicate/references/mosio.md +1 -1
  159. package/toolchain.lock.json +151 -4
  160. package/apps/studio/dist/assets/Workspace-KSOFeEgc.js +0 -32
  161. package/apps/studio/dist/assets/index-B-uuTqe9.js +0 -1785
  162. package/apps/studio/dist/assets/index-CajSh04l.css +0 -2
  163. package/apps/studio/dist/assets/inspector3d-vDz97X99.js +0 -1
@@ -116,6 +116,7 @@
116
116
 
117
117
  // ---- adapters ----
118
118
  const timelines = []; // GSAP (optional library)
119
+ let blurCfg = null; // __mosio.motionBlur: read by the driver after load
119
120
  const seekFns = []; // explicit __mosio.onSeek
120
121
  const births = new WeakMap(); // WAAPI/CSS animation -> virtual ms when first seen
121
122
  const handles = new Map(); // delayFrame label -> pending
@@ -224,6 +225,7 @@
224
225
  if (before) await before();
225
226
  if (live) seekVideosLive(t); // non-blocking: no exact frame is promised
226
227
  else if (!replay) await seekVideos(t); // a replayed frame is never captured: its video position is set by the next real frame
228
+ const video = !replay && document.querySelector("video") !== null;
227
229
  while (handles.size) await new Promise((r) => realSetTimeout(r, 5));
228
230
  await document.fonts.ready;
229
231
  for (const f of document.fonts) if (f.status === "error") return { ok: false, code: "E_FONT_LOAD", detail: f.family + " " + f.weight };
@@ -243,8 +245,11 @@
243
245
  // one style/layout, then drain queued tasks (animation events etc.) so the next BeginFrame sees settled state.
244
246
  // Frames are produced by HeadlessExperimental.beginFrame from the driver, never by the wall clock.
245
247
  document.documentElement.getBoundingClientRect();
246
- for (let i = 0; i < 3; i++) await new Promise((r) => realSetTimeout(r, 0));
247
- return { ok: true };
248
+ // `cfg.barrierDrains` (default 3): the canvas capture measures fewer (docs/design/fast-path.md)
249
+ for (let i = 0; i < (cfg.barrierDrains ?? 3); i++) await new Promise((r) => realSetTimeout(r, 0));
250
+ // a <video> frame reaches the compositor on its own schedule after `seeked`: the driver never trusts a
251
+ // no-damage probe for such a frame (it could keep the previous picture), it always captures
252
+ return { ok: true, video };
248
253
  })();
249
254
  let timer;
250
255
  const timeout = new Promise((r) => { timer = realSetTimeout(() => r({ ok: false, code: "E_BARRIER_TIMEOUT", pending: pendingList() }), cfg.timeoutMs); });
@@ -949,7 +954,36 @@
949
954
  if (res.flat) return "matrix(" + [m[0], m[1], m[4], m[5], m[12], m[13]].map(f).join(",") + ")";
950
955
  return "matrix3d(" + m.map(f).join(",") + ")";
951
956
  }
952
- return { CamErr, build, solve, css, ease, vanWijk, holdFor, fbm, vnoise, overlayAt, mainState, dampedState, confineState, frameOf, mix, h32 };
957
+ // ---- describe: the plan as plain data for `mosio inspect` (docs/CLI.md "Camera checks"): the main shots, the holds
958
+ // (a tour stop, or the time a single-target shot rests on its target until the next shot) and the overlays. The
959
+ // numbers are the ones the solver runs on, so the checks never re-derive a timeline of their own.
960
+ function describe(plan, env) {
961
+ const real = (a) => a.filter((x) => x !== "stage");
962
+ const chars = (ids) => (env && env.textLen ? env.textLen(ids) : 0);
963
+ const mains = plan.mains.map((m) => ({
964
+ index: m.index, kind: m.kind, at: m.at, dur: m.dur, confine: m.confine !== false,
965
+ fit: m.framing && isNum(m.framing.fit) ? m.framing.fit : null, offset: m.framing ? m.framing.offset.slice() : [0, 0],
966
+ stops: m.stops ? m.stops.map((s, k) => ({ start: m.at + m.starts[k], move: m.move[k], hold: m.hold[k], ids: real(s) })) : null,
967
+ }));
968
+ const holds = [];
969
+ plan.mains.forEach((m, i) => {
970
+ const next = plan.mains[i + 1];
971
+ if (m.kind === "tour") {
972
+ m.stops.forEach((s, k) => { const ids = real(s), from = m.at + m.starts[k] + m.move[k]; if (ids.length) holds.push({ shot: m.index, kind: m.kind, stop: k, from, to: from + m.hold[k], ids, chars: chars(ids) }); });
973
+ } else if (["zoom-in", "zoom-out", "reveal", "earth-zoom", "pan"].includes(m.kind)) {
974
+ const ids = real(m.to || []);
975
+ if (ids.length) holds.push({ shot: m.index, kind: m.kind, stop: null, from: m.at + m.dur, to: next ? next.at : null, ids, chars: chars(ids) });
976
+ }
977
+ });
978
+ const fin = (d) => (Number.isFinite(d) ? d : null);
979
+ return {
980
+ w: plan.W, h: plan.H, sw: plan.SW, sh: plan.SH, end: plan.end, mains, holds,
981
+ shakes: plan.overlays.filter((o) => o.kind === "shake").map((o) => ({ index: o.index, at: o.at, dur: o.dur })),
982
+ parallax: plan.parallax.map((p) => ({ index: p.index, at: p.at, dur: fin(p.dur), strength: p.strength })),
983
+ handheld: plan.overlays.filter((o) => o.kind === "handheld").map((o) => ({ index: o.index, at: o.at, dur: fin(o.dur) })),
984
+ };
985
+ }
986
+ return { CamErr, build, solve, css, ease, vanWijk, holdFor, fbm, vnoise, overlayAt, mainState, dampedState, confineState, frameOf, mix, h32, describe };
953
987
  })();
954
988
 
955
989
  // ---- camera: page glue. One `application/mosio-camera` block per scene; <body> is the stage root. ----
@@ -1003,12 +1037,14 @@
1003
1037
  document.body.style.transformOrigin = "0 0";
1004
1038
  } catch (e) { camera = null; camFail(e); }
1005
1039
  }
1040
+ let camOff = false; // the Studio's camera view films the stage without the camera (preview only)
1006
1041
  function cameraApply(sec) {
1007
1042
  if (!camera) return;
1008
1043
  const body = document.body;
1009
1044
  try {
1010
1045
  camRects = new Map();
1011
1046
  body.style.transform = "none"; body.style.filter = "";
1047
+ if (camOff) { for (const o of camDepth) if (o.on) { o.el.style.translate = ""; o.on = false; } return; }
1012
1048
  const b = body.getBoundingClientRect();
1013
1049
  const res = CAM.solve(camera, camEnv, sec);
1014
1050
  body.style.transform = CAM.css(res, b.left, b.top);
@@ -1020,6 +1056,39 @@
1020
1056
  } catch (e) { body.style.transform = ""; camFail(e); }
1021
1057
  }
1022
1058
 
1059
+ // The camera and the text in the stage's own coordinates at frame time `sec`, for the inspect checks. Measures with the
1060
+ // camera transform off (as cameraApply does) and puts it back, so the frame is untouched.
1061
+ function cameraSample(sec) {
1062
+ const body = document.body, keep = body.style.transform;
1063
+ try {
1064
+ body.style.transform = "none";
1065
+ const res = CAM.solve(camera, camEnv, sec), st = res.state, texts = [];
1066
+ const rg = document.createRange();
1067
+ for (const el of document.querySelectorAll("[data-mosio-id]")) {
1068
+ if (el.closest("script,style,template,noscript")) continue;
1069
+ let x0 = Infinity, y0 = Infinity, x1 = -Infinity, y1 = -Infinity, n = 0;
1070
+ for (const c of el.childNodes) {
1071
+ if (c.nodeType !== 3 || !c.nodeValue.trim()) continue;
1072
+ rg.selectNodeContents(c);
1073
+ const b = rg.getBoundingClientRect();
1074
+ if (!(b.width > 0 && b.height > 0)) continue;
1075
+ x0 = Math.min(x0, b.left); y0 = Math.min(y0, b.top); x1 = Math.max(x1, b.right); y1 = Math.max(y1, b.bottom);
1076
+ n += Array.from(c.nodeValue.replace(/\s+/g, " ").trim()).length;
1077
+ }
1078
+ if (!n) continue;
1079
+ let op = 1;
1080
+ for (let e = el; e && e.nodeType === 1; e = e.parentElement) { const cs = getComputedStyle(e); if (cs.display === "none" || cs.visibility === "hidden") { op = 0; break; } op *= +cs.opacity; }
1081
+ const dep = el.closest("[data-mosio-depth]"), inside = [];
1082
+ for (let e = el; e; e = e.parentElement) { const id = e.getAttribute && e.getAttribute("data-mosio-id"); if (id) inside.push(id); }
1083
+ texts.push({ id: el.getAttribute("data-mosio-id"), inside, r: [x0, y0, x1 - x0, y1 - y0], chars: n, fs: parseFloat(getComputedStyle(el).fontSize) || 0, op, depth: dep ? +dep.getAttribute("data-mosio-depth") || 0 : 0 });
1084
+ }
1085
+ const layers = [];
1086
+ if (res.parallax) for (const o of camDepth) { const b = o.el.getBoundingClientRect(); if (o.d && b.width > 0 && b.height > 0) layers.push({ r: [b.left, b.top, b.width, b.height], depth: o.d }); }
1087
+ return { t: sec, z: st.z, cx: st.cx, cy: st.cy, yaw: st.yaw || 0, pitch: st.pitch || 0, sx: res.shake.dx, sy: res.shake.dy, rot: res.shake.rot,
1088
+ par: res.parallax ? { k: res.parallax.k, dx: res.parallax.dx, dy: res.parallax.dy } : null, texts, layers };
1089
+ } finally { body.style.transform = keep; }
1090
+ }
1091
+
1023
1092
  window.__mosio = {
1024
1093
  get fps() { return fps; }, get frame() { return frame; }, get time() { return vt / 1000; }, get seed() { return cfg.seed >>> 0; },
1025
1094
  // the project's params this scene reads (mosio.json `params`, limited by `scenes[].reads.params`); read-only
@@ -1032,6 +1101,38 @@
1032
1101
  onSeek(fn) { if (typeof fn === "function") { seekFns.push(fn); try { fn(vt / 1000, frame); } catch (e) { errors.push(String(e && e.stack || e)); } } },
1033
1102
  at,
1034
1103
  _camera: CAM,
1104
+ // for `mosio inspect`: the camera plan as data, and the camera and the measured text at one frame time (null without a camera)
1105
+ _cameraPlan() { return camera ? CAM.describe(camera, camEnv) : null; },
1106
+ _cameraSample(sec) { return camera ? cameraSample(sec) : null; },
1107
+ // preview only (the Studio's camera view): the scene's plan and how it measures targets, and filming without it
1108
+ get _cameraRig() { return camera ? { plan: camera, env: camEnv } : null; },
1109
+ _cameraBypass(on) { camOff = !!on; cameraApply(vt / 1000); },
1110
+ // Motion blur: every captured frame becomes the average of `samples` instants spread over the `shutter` share of
1111
+ // the frame before it (0.5 = a 180-degree film shutter), so fast moves smear like a camera sees them. `ranges`
1112
+ // (scene seconds, [[from, to], ...]) limits it to the fast parts; a still frame costs the same with or without.
1113
+ // Called once by the scene script; the driver reads it after load.
1114
+ motionBlur(o) {
1115
+ const v = Object.assign({ samples: 8, shutter: 0.5, ranges: null }, o || {});
1116
+ if (!Number.isInteger(v.samples) || v.samples < 2 || v.samples > 32) throw new TypeError("E_MOTION_BLUR: samples must be a whole number from 2 to 32");
1117
+ if (!(typeof v.shutter === "number" && v.shutter > 0 && v.shutter <= 1)) throw new TypeError("E_MOTION_BLUR: shutter must be a number in (0, 1]");
1118
+ if (v.ranges != null && !(Array.isArray(v.ranges) && v.ranges.every((r) => Array.isArray(r) && r.length === 2 && r.every(Number.isFinite) && r[0] <= r[1])))
1119
+ throw new TypeError("E_MOTION_BLUR: ranges must be [[from, to], ...] in seconds");
1120
+ blurCfg = { samples: v.samples, shutter: v.shutter, ranges: v.ranges };
1121
+ return blurCfg;
1122
+ },
1123
+ _blur() { return blurCfg; },
1124
+ // The shutter of frame f, for every capture path (screenshots in the driver, drawElementImage on the canvas path):
1125
+ // null when f is not blurred, else the sub-frame positions before f, earliest first (f itself is the last sample).
1126
+ // A path takes subs[0] and f first and keeps f alone when both images are identical; otherwise the frame is the
1127
+ // mean of all samples (integer sum, rounded half up).
1128
+ _blurPlan(f) {
1129
+ if (!blurCfg) return null;
1130
+ const t = f / fps, n = blurCfg.samples, sh = blurCfg.shutter;
1131
+ if (blurCfg.ranges && !blurCfg.ranges.some((r) => t >= r[0] && t <= r[1])) return null;
1132
+ const subs = [];
1133
+ for (let k = n - 1; k >= 1; k--) subs.push(Math.max(0, f - (sh * k) / n));
1134
+ return { samples: n, shutter: sh, subs };
1135
+ },
1035
1136
  delayFrame(label) { const l = String(label || "handle-" + handles.size); handles.set(l, true); return { done() { handles.delete(l); } }; },
1036
1137
 
1037
1138
  // ---- called by the Rust driver ----
@@ -1062,7 +1163,9 @@
1062
1163
  const replay = o.replay === true, live = o.live === true && !replay;
1063
1164
  // async work started earlier (delayFrame) must finish before time is applied, or a draw can run without it
1064
1165
  for (let waited = 0; handles.size && waited < cfg.timeoutMs; waited += 5) await new Promise((res) => realSetTimeout(res, 5));
1065
- frame = f;
1166
+ // a motion-blur sub-frame has a fractional f: time follows it exactly, frame-indexed content (renders, onSeek's
1167
+ // frame argument) stays on the whole frame it belongs to
1168
+ frame = Math.floor(f);
1066
1169
  if (!live) { lastLive = null; pauseVideos(); } // exact and replay frames never leave a video playing
1067
1170
  const t = (f * 1000) / fps;
1068
1171
  lastVt = vt;
@@ -1070,12 +1173,29 @@
1070
1173
  flushRAF();
1071
1174
  for (const tl of timelines) seekTl(tl, t / 1000);
1072
1175
  applyClips(t);
1073
- applyRenders(f);
1176
+ applyRenders(frame);
1074
1177
  applyAnimations(t);
1075
- for (const fn of seekFns) { try { fn(t / 1000, f); } catch (e) { errors.push(String(e && e.stack || e)); } }
1178
+ for (const fn of seekFns) { try { fn(t / 1000, frame); } catch (e) { errors.push(String(e && e.stack || e)); } }
1076
1179
  cameraApply(t / 1000);
1077
1180
  const r = await barrier(t, undefined, replay, live);
1078
1181
  return result(r);
1079
1182
  },
1183
+ // Frames before `start` at which a GSAP tween starts (each start's floor and ceil frame). A page that skips the
1184
+ // replay seeks these in order before `start`: GSAP records per-tween state when a tween first renders (SVG
1185
+ // transform-origin offsets, from-values), and that state depends on the frame it first rendered at. Every frame
1186
+ // here is one a sequential render also visits, so the tweens initialise at the same frames as a render from 0.
1187
+ _warmFrames(start) {
1188
+ const out = new Set();
1189
+ const walk = (tl, off, scale) => {
1190
+ if (typeof tl.getChildren !== "function") return;
1191
+ for (const c of tl.getChildren(false, true, true)) {
1192
+ const s = off + c.startTime() / (scale || 1);
1193
+ if (typeof c.getChildren === "function") walk(c, s, c.timeScale());
1194
+ else for (const f of [Math.floor(s * fps), Math.ceil(s * fps)]) if (f > 0 && f < start) out.add(f);
1195
+ }
1196
+ };
1197
+ for (const tl of timelines) walk(tl, 0, 1);
1198
+ return Array.from(out).sort((a, b) => a - b);
1199
+ },
1080
1200
  };
1081
1201
  })();
@@ -0,0 +1,56 @@
1
+ {
2
+ "mosio": 1,
3
+ "name": "camera-inspect",
4
+ "description": "Camera readability checks of mosio inspect: one clean scene (good) and one scene per W_CAMERA_* check.",
5
+ "width": 640,
6
+ "height": 360,
7
+ "fps": 30,
8
+ "seed": 3,
9
+ "background": "#101828",
10
+ "scenes": [
11
+ {
12
+ "id": "good",
13
+ "src": "scenes/good.html",
14
+ "frames": 150
15
+ },
16
+ {
17
+ "id": "read",
18
+ "src": "scenes/read.html",
19
+ "frames": 150
20
+ },
21
+ {
22
+ "id": "cut",
23
+ "src": "scenes/cut.html",
24
+ "frames": 150
25
+ },
26
+ {
27
+ "id": "speed",
28
+ "src": "scenes/speed.html",
29
+ "frames": 90
30
+ },
31
+ {
32
+ "id": "behind",
33
+ "src": "scenes/behind.html",
34
+ "frames": 150
35
+ },
36
+ {
37
+ "id": "shake",
38
+ "src": "scenes/shake.html",
39
+ "frames": 180
40
+ },
41
+ {
42
+ "id": "edges",
43
+ "src": "scenes/edges.html",
44
+ "frames": 120
45
+ }
46
+ ],
47
+ "output": {
48
+ "default": {
49
+ "codec": "h264",
50
+ "crf": 28,
51
+ "preset": "ultrafast",
52
+ "pix_fmt": "yuv420p",
53
+ "gop_frames": 30
54
+ }
55
+ }
56
+ }
@@ -0,0 +1,22 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <style>
6
+ html, body { margin: 0; width: 640px; height: 360px; background: #101828; overflow: hidden; font-family: sans-serif; }
7
+ .box { position: absolute; box-sizing: border-box; padding: 8px; color: #fff; font-size: 13px; line-height: 16px; border-radius: 8px; }
8
+ .step { width: 150px; min-height: 90px; }
9
+ .lbl { white-space: nowrap; background: #2a9d8f; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <div data-mosio-depth="1" style="position:absolute;left:-60px;top:-60px;width:760px;height:480px;background:repeating-linear-gradient(90deg,#1b2a47 0 40px,#101828 40px 80px)"></div>
14
+ <div class="box" style="left:380px;top:170px;width:120px;height:24px;padding:4px;background:#e63946" data-mosio-id="cap">Moving backdrop</div>
15
+ <script type="application/mosio-camera">
16
+ [
17
+ { "shot": "zoom-in", "to": "cap", "fit": 0.5, "dur": 3 },
18
+ { "shot": "parallax", "strength": 0.5 }
19
+ ]
20
+ </script>
21
+ </body>
22
+ </html>
@@ -0,0 +1,18 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <style>
6
+ html, body { margin: 0; width: 640px; height: 360px; background: #101828; overflow: hidden; font-family: sans-serif; }
7
+ .box { position: absolute; box-sizing: border-box; padding: 8px; color: #fff; font-size: 13px; line-height: 16px; border-radius: 8px; }
8
+ .step { width: 150px; min-height: 90px; }
9
+ .lbl { white-space: nowrap; background: #2a9d8f; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <div class="box step" style="left:125px;top:65px;background:#e63946" data-mosio-id="step-1">Cut by the frame edge</div>
14
+ <script type="application/mosio-camera">
15
+ [ { "shot": "zoom-in", "to": "step-1", "fit": 1.6, "dur": 2.5 } ]
16
+ </script>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <style>
6
+ html, body { margin: 0; width: 640px; height: 360px; background: #101828; overflow: hidden; font-family: sans-serif; }
7
+ .box { position: absolute; box-sizing: border-box; padding: 8px; color: #fff; font-size: 13px; line-height: 16px; border-radius: 8px; }
8
+ .step { width: 150px; min-height: 90px; }
9
+ .lbl { white-space: nowrap; background: #2a9d8f; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <div class="box lbl" style="left:10px;top:10px;width:100px;height:40px" data-mosio-id="lbl">Top left</div>
14
+ <script type="application/mosio-camera">
15
+ [ { "shot": "zoom-in", "to": "lbl", "fit": 0.5, "dur": 2.5, "confine": false } ]
16
+ </script>
17
+ </body>
18
+ </html>
@@ -0,0 +1,23 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <style>
6
+ html, body { margin: 0; width: 640px; height: 360px; background: #101828; overflow: hidden; font-family: sans-serif; }
7
+ .box { position: absolute; box-sizing: border-box; padding: 8px; color: #fff; font-size: 13px; line-height: 16px; border-radius: 8px; }
8
+ .step { width: 150px; min-height: 90px; }
9
+ .lbl { white-space: nowrap; background: #2a9d8f; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <div class="box step" style="left:125px;top:65px;background:#e63946" data-mosio-id="step-1">1. Collect</div>
14
+ <div class="box step" style="left:365px;top:135px;background:#2a9d8f" data-mosio-id="step-2">2. Check it</div>
15
+ <script type="application/mosio-camera">
16
+ { "feel": "calm",
17
+ "shots": [
18
+ { "shot": "tour", "targets": ["#step-1", "#step-2"], "move": 1.6, "fit": 0.5, "hold": "auto" },
19
+ { "shot": "shake", "at": 4.2, "preset": "bump" }
20
+ ] }
21
+ </script>
22
+ </body>
23
+ </html>
@@ -0,0 +1,22 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <style>
6
+ html, body { margin: 0; width: 640px; height: 360px; background: #101828; overflow: hidden; font-family: sans-serif; }
7
+ .box { position: absolute; box-sizing: border-box; padding: 8px; color: #fff; font-size: 13px; line-height: 16px; border-radius: 8px; }
8
+ .step { width: 150px; min-height: 90px; }
9
+ .lbl { white-space: nowrap; background: #2a9d8f; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <div class="box step" style="left:125px;top:65px;background:#e63946" data-mosio-id="step-1">1. Collect</div>
14
+ <div class="box step" style="left:365px;top:135px;background:#2a9d8f" data-mosio-id="step-2">2. Clean the data, then check it against the source once more before you publish it</div>
15
+ <script type="application/mosio-camera">
16
+ { "feel": "calm",
17
+ "shots": [
18
+ { "shot": "tour", "targets": ["#step-1", "#step-2"], "move": 1.6, "fit": 0.5, "hold": [0.8, 1.0] }
19
+ ] }
20
+ </script>
21
+ </body>
22
+ </html>
@@ -0,0 +1,23 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <style>
6
+ html, body { margin: 0; width: 640px; height: 360px; background: #101828; overflow: hidden; font-family: sans-serif; }
7
+ .box { position: absolute; box-sizing: border-box; padding: 8px; color: #fff; font-size: 13px; line-height: 16px; border-radius: 8px; }
8
+ .step { width: 150px; min-height: 90px; }
9
+ .lbl { white-space: nowrap; background: #2a9d8f; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <div class="box lbl" style="left:245px;top:160px;width:150px;height:40px" data-mosio-id="lbl">Hold on tight</div>
14
+ <script type="application/mosio-camera">
15
+ [
16
+ { "shot": "zoom-in", "to": "lbl", "fit": 0.5, "dur": 1.6 },
17
+ { "shot": "shake", "at": 2.0, "dur": 1.2 },
18
+ { "shot": "shake", "at": 3.4, "preset": "bump" },
19
+ { "shot": "shake", "at": 4.2, "preset": "bump" }
20
+ ]
21
+ </script>
22
+ </body>
23
+ </html>
@@ -0,0 +1,18 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <style>
6
+ html, body { margin: 0; width: 640px; height: 360px; background: #101828; overflow: hidden; font-family: sans-serif; }
7
+ .box { position: absolute; box-sizing: border-box; padding: 8px; color: #fff; font-size: 13px; line-height: 16px; border-radius: 8px; }
8
+ .step { width: 150px; min-height: 90px; }
9
+ .lbl { white-space: nowrap; background: #2a9d8f; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <div class="box step" style="left:245px;top:135px;background:#e63946" data-mosio-id="lbl">Mind the gap</div>
14
+ <script type="application/mosio-camera">
15
+ [ { "shot": "zoom-in", "to": "lbl", "fit": 0.5, "dur": 0.4 } ]
16
+ </script>
17
+ </body>
18
+ </html>
@@ -0,0 +1,31 @@
1
+ {
2
+ "mosio": 1,
3
+ "name": "camera-inspect-vertical",
4
+ "description": "Camera safe-zone check of mosio inspect in a 9:16 film: a clean tour (good) and text parked in the top band (safe).",
5
+ "width": 360,
6
+ "height": 640,
7
+ "fps": 30,
8
+ "seed": 3,
9
+ "background": "#101828",
10
+ "scenes": [
11
+ {
12
+ "id": "good",
13
+ "src": "scenes/good.html",
14
+ "frames": 150
15
+ },
16
+ {
17
+ "id": "safe",
18
+ "src": "scenes/safe.html",
19
+ "frames": 120
20
+ }
21
+ ],
22
+ "output": {
23
+ "default": {
24
+ "codec": "h264",
25
+ "crf": 28,
26
+ "preset": "ultrafast",
27
+ "pix_fmt": "yuv420p",
28
+ "gop_frames": 30
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,20 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <style>
6
+ html, body { margin: 0; width: 360px; height: 640px; background: #101828; overflow: hidden; font-family: sans-serif; }
7
+ .box { position: absolute; box-sizing: border-box; padding: 8px; color: #fff; font-size: 13px; line-height: 16px; border-radius: 8px; }
8
+ .step { width: 150px; min-height: 90px; }
9
+ .lbl { white-space: nowrap; background: #2a9d8f; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <div class="box step" style="left:105px;top:130px;background:#e63946" data-mosio-id="step-1">1. Collect</div>
14
+ <div class="box step" style="left:105px;top:360px;background:#2a9d8f" data-mosio-id="step-2">2. Check it</div>
15
+ <script type="application/mosio-camera">
16
+ { "feel": "calm",
17
+ "shots": [ { "shot": "tour", "targets": ["#step-1", "#step-2"], "move": 1.6, "fit": 0.5, "hold": "auto" } ] }
18
+ </script>
19
+ </body>
20
+ </html>
@@ -0,0 +1,18 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <style>
6
+ html, body { margin: 0; width: 360px; height: 640px; background: #101828; overflow: hidden; font-family: sans-serif; }
7
+ .box { position: absolute; box-sizing: border-box; padding: 8px; color: #fff; font-size: 13px; line-height: 16px; border-radius: 8px; }
8
+ .step { width: 150px; min-height: 90px; }
9
+ .lbl { white-space: nowrap; background: #2a9d8f; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <div class="box step" style="left:105px;top:20px;background:#e63946;min-height:40px" data-mosio-id="step-1">Up in the platform bar</div>
14
+ <script type="application/mosio-camera">
15
+ [ { "shot": "zoom-in", "to": "step-1", "fit": 0.5, "dur": 2 } ]
16
+ </script>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ {
2
+ "kind": "inspection",
3
+ "expect_findings": [
4
+ { "scene": "physics", "code": "W_MOTION_FAST_UNBLURRED", "id": "physics/streak" },
5
+ { "scene": "physics", "code": "W_TEXT_MOVES_WHILE_READ", "id": "physics/drift" },
6
+ { "scene": "physics", "code": "W_MOTION_OVERSHOOT_TEXT", "id": "physics/bounce", "source": "measured" },
7
+ { "scene": "physics", "code": "I_MIXED_DIRECTIONS", "id": "physics/row" },
8
+ { "scene": "physics", "code": "W_POINTER_MISS", "id": "physics/subscribe" }
9
+ ],
10
+ "expect_clean": [
11
+ { "scene": "calm", "code": "W_MOTION_FAST_UNBLURRED" },
12
+ { "scene": "calm", "code": "W_TEXT_MOVES_WHILE_READ" },
13
+ { "scene": "calm", "code": "W_MOTION_OVERSHOOT_TEXT" },
14
+ { "scene": "calm", "code": "I_MIXED_DIRECTIONS" },
15
+ { "scene": "calm", "code": "W_POINTER_MISS" },
16
+ { "scene": "physics", "code": "W_MOTION_OVERSHOOT_TEXT", "id": "physics/drift" }
17
+ ]
18
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "mosio": 0,
3
+ "name": "inspect-physics",
4
+ "description": "Motion-physics fixture. The first scene has one seeded defect per check: a box that streaks across the frame with no blur, a line that drifts the whole time it is legible, a title that bounces past its place (with a function ease, so only the measured check can see it), a row whose items enter from two sides in the same beat, and a cursor whose tip presses beside the Subscribe button. The second scene is the clean control: the same moves blurred, settled, eased without overshoot, from one side, and on target.",
5
+ "width": 1280,
6
+ "height": 720,
7
+ "fps": 30,
8
+ "seed": 7,
9
+ "background": "#0b1020",
10
+ "libraries": [
11
+ "gsap@3.15.1"
12
+ ],
13
+ "shared": [],
14
+ "assets": [],
15
+ "scenes": [
16
+ {
17
+ "id": "physics",
18
+ "src": "scenes/physics.html",
19
+ "frames": 150
20
+ },
21
+ {
22
+ "id": "calm",
23
+ "src": "scenes/calm.html",
24
+ "frames": 150
25
+ }
26
+ ],
27
+ "transitions": [],
28
+ "audio": []
29
+ }
@@ -0,0 +1,46 @@
1
+ <!doctype html><html><head><meta charset="utf-8">
2
+ <script src="/_lib/gsap@3.15.1/gsap.min.js"></script>
3
+ <style>
4
+ * { margin: 0; padding: 0; box-sizing: border-box; } html, body { width: 1280px; height: 720px; overflow: hidden; background: #0b1020; color: #f8fafc; font-family: sans-serif; }
5
+ .box { position: absolute; width: 80px; height: 80px; background: #38bdf8; border-radius: 8px; }
6
+ .t { position: absolute; left: 80px; font-size: 36px; font-weight: 700; white-space: nowrap; }
7
+ .row { position: absolute; left: 80px; top: 360px; width: 600px; height: 100px; }
8
+ .row .box { top: 10px; }
9
+ .btn { position: absolute; left: 900px; top: 560px; width: 200px; height: 56px; background: #f43f5e; border-radius: 28px; font: 700 24px sans-serif; display: flex; align-items: center; justify-content: center; }
10
+ .layer { position: absolute; inset: 0; }
11
+ .cursor { position: absolute; width: 32px; height: 32px; background: #fff; clip-path: polygon(12.5% 8.3%, 12.5% 79%, 33% 60%, 48% 92%, 60% 86%, 46% 55%, 75% 54%); }
12
+ </style></head><body>
13
+ <div class="box" data-mosio-id="calm/streak" style="left:0;top:40px;filter:blur(6px)"></div>
14
+ <div class="t" data-mosio-id="calm/drift" style="top:160px;opacity:0">Words settling on the screen</div>
15
+ <div class="t" data-mosio-id="calm/bounce" style="top:260px;opacity:0">Launch day</div>
16
+ <div class="row" data-mosio-id="calm/row">
17
+ <div class="box" data-mosio-id="calm/row-a" style="left:0"></div>
18
+ <div class="box" data-mosio-id="calm/row-b" style="left:160px"></div>
19
+ <div class="box" data-mosio-id="calm/row-c" style="left:320px"></div>
20
+ </div>
21
+ <div class="btn" data-mosio-id="calm/subscribe">Subscribe</div>
22
+ <div class="layer" data-mosio-id="calm/layer"><div class="cursor" data-mp="cursor" data-mosio-id="calm/cursor"></div></div>
23
+ <script>
24
+ const tl = gsap.timeline({ paused: true });
25
+ const $ = (id) => '[data-mosio-id="calm/' + id + '"]';
26
+ // the same fast move, blurred while it moves
27
+ tl.fromTo($("streak"), { x: 0 }, { x: 1100, duration: 0.3, ease: "none" }, 0.2);
28
+ tl.set($("streak"), { filter: "none" }, 0.6);
29
+ // the line slides in, settles within half a second and holds still while it is read
30
+ tl.fromTo($("drift"), { opacity: 0, x: 40 }, { opacity: 1, x: 0, duration: 0.5, ease: "power3.out" }, 0);
31
+ tl.to($("drift"), { opacity: 0, duration: 0.1, ease: "none" }, 3.7);
32
+ // an ease that stops at its end
33
+ tl.fromTo($("bounce"), { y: 80, opacity: 0 }, { y: 0, opacity: 1, duration: 0.6, ease: "power3.out" }, 0.5);
34
+ // all three items rise from below
35
+ tl.fromTo($("row-a"), { y: 60, opacity: 0 }, { y: 0, opacity: 1, duration: 0.5, ease: "power3.out" }, 1.0);
36
+ tl.fromTo($("row-b"), { y: 60, opacity: 0 }, { y: 0, opacity: 1, duration: 0.5, ease: "power3.out" }, 1.05);
37
+ tl.fromTo($("row-c"), { y: 60, opacity: 0 }, { y: 0, opacity: 1, duration: 0.5, ease: "power3.out" }, 1.1);
38
+ // the tip presses the centre of the button
39
+ const cur = $("cursor");
40
+ gsap.set(cur, { transformOrigin: "12.5% 8.3%", xPercent: -12.5, yPercent: -8.3, left: 200, top: 650 });
41
+ tl.fromTo(cur, { left: 200, top: 650 }, { left: 1000, top: 588, duration: 0.8, ease: "power2.inOut", immediateRender: false }, 2.6);
42
+ tl.fromTo(cur, { scale: 1 }, { scale: 0.85, duration: 0.1, ease: "power2.in", yoyo: true, repeat: 1, immediateRender: false }, 3.5);
43
+ tl.fromTo($("subscribe"), { scale: 1 }, { scale: 0.95, duration: 0.1, ease: "power2.in", yoyo: true, repeat: 1, immediateRender: false }, 3.5);
44
+ __mosio.timeline(tl);
45
+ </script>
46
+ </body></html>
@@ -0,0 +1,47 @@
1
+ <!doctype html><html><head><meta charset="utf-8">
2
+ <script src="/_lib/gsap@3.15.1/gsap.min.js"></script>
3
+ <style>
4
+ * { margin: 0; padding: 0; box-sizing: border-box; } html, body { width: 1280px; height: 720px; overflow: hidden; background: #0b1020; color: #f8fafc; font-family: sans-serif; }
5
+ .box { position: absolute; width: 80px; height: 80px; background: #38bdf8; border-radius: 8px; }
6
+ .t { position: absolute; left: 80px; font-size: 36px; font-weight: 700; white-space: nowrap; }
7
+ .row { position: absolute; left: 80px; top: 360px; width: 600px; height: 100px; }
8
+ .row .box { top: 10px; }
9
+ .btn { position: absolute; left: 900px; top: 560px; width: 200px; height: 56px; background: #f43f5e; border-radius: 28px; font: 700 24px sans-serif; display: flex; align-items: center; justify-content: center; }
10
+ .layer { position: absolute; inset: 0; }
11
+ .cursor { position: absolute; width: 32px; height: 32px; background: #fff; clip-path: polygon(12.5% 8.3%, 12.5% 79%, 33% 60%, 48% 92%, 60% 86%, 46% 55%, 75% 54%); }
12
+ </style></head><body>
13
+ <div class="box" data-mosio-id="physics/streak" style="left:0;top:40px"></div>
14
+ <div class="t" data-mosio-id="physics/drift" style="top:160px;opacity:0">Words drifting across the screen</div>
15
+ <div class="t" data-mosio-id="physics/bounce" style="top:260px;opacity:0">Launch day</div>
16
+ <div class="row" data-mosio-id="physics/row">
17
+ <div class="box" data-mosio-id="physics/row-a" style="left:0"></div>
18
+ <div class="box" data-mosio-id="physics/row-b" style="left:160px"></div>
19
+ <div class="box" data-mosio-id="physics/row-c" style="left:320px"></div>
20
+ </div>
21
+ <div class="btn" data-mosio-id="physics/subscribe">Subscribe</div>
22
+ <div class="layer" data-mosio-id="physics/layer"><div class="cursor" data-mp="cursor" data-mosio-id="physics/cursor"></div></div>
23
+ <script>
24
+ const tl = gsap.timeline({ paused: true });
25
+ const $ = (id) => '[data-mosio-id="physics/' + id + '"]';
26
+ // 1100 px in 9 frames (about 122 px per frame, limit 64) with no blur
27
+ tl.fromTo($("streak"), { x: 0 }, { x: 1100, duration: 0.3, ease: "none" }, 0.2);
28
+ // a five-word line legible for 3.6 s while it drifts 100 px/s the whole time
29
+ tl.fromTo($("drift"), { opacity: 0 }, { opacity: 1, duration: 0.1, ease: "none" }, 0);
30
+ tl.fromTo($("drift"), { x: 0 }, { x: 380, duration: 3.8, ease: "none" }, 0);
31
+ tl.to($("drift"), { opacity: 0, duration: 0.1, ease: "none" }, 3.7);
32
+ // back.out written as a function, so the static lint cannot see it: overshoots about 10 %
33
+ const backOut = (p) => 1 + 2.70158 * Math.pow(p - 1, 3) + 1.70158 * Math.pow(p - 1, 2);
34
+ tl.fromTo($("bounce"), { y: 80, opacity: 0 }, { y: 0, opacity: 1, duration: 0.6, ease: backOut }, 0.5);
35
+ // two items rise from below, the third slides in from the left, in the same beat
36
+ tl.fromTo($("row-a"), { y: 60, opacity: 0 }, { y: 0, opacity: 1, duration: 0.5, ease: "power3.out" }, 1.0);
37
+ tl.fromTo($("row-b"), { y: 60, opacity: 0 }, { y: 0, opacity: 1, duration: 0.5, ease: "power3.out" }, 1.05);
38
+ tl.fromTo($("row-c"), { x: -120, opacity: 0 }, { x: 0, opacity: 1, duration: 0.5, ease: "power3.out" }, 1.1);
39
+ // the click point was taken before the button moved: the tip presses 50 px right of its right edge (1100)
40
+ const cur = $("cursor");
41
+ gsap.set(cur, { transformOrigin: "12.5% 8.3%", xPercent: -12.5, yPercent: -8.3, left: 200, top: 650 });
42
+ tl.fromTo(cur, { left: 200, top: 650 }, { left: 1150, top: 588, duration: 0.8, ease: "power2.inOut", immediateRender: false }, 2.6);
43
+ tl.fromTo(cur, { scale: 1 }, { scale: 0.85, duration: 0.1, ease: "power2.in", yoyo: true, repeat: 1, immediateRender: false }, 3.5);
44
+ tl.fromTo($("subscribe"), { scale: 1 }, { scale: 0.95, duration: 0.1, ease: "power2.in", yoyo: true, repeat: 1, immediateRender: false }, 3.5);
45
+ __mosio.timeline(tl);
46
+ </script>
47
+ </body></html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usemosio/cli-linux-x64",
3
- "version": "1.0.0-next.1",
3
+ "version": "1.0.0-next.2",
4
4
  "license": "MIT OR Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",