@automovie/viewer 0.3.3 → 0.4.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 (387) hide show
  1. package/README.md +8 -87
  2. package/lib/IAutoMovieViewerCompletedFrame.d.ts +19 -11
  3. package/lib/IAutoMovieViewerDisplayMetadata.d.ts +0 -5
  4. package/lib/IAutoMovieViewerHandle.d.ts +3 -25
  5. package/lib/IMountViewerOptions.d.ts +24 -38
  6. package/lib/IViewerCameraStateSnapshot.d.ts +0 -5
  7. package/lib/IViewerFrameTransfer.d.ts +11 -0
  8. package/lib/IViewerFrameTransfer.js +3 -0
  9. package/lib/IViewerFrameTransfer.js.map +1 -0
  10. package/lib/IViewerFrameTransfer.mjs +0 -0
  11. package/lib/applyCaptureCanvasSize.d.ts +9 -10
  12. package/lib/applyCaptureCanvasSize.js +7 -13
  13. package/lib/applyCaptureCanvasSize.js.map +1 -1
  14. package/lib/applyCaptureCanvasSize.mjs +7 -10
  15. package/lib/applyCaptureCanvasSize.mjs.map +1 -1
  16. package/lib/audio/IAutoMovieAudioCue.d.ts +3 -8
  17. package/lib/audio/planAutoMovieAudioPlayback.d.ts +8 -21
  18. package/lib/audio/planAutoMovieAudioPlayback.js +8 -14
  19. package/lib/audio/planAutoMovieAudioPlayback.js.map +1 -1
  20. package/lib/audio/planAutoMovieAudioPlayback.mjs +8 -14
  21. package/lib/audio/planAutoMovieAudioPlayback.mjs.map +1 -1
  22. package/lib/audio/playAutoMovieAudioCues.d.ts +4 -11
  23. package/lib/audio/playAutoMovieAudioCues.js +4 -11
  24. package/lib/audio/playAutoMovieAudioCues.js.map +1 -1
  25. package/lib/audio/playAutoMovieAudioCues.mjs +4 -11
  26. package/lib/audio/playAutoMovieAudioCues.mjs.map +1 -1
  27. package/lib/createViewerCameraState.d.ts +3 -11
  28. package/lib/createViewerCameraState.js +80 -121
  29. package/lib/createViewerCameraState.js.map +1 -1
  30. package/lib/createViewerCameraState.mjs +46 -98
  31. package/lib/createViewerCameraState.mjs.map +1 -1
  32. package/lib/createViewerDisplayClock.d.ts +2 -10
  33. package/lib/createViewerDisplayClock.js +4 -12
  34. package/lib/createViewerDisplayClock.js.map +1 -1
  35. package/lib/createViewerDisplayClock.mjs +3 -11
  36. package/lib/createViewerDisplayClock.mjs.map +1 -1
  37. package/lib/createViewerDisplayPublication.d.ts +7 -15
  38. package/lib/createViewerDisplayPublication.js +7 -15
  39. package/lib/createViewerDisplayPublication.js.map +1 -1
  40. package/lib/createViewerDisplayPublication.mjs +7 -15
  41. package/lib/createViewerDisplayPublication.mjs.map +1 -1
  42. package/lib/createViewerDisplaySave.d.ts +8 -16
  43. package/lib/createViewerDisplaySave.js +8 -16
  44. package/lib/createViewerDisplaySave.js.map +1 -1
  45. package/lib/createViewerDisplaySave.mjs +8 -16
  46. package/lib/createViewerDisplaySave.mjs.map +1 -1
  47. package/lib/createViewerFrameControl.d.ts +8 -10
  48. package/lib/createViewerFrameControl.js +3 -15
  49. package/lib/createViewerFrameControl.js.map +1 -1
  50. package/lib/createViewerFrameControl.mjs +3 -12
  51. package/lib/createViewerFrameControl.mjs.map +1 -1
  52. package/lib/createViewerViewportResize.d.ts +4 -12
  53. package/lib/createViewerViewportResize.js +7 -20
  54. package/lib/createViewerViewportResize.js.map +1 -1
  55. package/lib/createViewerViewportResize.mjs +6 -14
  56. package/lib/createViewerViewportResize.mjs.map +1 -1
  57. package/lib/index.d.ts +1 -0
  58. package/lib/index.js +1 -0
  59. package/lib/index.js.map +1 -1
  60. package/lib/index.mjs +6 -1
  61. package/lib/inspector/AutoMovieInspector.d.ts +33 -13
  62. package/lib/inspector/AutoMovieInspector.js +110 -19
  63. package/lib/inspector/AutoMovieInspector.js.map +1 -1
  64. package/lib/inspector/AutoMovieInspector.mjs +121 -18
  65. package/lib/inspector/AutoMovieInspector.mjs.map +1 -1
  66. package/lib/inspector/AutoMovieInspectorBeauty.d.ts +41 -0
  67. package/lib/inspector/AutoMovieInspectorBeauty.js +56 -0
  68. package/lib/inspector/AutoMovieInspectorBeauty.js.map +1 -0
  69. package/lib/inspector/AutoMovieInspectorBeauty.mjs +55 -0
  70. package/lib/inspector/AutoMovieInspectorBeauty.mjs.map +1 -0
  71. package/lib/inspector/AutoMovieInspectorDiagnosticLog.d.ts +48 -0
  72. package/lib/inspector/AutoMovieInspectorDiagnosticLog.js +186 -0
  73. package/lib/inspector/AutoMovieInspectorDiagnosticLog.js.map +1 -0
  74. package/lib/inspector/AutoMovieInspectorDiagnosticLog.mjs +171 -0
  75. package/lib/inspector/AutoMovieInspectorDiagnosticLog.mjs.map +1 -0
  76. package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.d.ts +23 -0
  77. package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.js +37 -0
  78. package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.js.map +1 -0
  79. package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.mjs +85 -0
  80. package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.mjs.map +1 -0
  81. package/lib/inspector/AutoMovieInspectorMarksPanel.d.ts +4 -10
  82. package/lib/inspector/AutoMovieInspectorMarksPanel.js +18 -35
  83. package/lib/inspector/AutoMovieInspectorMarksPanel.js.map +1 -1
  84. package/lib/inspector/AutoMovieInspectorMarksPanel.mjs +32 -38
  85. package/lib/inspector/AutoMovieInspectorMarksPanel.mjs.map +1 -1
  86. package/lib/inspector/AutoMovieInspectorPlayhead.d.ts +35 -96
  87. package/lib/inspector/AutoMovieInspectorPlayhead.js +41 -101
  88. package/lib/inspector/AutoMovieInspectorPlayhead.js.map +1 -1
  89. package/lib/inspector/AutoMovieInspectorPlayhead.mjs +44 -98
  90. package/lib/inspector/AutoMovieInspectorPlayhead.mjs.map +1 -1
  91. package/lib/inspector/AutoMovieInspectorRequestPanel.d.ts +9 -10
  92. package/lib/inspector/AutoMovieInspectorRequestPanel.js +18 -12
  93. package/lib/inspector/AutoMovieInspectorRequestPanel.js.map +1 -1
  94. package/lib/inspector/AutoMovieInspectorRequestPanel.mjs +32 -14
  95. package/lib/inspector/AutoMovieInspectorRequestPanel.mjs.map +1 -1
  96. package/lib/inspector/AutoMovieInspectorSelectionPanel.d.ts +0 -8
  97. package/lib/inspector/AutoMovieInspectorSelectionPanel.js +0 -8
  98. package/lib/inspector/AutoMovieInspectorSelectionPanel.js.map +1 -1
  99. package/lib/inspector/AutoMovieInspectorSelectionPanel.mjs +0 -8
  100. package/lib/inspector/AutoMovieInspectorSelectionPanel.mjs.map +1 -1
  101. package/lib/inspector/AutoMovieInspectorShadePanel.d.ts +2 -9
  102. package/lib/inspector/AutoMovieInspectorShadePanel.js +18 -25
  103. package/lib/inspector/AutoMovieInspectorShadePanel.js.map +1 -1
  104. package/lib/inspector/AutoMovieInspectorShadePanel.mjs +18 -27
  105. package/lib/inspector/AutoMovieInspectorShadePanel.mjs.map +1 -1
  106. package/lib/inspector/AutoMovieInspectorTimePanel.d.ts +0 -8
  107. package/lib/inspector/AutoMovieInspectorTimePanel.js +0 -8
  108. package/lib/inspector/AutoMovieInspectorTimePanel.js.map +1 -1
  109. package/lib/inspector/AutoMovieInspectorTimePanel.mjs +0 -8
  110. package/lib/inspector/AutoMovieInspectorTimePanel.mjs.map +1 -1
  111. package/lib/inspector/AutoMovieInspectorTimeReadout.d.ts +0 -8
  112. package/lib/inspector/AutoMovieInspectorTimeReadout.js +4 -10
  113. package/lib/inspector/AutoMovieInspectorTimeReadout.js.map +1 -1
  114. package/lib/inspector/AutoMovieInspectorTimeReadout.mjs +3 -12
  115. package/lib/inspector/AutoMovieInspectorTimeReadout.mjs.map +1 -1
  116. package/lib/inspector/AutoMovieInspectorTransition.d.ts +79 -0
  117. package/lib/inspector/AutoMovieInspectorTransition.js +131 -0
  118. package/lib/inspector/AutoMovieInspectorTransition.js.map +1 -0
  119. package/lib/inspector/AutoMovieInspectorTransition.mjs +119 -0
  120. package/lib/inspector/AutoMovieInspectorTransition.mjs.map +1 -0
  121. package/lib/inspector/AutoMovieInspectorViewPanel.d.ts +0 -8
  122. package/lib/inspector/AutoMovieInspectorViewPanel.js +0 -8
  123. package/lib/inspector/AutoMovieInspectorViewPanel.js.map +1 -1
  124. package/lib/inspector/AutoMovieInspectorViewPanel.mjs +0 -8
  125. package/lib/inspector/AutoMovieInspectorViewPanel.mjs.map +1 -1
  126. package/lib/inspector/IAutoMovieInspectorAction.d.ts +54 -95
  127. package/lib/inspector/IAutoMovieInspectorLive.d.ts +43 -0
  128. package/lib/inspector/IAutoMovieInspectorLive.js +3 -0
  129. package/lib/inspector/IAutoMovieInspectorLive.js.map +1 -0
  130. package/lib/inspector/IAutoMovieInspectorLive.mjs +0 -0
  131. package/lib/inspector/IAutoMovieInspectorPathNode.d.ts +14 -9
  132. package/lib/inspector/IAutoMovieInspectorProps.d.ts +3 -14
  133. package/lib/inspector/IAutoMovieInspectorScene.d.ts +96 -100
  134. package/lib/inspector/IAutoMovieInspectorSceneHost.d.ts +37 -102
  135. package/lib/inspector/IAutoMovieInspectorState.d.ts +6 -7
  136. package/lib/inspector/assertAutoMovieInspectorRaster.d.ts +7 -0
  137. package/lib/inspector/assertAutoMovieInspectorRaster.js +19 -0
  138. package/lib/inspector/assertAutoMovieInspectorRaster.js.map +1 -0
  139. package/lib/inspector/assertAutoMovieInspectorRaster.mjs +17 -0
  140. package/lib/inspector/assertAutoMovieInspectorRaster.mjs.map +1 -0
  141. package/lib/inspector/buildAutoMovieInspectorPathTree.d.ts +9 -10
  142. package/lib/inspector/buildAutoMovieInspectorPathTree.js +9 -10
  143. package/lib/inspector/buildAutoMovieInspectorPathTree.js.map +1 -1
  144. package/lib/inspector/buildAutoMovieInspectorPathTree.mjs +9 -10
  145. package/lib/inspector/buildAutoMovieInspectorPathTree.mjs.map +1 -1
  146. package/lib/inspector/changesAutoMovieObservedScene.d.ts +16 -0
  147. package/lib/inspector/changesAutoMovieObservedScene.js +28 -0
  148. package/lib/inspector/changesAutoMovieObservedScene.js.map +1 -0
  149. package/lib/inspector/changesAutoMovieObservedScene.mjs +21 -0
  150. package/lib/inspector/changesAutoMovieObservedScene.mjs.map +1 -0
  151. package/lib/inspector/createAutoMovieInspectorAddressWriter.d.ts +13 -11
  152. package/lib/inspector/createAutoMovieInspectorAddressWriter.js +13 -11
  153. package/lib/inspector/createAutoMovieInspectorAddressWriter.js.map +1 -1
  154. package/lib/inspector/createAutoMovieInspectorAddressWriter.mjs +13 -11
  155. package/lib/inspector/createAutoMovieInspectorAddressWriter.mjs.map +1 -1
  156. package/lib/inspector/createAutoMovieInspectorCanvasHost.d.ts +7 -10
  157. package/lib/inspector/createAutoMovieInspectorCanvasHost.js +14 -11
  158. package/lib/inspector/createAutoMovieInspectorCanvasHost.js.map +1 -1
  159. package/lib/inspector/createAutoMovieInspectorCanvasHost.mjs +17 -14
  160. package/lib/inspector/createAutoMovieInspectorCanvasHost.mjs.map +1 -1
  161. package/lib/inspector/createAutoMovieInspectorState.d.ts +3 -9
  162. package/lib/inspector/createAutoMovieInspectorState.js +3 -9
  163. package/lib/inspector/createAutoMovieInspectorState.js.map +1 -1
  164. package/lib/inspector/createAutoMovieInspectorState.mjs +3 -9
  165. package/lib/inspector/createAutoMovieInspectorState.mjs.map +1 -1
  166. package/lib/inspector/firstAutoMovieInspectorSecond.d.ts +6 -0
  167. package/lib/inspector/firstAutoMovieInspectorSecond.js +13 -0
  168. package/lib/inspector/firstAutoMovieInspectorSecond.js.map +1 -0
  169. package/lib/inspector/firstAutoMovieInspectorSecond.mjs +11 -0
  170. package/lib/inspector/firstAutoMovieInspectorSecond.mjs.map +1 -0
  171. package/lib/inspector/followAutoMovieInspectorSize.d.ts +11 -0
  172. package/lib/inspector/followAutoMovieInspectorSize.js +26 -0
  173. package/lib/inspector/followAutoMovieInspectorSize.js.map +1 -0
  174. package/lib/inspector/followAutoMovieInspectorSize.mjs +26 -0
  175. package/lib/inspector/followAutoMovieInspectorSize.mjs.map +1 -0
  176. package/lib/inspector/formatAutoMovieInspectorAddress.d.ts +11 -10
  177. package/lib/inspector/formatAutoMovieInspectorAddress.js +15 -11
  178. package/lib/inspector/formatAutoMovieInspectorAddress.js.map +1 -1
  179. package/lib/inspector/formatAutoMovieInspectorAddress.mjs +15 -11
  180. package/lib/inspector/formatAutoMovieInspectorAddress.mjs.map +1 -1
  181. package/lib/inspector/formatAutoMovieInspectorCommand.d.ts +20 -14
  182. package/lib/inspector/formatAutoMovieInspectorCommand.js +33 -14
  183. package/lib/inspector/formatAutoMovieInspectorCommand.js.map +1 -1
  184. package/lib/inspector/formatAutoMovieInspectorCommand.mjs +26 -15
  185. package/lib/inspector/formatAutoMovieInspectorCommand.mjs.map +1 -1
  186. package/lib/inspector/handleAutoMovieInspectorKey.d.ts +24 -15
  187. package/lib/inspector/handleAutoMovieInspectorKey.js +27 -16
  188. package/lib/inspector/handleAutoMovieInspectorKey.js.map +1 -1
  189. package/lib/inspector/handleAutoMovieInspectorKey.mjs +27 -16
  190. package/lib/inspector/handleAutoMovieInspectorKey.mjs.map +1 -1
  191. package/lib/inspector/index.d.ts +5 -0
  192. package/lib/inspector/index.js +5 -0
  193. package/lib/inspector/index.js.map +1 -1
  194. package/lib/inspector/index.mjs +6 -1
  195. package/lib/inspector/inspectAutoMovieInspectorRequest.d.ts +19 -0
  196. package/lib/inspector/inspectAutoMovieInspectorRequest.js +20 -0
  197. package/lib/inspector/inspectAutoMovieInspectorRequest.js.map +1 -0
  198. package/lib/inspector/inspectAutoMovieInspectorRequest.mjs +20 -0
  199. package/lib/inspector/inspectAutoMovieInspectorRequest.mjs.map +1 -0
  200. package/lib/inspector/installAutoMovieInspectorRequest.d.ts +20 -0
  201. package/lib/inspector/installAutoMovieInspectorRequest.js +36 -0
  202. package/lib/inspector/installAutoMovieInspectorRequest.js.map +1 -0
  203. package/lib/inspector/installAutoMovieInspectorRequest.mjs +35 -0
  204. package/lib/inspector/installAutoMovieInspectorRequest.mjs.map +1 -0
  205. package/lib/inspector/locateAutoMovieInspectorFinding.d.ts +19 -0
  206. package/lib/inspector/locateAutoMovieInspectorFinding.js +34 -0
  207. package/lib/inspector/locateAutoMovieInspectorFinding.js.map +1 -0
  208. package/lib/inspector/locateAutoMovieInspectorFinding.mjs +37 -0
  209. package/lib/inspector/locateAutoMovieInspectorFinding.mjs.map +1 -0
  210. package/lib/inspector/messageOfAutoMovieInspectorError.d.ts +2 -0
  211. package/lib/inspector/messageOfAutoMovieInspectorError.js +8 -0
  212. package/lib/inspector/messageOfAutoMovieInspectorError.js.map +1 -0
  213. package/lib/inspector/messageOfAutoMovieInspectorError.mjs +8 -0
  214. package/lib/inspector/messageOfAutoMovieInspectorError.mjs.map +1 -0
  215. package/lib/inspector/mountAutoMovieInspectorPage.d.ts +5 -8
  216. package/lib/inspector/mountAutoMovieInspectorPage.js +3 -9
  217. package/lib/inspector/mountAutoMovieInspectorPage.js.map +1 -1
  218. package/lib/inspector/mountAutoMovieInspectorPage.mjs +4 -9
  219. package/lib/inspector/mountAutoMovieInspectorPage.mjs.map +1 -1
  220. package/lib/inspector/mountAutoMovieInspectorScene.d.ts +55 -12
  221. package/lib/inspector/mountAutoMovieInspectorScene.js +238 -164
  222. package/lib/inspector/mountAutoMovieInspectorScene.js.map +1 -1
  223. package/lib/inspector/mountAutoMovieInspectorScene.mjs +223 -149
  224. package/lib/inspector/mountAutoMovieInspectorScene.mjs.map +1 -1
  225. package/lib/inspector/placeAutoMovieInspectorLabels.d.ts +29 -0
  226. package/lib/inspector/placeAutoMovieInspectorLabels.js +33 -0
  227. package/lib/inspector/placeAutoMovieInspectorLabels.js.map +1 -0
  228. package/lib/inspector/placeAutoMovieInspectorLabels.mjs +32 -0
  229. package/lib/inspector/placeAutoMovieInspectorLabels.mjs.map +1 -0
  230. package/lib/inspector/readAutoMovieInspectorAddress.d.ts +8 -11
  231. package/lib/inspector/readAutoMovieInspectorAddress.js +8 -11
  232. package/lib/inspector/readAutoMovieInspectorAddress.js.map +1 -1
  233. package/lib/inspector/readAutoMovieInspectorAddress.mjs +8 -11
  234. package/lib/inspector/readAutoMovieInspectorAddress.mjs.map +1 -1
  235. package/lib/inspector/readAutoMovieInspectorFacts.d.ts +17 -0
  236. package/lib/inspector/readAutoMovieInspectorFacts.js +34 -0
  237. package/lib/inspector/readAutoMovieInspectorFacts.js.map +1 -0
  238. package/lib/inspector/readAutoMovieInspectorFacts.mjs +28 -0
  239. package/lib/inspector/readAutoMovieInspectorFacts.mjs.map +1 -0
  240. package/lib/inspector/readsAutoMovieInspectorPlacedScene.d.ts +9 -0
  241. package/lib/inspector/readsAutoMovieInspectorPlacedScene.js +14 -0
  242. package/lib/inspector/readsAutoMovieInspectorPlacedScene.js.map +1 -0
  243. package/lib/inspector/readsAutoMovieInspectorPlacedScene.mjs +14 -0
  244. package/lib/inspector/readsAutoMovieInspectorPlacedScene.mjs.map +1 -0
  245. package/lib/inspector/reduceAutoMovieInspectorState.d.ts +10 -10
  246. package/lib/inspector/reduceAutoMovieInspectorState.js +17 -11
  247. package/lib/inspector/reduceAutoMovieInspectorState.js.map +1 -1
  248. package/lib/inspector/reduceAutoMovieInspectorState.mjs +16 -11
  249. package/lib/inspector/reduceAutoMovieInspectorState.mjs.map +1 -1
  250. package/lib/inspector/releaseAutoMovieInspectorSteps.d.ts +6 -0
  251. package/lib/inspector/releaseAutoMovieInspectorSteps.js +23 -0
  252. package/lib/inspector/releaseAutoMovieInspectorSteps.js.map +1 -0
  253. package/lib/inspector/releaseAutoMovieInspectorSteps.mjs +19 -0
  254. package/lib/inspector/releaseAutoMovieInspectorSteps.mjs.map +1 -0
  255. package/lib/inspector/reportAutoMovieInspectorLabels.d.ts +21 -0
  256. package/lib/inspector/reportAutoMovieInspectorLabels.js +27 -0
  257. package/lib/inspector/reportAutoMovieInspectorLabels.js.map +1 -0
  258. package/lib/inspector/reportAutoMovieInspectorLabels.mjs +30 -0
  259. package/lib/inspector/reportAutoMovieInspectorLabels.mjs.map +1 -0
  260. package/lib/inspector/resolveAutoMovieInspectorCamera.d.ts +22 -0
  261. package/lib/inspector/resolveAutoMovieInspectorCamera.js +34 -0
  262. package/lib/inspector/resolveAutoMovieInspectorCamera.js.map +1 -0
  263. package/lib/inspector/resolveAutoMovieInspectorCamera.mjs +34 -0
  264. package/lib/inspector/resolveAutoMovieInspectorCamera.mjs.map +1 -0
  265. package/lib/inspector/showAutoMovieInspectorFinding.d.ts +25 -0
  266. package/lib/inspector/showAutoMovieInspectorFinding.js +26 -0
  267. package/lib/inspector/showAutoMovieInspectorFinding.js.map +1 -0
  268. package/lib/inspector/showAutoMovieInspectorFinding.mjs +26 -0
  269. package/lib/inspector/showAutoMovieInspectorFinding.mjs.map +1 -0
  270. package/lib/inspector/stopAutoMovieInspectorTime.d.ts +11 -0
  271. package/lib/inspector/stopAutoMovieInspectorTime.js +17 -0
  272. package/lib/inspector/stopAutoMovieInspectorTime.js.map +1 -0
  273. package/lib/inspector/stopAutoMovieInspectorTime.mjs +18 -0
  274. package/lib/inspector/stopAutoMovieInspectorTime.mjs.map +1 -0
  275. package/lib/inspector/writeAutoMovieInspectorInspection.d.ts +6 -0
  276. package/lib/inspector/writeAutoMovieInspectorInspection.js +12 -0
  277. package/lib/inspector/writeAutoMovieInspectorInspection.js.map +1 -0
  278. package/lib/inspector/writeAutoMovieInspectorInspection.mjs +12 -0
  279. package/lib/inspector/writeAutoMovieInspectorInspection.mjs.map +1 -0
  280. package/lib/internal.d.ts +7 -0
  281. package/lib/internal.js +25 -0
  282. package/lib/internal.js.map +1 -0
  283. package/lib/internal.mjs +8 -0
  284. package/lib/mountViewer.d.ts +16 -10
  285. package/lib/mountViewer.js +17 -14
  286. package/lib/mountViewer.js.map +1 -1
  287. package/lib/mountViewer.mjs +18 -12
  288. package/lib/mountViewer.mjs.map +1 -1
  289. package/lib/publishViewerCompletedFrame.d.ts +12 -10
  290. package/lib/publishViewerCompletedFrame.js +11 -9
  291. package/lib/publishViewerCompletedFrame.js.map +1 -1
  292. package/lib/publishViewerCompletedFrame.mjs +11 -9
  293. package/lib/publishViewerCompletedFrame.mjs.map +1 -1
  294. package/lib/redrawViewerCompletedFrame.d.ts +2 -10
  295. package/lib/redrawViewerCompletedFrame.js +4 -12
  296. package/lib/redrawViewerCompletedFrame.js.map +1 -1
  297. package/lib/redrawViewerCompletedFrame.mjs +3 -11
  298. package/lib/redrawViewerCompletedFrame.mjs.map +1 -1
  299. package/lib/releaseMountedViewer.d.ts +5 -9
  300. package/lib/releaseMountedViewer.js +5 -9
  301. package/lib/releaseMountedViewer.js.map +1 -1
  302. package/lib/releaseMountedViewer.mjs +5 -9
  303. package/lib/releaseMountedViewer.mjs.map +1 -1
  304. package/lib/transport/AutoMovieViewerTransport.d.ts +13 -122
  305. package/lib/transport/AutoMovieViewerTransport.js +10 -74
  306. package/lib/transport/AutoMovieViewerTransport.js.map +1 -1
  307. package/lib/transport/AutoMovieViewerTransport.mjs +10 -65
  308. package/lib/transport/AutoMovieViewerTransport.mjs.map +1 -1
  309. package/lib/transport/readAutoMovieReviewInterval.d.ts +3 -10
  310. package/lib/transport/readAutoMovieReviewInterval.js +11 -16
  311. package/lib/transport/readAutoMovieReviewInterval.js.map +1 -1
  312. package/lib/transport/readAutoMovieReviewInterval.mjs +8 -14
  313. package/lib/transport/readAutoMovieReviewInterval.mjs.map +1 -1
  314. package/package.json +12 -8
  315. package/src/IAutoMovieViewerCompletedFrame.ts +21 -11
  316. package/src/IAutoMovieViewerDisplayMetadata.ts +0 -5
  317. package/src/IAutoMovieViewerHandle.ts +3 -25
  318. package/src/IMountViewerOptions.ts +24 -38
  319. package/src/IViewerCameraStateSnapshot.ts +0 -5
  320. package/src/IViewerFrameTransfer.ts +13 -0
  321. package/src/applyCaptureCanvasSize.ts +9 -18
  322. package/src/audio/IAutoMovieAudioCue.ts +3 -8
  323. package/src/audio/planAutoMovieAudioPlayback.ts +9 -23
  324. package/src/audio/playAutoMovieAudioCues.ts +4 -11
  325. package/src/createViewerCameraState.ts +119 -175
  326. package/src/createViewerDisplayClock.ts +4 -12
  327. package/src/createViewerDisplayPublication.ts +7 -15
  328. package/src/createViewerDisplaySave.ts +8 -16
  329. package/src/createViewerFrameControl.ts +16 -24
  330. package/src/createViewerViewportResize.ts +7 -23
  331. package/src/index.ts +1 -0
  332. package/src/inspector/AutoMovieInspector.tsx +183 -20
  333. package/src/inspector/AutoMovieInspectorBeauty.ts +89 -0
  334. package/src/inspector/AutoMovieInspectorDiagnosticLog.ts +235 -0
  335. package/src/inspector/AutoMovieInspectorDiagnosticsPanel.tsx +118 -0
  336. package/src/inspector/AutoMovieInspectorMarksPanel.tsx +26 -34
  337. package/src/inspector/AutoMovieInspectorPlayhead.ts +53 -110
  338. package/src/inspector/AutoMovieInspectorRequestPanel.tsx +57 -29
  339. package/src/inspector/AutoMovieInspectorSelectionPanel.tsx +0 -8
  340. package/src/inspector/AutoMovieInspectorShadePanel.tsx +24 -29
  341. package/src/inspector/AutoMovieInspectorTimePanel.tsx +0 -8
  342. package/src/inspector/AutoMovieInspectorTimeReadout.tsx +4 -10
  343. package/src/inspector/AutoMovieInspectorTransition.ts +178 -0
  344. package/src/inspector/AutoMovieInspectorViewPanel.tsx +0 -8
  345. package/src/inspector/IAutoMovieInspectorAction.ts +57 -94
  346. package/src/inspector/IAutoMovieInspectorLive.ts +62 -0
  347. package/src/inspector/IAutoMovieInspectorPathNode.ts +14 -9
  348. package/src/inspector/IAutoMovieInspectorProps.ts +4 -14
  349. package/src/inspector/IAutoMovieInspectorScene.ts +104 -99
  350. package/src/inspector/IAutoMovieInspectorSceneHost.ts +43 -102
  351. package/src/inspector/IAutoMovieInspectorState.ts +6 -7
  352. package/src/inspector/assertAutoMovieInspectorRaster.ts +23 -0
  353. package/src/inspector/buildAutoMovieInspectorPathTree.ts +9 -10
  354. package/src/inspector/changesAutoMovieObservedScene.ts +30 -0
  355. package/src/inspector/createAutoMovieInspectorAddressWriter.ts +13 -11
  356. package/src/inspector/createAutoMovieInspectorCanvasHost.ts +14 -12
  357. package/src/inspector/createAutoMovieInspectorState.ts +3 -9
  358. package/src/inspector/firstAutoMovieInspectorSecond.ts +13 -0
  359. package/src/inspector/followAutoMovieInspectorSize.ts +32 -0
  360. package/src/inspector/formatAutoMovieInspectorAddress.ts +15 -11
  361. package/src/inspector/formatAutoMovieInspectorCommand.ts +44 -15
  362. package/src/inspector/handleAutoMovieInspectorKey.ts +27 -16
  363. package/src/inspector/index.ts +5 -0
  364. package/src/inspector/inspectAutoMovieInspectorRequest.ts +37 -0
  365. package/src/inspector/installAutoMovieInspectorRequest.ts +50 -0
  366. package/src/inspector/locateAutoMovieInspectorFinding.ts +40 -0
  367. package/src/inspector/messageOfAutoMovieInspectorError.ts +4 -0
  368. package/src/inspector/mountAutoMovieInspectorPage.tsx +7 -8
  369. package/src/inspector/mountAutoMovieInspectorScene.ts +290 -232
  370. package/src/inspector/placeAutoMovieInspectorLabels.ts +53 -0
  371. package/src/inspector/readAutoMovieInspectorAddress.ts +8 -11
  372. package/src/inspector/readAutoMovieInspectorFacts.ts +50 -0
  373. package/src/inspector/readsAutoMovieInspectorPlacedScene.ts +16 -0
  374. package/src/inspector/reduceAutoMovieInspectorState.ts +17 -11
  375. package/src/inspector/releaseAutoMovieInspectorSteps.ts +19 -0
  376. package/src/inspector/reportAutoMovieInspectorLabels.ts +45 -0
  377. package/src/inspector/resolveAutoMovieInspectorCamera.ts +50 -0
  378. package/src/inspector/showAutoMovieInspectorFinding.ts +40 -0
  379. package/src/inspector/stopAutoMovieInspectorTime.ts +19 -0
  380. package/src/inspector/writeAutoMovieInspectorInspection.ts +12 -0
  381. package/src/internal.ts +9 -0
  382. package/src/mountViewer.ts +17 -14
  383. package/src/publishViewerCompletedFrame.ts +14 -10
  384. package/src/redrawViewerCompletedFrame.ts +3 -12
  385. package/src/releaseMountedViewer.ts +5 -9
  386. package/src/transport/AutoMovieViewerTransport.ts +17 -144
  387. package/src/transport/readAutoMovieReviewInterval.ts +15 -16
