@allyhub/sdk 0.8.0 → 0.10.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 (497) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/NOTICE +46 -49
  3. package/dist/dom.d.ts +1 -209
  4. package/dist/dom.js +1 -1
  5. package/dist/image.d.ts +2 -0
  6. package/dist/image.js +2 -0
  7. package/dist/index.d.ts +1 -21
  8. package/dist/index.js +1 -1
  9. package/dist/media.d.ts +1 -5
  10. package/dist/media.js +1 -1
  11. package/dist/node_modules/@allyhub/audio/dist/levels.d.ts +4 -5
  12. package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
  13. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.d.ts +1 -6
  14. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
  15. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  16. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
  17. package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +4 -1
  18. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  19. package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +22 -0
  20. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  21. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  22. package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
  23. package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
  24. package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
  25. package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
  26. package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
  27. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
  28. package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
  29. package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
  30. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
  31. package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
  32. package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
  33. package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
  34. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  35. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
  36. package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
  37. package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
  38. package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
  39. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +107 -83
  40. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  41. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +185 -8
  42. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  43. package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
  44. package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
  45. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  46. package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
  47. package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
  48. package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
  49. package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
  50. package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
  51. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
  52. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  53. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
  54. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  55. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
  56. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  57. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +96 -42
  58. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  59. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  60. package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
  61. package/dist/node_modules/@allyhub/image-draw/dist/context.d.ts +5 -0
  62. package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
  63. package/dist/node_modules/@allyhub/image-draw/dist/contrast.d.ts +13 -0
  64. package/dist/node_modules/@allyhub/image-draw/dist/contrast.js +2 -0
  65. package/dist/node_modules/@allyhub/image-draw/dist/env.d.ts +112 -0
  66. package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
  67. package/dist/node_modules/@allyhub/image-draw/dist/errors.d.ts +20 -0
  68. package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
  69. package/dist/node_modules/@allyhub/image-draw/dist/fonts.d.ts +110 -0
  70. package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +2 -0
  71. package/dist/node_modules/@allyhub/image-draw/dist/guards.d.ts +32 -0
  72. package/dist/node_modules/@allyhub/image-draw/dist/guards.js +2 -0
  73. package/dist/node_modules/@allyhub/image-draw/dist/hash.d.ts +3 -0
  74. package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
  75. package/dist/node_modules/@allyhub/image-draw/dist/inspect.d.ts +113 -0
  76. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
  77. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.d.ts +151 -0
  78. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
  79. package/dist/node_modules/@allyhub/image-draw/dist/paint.d.ts +29 -0
  80. package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
  81. package/dist/node_modules/@allyhub/image-draw/dist/pictures.d.ts +39 -0
  82. package/dist/node_modules/@allyhub/image-draw/dist/pictures.js +2 -0
  83. package/dist/node_modules/@allyhub/image-draw/dist/plan.d.ts +52 -0
  84. package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
  85. package/dist/node_modules/@allyhub/image-draw/dist/reads.d.ts +145 -0
  86. package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
  87. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.d.ts +26 -0
  88. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
  89. package/dist/node_modules/@allyhub/image-draw/dist/stage.d.ts +56 -0
  90. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
  91. package/dist/node_modules/@allyhub/image-draw/dist/styles.d.ts +35 -0
  92. package/dist/node_modules/@allyhub/image-draw/dist/styles.js +2 -0
  93. package/dist/node_modules/@allyhub/image-draw/dist/tone.d.ts +53 -0
  94. package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
  95. package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
  96. package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
  97. package/dist/node_modules/@allyhub/image-measure/dist/contrast.d.ts +43 -0
  98. package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
  99. package/dist/node_modules/@allyhub/image-measure/dist/layout.d.ts +186 -0
  100. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
  101. package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
  102. package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
  103. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.d.ts +13 -0
  104. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
  105. package/dist/{define.d.ts → node_modules/@allyhub/image-sdk/dist/define.d.ts} +21 -4
  106. package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
  107. package/dist/node_modules/@allyhub/image-sdk/dist/dom.d.ts +210 -0
  108. package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
  109. package/dist/node_modules/@allyhub/image-sdk/dist/fill.d.ts +21 -0
  110. package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
  111. package/dist/node_modules/@allyhub/image-sdk/dist/group.d.ts +17 -0
  112. package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
  113. package/dist/node_modules/@allyhub/image-sdk/dist/index.d.ts +166 -0
  114. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
  115. package/dist/node_modules/@allyhub/image-sdk/dist/media.d.ts +6 -0
  116. package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
  117. package/dist/{messages.d.ts → node_modules/@allyhub/image-sdk/dist/messages.d.ts} +1 -1
  118. package/dist/node_modules/@allyhub/image-sdk/dist/picture.d.ts +59 -0
  119. package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
  120. package/dist/{props.d.ts → node_modules/@allyhub/image-sdk/dist/props.d.ts} +4 -4
  121. package/dist/node_modules/@allyhub/image-sdk/dist/shape.d.ts +34 -0
  122. package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
  123. package/dist/node_modules/@allyhub/image-sdk/dist/stack.d.ts +16 -0
  124. package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
  125. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.d.ts +38 -0
  126. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
  127. package/dist/{written.js → node_modules/@allyhub/image-sdk/dist/written.js} +1 -1
  128. package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
  129. package/dist/node_modules/@allyhub/measure/LICENSE +241 -0
  130. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
  131. package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
  132. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
  133. package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
  134. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
  135. package/dist/node_modules/@allyhub/measure/dist/image.js +2 -0
  136. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
  137. package/dist/node_modules/@allyhub/measure/dist/index.js +2 -0
  138. package/dist/node_modules/@allyhub/measure/package.json +13 -0
  139. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +4 -1
  140. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
  141. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +15 -1
  142. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  143. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  144. package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
  145. package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.d.ts +1 -9
  146. package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.js +1 -1
  147. package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
  148. package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
  149. package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.d.ts +2 -2
  150. package/dist/node_modules/@allyhub/{video-core → piece}/dist/export.d.ts +27 -10
  151. package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
  152. package/dist/node_modules/@allyhub/{video-core → piece}/dist/formats.d.ts +12 -68
  153. package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
  154. package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
  155. package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
  156. package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
  157. package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
  158. package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
  159. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
  160. package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
  161. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +437 -0
  162. package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
  163. package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.d.ts +1 -1
  164. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.d.ts +39 -9
  165. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.js +1 -1
  166. package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.d.ts +6 -0
  167. package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
  168. package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
  169. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
  170. package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
  171. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
  172. package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
  173. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
  174. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
  175. package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
  176. package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
  177. package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
  178. package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
  179. package/dist/node_modules/@allyhub/{video-core → piece}/dist/script.d.ts +9 -4
  180. package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
  181. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
  182. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +291 -0
  183. package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
  184. package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
  185. package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
  186. package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.d.ts +1 -20
  187. package/dist/node_modules/@allyhub/piece/package.json +18 -0
  188. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +271 -0
  189. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  190. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
  191. package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
  192. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
  193. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  194. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
  195. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
  196. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
  197. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  198. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +155 -0
  199. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  200. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +235 -133
  201. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  202. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
  203. package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
  204. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +65 -197
  205. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  206. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
  207. package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
  208. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +6 -0
  209. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  210. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
  211. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
  212. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
  213. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +274 -0
  214. package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
  215. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +77 -91
  216. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  217. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
  218. package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
  219. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
  220. package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
  221. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
  222. package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
  223. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
  224. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  225. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
  226. package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
  227. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
  228. package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
  229. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
  230. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  231. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
  232. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  233. package/dist/node_modules/@allyhub/protocol/package.json +5 -1
  234. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  235. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
  236. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
  237. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
  238. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
  239. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
  240. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  241. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
  242. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
  243. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  244. package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
  245. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  246. package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
  247. package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
  248. package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
  249. package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
  250. package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
  251. package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
  252. package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
  253. package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
  254. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  255. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  256. package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +4 -4
  257. package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
  258. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +15 -11
  259. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  260. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
  261. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +70 -0
  262. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  263. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +6 -0
  264. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
  265. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
  266. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +3 -1
  267. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
  268. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
  269. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
  270. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
  271. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
  272. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
  273. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +9 -0
  274. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
  275. package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +1 -1
  276. package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +6 -0
  277. package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
  278. package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +9 -0
  279. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  280. package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
  281. package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +5 -0
  282. package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
  283. package/dist/node_modules/@allyhub/sheet/dist/formula/ast.d.ts +12 -1
  284. package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +5 -1
  285. package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
  286. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
  287. package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
  288. package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +5 -19
  289. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  290. package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +3 -1
  291. package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
  292. package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +5 -5
  293. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  294. package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +88 -3
  295. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  296. package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +1 -1
  297. package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
  298. package/dist/node_modules/@allyhub/sheet/dist/printed.d.ts +19 -0
  299. package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
  300. package/dist/node_modules/@allyhub/sheet/dist/sdk.d.ts +2 -0
  301. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
  302. package/dist/node_modules/@allyhub/sheet/dist/values.d.ts +2 -0
  303. package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
  304. package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +8 -6
  305. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  306. package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
  307. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +6 -2
  308. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  309. package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
  310. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -1
  311. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  312. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +3 -1
  313. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  314. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +7 -1
  315. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
  316. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +6 -0
  317. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  318. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +1 -1
  319. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  320. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +12 -1
  321. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
  322. package/dist/node_modules/@allyhub/sheet/package.json +5 -1
  323. package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +23 -7
  324. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  325. package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +101 -11
  326. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  327. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  328. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +18 -1
  329. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  330. package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +1 -1
  331. package/dist/node_modules/@allyhub/slides-core/dist/connect.d.ts +62 -0
  332. package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
  333. package/dist/node_modules/@allyhub/slides-core/dist/enums.d.ts +24 -0
  334. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  335. package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +223 -0
  336. package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
  337. package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +4 -4
  338. package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
  339. package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +2 -0
  340. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  341. package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +4 -2
  342. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  343. package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +5 -5
  344. package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
  345. package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +25 -4
  346. package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +1 -1
  347. package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +1 -1
  348. package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +20 -11
  349. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  350. package/dist/node_modules/@allyhub/slides-core/dist/sdk.d.ts +18 -0
  351. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
  352. package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +28 -11
  353. package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +3 -6
  354. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  355. package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
  356. package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +1 -2
  357. package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +1 -10
  358. package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
  359. package/dist/node_modules/@allyhub/video-core/dist/check.d.ts +62 -0
  360. package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
  361. package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +2 -2
  362. package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
  363. package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +3 -3
  364. package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
  365. package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +21 -762
  366. package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
  367. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +3 -2
  368. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  369. package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +3 -17
  370. package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
  371. package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +72 -423
  372. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
  373. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.d.ts +44 -0
  374. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
  375. package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +1 -1
  376. package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +24 -432
  377. package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
  378. package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +1 -1
  379. package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +8 -14
  380. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  381. package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +11 -6
  382. package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
  383. package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +2 -3
  384. package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +2 -2
  385. package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
  386. package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +2 -4
  387. package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
  388. package/dist/node_modules/@allyhub/video-core/dist/stage.d.ts +52 -0
  389. package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
  390. package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +18 -136
  391. package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
  392. package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +3 -3
  393. package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
  394. package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +2 -2
  395. package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
  396. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  397. package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
  398. package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
  399. package/dist/{free.d.ts → node_modules/@allyhub/video-sdk/dist/free.d.ts} +14 -10
  400. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
  401. package/dist/node_modules/@allyhub/video-sdk/dist/index.d.ts +28 -0
  402. package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
  403. package/dist/{input.d.ts → node_modules/@allyhub/video-sdk/dist/input.d.ts} +76 -22
  404. package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
  405. package/dist/{module.d.ts → node_modules/@allyhub/video-sdk/dist/module.d.ts} +6 -4
  406. package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
  407. package/dist/{parts.d.ts → node_modules/@allyhub/video-sdk/dist/parts.d.ts} +15 -6
  408. package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
  409. package/dist/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +12 -5
  410. package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
  411. package/dist/{piece.d.ts → node_modules/@allyhub/video-sdk/dist/piece.d.ts} +26 -16
  412. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
  413. package/dist/node_modules/@allyhub/video-sdk/dist/route.d.ts +46 -0
  414. package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
  415. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.d.ts +2 -0
  416. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
  417. package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
  418. package/dist/scenery.d.ts +1 -1
  419. package/dist/scenery.js +1 -1
  420. package/dist/sheets.d.ts +1 -1
  421. package/dist/sheets.js +1 -1
  422. package/dist/slides.d.ts +1 -9
  423. package/dist/slides.js +1 -1
  424. package/docs/README.md +10 -6
  425. package/docs/batches.md +5 -5
  426. package/docs/canvas.md +28 -0
  427. package/docs/contract.md +2 -2
  428. package/docs/defaults.md +298 -22
  429. package/docs/docs.md +80 -66
  430. package/docs/footage.md +7 -7
  431. package/docs/image.md +165 -0
  432. package/docs/layers.md +22 -13
  433. package/docs/modeling.md +4 -4
  434. package/docs/pictures.md +65 -0
  435. package/docs/project.md +51 -31
  436. package/docs/scenery.md +14 -15
  437. package/docs/sheets.md +46 -28
  438. package/docs/slides.md +121 -67
  439. package/docs/sound.md +3 -3
  440. package/docs/speech.md +8 -8
  441. package/docs/video.md +16 -13
  442. package/docs/websites.md +4 -4
  443. package/docs/x.md +73 -0
  444. package/package.json +7 -2
  445. package/dist/define.js +0 -2
  446. package/dist/free.js +0 -2
  447. package/dist/input.js +0 -2
  448. package/dist/module.js +0 -2
  449. package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
  450. package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
  451. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
  452. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
  453. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
  454. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
  455. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
  456. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
  457. package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
  458. package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
  459. package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
  460. package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
  461. package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
  462. package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
  463. package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
  464. package/dist/parts.js +0 -2
  465. package/dist/phone.js +0 -2
  466. package/dist/piece.js +0 -2
  467. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
  468. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
  469. /package/dist/{fit.d.ts → node_modules/@allyhub/image-sdk/dist/fit.d.ts} +0 -0
  470. /package/dist/{fit.js → node_modules/@allyhub/image-sdk/dist/fit.js} +0 -0
  471. /package/dist/{messages.js → node_modules/@allyhub/image-sdk/dist/messages.js} +0 -0
  472. /package/dist/{props.js → node_modules/@allyhub/image-sdk/dist/props.js} +0 -0
  473. /package/dist/{text.d.ts → node_modules/@allyhub/image-sdk/dist/text.d.ts} +0 -0
  474. /package/dist/{text.js → node_modules/@allyhub/image-sdk/dist/text.js} +0 -0
  475. /package/dist/{written.d.ts → node_modules/@allyhub/image-sdk/dist/written.d.ts} +0 -0
  476. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
  477. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
  478. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
  479. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
  480. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
  481. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
  482. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
  483. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
  484. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
  485. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
  486. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
  487. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
  488. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
  489. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
  490. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
  491. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
  492. /package/dist/{anim.d.ts → node_modules/@allyhub/video-sdk/dist/anim.d.ts} +0 -0
  493. /package/dist/{anim.js → node_modules/@allyhub/video-sdk/dist/anim.js} +0 -0
  494. /package/dist/{noise.d.ts → node_modules/@allyhub/video-sdk/dist/noise.d.ts} +0 -0
  495. /package/dist/{noise.js → node_modules/@allyhub/video-sdk/dist/noise.js} +0 -0
  496. /package/dist/{paths.d.ts → node_modules/@allyhub/video-sdk/dist/paths.d.ts} +0 -0
  497. /package/dist/{paths.js → node_modules/@allyhub/video-sdk/dist/paths.js} +0 -0
