@allyhub/sdk 0.1.0-alpha.8 → 0.2.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (365) hide show
  1. package/LICENSE.md +241 -0
  2. package/NOTICE +85 -0
  3. package/client.d.ts +45 -1
  4. package/dist/anim.js +2 -75
  5. package/dist/define.d.ts +10 -4
  6. package/dist/define.js +2 -95
  7. package/dist/dom.d.ts +1 -1
  8. package/dist/dom.js +2 -457
  9. package/dist/fit.js +2 -60
  10. package/dist/free.d.ts +18 -0
  11. package/dist/free.js +2 -0
  12. package/dist/index.d.ts +28 -13
  13. package/dist/index.js +2 -11
  14. package/dist/input.d.ts +306 -0
  15. package/dist/input.js +2 -0
  16. package/dist/media.d.ts +3 -6
  17. package/dist/media.js +2 -27
  18. package/dist/messages.d.ts +3 -2
  19. package/dist/messages.js +2 -2
  20. package/dist/module.d.ts +24 -0
  21. package/dist/module.js +2 -0
  22. package/dist/noise.js +2 -233
  23. package/dist/parts.d.ts +98 -22
  24. package/dist/parts.js +2 -414
  25. package/dist/paths.d.ts +1 -1
  26. package/dist/paths.js +2 -720
  27. package/dist/phone.d.ts +26 -0
  28. package/dist/phone.js +2 -0
  29. package/dist/piece.d.ts +106 -35
  30. package/dist/piece.js +2 -38
  31. package/dist/props.d.ts +1 -1
  32. package/dist/props.js +2 -35
  33. package/dist/scenery.d.ts +2 -0
  34. package/dist/scenery.js +2 -0
  35. package/dist/text.js +2 -38
  36. package/dist/written.d.ts +12 -0
  37. package/dist/written.js +2 -0
  38. package/docs/README.md +18 -0
  39. package/docs/batches.md +148 -0
  40. package/docs/contract.md +51 -0
  41. package/docs/defaults.md +703 -0
  42. package/docs/docs.md +148 -0
  43. package/docs/footage.md +249 -0
  44. package/docs/layers.md +317 -0
  45. package/docs/modeling.md +143 -0
  46. package/docs/project.md +265 -0
  47. package/docs/scenery.md +308 -0
  48. package/docs/sheets.md +119 -0
  49. package/docs/slides.md +111 -0
  50. package/docs/sound.md +170 -0
  51. package/docs/speech.md +289 -0
  52. package/docs/video.md +265 -0
  53. package/node_modules/@allyhub-next/audio/LICENSE +241 -0
  54. package/node_modules/@allyhub-next/audio/dist/at-cut.d.ts +52 -0
  55. package/node_modules/@allyhub-next/audio/dist/at-cut.js +2 -0
  56. package/node_modules/@allyhub-next/audio/dist/decode.d.ts +33 -0
  57. package/node_modules/@allyhub-next/audio/dist/decode.js +2 -0
  58. package/node_modules/@allyhub-next/audio/dist/envelope.d.ts +37 -0
  59. package/node_modules/@allyhub-next/audio/dist/envelope.js +2 -0
  60. package/node_modules/@allyhub-next/audio/dist/index.d.ts +17 -0
  61. package/node_modules/@allyhub-next/audio/dist/index.js +2 -0
  62. package/node_modules/@allyhub-next/audio/dist/levels.d.ts +97 -0
  63. package/node_modules/@allyhub-next/audio/dist/levels.js +2 -0
  64. package/node_modules/@allyhub-next/audio/dist/master.d.ts +29 -0
  65. package/node_modules/@allyhub-next/audio/dist/master.js +2 -0
  66. package/node_modules/@allyhub-next/audio/dist/music.d.ts +11 -0
  67. package/node_modules/@allyhub-next/audio/dist/music.js +2 -0
  68. package/node_modules/@allyhub-next/audio/dist/node/decode.d.ts +39 -0
  69. package/node_modules/@allyhub-next/audio/dist/node/decode.js +2 -0
  70. package/node_modules/@allyhub-next/audio/dist/node/ebur128.d.ts +25 -0
  71. package/node_modules/@allyhub-next/audio/dist/node/ebur128.js +2 -0
  72. package/node_modules/@allyhub-next/audio/dist/node/ffmpeg.d.ts +31 -0
  73. package/node_modules/@allyhub-next/audio/dist/node/ffmpeg.js +2 -0
  74. package/node_modules/@allyhub-next/audio/dist/node/index.d.ts +8 -0
  75. package/node_modules/@allyhub-next/audio/dist/node/index.js +2 -0
  76. package/node_modules/@allyhub-next/audio/dist/node/loudness.d.ts +18 -0
  77. package/node_modules/@allyhub-next/audio/dist/node/loudness.js +2 -0
  78. package/node_modules/@allyhub-next/audio/dist/node/master.d.ts +42 -0
  79. package/node_modules/@allyhub-next/audio/dist/node/master.js +2 -0
  80. package/node_modules/@allyhub-next/audio/dist/node/measure.d.ts +60 -0
  81. package/node_modules/@allyhub-next/audio/dist/node/measure.js +2 -0
  82. package/node_modules/@allyhub-next/audio/dist/node/mix.d.ts +31 -0
  83. package/node_modules/@allyhub-next/audio/dist/node/mix.js +2 -0
  84. package/node_modules/@allyhub-next/audio/dist/plan.d.ts +143 -0
  85. package/node_modules/@allyhub-next/audio/dist/plan.js +2 -0
  86. package/node_modules/@allyhub-next/audio/dist/recorded.d.ts +26 -0
  87. package/node_modules/@allyhub-next/audio/dist/recorded.js +2 -0
  88. package/node_modules/@allyhub-next/audio/dist/recording/bandwidth.d.ts +47 -0
  89. package/node_modules/@allyhub-next/audio/dist/recording/bandwidth.js +2 -0
  90. package/node_modules/@allyhub-next/audio/dist/recording/chain.d.ts +89 -0
  91. package/node_modules/@allyhub-next/audio/dist/recording/chain.js +2 -0
  92. package/node_modules/@allyhub-next/audio/dist/recording/dynamics.d.ts +64 -0
  93. package/node_modules/@allyhub-next/audio/dist/recording/dynamics.js +2 -0
  94. package/node_modules/@allyhub-next/audio/dist/recording/fft.d.ts +26 -0
  95. package/node_modules/@allyhub-next/audio/dist/recording/fft.js +2 -0
  96. package/node_modules/@allyhub-next/audio/dist/recording/filters.d.ts +42 -0
  97. package/node_modules/@allyhub-next/audio/dist/recording/filters.js +2 -0
  98. package/node_modules/@allyhub-next/audio/dist/recording/fit.d.ts +56 -0
  99. package/node_modules/@allyhub-next/audio/dist/recording/fit.js +2 -0
  100. package/node_modules/@allyhub-next/audio/dist/recording/index.d.ts +10 -0
  101. package/node_modules/@allyhub-next/audio/dist/recording/index.js +2 -0
  102. package/node_modules/@allyhub-next/audio/dist/recording/loudness.d.ts +12 -0
  103. package/node_modules/@allyhub-next/audio/dist/recording/loudness.js +2 -0
  104. package/node_modules/@allyhub-next/audio/dist/recording/measure.d.ts +67 -0
  105. package/node_modules/@allyhub-next/audio/dist/recording/measure.js +2 -0
  106. package/node_modules/@allyhub-next/audio/dist/recording/mic.d.ts +32 -0
  107. package/node_modules/@allyhub-next/audio/dist/recording/mic.js +2 -0
  108. package/node_modules/@allyhub-next/audio/dist/recording/noise.d.ts +27 -0
  109. package/node_modules/@allyhub-next/audio/dist/recording/noise.js +2 -0
  110. package/node_modules/@allyhub-next/audio/dist/recording/presets.d.ts +64 -0
  111. package/node_modules/@allyhub-next/audio/dist/recording/presets.js +2 -0
  112. package/node_modules/@allyhub-next/audio/dist/recording/room.d.ts +78 -0
  113. package/node_modules/@allyhub-next/audio/dist/recording/room.js +2 -0
  114. package/node_modules/@allyhub-next/audio/dist/recording/setup.d.ts +111 -0
  115. package/node_modules/@allyhub-next/audio/dist/recording/setup.js +2 -0
  116. package/node_modules/@allyhub-next/audio/dist/recording/vec.d.ts +3 -0
  117. package/node_modules/@allyhub-next/audio/dist/recording/vec.js +2 -0
  118. package/node_modules/@allyhub-next/audio/dist/render.d.ts +26 -0
  119. package/node_modules/@allyhub-next/audio/dist/render.js +2 -0
  120. package/node_modules/@allyhub-next/audio/dist/sfx.d.ts +10 -0
  121. package/node_modules/@allyhub-next/audio/dist/sfx.js +2 -0
  122. package/node_modules/@allyhub-next/audio/dist/shape.d.ts +118 -0
  123. package/node_modules/@allyhub-next/audio/dist/shape.js +2 -0
  124. package/node_modules/@allyhub-next/audio/dist/voice.d.ts +45 -0
  125. package/node_modules/@allyhub-next/audio/dist/voice.js +2 -0
  126. package/node_modules/@allyhub-next/audio/package.json +17 -0
  127. package/node_modules/@allyhub-next/formats/LICENSE +241 -0
  128. package/node_modules/@allyhub-next/formats/dist/data/comments.d.ts +94 -0
  129. package/node_modules/@allyhub-next/formats/dist/data/comments.js +2 -0
  130. package/node_modules/@allyhub-next/formats/dist/data/config.d.ts +10 -0
  131. package/node_modules/@allyhub-next/formats/dist/data/config.js +2 -0
  132. package/node_modules/@allyhub-next/formats/dist/data/edits.d.ts +28 -0
  133. package/node_modules/@allyhub-next/formats/dist/data/edits.js +2 -0
  134. package/node_modules/@allyhub-next/formats/dist/data/elements.d.ts +6 -0
  135. package/node_modules/@allyhub-next/formats/dist/data/elements.js +2 -0
  136. package/node_modules/@allyhub-next/formats/dist/data/faces.d.ts +38 -0
  137. package/node_modules/@allyhub-next/formats/dist/data/faces.js +2 -0
  138. package/node_modules/@allyhub-next/formats/dist/data/file.d.ts +11 -0
  139. package/node_modules/@allyhub-next/formats/dist/data/file.js +2 -0
  140. package/node_modules/@allyhub-next/formats/dist/data/gen.d.ts +31 -0
  141. package/node_modules/@allyhub-next/formats/dist/data/gen.js +2 -0
  142. package/node_modules/@allyhub-next/formats/dist/data/messages.d.ts +34 -0
  143. package/node_modules/@allyhub-next/formats/dist/data/messages.js +2 -0
  144. package/node_modules/@allyhub-next/formats/dist/data/reference.d.ts +676 -0
  145. package/node_modules/@allyhub-next/formats/dist/data/reference.js +2 -0
  146. package/node_modules/@allyhub-next/formats/dist/data/script.d.ts +37 -0
  147. package/node_modules/@allyhub-next/formats/dist/data/script.js +2 -0
  148. package/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +214 -0
  149. package/node_modules/@allyhub-next/formats/dist/data/sheet.js +2 -0
  150. package/node_modules/@allyhub-next/formats/dist/data/words.d.ts +25 -0
  151. package/node_modules/@allyhub-next/formats/dist/data/words.js +2 -0
  152. package/node_modules/@allyhub-next/formats/dist/index.d.ts +16 -0
  153. package/node_modules/@allyhub-next/formats/dist/index.js +2 -0
  154. package/node_modules/@allyhub-next/formats/dist/items.d.ts +94 -0
  155. package/node_modules/@allyhub-next/formats/dist/items.js +2 -0
  156. package/node_modules/@allyhub-next/formats/dist/layout.d.ts +50 -0
  157. package/node_modules/@allyhub-next/formats/dist/layout.js +5 -0
  158. package/node_modules/@allyhub-next/formats/dist/schemas.d.ts +301 -0
  159. package/node_modules/@allyhub-next/formats/dist/schemas.js +2 -0
  160. package/node_modules/@allyhub-next/formats/package.json +14 -0
  161. package/node_modules/@allyhub-next/protocol/LICENSE +241 -0
  162. package/node_modules/@allyhub-next/protocol/dist/app.d.ts +98 -0
  163. package/node_modules/@allyhub-next/protocol/dist/app.js +2 -0
  164. package/node_modules/@allyhub-next/protocol/dist/auth.d.ts +116 -0
  165. package/node_modules/@allyhub-next/protocol/dist/auth.js +2 -0
  166. package/node_modules/@allyhub-next/protocol/dist/cli.d.ts +59 -0
  167. package/node_modules/@allyhub-next/protocol/dist/cli.js +2 -0
  168. package/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +274 -0
  169. package/node_modules/@allyhub-next/protocol/dist/cloud.js +2 -0
  170. package/node_modules/@allyhub-next/protocol/dist/editor.d.ts +405 -0
  171. package/node_modules/@allyhub-next/protocol/dist/editor.js +2 -0
  172. package/node_modules/@allyhub-next/protocol/dist/files.d.ts +101 -0
  173. package/node_modules/@allyhub-next/protocol/dist/files.js +2 -0
  174. package/node_modules/@allyhub-next/protocol/dist/index.d.ts +12 -0
  175. package/node_modules/@allyhub-next/protocol/dist/index.js +2 -0
  176. package/node_modules/@allyhub-next/protocol/dist/jsonrpc.d.ts +83 -0
  177. package/node_modules/@allyhub-next/protocol/dist/jsonrpc.js +2 -0
  178. package/node_modules/@allyhub-next/protocol/dist/registry.d.ts +53 -0
  179. package/node_modules/@allyhub-next/protocol/dist/registry.js +2 -0
  180. package/node_modules/@allyhub-next/protocol/dist/runtimes.d.ts +93 -0
  181. package/node_modules/@allyhub-next/protocol/dist/runtimes.js +2 -0
  182. package/node_modules/@allyhub-next/protocol/dist/teams.d.ts +67 -0
  183. package/node_modules/@allyhub-next/protocol/dist/teams.js +2 -0
  184. package/node_modules/@allyhub-next/protocol/dist/tools.d.ts +345 -0
  185. package/node_modules/@allyhub-next/protocol/dist/tools.js +2 -0
  186. package/node_modules/@allyhub-next/protocol/package.json +13 -0
  187. package/node_modules/@allyhub-next/runtimes/LICENSE +241 -0
  188. package/node_modules/@allyhub-next/runtimes/dist/bundled.d.ts +10 -0
  189. package/node_modules/@allyhub-next/runtimes/dist/bundled.js +2 -0
  190. package/node_modules/@allyhub-next/runtimes/dist/download.d.ts +15 -0
  191. package/node_modules/@allyhub-next/runtimes/dist/download.js +2 -0
  192. package/node_modules/@allyhub-next/runtimes/dist/errors.d.ts +16 -0
  193. package/node_modules/@allyhub-next/runtimes/dist/errors.js +2 -0
  194. package/node_modules/@allyhub-next/runtimes/dist/home.d.ts +2 -0
  195. package/node_modules/@allyhub-next/runtimes/dist/home.js +2 -0
  196. package/node_modules/@allyhub-next/runtimes/dist/index.d.ts +9 -0
  197. package/node_modules/@allyhub-next/runtimes/dist/index.js +2 -0
  198. package/node_modules/@allyhub-next/runtimes/dist/lock.d.ts +6 -0
  199. package/node_modules/@allyhub-next/runtimes/dist/lock.js +2 -0
  200. package/node_modules/@allyhub-next/runtimes/dist/manifest.d.ts +3 -0
  201. package/node_modules/@allyhub-next/runtimes/dist/manifest.js +2 -0
  202. package/node_modules/@allyhub-next/runtimes/dist/runtimes.d.ts +63 -0
  203. package/node_modules/@allyhub-next/runtimes/dist/runtimes.js +3 -0
  204. package/node_modules/@allyhub-next/runtimes/dist/unpack.d.ts +7 -0
  205. package/node_modules/@allyhub-next/runtimes/dist/unpack.js +2 -0
  206. package/node_modules/@allyhub-next/runtimes/manifest.json +395 -0
  207. package/node_modules/@allyhub-next/runtimes/package.json +14 -0
  208. package/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +153 -0
  209. package/node_modules/@allyhub-next/scenery/LICENSE +241 -0
  210. package/node_modules/@allyhub-next/scenery/NOTICE +42 -0
  211. package/node_modules/@allyhub-next/scenery/dist/aim.d.ts +55 -0
  212. package/node_modules/@allyhub-next/scenery/dist/aim.js +2 -0
  213. package/node_modules/@allyhub-next/scenery/dist/bake.d.ts +203 -0
  214. package/node_modules/@allyhub-next/scenery/dist/bake.js +2 -0
  215. package/node_modules/@allyhub-next/scenery/dist/camera.d.ts +150 -0
  216. package/node_modules/@allyhub-next/scenery/dist/camera.js +2 -0
  217. package/node_modules/@allyhub-next/scenery/dist/curve.d.ts +40 -0
  218. package/node_modules/@allyhub-next/scenery/dist/curve.js +2 -0
  219. package/node_modules/@allyhub-next/scenery/dist/define.d.ts +164 -0
  220. package/node_modules/@allyhub-next/scenery/dist/define.js +2 -0
  221. package/node_modules/@allyhub-next/scenery/dist/fit.d.ts +64 -0
  222. package/node_modules/@allyhub-next/scenery/dist/fit.js +2 -0
  223. package/node_modules/@allyhub-next/scenery/dist/glass.d.ts +34 -0
  224. package/node_modules/@allyhub-next/scenery/dist/glass.js +2 -0
  225. package/node_modules/@allyhub-next/scenery/dist/handheld.d.ts +184 -0
  226. package/node_modules/@allyhub-next/scenery/dist/handheld.js +2 -0
  227. package/node_modules/@allyhub-next/scenery/dist/hull.d.ts +23 -0
  228. package/node_modules/@allyhub-next/scenery/dist/hull.js +2 -0
  229. package/node_modules/@allyhub-next/scenery/dist/index.d.ts +22 -0
  230. package/node_modules/@allyhub-next/scenery/dist/index.js +2 -0
  231. package/node_modules/@allyhub-next/scenery/dist/lens.d.ts +48 -0
  232. package/node_modules/@allyhub-next/scenery/dist/lens.js +2 -0
  233. package/node_modules/@allyhub-next/scenery/dist/moire.d.ts +136 -0
  234. package/node_modules/@allyhub-next/scenery/dist/moire.js +93 -0
  235. package/node_modules/@allyhub-next/scenery/dist/motion.d.ts +48 -0
  236. package/node_modules/@allyhub-next/scenery/dist/motion.js +2 -0
  237. package/node_modules/@allyhub-next/scenery/dist/move.d.ts +260 -0
  238. package/node_modules/@allyhub-next/scenery/dist/move.js +2 -0
  239. package/node_modules/@allyhub-next/scenery/dist/noise.d.ts +41 -0
  240. package/node_modules/@allyhub-next/scenery/dist/noise.js +2 -0
  241. package/node_modules/@allyhub-next/scenery/dist/phone.d.ts +34 -0
  242. package/node_modules/@allyhub-next/scenery/dist/phone.js +2 -0
  243. package/node_modules/@allyhub-next/scenery/dist/report.d.ts +677 -0
  244. package/node_modules/@allyhub-next/scenery/dist/report.js +2 -0
  245. package/node_modules/@allyhub-next/scenery/dist/screen-focus.d.ts +55 -0
  246. package/node_modules/@allyhub-next/scenery/dist/screen-focus.js +2 -0
  247. package/node_modules/@allyhub-next/scenery/dist/screen.d.ts +71 -0
  248. package/node_modules/@allyhub-next/scenery/dist/screen.js +2 -0
  249. package/node_modules/@allyhub-next/scenery/dist/solve.d.ts +82 -0
  250. package/node_modules/@allyhub-next/scenery/dist/solve.js +2 -0
  251. package/node_modules/@allyhub-next/scenery/dist/timing.d.ts +26 -0
  252. package/node_modules/@allyhub-next/scenery/dist/timing.js +2 -0
  253. package/node_modules/@allyhub-next/scenery/dist/vec.d.ts +19 -0
  254. package/node_modules/@allyhub-next/scenery/dist/vec.js +2 -0
  255. package/node_modules/@allyhub-next/scenery/package.json +13 -0
  256. package/node_modules/@allyhub-next/video-core/LICENSE +241 -0
  257. package/node_modules/@allyhub-next/video-core/dist/anchors.d.ts +164 -0
  258. package/node_modules/@allyhub-next/video-core/dist/anchors.js +2 -0
  259. package/node_modules/@allyhub-next/video-core/dist/audio-types.d.ts +148 -0
  260. package/node_modules/@allyhub-next/video-core/dist/audio-types.js +2 -0
  261. package/node_modules/@allyhub-next/video-core/dist/backdrop.d.ts +87 -0
  262. package/node_modules/@allyhub-next/video-core/dist/backdrop.js +2 -0
  263. package/node_modules/@allyhub-next/video-core/dist/captions.d.ts +122 -0
  264. package/node_modules/@allyhub-next/video-core/dist/captions.js +11 -0
  265. package/node_modules/@allyhub-next/video-core/dist/console.d.ts +91 -0
  266. package/node_modules/@allyhub-next/video-core/dist/console.js +2 -0
  267. package/node_modules/@allyhub-next/video-core/dist/contrast.d.ts +98 -0
  268. package/node_modules/@allyhub-next/video-core/dist/contrast.js +2 -0
  269. package/node_modules/@allyhub-next/video-core/dist/cut-report.d.ts +77 -0
  270. package/node_modules/@allyhub-next/video-core/dist/cut-report.js +2 -0
  271. package/node_modules/@allyhub-next/video-core/dist/edit.d.ts +77 -0
  272. package/node_modules/@allyhub-next/video-core/dist/edit.js +13 -0
  273. package/node_modules/@allyhub-next/video-core/dist/edits.d.ts +163 -0
  274. package/node_modules/@allyhub-next/video-core/dist/edits.js +2 -0
  275. package/node_modules/@allyhub-next/video-core/dist/export.d.ts +96 -0
  276. package/node_modules/@allyhub-next/video-core/dist/export.js +2 -0
  277. package/node_modules/@allyhub-next/video-core/dist/fact.d.ts +965 -0
  278. package/node_modules/@allyhub-next/video-core/dist/fact.js +2 -0
  279. package/node_modules/@allyhub-next/video-core/dist/footage-motion.d.ts +168 -0
  280. package/node_modules/@allyhub-next/video-core/dist/footage-motion.js +2 -0
  281. package/node_modules/@allyhub-next/video-core/dist/formats.d.ts +240 -0
  282. package/node_modules/@allyhub-next/video-core/dist/formats.js +2 -0
  283. package/node_modules/@allyhub-next/video-core/dist/gen.d.ts +37 -0
  284. package/node_modules/@allyhub-next/video-core/dist/gen.js +2 -0
  285. package/node_modules/@allyhub-next/video-core/dist/index.d.ts +40 -0
  286. package/node_modules/@allyhub-next/video-core/dist/index.js +2 -0
  287. package/node_modules/@allyhub-next/video-core/dist/look.d.ts +66 -0
  288. package/node_modules/@allyhub-next/video-core/dist/look.js +2 -0
  289. package/node_modules/@allyhub-next/video-core/dist/marks.d.ts +34 -0
  290. package/node_modules/@allyhub-next/video-core/dist/marks.js +2 -0
  291. package/node_modules/@allyhub-next/video-core/dist/matrix.d.ts +289 -0
  292. package/node_modules/@allyhub-next/video-core/dist/matrix.js +2 -0
  293. package/node_modules/@allyhub-next/video-core/dist/measure.d.ts +465 -0
  294. package/node_modules/@allyhub-next/video-core/dist/measure.js +5 -0
  295. package/node_modules/@allyhub-next/video-core/dist/media.d.ts +226 -0
  296. package/node_modules/@allyhub-next/video-core/dist/media.js +2 -0
  297. package/node_modules/@allyhub-next/video-core/dist/messages.d.ts +88 -0
  298. package/node_modules/@allyhub-next/video-core/dist/messages.js +2 -0
  299. package/node_modules/@allyhub-next/video-core/dist/motion.d.ts +56 -0
  300. package/node_modules/@allyhub-next/video-core/dist/motion.js +2 -0
  301. package/node_modules/@allyhub-next/video-core/dist/music.d.ts +110 -0
  302. package/node_modules/@allyhub-next/video-core/dist/music.js +2 -0
  303. package/node_modules/@allyhub-next/video-core/dist/piece.d.ts +1146 -0
  304. package/node_modules/@allyhub-next/video-core/dist/piece.js +2 -0
  305. package/node_modules/@allyhub-next/video-core/dist/placement.d.ts +37 -0
  306. package/node_modules/@allyhub-next/video-core/dist/placement.js +2 -0
  307. package/node_modules/@allyhub-next/video-core/dist/problem.d.ts +262 -0
  308. package/node_modules/@allyhub-next/video-core/dist/problem.js +2 -0
  309. package/node_modules/@allyhub-next/video-core/dist/render-types.d.ts +49 -0
  310. package/node_modules/@allyhub-next/video-core/dist/render-types.js +2 -0
  311. package/node_modules/@allyhub-next/video-core/dist/schema.d.ts +352 -0
  312. package/node_modules/@allyhub-next/video-core/dist/schema.js +2 -0
  313. package/node_modules/@allyhub-next/video-core/dist/script-edit.d.ts +176 -0
  314. package/node_modules/@allyhub-next/video-core/dist/script-edit.js +2 -0
  315. package/node_modules/@allyhub-next/video-core/dist/script.d.ts +67 -0
  316. package/node_modules/@allyhub-next/video-core/dist/script.js +2 -0
  317. package/node_modules/@allyhub-next/video-core/dist/seams.d.ts +214 -0
  318. package/node_modules/@allyhub-next/video-core/dist/seams.js +2 -0
  319. package/node_modules/@allyhub-next/video-core/dist/slides.d.ts +37 -0
  320. package/node_modules/@allyhub-next/video-core/dist/slides.js +2 -0
  321. package/node_modules/@allyhub-next/video-core/dist/sound-under.d.ts +72 -0
  322. package/node_modules/@allyhub-next/video-core/dist/sound-under.js +2 -0
  323. package/node_modules/@allyhub-next/video-core/dist/speech.d.ts +83 -0
  324. package/node_modules/@allyhub-next/video-core/dist/speech.js +5 -0
  325. package/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +616 -0
  326. package/node_modules/@allyhub-next/video-core/dist/timeline.js +2 -0
  327. package/node_modules/@allyhub-next/video-core/dist/timing.d.ts +88 -0
  328. package/node_modules/@allyhub-next/video-core/dist/timing.js +2 -0
  329. package/node_modules/@allyhub-next/video-core/dist/transcript.d.ts +288 -0
  330. package/node_modules/@allyhub-next/video-core/dist/transcript.js +2 -0
  331. package/node_modules/@allyhub-next/video-core/dist/transition.d.ts +289 -0
  332. package/node_modules/@allyhub-next/video-core/dist/transition.js +2 -0
  333. package/node_modules/@allyhub-next/video-core/dist/voice.d.ts +175 -0
  334. package/node_modules/@allyhub-next/video-core/dist/voice.js +2 -0
  335. package/node_modules/@allyhub-next/video-core/dist/words.d.ts +128 -0
  336. package/node_modules/@allyhub-next/video-core/dist/words.js +2 -0
  337. package/node_modules/@allyhub-next/video-core/package.json +14 -0
  338. package/package.json +52 -41
  339. package/README.md +0 -17
  340. package/dist/anim.d.ts.map +0 -1
  341. package/dist/anim.js.map +0 -1
  342. package/dist/define.d.ts.map +0 -1
  343. package/dist/define.js.map +0 -1
  344. package/dist/dom.d.ts.map +0 -1
  345. package/dist/dom.js.map +0 -1
  346. package/dist/fit.d.ts.map +0 -1
  347. package/dist/fit.js.map +0 -1
  348. package/dist/index.d.ts.map +0 -1
  349. package/dist/index.js.map +0 -1
  350. package/dist/media.d.ts.map +0 -1
  351. package/dist/media.js.map +0 -1
  352. package/dist/messages.d.ts.map +0 -1
  353. package/dist/messages.js.map +0 -1
  354. package/dist/noise.d.ts.map +0 -1
  355. package/dist/noise.js.map +0 -1
  356. package/dist/parts.d.ts.map +0 -1
  357. package/dist/parts.js.map +0 -1
  358. package/dist/paths.d.ts.map +0 -1
  359. package/dist/paths.js.map +0 -1
  360. package/dist/piece.d.ts.map +0 -1
  361. package/dist/piece.js.map +0 -1
  362. package/dist/props.d.ts.map +0 -1
  363. package/dist/props.js.map +0 -1
  364. package/dist/text.d.ts.map +0 -1
  365. package/dist/text.js.map +0 -1