@@ -3,25 +3,27 @@ import * as THREE from "three";
3
3
  import type { IAutoMovieInspectorSceneHost } from "./IAutoMovieInspectorSceneHost.js";
4
4
 
5
5
  /**
6
- * The browser's scene host for one canvas: a `WebGLRenderer` drawing into it, the window's animation frames, and the canvas's layout size with the device pixel ratio.
6
+ * The browser's scene host for one canvas: a `WebGLRenderer` drawing into it,
7
+ * the window's animation frames, and the canvas's layout size with the device
8
+ * pixel ratio.
7
9
  *
8
- * Each `createRenderer` call makes a new renderer on the same canvas, which reuses the canvas's context, so a mount after a dispose draws; the mount disposes each renderer without losing the context. A canvas that has no layout size yet reports zero, and the mount skips drawing until it has one.
9
- *
10
- * @evidence contracts/development/common.md#meaningful-documentation States what each member is in a browser, the context reuse across mounts and the zero-size case.
11
- * @evidence contracts/development/implementation.md#principled-implementation `requestAnimationFrame` paces drawing to the display and stops in a hidden tab; `clientWidth` and `clientHeight` are the CSS size the page laid out, and `devicePixelRatio` scales the buffer to device pixels.
12
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Four one-line members over the canvas and its window.
13
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No global is replaced; the canvas's own window is used, so a canvas in another frame paces by that frame.
14
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant per call.
15
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A host computes nothing to reuse; the mount reuses its renderer.
16
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds the borrowed canvas only; each renderer it creates is owned and disposed by the mount that asked for it.
10
+ * Each `createRenderer` call makes a new renderer on the same canvas, which
11
+ * reuses the canvas's context, so a mount after a dispose draws; the mount
12
+ * disposes each renderer without losing the context. A canvas that has no
13
+ * layout size yet reports zero, and the mount skips drawing until it has one.
17
14
  */
