@canonical/motion-control 0.0.0-stage → 0.47.0

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 (310) hide show
  1. package/README.md +300 -2
  2. package/cast.schema.json +101 -0
  3. package/dist/esm/cli.js +30 -0
  4. package/dist/esm/cli.js.map +1 -0
  5. package/dist/esm/global.js +7 -0
  6. package/dist/esm/global.js.map +1 -0
  7. package/dist/esm/index.js +2 -0
  8. package/dist/esm/index.js.map +1 -0
  9. package/dist/esm/lib/cast/checkCasts.js +34 -0
  10. package/dist/esm/lib/cast/checkCasts.js.map +1 -0
  11. package/dist/esm/lib/cast/checkScene.js +58 -0
  12. package/dist/esm/lib/cast/checkScene.js.map +1 -0
  13. package/dist/esm/lib/cast/checkStep.js +73 -0
  14. package/dist/esm/lib/cast/checkStep.js.map +1 -0
  15. package/dist/esm/lib/cast/constants.js +53 -0
  16. package/dist/esm/lib/cast/constants.js.map +1 -0
  17. package/dist/esm/lib/cast/formatReport.js +22 -0
  18. package/dist/esm/lib/cast/formatReport.js.map +1 -0
  19. package/dist/esm/lib/cast/index.js +10 -0
  20. package/dist/esm/lib/cast/index.js.map +1 -0
  21. package/dist/esm/lib/cast/listFrameNames.js +19 -0
  22. package/dist/esm/lib/cast/listFrameNames.js.map +1 -0
  23. package/dist/esm/lib/cast/measureScene.js +11 -0
  24. package/dist/esm/lib/cast/measureScene.js.map +1 -0
  25. package/dist/esm/lib/cast/measureStep.js +21 -0
  26. package/dist/esm/lib/cast/measureStep.js.map +1 -0
  27. package/dist/esm/lib/cast/measureTyping.js +13 -0
  28. package/dist/esm/lib/cast/measureTyping.js.map +1 -0
  29. package/dist/esm/lib/cast/types.js +2 -0
  30. package/dist/esm/lib/cast/types.js.map +1 -0
  31. package/dist/esm/lib/gif/compressLzw.js +61 -0
  32. package/dist/esm/lib/gif/compressLzw.js.map +1 -0
  33. package/dist/esm/lib/gif/constants.js +9 -0
  34. package/dist/esm/lib/gif/constants.js.map +1 -0
  35. package/dist/esm/lib/gif/encodeGif.js +45 -0
  36. package/dist/esm/lib/gif/encodeGif.js.map +1 -0
  37. package/dist/esm/lib/gif/index.js +6 -0
  38. package/dist/esm/lib/gif/index.js.map +1 -0
  39. package/dist/esm/lib/gif/mergeStills.js +32 -0
  40. package/dist/esm/lib/gif/mergeStills.js.map +1 -0
  41. package/dist/esm/lib/gif/quantizePictures.js +75 -0
  42. package/dist/esm/lib/gif/quantizePictures.js.map +1 -0
  43. package/dist/esm/lib/gif/types.js +2 -0
  44. package/dist/esm/lib/gif/types.js.map +1 -0
  45. package/dist/esm/lib/index.js +3 -0
  46. package/dist/esm/lib/index.js.map +1 -0
  47. package/dist/esm/lib/moment/constants.js +33 -0
  48. package/dist/esm/lib/moment/constants.js.map +1 -0
  49. package/dist/esm/lib/moment/describeAction.js +20 -0
  50. package/dist/esm/lib/moment/describeAction.js.map +1 -0
  51. package/dist/esm/lib/moment/describeKeyRun.js +53 -0
  52. package/dist/esm/lib/moment/describeKeyRun.js.map +1 -0
  53. package/dist/esm/lib/moment/describeMoment.js +323 -0
  54. package/dist/esm/lib/moment/describeMoment.js.map +1 -0
  55. package/dist/esm/lib/moment/easeInOut.js +12 -0
  56. package/dist/esm/lib/moment/easeInOut.js.map +1 -0
  57. package/dist/esm/lib/moment/index.js +8 -0
  58. package/dist/esm/lib/moment/index.js.map +1 -0
  59. package/dist/esm/lib/moment/resolveStates.js +82 -0
  60. package/dist/esm/lib/moment/resolveStates.js.map +1 -0
  61. package/dist/esm/lib/moment/takeSpan.js +12 -0
  62. package/dist/esm/lib/moment/takeSpan.js.map +1 -0
  63. package/dist/esm/lib/moment/types.js +2 -0
  64. package/dist/esm/lib/moment/types.js.map +1 -0
  65. package/dist/esm/lib/player/Player.js +498 -0
  66. package/dist/esm/lib/player/Player.js.map +1 -0
  67. package/dist/esm/lib/player/announceHeight.js +30 -0
  68. package/dist/esm/lib/player/announceHeight.js.map +1 -0
  69. package/dist/esm/lib/player/applyMoment.js +155 -0
  70. package/dist/esm/lib/player/applyMoment.js.map +1 -0
  71. package/dist/esm/lib/player/assertPresent.js +14 -0
  72. package/dist/esm/lib/player/assertPresent.js.map +1 -0
  73. package/dist/esm/lib/player/collectFrames.js +30 -0
  74. package/dist/esm/lib/player/collectFrames.js.map +1 -0
  75. package/dist/esm/lib/player/collectStyles.js +24 -0
  76. package/dist/esm/lib/player/collectStyles.js.map +1 -0
  77. package/dist/esm/lib/player/constants.js +101 -0
  78. package/dist/esm/lib/player/constants.js.map +1 -0
  79. package/dist/esm/lib/player/defaultProfile.js +50 -0
  80. package/dist/esm/lib/player/defaultProfile.js.map +1 -0
  81. package/dist/esm/lib/player/drawMarkup.js +36 -0
  82. package/dist/esm/lib/player/drawMarkup.js.map +1 -0
  83. package/dist/esm/lib/player/drawScene.js +32 -0
  84. package/dist/esm/lib/player/drawScene.js.map +1 -0
  85. package/dist/esm/lib/player/drawSprites.js +122 -0
  86. package/dist/esm/lib/player/drawSprites.js.map +1 -0
  87. package/dist/esm/lib/player/fitEmbeds.js +42 -0
  88. package/dist/esm/lib/player/fitEmbeds.js.map +1 -0
  89. package/dist/esm/lib/player/fitSlide.js +27 -0
  90. package/dist/esm/lib/player/fitSlide.js.map +1 -0
  91. package/dist/esm/lib/player/formatKey.js +13 -0
  92. package/dist/esm/lib/player/formatKey.js.map +1 -0
  93. package/dist/esm/lib/player/formatKeySign.js +12 -0
  94. package/dist/esm/lib/player/formatKeySign.js.map +1 -0
  95. package/dist/esm/lib/player/formatSpeed.js +11 -0
  96. package/dist/esm/lib/player/formatSpeed.js.map +1 -0
  97. package/dist/esm/lib/player/formatTime.js +18 -0
  98. package/dist/esm/lib/player/formatTime.js.map +1 -0
  99. package/dist/esm/lib/player/index.js +30 -0
  100. package/dist/esm/lib/player/index.js.map +1 -0
  101. package/dist/esm/lib/player/installStateRules.js +25 -0
  102. package/dist/esm/lib/player/installStateRules.js.map +1 -0
  103. package/dist/esm/lib/player/listHidden.js +24 -0
  104. package/dist/esm/lib/player/listHidden.js.map +1 -0
  105. package/dist/esm/lib/player/makeElement.js +15 -0
  106. package/dist/esm/lib/player/makeElement.js.map +1 -0
  107. package/dist/esm/lib/player/mergeProfile.js +17 -0
  108. package/dist/esm/lib/player/mergeProfile.js.map +1 -0
  109. package/dist/esm/lib/player/mirrorStates.js +23 -0
  110. package/dist/esm/lib/player/mirrorStates.js.map +1 -0
  111. package/dist/esm/lib/player/mountScenes.js +100 -0
  112. package/dist/esm/lib/player/mountScenes.js.map +1 -0
  113. package/dist/esm/lib/player/readLayerBox.js +20 -0
  114. package/dist/esm/lib/player/readLayerBox.js.map +1 -0
  115. package/dist/esm/lib/player/recordGif.js +63 -0
  116. package/dist/esm/lib/player/recordGif.js.map +1 -0
  117. package/dist/esm/lib/player/recordVideo.js +114 -0
  118. package/dist/esm/lib/player/recordVideo.js.map +1 -0
  119. package/dist/esm/lib/player/renderLegend.js +27 -0
  120. package/dist/esm/lib/player/renderLegend.js.map +1 -0
  121. package/dist/esm/lib/player/saveFile.js +22 -0
  122. package/dist/esm/lib/player/saveFile.js.map +1 -0
  123. package/dist/esm/lib/player/serializeElement.js +36 -0
  124. package/dist/esm/lib/player/serializeElement.js.map +1 -0
  125. package/dist/esm/lib/player/types.js +2 -0
  126. package/dist/esm/lib/player/types.js.map +1 -0
  127. package/dist/esm/lib/player/wrapSlide.js +28 -0
  128. package/dist/esm/lib/player/wrapSlide.js.map +1 -0
  129. package/dist/esm/lib/timeline/advanceClock.js +24 -0
  130. package/dist/esm/lib/timeline/advanceClock.js.map +1 -0
  131. package/dist/esm/lib/timeline/buildTimeline.js +47 -0
  132. package/dist/esm/lib/timeline/buildTimeline.js.map +1 -0
  133. package/dist/esm/lib/timeline/constants.js +3 -0
  134. package/dist/esm/lib/timeline/constants.js.map +1 -0
  135. package/dist/esm/lib/timeline/findKeyframe.js +11 -0
  136. package/dist/esm/lib/timeline/findKeyframe.js.map +1 -0
  137. package/dist/esm/lib/timeline/index.js +7 -0
  138. package/dist/esm/lib/timeline/index.js.map +1 -0
  139. package/dist/esm/lib/timeline/locateTime.js +21 -0
  140. package/dist/esm/lib/timeline/locateTime.js.map +1 -0
  141. package/dist/esm/lib/timeline/stepKeyframe.js +20 -0
  142. package/dist/esm/lib/timeline/stepKeyframe.js.map +1 -0
  143. package/dist/esm/lib/timeline/types.js +2 -0
  144. package/dist/esm/lib/timeline/types.js.map +1 -0
  145. package/dist/esm/lib/video/constants.js +7 -0
  146. package/dist/esm/lib/video/constants.js.map +1 -0
  147. package/dist/esm/lib/video/index.js +4 -0
  148. package/dist/esm/lib/video/index.js.map +1 -0
  149. package/dist/esm/lib/video/types.js +2 -0
  150. package/dist/esm/lib/video/types.js.map +1 -0
  151. package/dist/esm/lib/video/writeBox.js +21 -0
  152. package/dist/esm/lib/video/writeBox.js.map +1 -0
  153. package/dist/esm/lib/video/writeMp4.js +45 -0
  154. package/dist/esm/lib/video/writeMp4.js.map +1 -0
  155. package/dist/motion.css +581 -0
  156. package/dist/motion.global.js +1534 -0
  157. package/dist/types/cli.d.ts +3 -0
  158. package/dist/types/cli.d.ts.map +1 -0
  159. package/dist/types/global.d.ts +2 -0
  160. package/dist/types/global.d.ts.map +1 -0
  161. package/dist/types/index.d.ts +17 -0
  162. package/dist/types/index.d.ts.map +1 -0
  163. package/dist/types/lib/cast/checkCasts.d.ts +15 -0
  164. package/dist/types/lib/cast/checkCasts.d.ts.map +1 -0
  165. package/dist/types/lib/cast/checkScene.d.ts +11 -0
  166. package/dist/types/lib/cast/checkScene.d.ts.map +1 -0
  167. package/dist/types/lib/cast/checkStep.d.ts +12 -0
  168. package/dist/types/lib/cast/checkStep.d.ts.map +1 -0
  169. package/dist/types/lib/cast/constants.d.ts +20 -0
  170. package/dist/types/lib/cast/constants.d.ts.map +1 -0
  171. package/dist/types/lib/cast/formatReport.d.ts +11 -0
  172. package/dist/types/lib/cast/formatReport.d.ts.map +1 -0
  173. package/dist/types/lib/cast/index.d.ts +11 -0
  174. package/dist/types/lib/cast/index.d.ts.map +1 -0
  175. package/dist/types/lib/cast/listFrameNames.d.ts +8 -0
  176. package/dist/types/lib/cast/listFrameNames.d.ts.map +1 -0
  177. package/dist/types/lib/cast/measureScene.d.ts +9 -0
  178. package/dist/types/lib/cast/measureScene.d.ts.map +1 -0
  179. package/dist/types/lib/cast/measureStep.d.ts +13 -0
  180. package/dist/types/lib/cast/measureStep.d.ts.map +1 -0
  181. package/dist/types/lib/cast/measureTyping.d.ts +12 -0
  182. package/dist/types/lib/cast/measureTyping.d.ts.map +1 -0
  183. package/dist/types/lib/cast/types.d.ts +87 -0
  184. package/dist/types/lib/cast/types.d.ts.map +1 -0
  185. package/dist/types/lib/gif/compressLzw.d.ts +9 -0
  186. package/dist/types/lib/gif/compressLzw.d.ts.map +1 -0
  187. package/dist/types/lib/gif/constants.d.ts +9 -0
  188. package/dist/types/lib/gif/constants.d.ts.map +1 -0
  189. package/dist/types/lib/gif/encodeGif.d.ts +13 -0
  190. package/dist/types/lib/gif/encodeGif.d.ts.map +1 -0
  191. package/dist/types/lib/gif/index.d.ts +7 -0
  192. package/dist/types/lib/gif/index.d.ts.map +1 -0
  193. package/dist/types/lib/gif/mergeStills.d.ts +12 -0
  194. package/dist/types/lib/gif/mergeStills.d.ts.map +1 -0
  195. package/dist/types/lib/gif/quantizePictures.d.ts +13 -0
  196. package/dist/types/lib/gif/quantizePictures.d.ts.map +1 -0
  197. package/dist/types/lib/gif/types.d.ts +22 -0
  198. package/dist/types/lib/gif/types.d.ts.map +1 -0
  199. package/dist/types/lib/index.d.ts +3 -0
  200. package/dist/types/lib/index.d.ts.map +1 -0
  201. package/dist/types/lib/moment/constants.d.ts +33 -0
  202. package/dist/types/lib/moment/constants.d.ts.map +1 -0
  203. package/dist/types/lib/moment/describeAction.d.ts +9 -0
  204. package/dist/types/lib/moment/describeAction.d.ts.map +1 -0
  205. package/dist/types/lib/moment/describeKeyRun.d.ts +18 -0
  206. package/dist/types/lib/moment/describeKeyRun.d.ts.map +1 -0
  207. package/dist/types/lib/moment/describeMoment.d.ts +16 -0
  208. package/dist/types/lib/moment/describeMoment.d.ts.map +1 -0
  209. package/dist/types/lib/moment/easeInOut.d.ts +8 -0
  210. package/dist/types/lib/moment/easeInOut.d.ts.map +1 -0
  211. package/dist/types/lib/moment/index.d.ts +9 -0
  212. package/dist/types/lib/moment/index.d.ts.map +1 -0
  213. package/dist/types/lib/moment/resolveStates.d.ts +18 -0
  214. package/dist/types/lib/moment/resolveStates.d.ts.map +1 -0
  215. package/dist/types/lib/moment/takeSpan.d.ts +10 -0
  216. package/dist/types/lib/moment/takeSpan.d.ts.map +1 -0
  217. package/dist/types/lib/moment/types.d.ts +187 -0
  218. package/dist/types/lib/moment/types.d.ts.map +1 -0
  219. package/dist/types/lib/player/Player.d.ts +134 -0
  220. package/dist/types/lib/player/Player.d.ts.map +1 -0
  221. package/dist/types/lib/player/announceHeight.d.ts +12 -0
  222. package/dist/types/lib/player/announceHeight.d.ts.map +1 -0
  223. package/dist/types/lib/player/applyMoment.d.ts +21 -0
  224. package/dist/types/lib/player/applyMoment.d.ts.map +1 -0
  225. package/dist/types/lib/player/assertPresent.d.ts +10 -0
  226. package/dist/types/lib/player/assertPresent.d.ts.map +1 -0
  227. package/dist/types/lib/player/collectFrames.d.ts +11 -0
  228. package/dist/types/lib/player/collectFrames.d.ts.map +1 -0
  229. package/dist/types/lib/player/collectStyles.d.ts +12 -0
  230. package/dist/types/lib/player/collectStyles.d.ts.map +1 -0
  231. package/dist/types/lib/player/constants.d.ts +80 -0
  232. package/dist/types/lib/player/constants.d.ts.map +1 -0
  233. package/dist/types/lib/player/defaultProfile.d.ts +8 -0
  234. package/dist/types/lib/player/defaultProfile.d.ts.map +1 -0
  235. package/dist/types/lib/player/drawMarkup.d.ts +15 -0
  236. package/dist/types/lib/player/drawMarkup.d.ts.map +1 -0
  237. package/dist/types/lib/player/drawScene.d.ts +23 -0
  238. package/dist/types/lib/player/drawScene.d.ts.map +1 -0
  239. package/dist/types/lib/player/drawSprites.d.ts +35 -0
  240. package/dist/types/lib/player/drawSprites.d.ts.map +1 -0
  241. package/dist/types/lib/player/fitEmbeds.d.ts +13 -0
  242. package/dist/types/lib/player/fitEmbeds.d.ts.map +1 -0
  243. package/dist/types/lib/player/fitSlide.d.ts +24 -0
  244. package/dist/types/lib/player/fitSlide.d.ts.map +1 -0
  245. package/dist/types/lib/player/formatKey.d.ts +9 -0
  246. package/dist/types/lib/player/formatKey.d.ts.map +1 -0
  247. package/dist/types/lib/player/formatKeySign.d.ts +9 -0
  248. package/dist/types/lib/player/formatKeySign.d.ts.map +1 -0
  249. package/dist/types/lib/player/formatSpeed.d.ts +9 -0
  250. package/dist/types/lib/player/formatSpeed.d.ts.map +1 -0
  251. package/dist/types/lib/player/formatTime.d.ts +12 -0
  252. package/dist/types/lib/player/formatTime.d.ts.map +1 -0
  253. package/dist/types/lib/player/index.d.ts +31 -0
  254. package/dist/types/lib/player/index.d.ts.map +1 -0
  255. package/dist/types/lib/player/installStateRules.d.ts +12 -0
  256. package/dist/types/lib/player/installStateRules.d.ts.map +1 -0
  257. package/dist/types/lib/player/listHidden.d.ts +12 -0
  258. package/dist/types/lib/player/listHidden.d.ts.map +1 -0
  259. package/dist/types/lib/player/makeElement.d.ts +10 -0
  260. package/dist/types/lib/player/makeElement.d.ts.map +1 -0
  261. package/dist/types/lib/player/mergeProfile.d.ts +9 -0
  262. package/dist/types/lib/player/mergeProfile.d.ts.map +1 -0
  263. package/dist/types/lib/player/mirrorStates.d.ts +12 -0
  264. package/dist/types/lib/player/mirrorStates.d.ts.map +1 -0
  265. package/dist/types/lib/player/mountScenes.d.ts +25 -0
  266. package/dist/types/lib/player/mountScenes.d.ts.map +1 -0
  267. package/dist/types/lib/player/readLayerBox.d.ts +23 -0
  268. package/dist/types/lib/player/readLayerBox.d.ts.map +1 -0
  269. package/dist/types/lib/player/recordGif.d.ts +16 -0
  270. package/dist/types/lib/player/recordGif.d.ts.map +1 -0
  271. package/dist/types/lib/player/recordVideo.d.ts +19 -0
  272. package/dist/types/lib/player/recordVideo.d.ts.map +1 -0
  273. package/dist/types/lib/player/renderLegend.d.ts +8 -0
  274. package/dist/types/lib/player/renderLegend.d.ts.map +1 -0
  275. package/dist/types/lib/player/saveFile.d.ts +13 -0
  276. package/dist/types/lib/player/saveFile.d.ts.map +1 -0
  277. package/dist/types/lib/player/serializeElement.d.ts +14 -0
  278. package/dist/types/lib/player/serializeElement.d.ts.map +1 -0
  279. package/dist/types/lib/player/types.d.ts +321 -0
  280. package/dist/types/lib/player/types.d.ts.map +1 -0
  281. package/dist/types/lib/player/wrapSlide.d.ts +17 -0
  282. package/dist/types/lib/player/wrapSlide.d.ts.map +1 -0
  283. package/dist/types/lib/timeline/advanceClock.d.ts +16 -0
  284. package/dist/types/lib/timeline/advanceClock.d.ts.map +1 -0
  285. package/dist/types/lib/timeline/buildTimeline.d.ts +15 -0
  286. package/dist/types/lib/timeline/buildTimeline.d.ts.map +1 -0
  287. package/dist/types/lib/timeline/constants.d.ts +3 -0
  288. package/dist/types/lib/timeline/constants.d.ts.map +1 -0
  289. package/dist/types/lib/timeline/findKeyframe.d.ts +10 -0
  290. package/dist/types/lib/timeline/findKeyframe.d.ts.map +1 -0
  291. package/dist/types/lib/timeline/index.d.ts +8 -0
  292. package/dist/types/lib/timeline/index.d.ts.map +1 -0
  293. package/dist/types/lib/timeline/locateTime.d.ts +10 -0
  294. package/dist/types/lib/timeline/locateTime.d.ts.map +1 -0
  295. package/dist/types/lib/timeline/stepKeyframe.d.ts +12 -0
  296. package/dist/types/lib/timeline/stepKeyframe.d.ts.map +1 -0
  297. package/dist/types/lib/timeline/types.d.ts +40 -0
  298. package/dist/types/lib/timeline/types.d.ts.map +1 -0
  299. package/dist/types/lib/video/constants.d.ts +5 -0
  300. package/dist/types/lib/video/constants.d.ts.map +1 -0
  301. package/dist/types/lib/video/index.d.ts +5 -0
  302. package/dist/types/lib/video/index.d.ts.map +1 -0
  303. package/dist/types/lib/video/types.d.ts +21 -0
  304. package/dist/types/lib/video/types.d.ts.map +1 -0
  305. package/dist/types/lib/video/writeBox.d.ts +9 -0
  306. package/dist/types/lib/video/writeBox.d.ts.map +1 -0
  307. package/dist/types/lib/video/writeMp4.d.ts +10 -0
  308. package/dist/types/lib/video/writeMp4.d.ts.map +1 -0
  309. package/package.json +105 -4
  310. package/skills/design-motion-frames/SKILL.md +183 -0