@@ -1,10 +1,10 @@
1
- import type { SheetFactData } from "@allyhub/formats";
2
- import type { ContrastOptions } from "./contrast.js";
3
- import type { SafeZone } from "./formats.js";
4
- import type { Combo } from "./matrix.js";
5
- import type { MediaKind } from "./media.js";
6
- import { type FootageScale, type FreeBand, type LayoutReport, type MeasuredText, type ReadOptions, type RowSpan, type SpeechShown, type TextContainer, type TextSize, type WordsAtOnce } from "./measure.js";
7
- import type { Box } from "./problem.js";
1
+ import { type Box, type Fact, type FactPlace } from "@allyhub/diagnostics";
2
+ import type { GeneratedFactData, SafeZone } from "@allyhub/piece";
3
+ export type { GeneratedFile, GeneratedUse } from "@allyhub/piece";
4
+ import { type FrameFactData } from "@allyhub/image-measure/layout";
5
+ export type { EdgePast } from "@allyhub/image-measure/layout";
6
+ import { type FootageScale, type PictureScale, type LayoutReport, type MeasuredText, type ReadOptions, type TextSize } from "@allyhub/piece";
7
+ import { type FreeBand, type RowSpan, type SpeechShown, type WordsAtOnce } from "./measure.js";
8
8
  import type { FlashOptions, FrameChange, SeamCarrier, SeamChange, SeamOptions, SeamSide } from "./seams.js";