18
15
  export function createAutoMovieInspectorCanvasHost(
19
16
  canvas: HTMLCanvasElement,
20
17
  ): IAutoMovieInspectorSceneHost {
21
18
  const view: Window = canvas.ownerDocument.defaultView ?? window;
22
19
  return {
23
- createRenderer: (): IAutoMovieInspectorSceneHost.IRenderer =>
24
- new THREE.WebGLRenderer({ canvas, antialias: true }),
20
+ createRenderer: (): IAutoMovieInspectorSceneHost.ICreated => {
21
+ const renderer: THREE.WebGLRenderer = new THREE.WebGLRenderer({
22
+ canvas,
23
+ antialias: true,
24
+ });
25
+ return { renderer, compositor: renderer };
26
+ },
25
27
  requestFrame: (callback: (nowMs: number) => void): number =>
26
28
  view.requestAnimationFrame(callback),
27
29
  cancelFrame: (handle: number): void => view.cancelAnimationFrame(handle),
@@ -5,15 +5,9 @@ import { reduceAutoMovieInspectorState } from "./reduceAutoMovieInspectorState.j
5
5
  /**
6
6
  * The inspector's first state, read from the address text it opens with.
7
7
  *
8
- * The text is applied as a `text` edit of the request the empty address names, which asks for nothing, so a refused address opens on that request with the refusal shown and the page still draws.
9
- *
10
- * @evidence contracts/development/common.md#meaningful-documentation States where the first request comes from and what a refused address gives.
11
- * @evidence contracts/development/implementation.md#principled-implementation The empty address is the grammar's request that asks for nothing, and the opening text goes through the same reducer edit a typed address does, so both refuse alike.
12
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Read the empty address, then reduce the given text onto it.
13
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No default request is written here; the grammar's empty reading supplies it.
14
- * @evidence contracts/development/implementation.md#efficient-algorithms Two readings, linear in the text's length.
15
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Called once per inspector, as `useReducer`'s initializer.
16
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh state and keeps nothing.
8
+ * The text is applied as a `text` edit of the request the empty address names,
9
+ * which asks for nothing, so a refused address opens on that request with the
10
+ * refusal shown and the page still draws.
17
11
  */
18
12
  export function createAutoMovieInspectorState(
19
13
  text: string,
@@ -0,0 +1,13 @@
1
+ import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
2
+
3
+ /**
4
+ * The first second a request draws: its first explicit second, or the start of
5
+ * its sampling.
6
+ */
7
+ export function firstAutoMovieInspectorSecond(
8
+ request: Pick<IAutoMovieCapturePlanRequest, "sampling">,
9
+ ): number {
10
+ return request.sampling.kind === "at"
11
+ ? request.sampling.seconds[0]!
12
+ : request.sampling.from;
13
+ }
@@ -0,0 +1,32 @@
1
+ import type { IAutoMovieInspectorLive } from "./IAutoMovieInspectorLive.js";
2
+ import type { IAutoMovieInspectorSceneHost } from "./IAutoMovieInspectorSceneHost.js";
3
+
4
+ /**
5
+ * Follow the host's drawing size: when every side and the pixel ratio are
6
+ * positive and finite and differ from the size the renderer has, resize the
7
+ * renderer's drawing buffer, leaving the canvas's layout to the page, and mark
8
+ * the mount for a redraw.
9
+ *
10
+ * @returns Whether the size can be drawn at.
11
+ */
12
+ export function followAutoMovieInspectorSize(
13
+ now: IAutoMovieInspectorLive,
14
+ size: IAutoMovieInspectorSceneHost.ISize,
15
+ ): boolean {
16
+ const drawable: boolean = [size.width, size.height, size.pixelRatio].every(
17
+ (value: number): boolean => value > 0,
18
+ );
19
+ if (
20
+ drawable &&
21
+ (now.size === undefined ||
22
+ now.size.width !== size.width ||
23
+ now.size.height !== size.height ||
24
+ now.size.pixelRatio !== size.pixelRatio)
25
+ ) {
26
+ now.renderer.setPixelRatio(size.pixelRatio);
27
+ now.renderer.setSize(size.width, size.height, false);
28
+ now.size = size;
29
+ now.dirty = true;
30
+ }
31
+ return drawable;
32
+ }
@@ -1,7 +1,10 @@
1
1
  import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
2
2
  import { formatAutoMovieCapturePlanRequest } from "@automovie/render";
3
3
 
4
- /** Characters the grammar writes that a query keeps readable: list, view, path, focus, colour pair and cut separators. */
4
+ /**
5
+ * Characters the grammar writes that a query keeps readable: list, view, path,
6
+ * focus, colour pair and cut separators.
7
+ */
5
8
  const READABLE: ReadonlyMap<string, string> = new Map<string, string>([
6
9
  ["%2C", ","],
7
10
  ["%3A", ":"],
@@ -12,17 +15,18 @@ const READABLE: ReadonlyMap<string, string> = new Map<string, string>([
12
15
  ]);
13
16
 
14
17
  /**
15
- * Write a request as the query text of an address, without the leading `?`, so the address repeats the request and `readAutoMovieInspectorAddress` reads it back equal.
16
- *
17
- * Keys and values come from `formatAutoMovieCapturePlanRequest`, in its order and with absent values left out, so the request that asks for nothing is the empty text. Each key and value is escaped by `encodeURIComponent`, then the separators `,`, `:`, `;`, `/`, `@` and `=` are put back, because a query may hold them as they are and `URLSearchParams` reads them unchanged (a pair splits at its first `=`, and no key holds one), so `parts=hero/torso&views=front@focus=hero&color=hero=ff8800` stays readable. A key whose value is empty is written bare.
18
+ * Write a request as the query text of an address, without the leading `?`, so
19
+ * the address repeats the request and `readAutoMovieInspectorAddress` reads it
20
+ * back equal.
18
21
  *
19
- * @evidence contracts/development/common.md#meaningful-documentation States the order, the escaping, which characters stay readable and why that is safe, the bare key and the round trip.
20
- * @evidence contracts/development/implementation.md#principled-implementation The grammar's own writer decides keys and values; `encodeURIComponent` escapes every character that would change the query's structure (`&`, `+`, `#`, `%`, space), and the restored separators are sub-delimiters RFC 3986 allows in a query, which the WHATWG URL parser leaves as they are; `=` inside a value is safe because `URLSearchParams` splits a pair at its first `=` and no grammar key holds one.
21
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One map over the written pairs and one join.
22
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No key or value is written here by hand, so a key the grammar adds reaches the address unchanged.
23
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the length of the written request.
24
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure conversion of one request.
25
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh string and keeps nothing.
22
+ * Keys and values come from `formatAutoMovieCapturePlanRequest`, in its order
23
+ * and with absent values left out, so the request that asks for nothing is the
24
+ * empty text. Each key and value is escaped by `encodeURIComponent`, then the
25
+ * separators `,`, `:`, `;`, `/`, `@` and `=` are put back, because a query may
26
+ * hold them as they are and `URLSearchParams` reads them unchanged (a pair
27
+ * splits at its first `=`, and no key holds one), so
28
+ * `parts=hero/torso&views=front@focus=hero&color=hero=ff8800` stays readable. A
29
+ * key whose value is empty is written bare.
26
30
  */
27
31
  export function formatAutoMovieInspectorAddress(
28
32
  request: IAutoMovieCapturePlanRequest,
@@ -4,46 +4,75 @@ import { formatAutoMovieCapturePlanRequest } from "@automovie/render";
4
4
  /** An argument a POSIX shell passes through unquoted. */
5
5
  const PLAIN: RegExp = /^[\w%+,./:=@-]+$/u;
6
6
 
7
+ /** A bare word that also stays one argument to a PowerShell script. */
8
+ const POWERSHELL_PLAIN: RegExp = /^[\w+./:=-]+$/u;
9
+
7
10
  /**
8
- * Write the `automovie capture` command that repeats a request: its options, and the command line a person copies.
11
+ * Write a capture request's option tokens and a shell command to copy.
9
12
  *
10
- * Every pair `formatAutoMovieCapturePlanRequest` writes becomes one `--<key>=<value>` option, in its order. The `=` form is used for every option, so a value that starts with `-`, such as an axis cut `-x:0.2`, or that is empty stays the option's value. `readAutoMovieCaptureArguments` reads the options back to the same named values, so the command's reader gives an equal request.
13
+ * Every pair `formatAutoMovieCapturePlanRequest` writes becomes one
14
+ * `--<key>=<value>` option, in its order. The `=` form is used for every
15
+ * option, so a value that starts with `-`, such as an axis cut `-x:0.2`, or
16
+ * that is empty stays the option's value. `readAutoMovieCaptureArguments` reads
17
+ * the options back to the same named values, so the command's reader gives an
18
+ * equal request.
11
19
  *
12
- * The text is `automovie capture` followed by the options, each quoted for a POSIX shell when it holds a character outside letters, digits and `_ % + , . / : = @ -`, such as the `*` of a pattern or the `;` between views.
20
+ * The text starts with the host's executable and arguments, or with `automovie
21
+ * capture` when the caller formats the request alone. The host supplies any
22
+ * options required to reproduce its subject and inputs. POSIX is the default.
23
+ * PowerShell also quotes commas so a script such as `pnpm` receives each list
24
+ * or plane as one argument.
13
25
  *
14
26
  * ```ts
15
27
  * const { text } = formatAutoMovieInspectorCommand(request);
16
28
  * ```
17
- *
18
- * @evidence contracts/development/common.md#meaningful-documentation States the option form and why it is used for every option, the round trip through the command's reader, the text's prefix and the quoting rule.
19
- * @evidence contracts/development/implementation.md#principled-implementation The grammar's writer decides keys and values and the command's own argument reader is the inverse of the `--key=value` form; a single-quoted POSIX word is literal except for `'`, which is closed, escaped and reopened.
20
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One map to options and one join with quoting.
21
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No option is written by hand, so the command offers exactly what the address carries.
22
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the length of the written request.
23
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure conversion of one request.
24
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns fresh strings and keeps nothing.
25
29
  */
26
30
  export function formatAutoMovieInspectorCommand(
27
31
  request: IAutoMovieCapturePlanRequest,
32
+ props: {
33
+ /** Executable and fixed arguments supplied by the capture host. */
34
+ command?: readonly [string, ...string[]];
35
+
36
+ /** The shell syntax used for the copied text. Defaults to POSIX. */
37
+ shell?: "posix" | "powershell";
38
+ } = {},
28
39
  ): {
29
- /** The options after `automovie capture`, one argument each. */
40
+ /** The request's own options, one argument each. */
30
41
  options: string[];
31
42
 
32
- /** The whole command line, quoted for a POSIX shell. */
43
+ /** The command with the host and request arguments quoted for the shell. */
33
44
  text: string;
34
45
  } {
35
46
  const options: string[] = formatAutoMovieCapturePlanRequest(request).map(
36
47
  ([key, value]: [key: string, value: string]): string => `--${key}=${value}`,
37
48
  );
49
+ const powershell: boolean = props.shell === "powershell";
50
+ const quote: (argument: string) => string = powershell
51
+ ? quotePowerShell
52
+ : quotePosix;
53
+ const [executable, ...fixed]: readonly [string, ...string[]] =
54
+ props.command ?? ["automovie", "capture"];
55
+ const program: string = quote(executable);
38
56
  return {
39
57
  options,
40
- text: ["automovie", "capture", ...options.map(quote)].join(" "),
58
+ text: [
59
+ powershell && program !== executable ? `& ${program}` : program,
60
+ ...fixed.map(quote),
61
+ ...options.map(quote),
62
+ ].join(" "),
41
63
  };
42
64
  }
43
65
 
44
66
  /** One argument as a POSIX shell word. */
45
- function quote(argument: string): string {
67
+ function quotePosix(argument: string): string {
46
68
  return PLAIN.test(argument)
47
69
  ? argument
48
70
  : `'${argument.replaceAll("'", "'\\''")}'`;
49
71
  }
72
+
73
+ /** One argument as a PowerShell word, including smart single quotes. */
74
+ function quotePowerShell(argument: string): string {
75
+ return POWERSHELL_PLAIN.test(argument)
76
+ ? argument
77
+ : `'${argument.replace(/['\u2018-\u201b]/gu, "$&$&")}'`;
78
+ }
@@ -3,7 +3,9 @@ import { AutoMovieFrameGrid } from "@automovie/render";
3
3
  import type { AutoMovieInspectorPlayhead } from "./AutoMovieInspectorPlayhead.js";
4
4
 
5
5
  /**
6
- * The elements that take a key themselves: fields, buttons, disclosure summaries, links, editable text and the widgets that answer Space or arrows by their role.
6
+ * The elements that take a key themselves: fields, buttons, disclosure
7
+ * summaries, links, editable text and the widgets that answer Space or arrows
8
+ * by their role.
7
9
  */
8
10
  const INTERACTIVE: string = [
9
11
  "input",
@@ -21,26 +23,35 @@ const INTERACTIVE: string = [
21
23
  ].join(", ");
22
24
 
23
25
  /**
24
- * The inspector's playback keys, as a video player's: Space and K play or pause, J and L seek one second back and forward, comma and full stop step one frame back and forward with playback paused, Home and End go to the first and last second. K, J and L work in either case.
26
+ * The inspector's playback keys, as a video player's: Space and K play or
27
+ * pause, J and L seek one second back and forward, comma and full stop step one
28
+ * frame back and forward with playback paused, Home and End go to the first and
29
+ * last second. K, J and L work in either case.
25
30
  *
26
- * Frame steps start at the slider's displayed frame and include the exact end of the subject, even when it falls between regular frames.
31
+ * Frame steps start at the slider's displayed frame and include the exact end
32
+ * of the subject, even when it falls between regular frames.
27
33
  *
28
- * A key is left to the page, unhandled and moving nothing, when Ctrl, Meta or Alt is held, so the browser's and the system's shortcuts keep working, and when the key's target is or sits inside an element that takes the key itself (a field, a button, a summary, a link, editable text, or a widget by its role), so Space still presses a button and opens a section. Shift is allowed, since it only changes a letter's case.
34
+ * A key is left to the page, unhandled and moving nothing, when Ctrl, Meta or
35
+ * Alt is held, so the browser's and the system's shortcuts keep working, and
36
+ * when the key's target is or sits inside an element that takes the key itself
37
+ * (a field, a button, a summary, a link, editable text, or a widget by its
38
+ * role), so Space still presses a button and opens a section. Shift is allowed,
39
+ * since it only changes a letter's case.
29
40
  *
30
- * A seek or a step returns the second the playhead now shows, which the caller makes the request's `time`, as the slider does; play and pause return null, because a stop already becomes the request's second through the time readout. A key the inspector does not use is not handled either.
41
+ * A seek or a step returns the second the playhead now shows, which the caller
42
+ * makes the request's `time`, as the slider does; play and pause return null,
43
+ * because a stop already becomes the request's second through the time readout.
44
+ * A key the inspector does not use is not handled either.
31
45
  *
32
- * @param event The pressed key's `KeyboardEvent` members the decision reads; `target` is the element the key went to, or null when it is not an element.
46
+ * @param event The pressed key's `KeyboardEvent` members the decision reads;
47
+ * `target` is the element the key went to, or null when it is not an
48
+ * element.
33
49
  * @param playhead The playhead the keys drive.
34
- * @param fps The subject's frames per second, the step of comma and full stop; null before a subject is ready, when they step a twenty-fourth of a second.
35
- * @returns Whether the key was used, so the caller prevents its default, and the second a seek left the playhead on.
36
- *
37
- * @evidence contracts/development/common.md#meaningful-documentation States every key, when a key is left to the page and why, what each returns and why play and pause return no second.
38
- * @evidence contracts/development/implementation.md#principled-implementation Every move goes through the playhead's own `play`, `pause` and `seek`; a frame step advances the slider's displayed index; the interactive target is found with the platform's `Element.closest` over one selector list.
39
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Two early returns, then one table from key to move and one lookup.
40
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The playhead clamps every seek to the film, so nothing here restates its bounds; a key is never taken from a control that answers it, so no control loses its own keyboard behaviour.
41
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant work per key, besides one `closest` walk up the target's ancestors.
42
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Uses the same presentation grid as the slider.
43
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Holds nothing between calls.
50
+ * @param fps The subject's frames per second, the step of comma and full stop;
51
+ * null before a subject is ready, when they step a twenty-fourth of a
52
+ * second.
53
+ * @returns Whether the key was used, so the caller prevents its default, and
54
+ * the second a seek left the playhead on.
44
55
  */
45
56
  export function handleAutoMovieInspectorKey(
46
57
  event: {
@@ -1,4 +1,5 @@
1
1
  export * from "./AutoMovieInspector.js";
2
+ export * from "./AutoMovieInspectorDiagnosticsPanel.js";
2
3
  export * from "./AutoMovieInspectorMarksPanel.js";
3
4
  export * from "./AutoMovieInspectorPlayhead.js";
4
5
  export * from "./AutoMovieInspectorRequestPanel.js";
@@ -6,6 +7,7 @@ export * from "./AutoMovieInspectorSelectionPanel.js";
6
7
  export * from "./AutoMovieInspectorShadePanel.js";
7
8
  export * from "./AutoMovieInspectorTimePanel.js";
8
9
  export * from "./AutoMovieInspectorTimeReadout.js";
10
+ export * from "./AutoMovieInspectorTransition.js";
9
11
  export * from "./AutoMovieInspectorViewPanel.js";
10
12
  export * from "./buildAutoMovieInspectorPathTree.js";
11
13
  export * from "./createAutoMovieInspectorAddressWriter.js";
@@ -14,6 +16,9 @@ export * from "./createAutoMovieInspectorState.js";
14
16
  export * from "./formatAutoMovieInspectorAddress.js";
15
17
  export * from "./formatAutoMovieInspectorCommand.js";
16
18
  export * from "./handleAutoMovieInspectorKey.js";
19
+ export * from "./locateAutoMovieInspectorFinding.js";
20
+ export * from "./showAutoMovieInspectorFinding.js";
21
+ export * from "./stopAutoMovieInspectorTime.js";
17
22
  export * from "./IAutoMovieInspectorAction.js";
18
23
  export * from "./IAutoMovieInspectorPathNode.js";
19
24
  export * from "./IAutoMovieInspectorProps.js";
@@ -0,0 +1,37 @@
1
+ import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
2
+ import {
3
+ type IApplyAutoMovieInspectionProps,
4
+ type IAutoMovieDrawScene,
5
+ type IAutoMovieInspectionHandle,
6
+ applyAutoMovieInspection,
7
+ } from "@automovie/render";
8
+
9
+ import type { IAutoMovieInspectorSceneHost } from "./IAutoMovieInspectorSceneHost.js";
10
+
11
+ /**
12
+ * Apply a request's inspection to the subject's scene with the marks of the
13
+ * placed second and the kinds the subject declares, as the draw page applies
14
+ * it. It throws what `applyAutoMovieInspection` refuses, leaving the scene as
15
+ * it was, so the mount can keep or fall back to another request.
16
+ */
17
+ export function inspectAutoMovieInspectorRequest(props: {
18
+ /** The created subject. */
19
+ instance: IAutoMovieDrawScene;
20
+
21
+ /** The inspector's renderer. */
22
+ renderer: IAutoMovieInspectorSceneHost.IRenderer;
23
+
24
+ /** The request whose inspection is applied. */
25
+ request: IAutoMovieCapturePlanRequest;
26
+
27
+ /** The marks of the placed second; absent applies none. */
28
+ marks: IApplyAutoMovieInspectionProps["marks"] | undefined;
29
+ }): IAutoMovieInspectionHandle {
30
+ return applyAutoMovieInspection({
31
+ scene: props.instance.scene,
32
+ request: props.request.inspection,
33
+ renderer: props.renderer,
34
+ ...(props.marks === undefined ? {} : { marks: props.marks }),
35
+ markKinds: props.instance.markKinds ?? [],
36
+ });
37
+ }
@@ -0,0 +1,50 @@
1
+ import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
2
+
3
+ import type { IAutoMovieInspectorLive } from "./IAutoMovieInspectorLive.js";
4
+ import { inspectAutoMovieInspectorRequest } from "./inspectAutoMovieInspectorRequest.js";
5
+
6
+ /**
7
+ * Install a request's inspection on the mount's subject with the marks of the
8
+ * placed second; when the scene refuses it, install the applied request again,
9
+ * so the preceding inspection stays in force, and hand the refusal to
10
+ * `refused`.
11
+ *
12
+ * @returns Whether the request's own inspection was installed.
13
+ */
14
+ export function installAutoMovieInspectorRequest(props: {
15
+ /** The mount's live state, whose inspection this replaces. */
16
+ now: IAutoMovieInspectorLive;
17
+
18
+ /** The request to install. */
19
+ request: IAutoMovieCapturePlanRequest;
20
+
21
+ /** The placed second, whose marks the inspection draws. */
22
+ seconds: number;
23
+
24
+ /** Told the refusal's error when the request is refused. */
25
+ refused: (error: unknown) => void;
26
+ }): boolean {
27
+ const { now }: typeof props = props;
28
+ const base: Omit<
29
+ Parameters<typeof inspectAutoMovieInspectorRequest>[0],
30
+ "request"
31
+ > = {
32
+ instance: now.instance,
33
+ renderer: now.renderer,
34
+ marks: now.instance.marks?.(props.seconds),
35
+ };
36
+ try {
37
+ now.inspection = inspectAutoMovieInspectorRequest({
38
+ ...base,
39
+ request: props.request,
40
+ });
41
+ return true;
42
+ } catch (error) {
43
+ now.inspection = inspectAutoMovieInspectorRequest({
44
+ ...base,
45
+ request: now.applied,
46
+ });
47
+ props.refused(error);
48
+ return false;
49
+ }
50
+ }
@@ -0,0 +1,40 @@
1
+ import type { IAutoMovieInspectionDiagnostics } from "@automovie/interface";
2
+
3
+ import type { IAutoMovieInspectorAction } from "./IAutoMovieInspectorAction.js";
4
+
5
+ /**
6
+ * The edit that shows one observation: the picture at its witness second, with
7
+ * its entities labelled.
8
+ *
9
+ * A finding's paths name drawn objects, or parts a checker addresses below them
10
+ * such as a formation slot (`/slot/<n>`), a cord segment (`/segment/<n>`), a
11
+ * batch instance (`#<n>`) or a transform field (`.children[<n>].matrixWorld`).
12
+ * Each path is labelled by the nearest drawn path that equals it or contains
13
+ * it, so the label lands on the object the part belongs to; a path with no
14
+ * drawn owner is left unlabelled, because the scene refuses a label pattern
15
+ * that matches nothing.
16
+ *
17
+ * @param observation The witness to show.
18
+ * @param drawn The identity paths the scene draws, as the mount lists them.
19
+ * @returns A `locate` action for the inspector's reducer.
20
+ */
21
+ export function locateAutoMovieInspectorFinding(
22
+ observation: IAutoMovieInspectionDiagnostics.IObservation,
23
+ drawn: readonly string[],
24
+ ): IAutoMovieInspectorAction.ILocate {
25
+ const known: Set<string> = new Set(drawn);
26
+ const label: string[] = [];
27
+ for (const path of observation.finding.paths) {
28
+ let owner: string | undefined = path;
29
+ while (owner !== undefined && !known.has(owner)) {
30
+ const cut: number = Math.max(
31
+ owner.lastIndexOf("/"),
32
+ owner.lastIndexOf("#"),
33
+ owner.lastIndexOf("."),
34
+ );
35
+ owner = cut <= 0 ? undefined : owner.slice(0, cut);
36
+ }
37
+ if (owner !== undefined && !label.includes(owner)) label.push(owner);
38
+ }
39
+ return { type: "locate", seconds: observation.time.filmSeconds, label };
40
+ }
@@ -0,0 +1,4 @@
1
+ /** The text the inspector reports for a thrown value. */
2
+ export function messageOfAutoMovieInspectorError(error: unknown): string {
3
+ return error instanceof Error ? error.message : String(error);
4
+ }
@@ -3,6 +3,7 @@ import { StrictMode } from "react";
3
3
  import { type Root, createRoot } from "react-dom/client";
4
4
 
5
5
  import { AutoMovieInspector } from "./AutoMovieInspector.js";
6
+ import type { IAutoMovieInspectorProps } from "./IAutoMovieInspectorProps.js";
6
7
  import { createAutoMovieInspectorAddressWriter } from "./createAutoMovieInspectorAddressWriter.js";
7
8
 
8
9
  /**
@@ -10,17 +11,11 @@ import { createAutoMovieInspectorAddressWriter } from "./createAutoMovieInspecto
10
11
  *
11
12
  * `location` and `history` are the host's, passed in rather than read from `window`, so the page's address is the only global state the inspector writes and a host decides which. The returned `unmount` disposes the scene and its renderer through the component's effect cleanup.
12
13
  *
14
+ * A host that can reproduce its subjects in a terminal also supplies `captureCommand`.
15
+ *
13
16
  * ```ts
14
17
  * mountAutoMovieInspectorPage({ root: document.getElementById("root")!, subjects, location, history });
15
18
  * ```
16
- *
17
- * @evidence contracts/development/common.md#meaningful-documentation States what is rendered, where the first request comes from, how the address follows it, that nothing global is read, and what `unmount` releases.
18
- * @evidence contracts/development/implementation.md#principled-implementation `createRoot` is React 19's client entry, and StrictMode runs the canvas effect twice in development, which the scene mount is built to survive, so a page always exercises that path.
19
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Three steps: build the address writer, create the root, render the component with the address's query.
20
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No subject, request or address is chosen here; they are the host's.
21
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant work beyond React's own render.
22
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A page is mounted once.
23
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The React root owns the component tree until `unmount`, which unmounts it and so releases the scene, renderer and frame loop the component holds.
24
19
  */
25
20
  export function mountAutoMovieInspectorPage(props: {
26
21
  /** The element the page renders into. */
@@ -34,6 +29,9 @@ export function mountAutoMovieInspectorPage(props: {
34
29
 
35
30
  /** The page's history, whose current entry follows the request. */
36
31
  history: Pick<History, "replaceState" | "state">;
32
+
33
+ /** Executable and fixed capture arguments from the host, when available. */
34
+ captureCommand?: IAutoMovieInspectorProps["captureCommand"];
37
35
  }): {
38
36
  /** Unmount the page and release everything it holds. */
39
37
  unmount: () => void;
@@ -50,6 +48,7 @@ export function mountAutoMovieInspectorPage(props: {
50
48
  subjects={props.subjects}
51
49
  initialText={props.location.search}
52
50
  onRequestChange={onRequestChange}
51
+ captureCommand={props.captureCommand}
53
52
  />
54
53
  </StrictMode>,
55
54
  );