@@ -0,0 +1,24 @@
1
+ import type { Slide } from "./types.js";
2
+ /** Where a scene sits on a slide: how much it is scaled, and the unit the slide's own type is set in. */
3
+ export interface SlideFit {
4
+ /** How many times larger than drawn the scene shows, so it fills the slide's stage and is whole. */
5
+ scale: number;
6
+ /** A hundredth of the slide's height, in pixels: the unit its padding and type are measured in. */
7
+ unit: number;
8
+ }
9
+ /**
10
+ * Works out how large a scene shows on a slide: the slide's padding, title and caption are taken away from its
11
+ * size, and the scene is scaled to fill what is left without being cut.
12
+ *
13
+ * The stylesheet lays the slide out in the same units, so a slide drawn on a page and one written to a file
14
+ * agree.
15
+ *
16
+ * @param slide - The slide's size, and whether it has a title and a caption.
17
+ * @param natural - The scene's own size, in pixels, as the page lays it out.
18
+ * @returns The scale, and the slide's unit.
19
+ */
20
+ export default function fitSlide(slide: Pick<Slide, "width" | "height" | "title" | "caption">, natural: {
21
+ width: number;
22
+ height: number;
23
+ }): SlideFit;
24
+ //# sourceMappingURL=fitSlide.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fitSlide.d.ts","sourceRoot":"","sources":["../../../../src/lib/player/fitSlide.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC,yGAAyG;AACzG,MAAM,WAAW,QAAQ;IACvB,oGAAoG;IACpG,KAAK,EAAE,MAAM,CAAC;IACd,mGAAmG;IACnG,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC9B,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC,EAC5D,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACzC,QAAQ,CAcV"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Writes the name of a key the way a strip of keystrokes shows the key being pressed: with the sign keyboards
3
+ * print on it, when it has one, before its name.
4
+ *
5
+ * @param name - The key's name, as a cast gives it: `Enter`, `Backspace`, `Escape`, or a letter.
6
+ * @returns The sign and the name, such as `⏎ Enter`, or the name alone.
7
+ */
8
+ export default function formatKey(name: string): string;
9
+ //# sourceMappingURL=formatKey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatKey.d.ts","sourceRoot":"","sources":["../../../../src/lib/player/formatKey.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGtD"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Writes a key the way the history in a strip of keystrokes shows it: by the sign keyboards print on it, or by
3
+ * its name when it has none.
4
+ *
5
+ * @param name - The key's name, as a cast gives it.
6
+ * @returns The sign, such as `⌫` for Backspace, or the name.
7
+ */
8
+ export default function formatKeySign(name: string): string;
9
+ //# sourceMappingURL=formatKeySign.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatKeySign.d.ts","sourceRoot":"","sources":["../../../../src/lib/player/formatKeySign.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE1D"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Writes a speed the way the menu shows it: half speed as a fraction, the others as a number, each with a times
3
+ * sign.
4
+ *
5
+ * @param speed - How many times faster than the scene was written: 1 is as written.
6
+ * @returns The speed as text, such as `2×` or `½×`.
7
+ */
8
+ export default function formatSpeed(speed: number): string;
9
+ //# sourceMappingURL=formatSpeed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatSpeed.d.ts","sourceRoot":"","sources":["../../../../src/lib/player/formatSpeed.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEzD"}
@@ -0,0 +1,12 @@
1
+ import type { TimeMode } from "./types.js";
2
+ /**
3
+ * Writes a moment of a scene as seconds, in one of three readings.
4
+ *
5
+ * @param mode - `elapsed`: how far in. `total`: how long the scene is. `remaining`: how much is left, with a
6
+ * minus sign before it.
7
+ * @param elapsed - The moment, in milliseconds from the start.
8
+ * @param total - How long the scene lasts, in milliseconds.
9
+ * @returns The time with one decimal, such as `2.4 s`, `4.2 s` or `−1.8 s`.
10
+ */
11
+ export default function formatTime(mode: TimeMode, elapsed: number, total: number): string;
12
+ //# sourceMappingURL=formatTime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatTime.d.ts","sourceRoot":"","sources":["../../../../src/lib/player/formatTime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GACZ,MAAM,CAKR"}
@@ -0,0 +1,31 @@
1
+ export { default as announceHeight } from "./announceHeight.js";
2
+ export { default as applyMoment } from "./applyMoment.js";
3
+ export { default as assertPresent } from "./assertPresent.js";
4
+ export { default as collectFrames } from "./collectFrames.js";
5
+ export { default as collectStyles } from "./collectStyles.js";
6
+ export { ARC_SVG, FOCUSABLE, GIF_FPS, H264_CODEC, HEIGHT_MESSAGE, KEY_EVERY, KEY_SIGNS, KEYS_SHOWN, MEASURE_MESSAGE, OUTLINE_GAP, OUTLINE_MARK, PAUSE_SIGN, PLAY_SIGN, POINTER_SVG, PRACTICE_AT, RECORDING_OMITS, SECTION_PARTS, SLIDE_BARE, SLIDE_CAPTION_LINE, SLIDE_GAP, SLIDE_PADDING, SLIDE_TITLE_LINE, SPEEDS, STATE_MARKS, TIME_MODES, VIDEO_BITS_PER_PIXEL, VIDEO_FPS, } from "./constants.js";
7
+ export { default as defaultProfile } from "./defaultProfile.js";
8
+ export { default as drawMarkup } from "./drawMarkup.js";
9
+ export { default as drawScene, type SceneDrawing } from "./drawScene.js";
10
+ export { default as drawSprites } from "./drawSprites.js";
11
+ export { default as fitEmbeds } from "./fitEmbeds.js";
12
+ export { default as fitSlide, type SlideFit } from "./fitSlide.js";
13
+ export { default as formatKey } from "./formatKey.js";
14
+ export { default as formatKeySign } from "./formatKeySign.js";
15
+ export { default as formatSpeed } from "./formatSpeed.js";
16
+ export { default as formatTime } from "./formatTime.js";
17
+ export { default as installStateRules } from "./installStateRules.js";
18
+ export { default as listHidden } from "./listHidden.js";
19
+ export { default as mergeProfile } from "./mergeProfile.js";
20
+ export { default as mirrorStates } from "./mirrorStates.js";
21
+ export { default as mountScenes, type Mounted } from "./mountScenes.js";
22
+ export { default as Player } from "./Player.js";
23
+ export { default as readLayerBox, type LayerBox } from "./readLayerBox.js";
24
+ export { default as recordGif } from "./recordGif.js";
25
+ export { default as recordVideo } from "./recordVideo.js";
26
+ export { default as renderLegend } from "./renderLegend.js";
27
+ export { default as saveFile } from "./saveFile.js";
28
+ export { default as serializeElement } from "./serializeElement.js";
29
+ export type { Applied, Drawing, Frame, FrameMeta, Frames, KeysMode, MountOptions, Outline, PlayerContext, Profile, ProfileOptions, Recordable, RecordOptions, Shown, Slide, Stuck, TimeMode, TitlePlace, Words, } from "./types.js";
30
+ export { default as wrapSlide } from "./wrapSlide.js";
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/player/index.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Gives a page the rules that make its frames answer to the player's marks the way they answer to a real
3
+ * pointer and real focus.
4
+ *
5
+ * The rules are written once into a style element of their own; asked again, the same element is written
6
+ * afresh, so a page that mounts scenes twice does not gather copies.
7
+ *
8
+ * @param page - The document.
9
+ * @note Impure: it adds a style element to the document's head.
10
+ */
11
+ export default function installStateRules(page: Document): void;
12
+ //# sourceMappingURL=installStateRules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"installStateRules.d.ts","sourceRoot":"","sources":["../../../../src/lib/player/installStateRules.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAS9D"}
@@ -0,0 +1,12 @@
1
+ import type { Shown } from "./types.js";
2
+ /**
3
+ * Turns what a page asked to show into the classes that hide the rest of a figure.
4
+ *
5
+ * A section left out, or set to true, shows whole. A section set to false is hidden whole. A section given as
6
+ * its parts hides each part set to false and shows the others.
7
+ *
8
+ * @param shown - What the page asked for; everything shows when left out.
9
+ * @returns One class per hidden section or part, such as `mo-no-timeline` or `mo-no-speed`.
10
+ */
11
+ export default function listHidden(shown?: Shown): string[];
12
+ //# sourceMappingURL=listHidden.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listHidden.d.ts","sourceRoot":"","sources":["../../../../src/lib/player/listHidden.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,GAAE,KAAU,GAAG,MAAM,EAAE,CAU9D"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Makes an element.
3
+ *
4
+ * @param tag - Its tag name.
5
+ * @param className - Its classes, if any.
6
+ * @param html - Its content, if any.
7
+ * @returns The element, not yet in the page.
8
+ */
9
+ export default function makeElement(tag: string, className?: string, html?: string): HTMLElement;
10
+ //# sourceMappingURL=makeElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"makeElement.d.ts","sourceRoot":"","sources":["../../../../src/lib/player/makeElement.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CACjC,GAAG,EAAE,MAAM,EACX,SAAS,SAAK,EACd,IAAI,SAAK,GACR,WAAW,CAKb"}
@@ -0,0 +1,9 @@
1
+ import type { Profile, ProfileOptions } from "./types.js";
2
+ /**
3
+ * Merges what a page says about its frames into the default profile.
4
+ *
5
+ * @param options - What differs from the default. Shells, scroll selectors and words merge key by key.
6
+ * @returns A whole profile.
7
+ */
8
+ export default function mergeProfile(options?: ProfileOptions): Profile;
9
+ //# sourceMappingURL=mergeProfile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mergeProfile.d.ts","sourceRoot":"","sources":["../../../../src/lib/player/mergeProfile.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE1D;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,OAAO,GAAE,cAAmB,GAAG,OAAO,CAQ1E"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Writes, for every style rule that depends on a pointer or on focus, a twin that depends on the mark the player
3
+ * sets instead: `a:hover` becomes `a[data-mo-hover]`.
4
+ *
5
+ * A rule is taken whole, with whatever it nests or wraps, so a rule inside a media query keeps its query. The
6
+ * twin stands beside the rule it came from and changes nothing on a page where no mark is set.
7
+ *
8
+ * @param rules - The text of the page's top-level style rules.
9
+ * @returns A stylesheet of the twins, empty when no rule depends on a state.
10
+ */
11
+ export default function mirrorStates(rules: string[]): string;
12
+ //# sourceMappingURL=mirrorStates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mirrorStates.d.ts","sourceRoot":"","sources":["../../../../src/lib/player/mirrorStates.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAe5D"}
@@ -0,0 +1,25 @@
1
+ import Player from "./Player.js";
2
+ import type { Frames, MountOptions } from "./types.js";
3
+ /** What `mountScenes` gives back: the players, the frames, and two ways to look at them from outside. */
4
+ export interface Mounted {
5
+ /** One player per scene, in order. */
6
+ players: Player[];
7
+ /** The frames the players draw from. */
8
+ frames: Frames;
9
+ /** Pauses a scene and shows one of its steps at a fraction of its duration. */
10
+ pose: (sceneId: string, step: number, progress: number) => void;
11
+ /** Lists every frame a scene names that does not exist, and every target that matches nothing. */
12
+ audit: () => string[];
13
+ /** Stops every scene, takes the figures off the page, and stops listening to the window. */
14
+ destroy: () => void;
15
+ }
16
+ /**
17
+ * Puts every scene on the page, each as a figure that plays while in view.
18
+ *
19
+ * @param options - The scenes, where to put them, and what the page says about its frames.
20
+ * @returns The players and the frames, with `pose` to show any moment and `audit` to find what is missing.
21
+ * @throws When `pose` is asked for a scene that is not there.
22
+ * @note Impure: it builds elements, listens to the window, and starts clocks.
23
+ */
24
+ export default function mountScenes(options: MountOptions): Mounted;
25
+ //# sourceMappingURL=mountScenes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mountScenes.d.ts","sourceRoot":"","sources":["../../../../src/lib/player/mountScenes.ts"],"names":[],"mappings":"AAKA,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAEvD,yGAAyG;AACzG,MAAM,WAAW,OAAO;IACtB,sCAAsC;IACtC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAChE,kGAAkG;IAClG,KAAK,EAAE,MAAM,MAAM,EAAE,CAAC;IACtB,4FAA4F;IAC5F,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAmFlE"}
@@ -0,0 +1,23 @@
1
+ /** Where the layer the symbols are drawn in stands on the page, and how much the page has scaled it. */
2
+ export interface LayerBox {
3
+ /** The layer's left edge on the page, in the page's pixels. */
4
+ left: number;
5
+ /** The layer's top edge on the page, in the page's pixels. */
6
+ top: number;
7
+ /** The layer's width in its own pixels, the ones a symbol is placed in. */
8
+ width: number;
9
+ /** The layer's height in its own pixels. */
10
+ height: number;
11
+ /** How many of the page's pixels one of the layer's own takes: more than 1 when a transform enlarges it. */
12
+ scale: number;
13
+ }
14
+ /**
15
+ * Measures the layer the symbols are drawn in, so that a place on the page can be turned into a place in the
16
+ * layer even when something round the figure scales it, as a slide does.
17
+ *
18
+ * @param layer - The layer laid over the screen.
19
+ * @returns Where it stands on the page, its size in its own pixels, and its scale. A layer that has no size of
20
+ * its own yet is taken as unscaled.
21
+ */
22
+ export default function readLayerBox(layer: HTMLElement): LayerBox;
23
+ //# sourceMappingURL=readLayerBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readLayerBox.d.ts","sourceRoot":"","sources":["../../../../src/lib/player/readLayerBox.ts"],"names":[],"mappings":"AAAA,wGAAwG;AACxG,MAAM,WAAW,QAAQ;IACvB,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,8DAA8D;IAC9D,GAAG,EAAE,MAAM,CAAC;IACZ,2EAA2E;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,4GAA4G;IAC5G,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,WAAW,GAAG,QAAQ,CAUjE"}
@@ -0,0 +1,16 @@
1
+ import type { Recordable, RecordOptions } from "./types.js";
2
+ /**
3
+ * Records a scene as an animated GIF: it shows the scene moment by moment, draws the figure each time, and
4
+ * writes the pictures as one file that plays again when it ends.
5
+ *
6
+ * The controls are left out of the picture, since nobody can press them there. A moment that looks exactly
7
+ * like the one before it is not drawn again, only kept longer, so the seconds a frame is held cost one picture.
8
+ *
9
+ * @param player - The player of the scene. It is left showing its last moment.
10
+ * @param options - The pictures per second, how many times faster than written the scene plays, the size of
11
+ * the picture or a slide to set the scene on, and a way to follow the progress.
12
+ * @returns The bytes of the GIF.
13
+ * @note Impure: it changes what the player shows while it records.
14
+ */
15
+ export default function recordGif(player: Recordable, options?: RecordOptions): Promise<Uint8Array>;
16
+ //# sourceMappingURL=recordGif.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recordGif.d.ts","sourceRoot":"","sources":["../../../../src/lib/player/recordGif.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE5D;;;;;;;;;;;;GAYG;AACH,wBAA8B,SAAS,CACrC,MAAM,EAAE,UAAU,EAClB,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,UAAU,CAAC,CAgDrB"}
@@ -0,0 +1,19 @@
1
+ import type { Recordable, RecordOptions } from "./types.js";
2
+ /**
3
+ * Records a scene as an MP4 video: it shows the scene moment by moment, draws the figure each time, encodes the
4
+ * pictures with the browser's own H.264 encoder, and writes them as one file.
5
+ *
6
+ * Every picture lasts as long, so the file plays in presentation software and video players as it does here.
7
+ * The controls are left out of the picture, as in a GIF.
8
+ *
9
+ * @param player - The player of the scene, or anything that shows a scene's moments in an element. It is left
10
+ * showing its last moment.
11
+ * @param options - Pictures per second, thirty when left out; how many times faster than written the scene
12
+ * plays; the size of the video, the element's own when left out, or a slide to set the scene on; and a way to
13
+ * follow the progress.
14
+ * @returns The bytes of the MP4 file.
15
+ * @throws When the browser has no H.264 encoder for the size asked, or the encoder fails.
16
+ * @note Impure: it changes what the player shows while it records.
17
+ */
18
+ export default function recordVideo(player: Recordable, options?: RecordOptions): Promise<Uint8Array>;
19
+ //# sourceMappingURL=recordVideo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recordVideo.d.ts","sourceRoot":"","sources":["../../../../src/lib/player/recordVideo.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAe5D;;;;;;;;;;;;;;;GAeG;AACH,wBAA8B,WAAW,CACvC,MAAM,EAAE,UAAU,EAClB,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,UAAU,CAAC,CAsFrB"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Fills an element with the legend: one specimen of each symbol, with its name and what it stands for.
3
+ *
4
+ * @param into - The element to fill.
5
+ * @note Impure: it replaces the content of the element.
6
+ */
7
+ export default function renderLegend(into: HTMLElement): void;
8
+ //# sourceMappingURL=renderLegend.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderLegend.d.ts","sourceRoot":"","sources":["../../../../src/lib/player/renderLegend.ts"],"names":[],"mappings":"AAiBA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CAQ5D"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Hands the reader a file to save.
3
+ *
4
+ * A page shown inside a sandbox may be forbidden to do this; nothing then happens, and the caller that needs
5
+ * the bytes anyway should take them from where they were made.
6
+ *
7
+ * @param bytes - The content of the file.
8
+ * @param name - The name to suggest.
9
+ * @param type - Its media type, such as `image/gif`.
10
+ * @note Impure: it creates a link in the document, presses it, and removes it.
11
+ */
12
+ export default function saveFile(bytes: Uint8Array, name: string, type: string): void;
13
+ //# sourceMappingURL=saveFile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saveFile.d.ts","sourceRoot":"","sources":["../../../../src/lib/player/saveFile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC9B,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX,IAAI,CASN"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Writes an element as markup that can be drawn outside its page and still match the page's style rules.
3
+ *
4
+ * The element is copied whole. Each of its ancestors is copied empty and wrapped round it, so that a rule
5
+ * written against an ancestor still matches; an ancestor's copy takes no room of its own, so the element
6
+ * stands at the top left. What a reader typed into a field is written into the copy, since a field's markup
7
+ * does not carry it.
8
+ *
9
+ * @param element - The element to write.
10
+ * @param omit - A selector for parts to leave out of the copy.
11
+ * @returns The markup, well formed as XML.
12
+ */
13
+ export default function serializeElement(element: HTMLElement, omit?: string): string;
14
+ //# sourceMappingURL=serializeElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serializeElement.d.ts","sourceRoot":"","sources":["../../../../src/lib/player/serializeElement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,OAAO,EAAE,WAAW,EACpB,IAAI,CAAC,EAAE,MAAM,GACZ,MAAM,CA6BR"}