9
9
  /** What makes a run of frames a flat run (the flat-frames fact). */
10
10
  export interface FlatFrameOptions {
@@ -49,77 +49,8 @@ export interface FreeBandsMissing<M extends string> {
49
49
  }
50
50
  /** Why a join's loudness could not be measured. */
51
51
  export type JoinLoudnessMissing = "ffmpeg" | "file" | "silent" | "failed";
52
- /** How a version uses a generated file. */
53
- export interface GeneratedUse {
54
- /** The part that uses it; absent for the output's music, or a read outside any part. */
55
- part?: string;
56
- /**
57
- * `footage`: a footage layer shows it; `speech`: the part says it;
58
- * `music`: the output's music; `sound`: a sound effect the part places;
59
- * `read`: the part's layers read its media value (an image a component
60
- * shows), during the part at most.
61
- */
62
- as: "footage" | "speech" | "music" | "sound" | "read";
63
- /** Film seconds it shows or plays from and until; absent on a deck, or outside any part. */
64
- start?: number;
65
- end?: number;
66
- }
67
- /** A generated file a version shows or plays (it has a `.gen.json` record whose `ai` is not false). */
68
- export interface GeneratedFile {
69
- file: string;
70
- kind: MediaKind;
71
- /** From its record, when the record says. */
72
- tool?: string;
73
- model?: string;
74
- /** When it was made (ISO 8601). */
75
- at?: string;
76
- /** Its record's sha256 is not the file's (the gen-mismatch fact). */
77
- mismatch?: true;
78
- uses: GeneratedUse[];
79
- /** Film seconds during which it shows or plays, overlapping uses counted once; absent on a deck. */
80
- seconds?: number;
81
- }
82
- /** What each kind of fact measures. */
83
- export interface FactData extends DeckFactData, SheetFactData {
84
- /** Two text blocks of different layers drawn over each other. */
85
- "text-overlap": {
86
- a: MeasuredText;
87
- b: MeasuredText;
88
- /** Pixels both cover. */
89
- area: number;
90
- /** That area as a share of the smaller box (0–1). */
91
- share: number;
92
- };
93
- /**
94
- * Two text blocks of the same layer drawn over each other, compared by
95
- * what shows of their glyphs (each block's `ink`, else its `box`). A
96
- * layer that fades one line into another at the same place has one while
97
- * both show: each block's `opacity` says how much.
98
- */
99
- "text-overlap-own": {
100
- a: MeasuredText;
101
- b: MeasuredText;
102
- /** Pixels both cover. */
103
- area: number;
104
- /** That area as a share of the smaller box (0–1). */
105
- share: number;
106
- };
107
- /**
108
- * A text block reaching outside a box it is drawn inside: an element
109
- * between the block and its layer that has a background, a border or a
110
- * shadow (the block's own element too). The nearest such box it reaches
111
- * out of; a box that clips its content, or covers the whole frame, is
112
- * not one.
113
- */
114
- "text-outside": {
115
- text: MeasuredText;
116
- container: TextContainer;
117
- /** Per edge of the box it crosses: pixels past the edge. */
118
- edges: {
119
- side: "top" | "bottom" | "left" | "right";
120
- px: number;
121
- }[];
122
- };
52
+ /** What each kind of the video's facts measures. */
53
+ export interface VideoFactData extends GeneratedFactData, FrameFactData {
123
54
  /**
124
55
  * How long a text block can be read: the seconds its text shows whole
125
56
  * (every node at `options.opacity` or more, `options.shown` or more of
@@ -177,109 +108,17 @@ export interface FactData extends DeckFactData, SheetFactData {
177
108
  file: string;
178
109
  };
179
110
  };
180
- /**
181
- * A text block the frame's edges cut: what shows of its glyphs (each
182
- * line's glyph rows and its letters' columns, after the boxes it is drawn
183
- * inside clip it; the frame's own edges do not) reaching past the frame,
184
- * whatever its layout box says: a transform, a line wider than its box
185
- * or a glyph taller than its line counts.
186
- */
187
- "text-off-frame": {
188
- text: MeasuredText;
189
- /** The frame: the format's pixels. */
190
- frame: [width: number, height: number];
191
- /** Per edge of the frame it crosses: pixels past the edge. */
192
- edges: {
193
- side: "top" | "bottom" | "left" | "right";
194
- px: number;
195
- }[];
196
- /** Pixels of its glyphs outside the frame. */
197
- outside: number;
198
- /** That as a share of its glyphs' pixels (0–1; 1: none of them inside). */
199
- share: number;
200
- /** The box round its glyphs in the frame's pixels, the frame not cutting it (its ink box stops at a box that clips at the frame). */
201
- glyphs: Box;
202
- };
203
- /**
204
- * The contrast between a text block's fill and the pixels drawn behind
205
- * its glyphs (every text's fill hidden, the picture captured): WCAG 2.1
206
- * ratios over every pixel of each line's glyph box, the fill drawn at
207
- * its alpha and opacity over the pixel against the pixel. A shadow or a
208
- * stroke round the letters is part of what is behind. On the check's
209
- * picture (`graphics`: the graphic layers over the look's background)
210
- * footage is not drawn: what shows under the block is listed.
211
- */
212
- "text-contrast": {
213
- text: MeasuredText;
214
- /** The colours its glyphs are filled with (#rrggbb, #rrggbbaa when translucent). */
215
- fill: string[];
216
- /** Its font size in the frame's pixels, and its weight. */
217
- size: number;
218
- weight: number;
219
- shadow?: true;
220
- stroke?: true;
221
- /** The picture measured: the check's graphics, or the final picture with footage (allyhub inspect contrast --final). */
222
- picture: "graphics" | "final";
223
- /** Footage whose box is under its glyphs then, which `graphics` does not draw. */
224
- footage?: string[];
225
- options: ContrastOptions;
226
- } & ({
227
- /**
228
- * WCAG ratios, 1–21, against the picture behind its fill (a
229
- * stroke or shadow round its letters counts there): the lowest
230
- * pixel, the `options.percentile`th lowest, the median.
231
- */
232
- ratio: {
233
- min: number;
234
- low: number;
235
- median: number;
236
- };
237
- /** Pixels measured (of the picture captured, at `options.scale`). */
238
- pixels: number;
239
- /** The picture behind, #rrggbb: each channel's median, and the pixel at the minimum. */
240
- background: {
241
- median: string;
242
- atMin: string;
243
- };
244
- /**
245
- * With a stroke or shadow round its letters: the same against the
246
- * picture under them, the stroke and shadow hidden too.
247
- */
248
- under?: {
249
- ratio: {
250
- min: number;
251
- low: number;
252
- median: number;
253
- };
254
- background: {
255
- median: string;
256
- atMin: string;
257
- };
258
- };
259
- } | {
260
- /** Not measured: its fill is not a colour (a background clipped to the text), or none of its glyphs is inside the frame. */
261
- missing: "fill" | "pixels";
262
- why: string;
263
- });
264
- /** A text block reaching into the area a format's platform interface covers. */
265
- "text-covered": {
266
- text: MeasuredText;
267
- /** The frame, and its covered edges in pixels. */
268
- frame: [width: number, height: number];
269
- covered: SafeZone;
270
- /** The platform profile the format is (its name for people), when it is one. */
271
- profile?: string;
272
- /** Per covered edge it reaches into: pixels in from that edge's line. */
273
- edges: {
274
- side: "top" | "bottom" | "left" | "right";
275
- px: number;
276
- }[];
277
- };
278
111
  /**
279
112
  * How much a footage layer is enlarged over its window, at its largest
280
113
  * (the fact's `t`) and its smallest, zoom and box keys counted.
281
114
  */
282
115
  "footage-scale": Omit<FootageScale, "part">;
116
+ /**
117
+ * A picture of the graphics (an `<img>`) at its largest in a part: its
118
+ * own pixels, the output pixels its picture covers then, and output
119
+ * pixels per its own pixel. Over 1, it is drawn larger than it is.
120
+ */
121
+ "graphic-picture-scale": Omit<PictureScale, "part" | "t">;
283
122
  /**
284
123
  * The bands of a part's content box (the frame inside the format's
285
124
  * covered edges) that the speaker covers at none of the part's measured
@@ -295,8 +134,6 @@ export interface FactData extends DeckFactData, SheetFactData {
295
134
  x: [x0: number, x1: number];
296
135
  y: [y0: number, y1: number];
297
136
  };
298
- /** The platform profile the format is (its name for people), when it is one. */
299
- profile?: string;
300
137
  /** The part's measured moments, film seconds. */
301
138
  moments: number[];
302
139
  /** The speaker's face box (the face track's), or why it was not measured. */
@@ -499,37 +336,6 @@ export interface FactData extends DeckFactData, SheetFactData {
499
336
  /** What happened, in words. */
500
337
  why: string;
501
338
  });
502
- /**
503
- * The generated media a version shows or plays, from the `.gen.json`
504
- * records beside its files, and when: one per output × combo × format
505
- * that uses any. Whether a platform's AI label is needed is the
506
- * agent's to decide.
507
- */
508
- "generated-media": {
509
- files: GeneratedFile[];
510
- /** The video's length, seconds; absent on a deck. */
511
- duration?: number;
512
- /** The combo was put together from its parts, not loaded. */
513
- estimated?: true;
514
- };
515
- /**
516
- * A `.gen.json` record that does not hold for the file beside it: its
517
- * sha256 is another file's (the record was moved or copied without its
518
- * media, or the media was changed), or it cannot be read. One per piece
519
- * that reads the file.
520
- */
521
- "gen-mismatch": {
522
- file: string;
523
- record: string;
524
- } & ({
525
- why: "sha256";
526
- /** The sha256 the record has, and the file's. */
527
- recorded: string;
528
- actual: string;
529
- } | {
530
- why: "unreadable";
531
- error: string;
532
- });
533
339
  /**
534
340
  * Graphic layers drawn under footage. A part's layers are stacked in
535
341
  * the order they are listed, so a graphic layer listed before a footage
@@ -579,298 +385,6 @@ export interface FactData extends DeckFactData, SheetFactData {
579
385
  /** What is done instead. */
580
386
  fallback: "centred" | "in-front" | "unprocessed" | "not-snapped" | "played-once" | "film-end";
581
387
  };
582
- /**
583
- * Two named objects of a 3D scenery that touch or cross, at the moment a
584
- * scenery layer starts (docs/design/3d-worlds.md §6): touching with the
585
- * area faces in one plane share, or crossing with the curve's length,
586
- * how deep at least (a lower bound from surface samples), the lift that
587
- * clears them along +Y moving a and moving b, and the volume they share
588
- * where both are closed.
589
- */
590
- "scenery-contact": SceneryFactPlace & {
591
- a: string;
592
- b: string;
593
- crossing: boolean;
594
- touching: boolean;
595
- gap?: number;
596
- area?: number;
597
- curve?: number;
598
- within?: "a in b" | "b in a";
599
- depth?: number;
600
- lift?: {
601
- a: number;
602
- b: number;
603
- };
604
- volume?: number;
605
- volumeMissing?: string;
606
- /** The pair could not be measured, and why. */
607
- missing?: string;
608
- };
609
- /**
610
- * A named object of a 3D scenery and what is below it, by columns down
611
- * through its footprint: the least gap (negative when sunk), what is
612
- * below, the share of its footprint in contact, and how far its centre
613
- * of mass is inside the contact's hull.
614
- */
615
- "scenery-support": SceneryFactPlace & {
616
- object: string;
617
- gap: number | null;
618
- sunk: number;
619
- on: string[];
620
- footprintShare: number;
621
- margin?: number;
622
- nothingBelow: number;
623
- };
624
- /**
625
- * Whether a scenery layer's scenery was drawn with its bake laid
626
- * (`allyhub scenery bake`): a bake is laid only on the scene it was made
627
- * for, by the scene's digest, so a scenery that changed since it was baked
628
- * is drawn unbaked, lit by its own lights alone. Reported for a scenery
629
- * that says how to bake it (defineScenery's `bake`), has a bake laid, or
630
- * was baked before.
631
- */
632
- "scenery-bake": SceneryFactPlace & {
633
- laid: boolean;
634
- /** Whether the scenery says how to bake it (defineScenery's `bake`). */
635
- asked: boolean;
636
- /** The scene's digest a bake was looked for by. */
637
- digest: string;
638
- /** The renderer it was looked for on (this page's; the CPU's is looked for too). */
639
- renderer: string;
640
- /** Laid: the renderer the bake was made on. */
641
- bakedOn?: string;
642
- /** The scenery's module, a project path, when known. */
643
- file?: string;
644
- /** Not laid: the digest the scenery was last baked to on each renderer (the bake index); empty when it never was. */
645
- baked?: Record<string, string>;
646
- /** Not laid: whether the scenery was baked before, for another scene (it changed since), rather than never. */
647
- stale?: boolean;
648
- /** Not laid: the renderers (other GPUs) a bake of this very scene was made on, which this one does not lay. */
649
- elsewhere?: string[];
650
- /** Not laid: the command that makes its bake. */
651
- command?: string;
652
- };
653
- /** A named object of a 3D scenery whose surface is open, non-manifold, degenerate or crosses itself. */
654
- "mesh-health": SceneryFactPlace & {
655
- object: string;
656
- triangles: number;
657
- closed: boolean;
658
- openEdges: number;
659
- nonManifoldEdges: number;
660
- degenerate: number;
661
- selfIntersections: number | null;
662
- };
663
- /**
664
- * A scenery layer's camera near or in the scenery's surfaces over the layer:
665
- * the least distance to a surface and when, the moments it is inside an
666
- * object, and those its near plane cuts geometry (sampled ten times a
667
- * second).
668
- */
669
- "camera-clearance": SceneryFactPlace & {
670
- nearest?: {
671
- object: string;
672
- distance: number;
673
- t: number;
674
- };
675
- inside: {
676
- object: string;
677
- closed: boolean;
678
- from: number;
679
- to: number;
680
- }[];
681
- nearCut: {
682
- object: string;
683
- from: number;
684
- to: number;
685
- }[];
686
- };
687
- /**
688
- * A scenery layer's camera motion over the layer, in its own frame: the
689
- * peaks of each channel (m/s, °/s, stops/s), speed, turn, acceleration,
690
- * jerk and when, a dimensionless smoothness, the largest step between
691
- * frames.
692
- */
693
- "camera-motion": SceneryFactPlace & {
694
- fps: number;
695
- length: number;
696
- peaks: Record<"truck" | "pedestal" | "dolly" | "pan" | "tilt" | "roll" | "zoom" | "speed" | "turn" | "acceleration" | "jerk", {
697
- peak: number;
698
- at: number;
699
- }>;
700
- smoothness: number | null;
701
- step: {
702
- distance: number;
703
- angle: number;
704
- at: number;
705
- };
706
- /** The camera's cuts (shots()), part times: what is measured stops at each. */
707
- cuts?: number[];
708
- };
709
- /**
710
- * A screen in a scenery layer (scenery({ screens })) over the layer, sampled
711
- * ten times a second: when it is on the frame facing the camera, its
712
- * share of the layer's box, frame px per content px (below 1 its content
713
- * is shrunk), the angle between its face's normal and the line to the
714
- * camera at the centre of what the frame shows of it (°, 0 square on;
715
- * the face's own centre when all of it shows), and the share
716
- * of it hidden by what is in front, by which objects at the most.
717
- */
718
- "scenery-screen": SceneryFactPlace & {
719
- screen: string;
720
- /** Its content's size, px. */
721
- size: [number, number];
722
- /** The layer's box on the frame, px. */
723
- frame: [number, number];
724
- shown: {
725
- from: number;
726
- to: number;
727
- }[];
728
- share?: SceneryRange;
729
- scale?: SceneryRange;
730
- angle?: SceneryRange;
731
- hidden?: SceneryRange & {
732
- by: {
733
- object: string;
734
- share: number;
735
- }[];
736
- };
737
- /**
738
- * With a camera that has an aperture: the circle of confusion across
739
- * the screen (a turned screen's near side is blurred more than its far
740
- * side), its diameter in frame px (0 in focus), the least and the most
741
- * over the layer.
742
- */
743
- blur?: SceneryRange;
744
- /**
745
- * With a sensor (scenery({ sensor })): the moiré its grid makes of the
746
- * screen's pixels, the deepest band over a grid of its points at each
747
- * sampled moment (how much it darkens at its darkest, 0–1), the least
748
- * and the most over the layer, and how far apart that band's stripes
749
- * are at the deepest, frame px.
750
- */
751
- moire?: SceneryRange & {
752
- period?: number;
753
- };
754
- /**
755
- * Each sampled moment it was on the frame: part time, its corners in
756
- * the frame's px (top left, top right, bottom right, bottom left of its
757
- * content), its share, its scale (least, most), its angle, and the share
758
- * hidden when it was measured.
759
- */
760
- samples?: {
761
- t: number;
762
- corners: [number, number][];
763
- share: number;
764
- scale: [number, number];
765
- angle: number;
766
- hidden?: number;
767
- }[];
768
- /**
769
- * A video on the screen (screen(video, { cues })): each stretch between
770
- * two cues, in scenery seconds and the video's, and its speed (the
771
- * video's seconds per scenery second; 1 is its own pace).
772
- */
773
- stretches?: {
774
- from: number;
775
- to: number;
776
- video: [number, number];
777
- speed: number;
778
- }[];
779
- /**
780
- * Where it is drawn at this check, and at what share of the frame's
781
- * pixels each way: in the scenery (Chrome's HTML-in-Canvas), at the scenery
782
- * layer's drawing scale (quality.scale, default 0.5: its picture drawn
783
- * at that size, then shown at the layer's); over the scenery, at the
784
- * frame's own, 1.
785
- */
786
- drawn?: {
787
- in: "scenery" | "over";
788
- scale: number;
789
- };
790
- /**
791
- * Its smallest text: font size in content px (of every text the screen
792
- * holds, in any of its parts), and on the frame at the least and the
793
- * most scale it is seen at (px), as drawn: times the drawing scale
794
- * (`drawn`, at most 1).
795
- */
796
- text?: {
797
- size: number;
798
- onFrame: [number, number];
799
- };
800
- };
801
- /**
802
- * A screen drawn in the scenery (Chrome's HTML-in-Canvas) against its own
803
- * element, at one moment of its scenery layer (its part's still, else the
804
- * layer's middle): a small level of its texture as uploaded (before the
805
- * scenery's light, tone curve and a sensor's moiré) and the element drawn
806
- * flat by the browser's compositor, made the same size in linear light,
807
- * both over `backdrop`. The colour difference (ΔE*ab, CIE76) over its
808
- * pixels, the share over `tolerance`, the regions where they differ
809
- * (content px, largest first) with the elements of the content in each
810
- * that the texture is known to draw otherwise (canvases, faces with
811
- * backface-visibility hidden, preserve-3d contexts, elements in the
812
- * browser's top layer), and every such element. Missing, with why, when
813
- * it could not be compared (a browser without HTML-in-Canvas draws the
814
- * screen over the scenery).
815
- */
816
- "scenery-screen-fidelity": SceneryFactPlace & {
817
- screen: string;
818
- /** Part time of the moment compared, s. */
819
- at: number;
820
- /** Its content's size, px. */
821
- size: [number, number];
822
- /**
823
- * The texture's level compared and its pixels each way, the texture's
824
- * own (`of`), and the element's (`element`: its content's size times
825
- * its pixels' density). A texture smaller than its element was painted
826
- * at fewer pixels than it has: HTML-in-Canvas paints it at the scenery's
827
- * canvas's pixels per CSS pixel, its quality.scale.
828
- */
829
- texture?: {
830
- level: number;
831
- size: [number, number];
832
- of: [number, number];
833
- element: [number, number];
834
- };
835
- /** The element as the browser draws it flat, captured at this size, px. */
836
- flat?: [number, number];
837
- /** A pixel differs when its ΔE*ab is over this. */
838
- tolerance: number;
839
- /** What both are seen over where they are transparent, RGB. */
840
- backdrop: [number, number, number];
841
- deltaE?: {
842
- mean: number;
843
- p95: number;
844
- max: number;
845
- };
846
- /** Mean absolute difference of each channel, 0–255. */
847
- channels?: {
848
- r: number;
849
- g: number;
850
- b: number;
851
- alpha: number;
852
- };
853
- /** The share of its pixels whose ΔE*ab is over the tolerance. */
854
- share?: number;
855
- regions?: {
856
- /** Content px: x, y, width, height. */
857
- box: [number, number, number, number];
858
- /** Its differing pixels as a share of the screen's. */
859
- share: number;
860
- meanDeltaE: number;
861
- maxDeltaE: number;
862
- /** The listed elements whose box meets it: their places in `elements`. */
863
- elements: number[];
864
- }[];
865
- /** Elements of the content the texture is known to draw otherwise, with their boxes, content px. */
866
- elements?: {
867
- kind: "canvas" | "backface-hidden" | "preserve-3d" | "top-layer";
868
- name: string;
869
- box: [number, number, number, number];
870
- }[];
871
- /** The comparison could not be made, and why. */
872
- missing?: string;
873
- };
874
388
  /**
875
389
  * A part that plays a stretch of a video item (take(piece).range) whose
876
390
  * start or end falls inside a word of it: the word, and how far into it.
@@ -887,264 +401,10 @@ export interface FactData extends DeckFactData, SheetFactData {
887
401
  wordEnd: number;
888
402
  };
889
403
  }
890
- /** The least and the most of a value over a scenery layer's samples, and when (part time, s). */
891
- export interface SceneryRange {
892
- least: number;
893
- leastAt: number;
894
- most: number;
895
- mostAt: number;
896
- }
897
- /** An edge of a box and how far past a line it is, in pixels. */
898
- export interface EdgePast {
899
- side: "top" | "bottom" | "left" | "right";
900
- px: number;
901
- }
902
- /** An edge of a box and how far past a line it is, in points (a deck's). */
903
- export interface DeckEdge {
904
- side: "top" | "bottom" | "left" | "right";
905
- pt: number;
906
- }
907
- /**
908
- * Facts of a deck: what is measured of each slide as drawn (`deckFacts`,
909
- * @allyhub/slides-core). Every length is in points, the unit
910
- * slides.yaml is written in; a box is [x, y, w, h] from the slide's top left.
911
- */
912
- export interface DeckFactData {
913
- /** A shape's text past its box, by its lines' glyphs. */
914
- "text-overflow": {
915
- shape: string;
916
- text: string;
917
- box: Box;
918
- glyphs: Box;
919
- edges: DeckEdge[];
920
- /** Its lines, and those past the box. */
921
- lines: number;
922
- past: number;
923
- /** The share autofit shrank it to, when it did and it still does not fit. */
924
- scale?: number;
925
- };
926
- /** A shape's text the slide's edge cuts: its glyphs past the slide. */
927
- "text-off-slide": {
928
- shape: string;
929
- text: string;
930
- glyphs: Box;
931
- edges: DeckEdge[];
932
- /** The share of its glyphs' box outside the slide (0–1). */
933
- share: number;
934
- };
935
- /** A shape partly or wholly past the slide's edge. */
936
- "shape-off-slide": {
937
- shape: string;
938
- box: Box;
939
- edges: DeckEdge[];
940
- /** Its area past the edge, as a share of its own (0–1). */
941
- share: number;
942
- };
943
- /**
944
- * Two shapes of a slide over each other, not a master's or a layout's own
945
- * under another: what shows of each, its box when it is filled or a
946
- * picture, else its text's glyphs.
947
- */
948
- "shape-overlap": {
949
- a: string;
950
- b: string;
951
- /** Square points both cover, and that as a share of the smaller (0–1). */
952
- area: number;
953
- share: number;
954
- };
955
- /**
956
- * Edges or centres of two shapes, or of a shape and the slide, nearly in
957
- * line and not: where each line is, what it was measured by (a filled
958
- * shape's or a picture's frame; an unfilled text's glyphs), and the
959
- * frame's x or y that puts the one to move on the other's line.
960
- */
961
- "near-alignment": {
962
- a: string;
963
- /** Another shape, or "slide" for the slide's centre. */
964
- b: string;
965
- line: "left" | "right" | "top" | "bottom" | "centre-x" | "centre-y";
966
- /** How far apart. */
967
- gap: number;
968
- /** Each one's line. */
969
- at: {
970
- a: number;
971
- b: number;
972
- };
973
- by: {
974
- a: "frame" | "glyphs";
975
- b: "frame" | "glyphs";
976
- };
977
- /** The slide's own shape to move (a, unless a is a master's or a layout's), and its frame's `x` or `y` that aligns it. */
978
- align: {
979
- shape: string;
980
- x?: number;
981
- y?: number;
982
- };
983
- options: {
984
- within: number;
985
- aligned: number;
986
- };
987
- };
988
- /** A shape of one name at different places on slides of one layout. */
989
- "placement-drift": {
990
- layout: string;
991
- shape: string;
992
- /** Each place, with the slides it is at. */
993
- places: {
994
- frame: Box;
995
- slides: string[];
996
- }[];
997
- options: {
998
- drift: number;
999
- };
1000
- };
1001
- /** The sizes and weights the deck's text uses, and on how many slides. */
1002
- "type-in-use": {
1003
- type: {
1004
- size: number;
1005
- weight: number;
1006
- slides: number;
1007
- shapes: number;
1008
- }[];
1009
- /** The smallest size, in points. */
1010
- smallest: number;
1011
- };
1012
- /** A text's size as read: on the slide, on a screen from the farthest seat, on a phone. */
1013
- "read-size": {
1014
- shape: string;
1015
- text: string;
1016
- /** Its smallest size and lowercase x's height, in points on the slide. */
1017
- size: number;
1018
- xHeight?: number;
1019
- /**
1020
- * On a room's screen, when one is given: its lowercase x (`by: "x"`), or for text with
1021
- * no lowercase Latin letter (CJK) its em (`by: "em"`), in millimetres,
1022
- * and the angle that makes at the farthest seat, in minutes of arc.
1023
- */
1024
- screen?: {
1025
- by: "x" | "em";
1026
- mm: number;
1027
- arcmin: number;
1028
- };
1029
- /** Its size in points on the phone of `options.phone`, the slide fitted inside it. */
1030
- phone: number;
1031
- options: {
1032
- room?: {
1033
- screen: number;
1034
- distance: number;
1035
- };
1036
- phone: [number, number];
1037
- };
1038
- };
1039
- /** Words, lines and texts on a slide. */
1040
- "words-on-slide": {
1041
- words: number;
1042
- lines: number;
1043
- texts: number;
1044
- };
1045
- /** A picture drawn larger than its pixels, or stretched. */
1046
- "picture-resolution": {
1047
- shape: string;
1048
- /** Its file's pixels, and those of them it shows (its crop taken away). */
1049
- source: [number, number];
1050
- shown: [number, number];
1051
- box: Box;
1052
- /** Pixels of the slide as rendered per source pixel, the larger of the two directions (over 1: enlarged). */
1053
- scale: number;
1054
- /** Source pixels per inch of the slide, the smaller of the two directions. */
1055
- ppi: number;
1056
- /** How much wider than its pixels it is drawn, against how much taller, less 1 (0: not stretched). */
1057
- stretch: number;
1058
- };
1059
- /** A shape another covers whole. */
1060
- /** Covered whole at every step that shows it (`by`), or shown by no step. */
1061
- "shape-hidden": {
1062
- shape: string;
1063
- by?: string;
1064
- never?: true;
1065
- };
1066
- /** A table's rows its words made taller than they are set, in points, which moves all that is under them. */
1067
- "chart-data": {
1068
- shape: string;
1069
- type: string;
1070
- categories: number;
1071
- series: number;
1072
- /** The smallest and largest number it shows; absent when it shows none. */
1073
- low?: number;
1074
- high?: number;
1075
- /** The project file its numbers came from; absent: written in slides.yaml or the code. */
1076
- source?: string;
1077
- };
1078
- "table-grown": {
1079
- shape: string;
1080
- /** Its height as set and as drawn. */
1081
- set: number;
1082
- drawn: number;
1083
- rows: {
1084
- row: number;
1085
- set: number;
1086
- drawn: number;
1087
- }[];
1088
- };
1089
- /**
1090
- * The fonts a deck's PowerPoint file names, and whether each is one
1091
- * every PowerPoint, Keynote and Google Slides has (`options.standard`):
1092
- * one that is not is replaced where the file is opened without it.
1093
- */
1094
- "deck-fonts": {
1095
- fonts: {
1096
- name: string;
1097
- where: "theme" | "text";
1098
- standard: boolean;
1099
- }[];
1100
- options: {
1101
- standard: string[];
1102
- };
1103
- };
1104
- }
1105
- /** Where a scenery fact is from: the scenery layer (its name), and its window on its part's clock, s. */
1106
- export interface SceneryFactPlace {
1107
- layer: string;
1108
- start: number;
1109
- end: number;
1110
- }
1111
- export type FactKind = keyof FactData;
1112
- /** Where a fact was measured. Piece-level facts (the matrix) have no output, combo or format. */
1113
- export interface FactPlace {
1114
- piece: string;
1115
- output?: string;
1116
- combo?: Combo;
1117
- format?: string;
1118
- part?: string;
1119
- /** Film seconds. */
1120
- t?: number;
1121
- }
1122
- export type Fact = {
1123
- [K in FactKind]: FactPlace & {
1124
- kind: K;
1125
- data: FactData[K];
1126
- };
1127
- }[FactKind];
1128
- /** Every kind, with what it says, in the order `allyhub inspect` prints them. */
1129
- export declare const FACT_KINDS: Record<FactKind, string>;
1130
- export declare function isFactKind(k: string): k is FactKind;
1131
- /** A fact of one kind, typed. */
1132
- export declare function fact<K extends FactKind>(kind: K, place: FactPlace, data: FactData[K]): Fact;
1133
- /** Facts of one kind, typed. */
1134
- export declare function factsOf<K extends FactKind>(facts: readonly Fact[], kind: K): Extract<Fact, {
1135
- kind: K;
1136
- }>[];
1137
- /** How many facts of each kind. */
1138
- export declare function countFacts(facts: readonly Fact[]): Partial<Record<FactKind, number>>;
1139
- /** Which facts to keep: of these kinds, of this part, between these seconds. */
1140
- export interface FactFilter {
1141
- kinds?: readonly FactKind[] | undefined;
1142
- part?: string | undefined;
1143
- from?: number | undefined;
1144
- to?: number | undefined;
1145
- }
1146
- /** The facts a filter keeps; a fact without a time goes when a time is asked. */
1147
- export declare function filterFacts(facts: readonly Fact[], o: FactFilter): Fact[];
404
+ /** A fact of the video's. */
405
+ export type VideoFact = Fact<VideoFactData>;
406
+ /** A fact of the video's, typed by its kind. */
407
+ export declare const fact: <K extends keyof VideoFactData>(kind: K, place: FactPlace, data: VideoFactData[K]) => VideoFact;
1148
408
  /**
1149
409
  * The free-bands fact's data for one part: the content box of a frame
1150
410
  * W × H inside `safe`, and its bands free of the face boxes (one per
@@ -1157,7 +417,6 @@ export declare function freeBandsData(o: {
1157
417
  width: number;
1158
418
  height: number;
1159
419
  safe: SafeZone;
1160
- profile?: string;
1161
420
  moments: number[];
1162
421
  face: {
1163
422
  files: string[];
@@ -1168,12 +427,12 @@ export declare function freeBandsData(o: {
1168
427
  files: string[];
1169
428
  rows: RowSpan[][];
1170
429
  } | FreeBandsMissing<"person-matte">;
1171
- }): FactData["free-bands"];
430
+ }): VideoFactData["free-bands"];
1172
431
  /**
1173
432
  * The facts in a layout measurement (LoadedOutput.measure): text over
1174
433
  * text, over the face and in covered edges at each moment, and each
1175
434
  * footage layer's enlargement. The person matte is the host's to add
1176
435
  * (`text-speaker`'s `person`).
1177
436
  */
1178
- export declare function layoutFacts(report: LayoutReport, place: Omit<FactPlace, "part" | "t">, profile?: string): Fact[];
437
+ export declare function layoutFacts(report: LayoutReport, place: Omit<FactPlace, "part" | "t">): VideoFact[];
1179
438
  //# sourceMappingURL=fact.d.ts.map