@@ -0,0 +1,677 @@
1
+ import { type CameraState } from "./camera.js";
2
+ import type { FieldOfView, LensFrame } from "./lens.js";
3
+ import type { Vec3 } from "./vec.js";
4
+ /** A box along the world axes. */
5
+ export interface AxisBox {
6
+ min: Vec3;
7
+ max: Vec3;
8
+ size: Vec3;
9
+ center: Vec3;
10
+ }
11
+ /** A box along an object's own axes: its geometry's bounds under its matrixWorld. */
12
+ export interface OwnBox {
13
+ center: Vec3;
14
+ /** Along its own x, y and z, m. */
15
+ size: Vec3;
16
+ /** Its own x, y and z in world space, unit. */
17
+ axes: readonly [Vec3, Vec3, Vec3];
18
+ }
19
+ /** The smallest rectangle round an object seen from above, with its height. */
20
+ export interface UprightBox {
21
+ center: Vec3;
22
+ /** Its longer side on the floor, m. */
23
+ length: number;
24
+ /** Its shorter side on the floor, m. */
25
+ width: number;
26
+ /** From its lowest point to its highest, m. */
27
+ height: number;
28
+ /** Degrees about +Y from +X to its longer side, in [0, 180). */
29
+ angle: number;
30
+ /** Its corners on the floor at its lowest height, x and z. */
31
+ footprint: readonly (readonly [number, number])[];
32
+ /** Its lowest and highest y. */
33
+ bottom: number;
34
+ top: number;
35
+ }
36
+ /** One object of a scenery, as `allyhub scenery` prints it. */
37
+ export interface SceneryObject {
38
+ /** Names from the scene down, an unnamed one as Type[index among its siblings]. */
39
+ path: string;
40
+ /** Its own name; "" for none. */
41
+ name: string;
42
+ /** three.js's type: Mesh, Group, InstancedMesh… */
43
+ type: string;
44
+ depth: number;
45
+ /** Visible itself and through every parent. */
46
+ visible: boolean;
47
+ /** Its origin in world space. */
48
+ position: Vec3;
49
+ /** Its own +Z in world space (a glTF model's front), unit. */
50
+ front: Vec3;
51
+ /** Triangles drawn for it and everything under it. */
52
+ triangles: number;
53
+ /** Meshes in it and under it. */
54
+ meshes: number;
55
+ /** Its own materials' names, or types where unnamed. */
56
+ materials: string[];
57
+ /** Boxes of it and everything under it, from the vertices as posed; none without geometry. */
58
+ box?: AxisBox;
59
+ own?: OwnBox;
60
+ upright?: UprightBox;
61
+ }
62
+ export interface SceneryLight {
63
+ path: string;
64
+ name: string;
65
+ type: string;
66
+ position: Vec3;
67
+ /** Where a directional or spot light points, when it has a target. */
68
+ target?: Vec3;
69
+ /** Its colour as #rrggbb. */
70
+ color: string;
71
+ /** three.js's intensity: candela for point and spot lights, lux for directional. */
72
+ intensity: number;
73
+ castShadow: boolean;
74
+ /** Shadow map size, when it casts shadows. */
75
+ shadowMap?: number;
76
+ distance?: number;
77
+ /** A spot's cone, degrees. */
78
+ angle?: number;
79
+ }
80
+ export interface SceneryInventory {
81
+ /** Scenery time it was posed at, s. */
82
+ t: number;
83
+ objects: SceneryObject[];
84
+ lights: SceneryLight[];
85
+ /** The scenery's named cameras and moves. */
86
+ cameras: Record<string, CameraState>;
87
+ moves: string[];
88
+ totals: {
89
+ objects: number;
90
+ meshes: number;
91
+ triangles: number;
92
+ drawCalls: number;
93
+ textures: number;
94
+ /** Bytes the textures take with their mipmaps, an estimate from their sizes. */
95
+ textureBytes: number;
96
+ /** One frame drawn at the size asked, ms, from a camera at (0, 1.6, 5); the first draw at that size makes what later frames reuse and is not counted. */
97
+ frameMs: number;
98
+ frameSize: readonly [number, number];
99
+ /**
100
+ * Objects with a transmissive material (transmission, diffuse
101
+ * transmission), for which three.js draws the scene once more at the
102
+ * frame's size, and the same frame drawn without them, ms.
103
+ */
104
+ transmission?: {
105
+ objects: string[];
106
+ withoutMs: number;
107
+ };
108
+ };
109
+ /** Objects with no name of their own. */
110
+ unnamed: number;
111
+ /** Names given to more than one object, with how many. */
112
+ repeated: Record<string, number>;
113
+ /** What draws: the WebGL renderer string, three.js's revision, the renderer kind. */
114
+ renderer: {
115
+ gl: string;
116
+ three: string;
117
+ kind: "webgl" | "webgpu";
118
+ };
119
+ }
120
+ /** A camera as it was drawn: its state resolved for the frame. */
121
+ export interface DrawnCamera {
122
+ position: Vec3;
123
+ /** The point it looked at, when it had a target. */
124
+ target?: Vec3;
125
+ /** Its target's name, when it was given one. */
126
+ targetName?: string;
127
+ forward: Vec3;
128
+ up: Vec3;
129
+ fov: FieldOfView;
130
+ /** The lens in the diagonal convention, mm. */
131
+ lens: number;
132
+ lensFrame?: LensFrame;
133
+ yaw: number;
134
+ pitch: number;
135
+ roll: number;
136
+ near: number;
137
+ far: number;
138
+ /** With an aperture: its f-number, the focus's distance along the view (m) and the lens they go with (mm). */
139
+ dof?: {
140
+ aperture: number;
141
+ focus: number;
142
+ lens: number;
143
+ };
144
+ /** With an exposure: its EV at ISO 100. */
145
+ ev?: number;
146
+ }
147
+ /** Where a camera comes from in a view request. */
148
+ export type CameraSource = {
149
+ state: CameraState;
150
+ } | {
151
+ name: string;
152
+ } | {
153
+ move: string;
154
+ } | {
155
+ around: string;
156
+ side: Side;
157
+ lens?: number;
158
+ fill?: number;
159
+ };
160
+ /** The named directions of `--around`, looking at an object. */
161
+ export type Side = "front" | "back" | "left" | "right" | "top" | "three-quarter";
162
+ /** A camera that frames an object from one of its sides: its lens, and how far toward the frame's edges the object reaches (0–1). */
163
+ export declare const AROUND_DEFAULTS: {
164
+ lens: number;
165
+ fill: number;
166
+ };
167
+ export declare const SIDES: readonly Side[];
168
+ export interface ViewTile {
169
+ camera: CameraSource;
170
+ /** Scenery time, s. */
171
+ t: number;
172
+ /** What the caption calls it, before its numbers. */
173
+ label?: string;
174
+ }
175
+ export interface ViewRequest {
176
+ /** Seconds of scenery time for the word and anchor references moves are timed by ("@turn": 3.2). */
177
+ times?: Readonly<Record<string, number>>;
178
+ tiles: ViewTile[];
179
+ /** Each tile's picture, px. */
180
+ width: number;
181
+ height: number;
182
+ /** Tiles per row; default as square a sheet as fits. */
183
+ columns?: number;
184
+ /** Names, boxes, the floor grid and axes over each picture. */
185
+ overlay?: boolean;
186
+ /**
187
+ * Which named objects the overlay labels: "top" (default), those with no
188
+ * named object above them (what the scenery's code named; a model's own
189
+ * part names stay inside), or "all".
190
+ */
191
+ labels?: "top" | "all";
192
+ /** Objects not drawn, by name. */
193
+ hide?: string[];
194
+ /** The only objects drawn, by name (with what is under them). */
195
+ only?: string[];
196
+ /** A colour, or null for transparent; default the scenery's own background. */
197
+ background?: string | null;
198
+ /** How the sheet is encoded: a PNG (default), or a WebP to look at. */
199
+ picture?: "png" | "webp";
200
+ }
201
+ /** A named object's share of a picture, from the ID passes. */
202
+ export interface Seen {
203
+ name: string;
204
+ path: string;
205
+ /** Pixels it shows, and the share of the frame. */
206
+ pixels: number;
207
+ share: number;
208
+ /** Share of it hidden by other objects (0–1): pixels it would show alone, less those it shows. */
209
+ hidden: number;
210
+ /** What hides it, each as a share of the pixels it would show alone. */
211
+ by?: {
212
+ name: string;
213
+ path: string;
214
+ share: number;
215
+ }[];
216
+ /** Share of it the frame's edges cut (0–1), measured with a frame twice as wide and high. */
217
+ cut?: number;
218
+ /** From the camera to its nearest surface, m. */
219
+ distance?: number;
220
+ /** The centre of its visible pixels, px from the top left. */
221
+ centroid?: readonly [number, number];
222
+ /** The box round its visible pixels, px: left, top, right, bottom. */
223
+ box?: readonly [number, number, number, number];
224
+ }
225
+ export interface ViewTileResult {
226
+ t: number;
227
+ label: string;
228
+ camera: DrawnCamera;
229
+ /** The named objects it shows, with --overlay. */
230
+ seen?: Seen[];
231
+ }
232
+ export interface ViewResult {
233
+ /** The sheet as a data URL: a PNG, or a WebP when the request asked (`picture`). */
234
+ png: string;
235
+ width: number;
236
+ height: number;
237
+ columns: number;
238
+ tiles: ViewTileResult[];
239
+ }
240
+ export type MapView = "top" | "front" | "side";
241
+ export declare const MAP_VIEWS: readonly MapView[];
242
+ /** A map's grid spacing, m, and a mark on each move every so many seconds (`allyhub scenery map`). */
243
+ export declare const MAP_DEFAULTS: {
244
+ readonly grid: 0.5;
245
+ readonly tick: 1;
246
+ };
247
+ /** A point of the scenery by name: an object's box centre, or a place on a screen's face. */
248
+ export type PointRef = {
249
+ object: string;
250
+ }
251
+ /** `at`: shares of the screen's content from its top left, [0, 0] to [1, 1]. */
252
+ | {
253
+ screen: string;
254
+ at: readonly [number, number];
255
+ };
256
+ /** Where named points are at a moment of scenery time. */
257
+ export interface PointsRequest {
258
+ t: number;
259
+ refs: PointRef[];
260
+ /** Seconds of scenery time for the references the scenery's update is timed by ("@turn": 3.2). */
261
+ times?: Readonly<Record<string, number>>;
262
+ }
263
+ export interface MapRequest {
264
+ /** Seconds of scenery time for the word and anchor references moves are timed by ("@turn": 3.2). */
265
+ times?: Readonly<Record<string, number>>;
266
+ views: MapView[];
267
+ /** Scenery time the scenery is posed at, s. */
268
+ t: number;
269
+ /** The frame the cameras drawn are aimed for, width over height; default 9/16. */
270
+ aspect?: number;
271
+ /** The stretch of scenery time the moves are drawn over, s. */
272
+ from: number;
273
+ to: number;
274
+ /** The longer side of each view, px. */
275
+ size: number;
276
+ /** Grid spacing, m. */
277
+ grid: number;
278
+ /** Moves to draw, by name, with a tick every `tick` s. */
279
+ moves: string[];
280
+ tick: number;
281
+ /** Extra cameras to draw (a camera given on the command line). */
282
+ cameras?: Record<string, CameraState>;
283
+ hide?: string[];
284
+ only?: string[];
285
+ /** How each view is encoded: a PNG (default), or a WebP to look at. */
286
+ picture?: "png" | "webp";
287
+ /** Also each named object inside a model or group (default: those with no named object above them). */
288
+ nested?: boolean;
289
+ }
290
+ /** An object's place on the floor, as the map's JSON gives it. */
291
+ export interface Footprint {
292
+ name: string;
293
+ path: string;
294
+ /** The upright rectangle's corners, x and z, m. */
295
+ corners: readonly (readonly [number, number])[];
296
+ bottom: number;
297
+ top: number;
298
+ /** Yaw of its own +Z, degrees: 0 faces +Z, 90 faces +X. */
299
+ facing: number;
300
+ }
301
+ export interface MapPath {
302
+ name: string;
303
+ points: {
304
+ t: number;
305
+ position: Vec3;
306
+ }[];
307
+ }
308
+ export interface MapViewResult {
309
+ view: MapView;
310
+ /** The view as a data URL: a PNG, or a WebP when the request asked (`picture`). */
311
+ png: string;
312
+ width: number;
313
+ height: number;
314
+ /** Pixels per metre. */
315
+ scale: number;
316
+ /** The world box the view covers, m. */
317
+ bounds: AxisBox;
318
+ }
319
+ export interface MapResult {
320
+ views: MapViewResult[];
321
+ footprints: Footprint[];
322
+ paths: MapPath[];
323
+ /** Moves that could not be drawn, and why (one timed by references, with no --times). */
324
+ left?: {
325
+ move: string;
326
+ why: string;
327
+ }[];
328
+ }
329
+ /** Whether an object's surface is closed, and what is wrong with it. */
330
+ export interface MeshHealth {
331
+ path: string;
332
+ name: string;
333
+ triangles: number;
334
+ /** No open and no non-manifold edges. */
335
+ closed: boolean;
336
+ /**
337
+ * A closed surface's volume, m³, signed by which way its faces turn:
338
+ * over 0 a solid (inside it means something), under 0 its faces turn
339
+ * in, as a room's walls do (it encloses space, it is not a solid).
340
+ */
341
+ volume?: number;
342
+ /** Edges of one triangle. */
343
+ openEdges: number;
344
+ /** Edges of more than two triangles. */
345
+ nonManifoldEdges: number;
346
+ /** Triangles with no area. */
347
+ degenerate: number;
348
+ /** Pairs of its triangles that cross without sharing a vertex; null above the limit, not counted. */
349
+ selfIntersections: number | null;
350
+ /** The count stopped at its limit: there are at least that many. */
351
+ selfIntersectionsAtLeast?: boolean;
352
+ }
353
+ /** Two objects against each other. */
354
+ export interface Contact {
355
+ a: string;
356
+ b: string;
357
+ /** Their surfaces cut each other. */
358
+ crossing: boolean;
359
+ /** Not crossing, and within the tolerance (faces in one plane, or a gap under it). */
360
+ touching: boolean;
361
+ /** Not crossing: the closest distance between their surfaces, m. */
362
+ gap?: number;
363
+ /** Faces in one plane within the tolerance: the area they share, m². */
364
+ area?: number;
365
+ /** Where they cross: the curve's length (m), its segments and its box. */
366
+ curve?: {
367
+ length: number;
368
+ segments: number;
369
+ min: Vec3;
370
+ max: Vec3;
371
+ };
372
+ /** One is inside the other without their surfaces crossing. */
373
+ within?: "a in b" | "b in a";
374
+ /** How deep, a lower bound: the deepest sample of each inside the other, m. */
375
+ depth?: {
376
+ aInB?: number;
377
+ aInBMissing?: string;
378
+ bInA?: number;
379
+ bInAMissing?: string;
380
+ /** Surface samples per object (their vertices besides). */
381
+ samples: number;
382
+ };
383
+ /**
384
+ * The least move of a along `direction` after which they neither cross
385
+ * nor hold one another, and the least move of b along it, m: of a laptop
386
+ * set on a desk, moving the laptop up clears them at once, the desk only
387
+ * once it is past the laptop.
388
+ */
389
+ lift?: {
390
+ direction: Vec3;
391
+ a: number;
392
+ b: number;
393
+ };
394
+ /** The volume both fill, m³; only where both are closed. */
395
+ volume?: number;
396
+ volumeMissing?: string;
397
+ /** The pair could not be measured, and why (crossing and touching are then unknown, given as false). */
398
+ missing?: string;
399
+ }
400
+ /** What an object rests on, by columns over its upright footprint. */
401
+ export interface Support {
402
+ path: string;
403
+ name: string;
404
+ /** Its lowest y. */
405
+ bottom: number;
406
+ /** Grid columns across its footprint that met its surface. */
407
+ columns: number;
408
+ /** Columns at its lowest points (legs, a base), besides the grid. */
409
+ feet?: number;
410
+ /** What is below, nearest first: the columns over it, their share, the least gap. */
411
+ on: {
412
+ path: string;
413
+ name: string;
414
+ columns: number;
415
+ share: number;
416
+ gap: number;
417
+ }[];
418
+ /** The least gap below any column, m; negative when sunk; null with nothing below. */
419
+ gap: number | null;
420
+ /** The deepest it is sunk into what holds it, m. */
421
+ sunk: number;
422
+ /** Share of its columns within the tolerance of what is below. */
423
+ footprintShare: number;
424
+ /** The largest angle between its faces and those below where they touch, degrees. */
425
+ angle?: number;
426
+ /** The area in contact, m²: the columns in contact as shares of its footprint's rectangle. */
427
+ contactArea?: number;
428
+ /** How far its centre of mass, seen from above, is inside the hull of the contact columns, m (negative outside). */
429
+ margin?: number;
430
+ /** Columns with nothing below. */
431
+ nothingBelow: number;
432
+ }
433
+ export interface Sight {
434
+ a: string;
435
+ b: string;
436
+ rays: number;
437
+ /** Share of rays between them that nothing else stops. */
438
+ clear: number;
439
+ blockedBy: {
440
+ path: string;
441
+ share: number;
442
+ }[];
443
+ }
444
+ export interface ClearAhead {
445
+ path: string;
446
+ /** Its own +Z, the way the rays run. */
447
+ front: Vec3;
448
+ rays: number;
449
+ /** Rays that met nothing within `far` m. */
450
+ open: number;
451
+ far: number;
452
+ least?: number;
453
+ median?: number;
454
+ most?: number;
455
+ }
456
+ export interface FreeFloor {
457
+ floor: string;
458
+ radius: number;
459
+ height: number;
460
+ cell: number;
461
+ /** The floor's top in cells, m². */
462
+ floorArea: number;
463
+ /** Its upright rectangle's area, m². */
464
+ floorRect?: number;
465
+ /** Cells a radius from anything standing on it, m². */
466
+ freeArea: number;
467
+ /** Of those, the area connected to `from` (or the largest connected area), m². */
468
+ connected: number;
469
+ from?: string;
470
+ /** Whether each object can be reached from there: a connected cell within the radius of its box. */
471
+ reach: {
472
+ path: string;
473
+ reached: boolean;
474
+ }[];
475
+ }
476
+ /** What `allyhub scenery measure` measures with. */
477
+ export declare const MEASURE_DEFAULTS: {
478
+ /** Pairs closer than this are measured, m. */
479
+ near: number;
480
+ /** What counts as touching, m. */
481
+ tolerance: number;
482
+ /** Surface samples per object for how deep one is in another. */
483
+ samples: number;
484
+ /** Support columns along each side of a footprint. */
485
+ grid: number;
486
+ /** The direction a lift to clear moves either object of a pair. */
487
+ lift: Vec3;
488
+ /** Measure the volume crossing pairs share where both are closed. */
489
+ volume: boolean;
490
+ };
491
+ /** The free floor: its cells so far from anything standing (m), what stands lower than `height` (m) taking the floor under it, the cells' side (m). */
492
+ export declare const FLOOR_DEFAULTS: {
493
+ readonly radius: 0.3;
494
+ readonly height: 1.8;
495
+ readonly cell: 0.05;
496
+ };
497
+ /** Samples a second a camera's motion is measured at. */
498
+ export declare const MOTION_DEFAULTS: {
499
+ readonly fps: 30;
500
+ };
501
+ /** The frame a scenery's inventory measures one frame's drawing time at, px. */
502
+ export declare const INVENTORY_FRAME: readonly [number, number];
503
+ export interface MeasureRequest {
504
+ t: number;
505
+ /** Seconds of scenery time for the references the scenery's update is timed by ("@turn": 3.2). */
506
+ times?: Readonly<Record<string, number>>;
507
+ /** The named objects measured; default every named object. */
508
+ objects?: string[];
509
+ /** Also each named object inside a model or group (default: only those with no named object above them, each counted once with all it holds). */
510
+ nested?: boolean;
511
+ near: number;
512
+ tolerance: number;
513
+ samples: number;
514
+ /** Every pair, not only those closer than `near`. */
515
+ all: boolean;
516
+ /** The direction a lift to clear moves either object of a pair; default up. */
517
+ lift?: Vec3;
518
+ /** Measure this pair whatever the distance. */
519
+ between?: [string, string];
520
+ /** Columns across each side of a footprint, for support. */
521
+ grid: number;
522
+ volume: boolean;
523
+ sight?: [string, string];
524
+ clear?: string;
525
+ floor?: {
526
+ name: string;
527
+ radius: number;
528
+ height: number;
529
+ cell: number;
530
+ from?: string;
531
+ };
532
+ }
533
+ export interface MeasureResult {
534
+ t: number;
535
+ /** The objects measured, by path. */
536
+ objects: string[];
537
+ health: MeshHealth[];
538
+ contacts: Contact[];
539
+ support: Support[];
540
+ sight?: Sight;
541
+ clear?: ClearAhead;
542
+ floor?: FreeFloor;
543
+ }
544
+ /** The camera itself at a moment: what it is inside, how near a surface, what the near plane cuts. */
545
+ export interface CameraClearance {
546
+ /** Closed objects it is inside, and open ones where a vote says inside (marked). */
547
+ inside: {
548
+ path: string;
549
+ closed: boolean;
550
+ }[];
551
+ /** The nearest surface and how far, m. */
552
+ nearest?: {
553
+ path: string;
554
+ distance: number;
555
+ };
556
+ /** Objects whose surface crosses the near plane inside the frame. */
557
+ nearCut: string[];
558
+ }
559
+ /** A drawn picture's levels. */
560
+ export interface Levels {
561
+ /** Mean luminance, 0–1. */
562
+ mean: number;
563
+ /** Shares of pixels at 0 and at 255 on any channel. */
564
+ black: number;
565
+ white: number;
566
+ /** Luminance in 16 bins, shares. */
567
+ histogram: number[];
568
+ }
569
+ export interface SeeRequest {
570
+ /** Seconds of scenery time for the word and anchor references moves are timed by ("@turn": 3.2). */
571
+ times?: Readonly<Record<string, number>>;
572
+ tiles: ViewTile[];
573
+ width: number;
574
+ height: number;
575
+ hide?: string[];
576
+ only?: string[];
577
+ /** A pixel to ask what is under, px from the top left. */
578
+ pick?: readonly [number, number];
579
+ }
580
+ export interface SeeTile {
581
+ t: number;
582
+ label: string;
583
+ camera: DrawnCamera;
584
+ objects: Seen[];
585
+ clearance: CameraClearance;
586
+ levels: Levels;
587
+ pick?: {
588
+ x: number;
589
+ y: number;
590
+ path?: string;
591
+ name?: string;
592
+ point?: Vec3;
593
+ distance?: number;
594
+ };
595
+ }
596
+ export interface SeeResult {
597
+ width: number;
598
+ height: number;
599
+ tiles: SeeTile[];
600
+ }
601
+ /** One motion channel over a move: its largest magnitude and when, and its mean magnitude. */
602
+ export interface Channel {
603
+ peak: number;
604
+ at: number;
605
+ mean: number;
606
+ }
607
+ export interface MotionRequest {
608
+ /** Seconds of scenery time for the word and anchor references moves are timed by ("@turn": 3.2). */
609
+ times?: Readonly<Record<string, number>>;
610
+ camera: CameraSource;
611
+ from: number;
612
+ to: number;
613
+ /** Samples per second. */
614
+ fps: number;
615
+ width: number;
616
+ height: number;
617
+ /** Named objects whose place on the frame is followed; default every named object in view. */
618
+ objects?: string[];
619
+ }
620
+ export interface Motion {
621
+ from: number;
622
+ to: number;
623
+ fps: number;
624
+ samples: number;
625
+ /** The camera's path, m. */
626
+ length: number;
627
+ /** In the camera's own frame (CameraBench's names: channels, not labels). */
628
+ truck: Channel;
629
+ pedestal: Channel;
630
+ dolly: Channel;
631
+ /** Degrees per second. */
632
+ pan: Channel;
633
+ tilt: Channel;
634
+ roll: Channel;
635
+ /** Stops per second: log2 of the lens's change. */
636
+ zoom: Channel;
637
+ /** Degrees per second about its target, when it has one. */
638
+ arc?: Channel;
639
+ speed: Channel;
640
+ /** How fast its view turns, degrees per second. */
641
+ turn: Channel;
642
+ acceleration: Channel;
643
+ jerk: Channel;
644
+ /** Log dimensionless jerk (more negative: less smooth); null when it does not move. */
645
+ smoothness: number | null;
646
+ /** The largest step between samples: in place (m) and in view (degrees), and when. */
647
+ step: {
648
+ distance: number;
649
+ angle: number;
650
+ at: number;
651
+ };
652
+ /** The least distance to any surface over the move, m, and when. */
653
+ clearance?: {
654
+ distance: number;
655
+ path: string;
656
+ at: number;
657
+ };
658
+ /** Each followed object's speed on the frame (px per sample) and how fast its size on the frame changes (share per second). */
659
+ objects: {
660
+ path: string;
661
+ screen: Channel;
662
+ growth: Channel;
663
+ inView: number;
664
+ }[];
665
+ /** The camera's cuts (shots()): what is measured stops at each. */
666
+ cuts?: number[];
667
+ }
668
+ /**
669
+ * The objects with no named object above them, in the inventory's order
670
+ * (depth first): what the agent placed, each model and group once, not
671
+ * the parts a model was made of.
672
+ */
673
+ export declare function topObjects<T extends {
674
+ name: string;
675
+ depth: number;
676
+ }>(objects: readonly T[]): T[];
677
+ //# sourceMappingURL=report.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{CAMERA_DEFAULTS as n}from"./camera.js";export const AROUND_DEFAULTS={lens:n.lens,fill:.9},SIDES=["front","back","left","right","top","three-quarter"],MAP_VIEWS=["top","front","side"],MAP_DEFAULTS={grid:.5,tick:1},MEASURE_DEFAULTS={near:.05,tolerance:.001,samples:2e3,grid:7,lift:[0,1,0],volume:!0},FLOOR_DEFAULTS={radius:.3,height:1.8,cell:.05},MOTION_DEFAULTS={fps:30},INVENTORY_FRAME=[1080,1920];export function topObjects(r){const e=[],o=[];for(const t of r)o.length=t.depth,o.some(Boolean)||e.push(t),o[t.depth]=t.name!=="";return e}