@automovie/viewer 0.3.4 → 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
@@ -1,41 +1,38 @@
1
1
  import type { AutoMovieInspectionShade, IAutoMovieCapturePlanRequest } from "@automovie/interface";
2
2
  /**
3
- * One edit of the inspector's request, as a control dispatches it to `reduceAutoMovieInspectorState`.
3
+ * One edit of the inspector's request, as a control dispatches it to
4
+ * `reduceAutoMovieInspectorState`.
4
5
  *
5
- * Each action names one request key of the capture plan grammar and the change to its text, so the edit goes through the grammar's own reader and a refusal names the key. Toggles add or remove one item of a comma-separated list, the colour action adds or replaces one `pattern=rrggbb` pair, and the others replace the key's whole text.
6
+ * Each action names one request key of the capture plan grammar and the change
7
+ * to its text, so the edit goes through the grammar's own reader and a refusal
8
+ * names the key. Toggles add or remove one item of a comma-separated list, the
9
+ * colour action adds or replaces one `pattern=rrggbb` pair, and the others
10
+ * replace the key's whole text.
6
11
  *
7
- * | Action | Key edited | Request member |
8
- * | --- | --- | --- |
9
- * | `select` | `parts` | `inspection.parts` |
10
- * | `hide` | `hide` | `inspection.hide` |
11
- * | `label` | `label` | `inspection.label` |
12
- * | `color` | `color` | `inspection.color` |
13
- * | `marks` | `marks` | `inspection.marks` |
14
- * | `shade` | `shade`, dropping `passes` | `passes` and `inspection.shade` |
15
- * | `switch` | `surface` or `xray` | that switch |
16
- * | `view` | `views` | `views` |
17
- * | `time` | `at`, dropping `from`, `to` and `rate` | `sampling` |
18
- * | `subject` | `subject` | `subject` |
19
- * | `text` | every key | the whole request |
20
- * | `restore` | none | the whole request, set back by the scene |
21
- *
22
- * @evidence contracts/development/design.md#principled-representation A union keyed by `type`, one member per kind of edit, each carrying exactly what that edit needs: a pattern and a direction for a toggle, an sRGB colour or null for a colour, a shade from the request's own union, a view text, subject seconds, a subject name or null, an address text, or a whole request.
23
- * @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the viewer, dispatched by the inspector's panels and read only by the reducer. Shades are the inspection request's own union and a restored request is the capture plan request, so no parallel type is declared.
24
- * @evidence contracts/development/design.md#prohibited-design-shortcuts No member names a request field: every edit is of a grammar key's text, so the typed request stays render's alone and a value the grammar refuses is refused with the key named.
25
- * @evidence contracts/development/common.md#meaningful-documentation Tabulates every action with the key it edits and the request member it changes.
12
+ * | Action | Key edited | Request member |
13
+ * | --------- | ----------------------------------------- | ---------------------------------------- |
14
+ * | `select` | `parts` | `inspection.parts` |
15
+ * | `hide` | `hide` | `inspection.hide` |
16
+ * | `label` | `label` | `inspection.label` |
17
+ * | `color` | `color` | `inspection.color` |
18
+ * | `marks` | `marks` | `inspection.marks` |
19
+ * | `shade` | `shade`, dropping `passes` | `passes` and `inspection.shade` |
20
+ * | `switch` | `surface` or `xray` | that switch |
21
+ * | `view` | `views` | `views` |
22
+ * | `time` | `at`, dropping `from`, `to` and `rate` | `sampling` |
23
+ * | `locate` | `at` as `time` does, and `label` replaced | `sampling` and `inspection.label` |
24
+ * | `subject` | `subject` | `subject` |
25
+ * | `text` | every key | the whole request |
26
+ * | `restore` | none | the whole request, set back by the scene |
26
27
  */
27
- export type IAutoMovieInspectorAction = IAutoMovieInspectorAction.IToggle | IAutoMovieInspectorAction.IColor | IAutoMovieInspectorAction.IShade | IAutoMovieInspectorAction.ISwitch | IAutoMovieInspectorAction.IView | IAutoMovieInspectorAction.ITime | IAutoMovieInspectorAction.ISubject | IAutoMovieInspectorAction.IText | IAutoMovieInspectorAction.IRestore;
28
+ export type IAutoMovieInspectorAction = IAutoMovieInspectorAction.IToggle | IAutoMovieInspectorAction.IColor | IAutoMovieInspectorAction.IShade | IAutoMovieInspectorAction.ISwitch | IAutoMovieInspectorAction.IView | IAutoMovieInspectorAction.ITime | IAutoMovieInspectorAction.ILocate | IAutoMovieInspectorAction.ISubject | IAutoMovieInspectorAction.IText | IAutoMovieInspectorAction.IRestore;
28
29
  export declare namespace IAutoMovieInspectorAction {
29
- /**
30
- * Add a pattern to, or remove it from, one of the request's pattern lists.
31
- *
32
- * @evidence contracts/development/design.md#principled-representation The list is named by its action type and the pattern is the path grammar's text, so a toggle of an absent pattern adds it and of a present one removes it, whatever the list.
33
- * @evidence contracts/development/design.md#minimal-and-owned-surface The discriminant, the pattern and the direction.
34
- * @evidence contracts/development/design.md#prohibited-design-shortcuts `on` states the direction instead of flipping, so a repeated dispatch is idempotent.
35
- * @evidence contracts/development/common.md#meaningful-documentation States what each member means.
36
- */
30
+ /** Add a pattern to, or remove it from, one of the request's pattern lists. */
37
31
  interface IToggle {
38
- /** Which list: `select` edits `parts`, `hide` edits `hide`, `label` edits `label`, `marks` edits `marks`. */
32
+ /**
33
+ * Which list: `select` edits `parts`, `hide` edits `hide`, `label` edits
34
+ * `label`, `marks` edits `marks`.
35
+ */
39
36
  type: "select" | "hide" | "label" | "marks";
40
37
  /** A path pattern, or a kind pattern for `marks`. */
41
38
  pattern: string;
@@ -43,115 +40,77 @@ export declare namespace IAutoMovieInspectorAction {
43
40
  on: boolean;
44
41
  }
45
42
  /**
46
- * Give the objects and marks a pattern selects a colour, or take a colour back.
47
- *
48
- * @evidence contracts/development/design.md#principled-representation A colour is an sRGB hex integer, the form marks and the palette use; null takes the pattern's colour out of the list.
49
- * @evidence contracts/development/design.md#minimal-and-owned-surface The discriminant, the pattern and the colour.
50
- * @evidence contracts/development/design.md#prohibited-design-shortcuts Removal is null rather than a reserved colour, so every integer is a colour.
51
- * @evidence contracts/development/common.md#meaningful-documentation States the encoding and the null case.
43
+ * Give the objects and marks a pattern selects a colour, or take a colour
44
+ * back.
52
45
  */
53
46
  interface IColor {
54
47
  /** Discriminant. */
55
48
  type: "color";
56
49
  /** The path pattern coloured. */
57
50
  pattern: string;
58
- /** sRGB hex colour, such as `0xff3b30`, or null to remove the pattern's colour. */
51
+ /**
52
+ * SRGB hex colour, such as `0xff3b30`, or null to remove the pattern's
53
+ * colour.
54
+ */
59
55
  color: number | null;
60
56
  }
61
- /**
62
- * Draw in one shade.
63
- *
64
- * @evidence contracts/development/design.md#principled-representation One shade from the inspection request's union; the page draws one pass, so several passes collapse to this one.
65
- * @evidence contracts/development/design.md#minimal-and-owned-surface The discriminant and the shade.
66
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The shade type is the request's own, so an unknown shade cannot be dispatched.
67
- * @evidence contracts/development/common.md#meaningful-documentation States that several passes become one.
68
- */
57
+ /** Draw in one shade. */
69
58
  interface IShade {
70
59
  /** Discriminant. */
71
60
  type: "shade";
72
61
  /** The shade drawn. */
73
62
  shade: AutoMovieInspectionShade;
74
63
  }
75
- /**
76
- * Turn one of the request's switches on or off.
77
- *
78
- * @evidence contracts/development/design.md#principled-representation The switch is named by its key and its state is a boolean, written `1` or `0`.
79
- * @evidence contracts/development/design.md#minimal-and-owned-surface The discriminant, the key and the state.
80
- * @evidence contracts/development/design.md#prohibited-design-shortcuts Only the switches a panel offers are listed, so no key outside the grammar can be named.
81
- * @evidence contracts/development/common.md#meaningful-documentation States what each key does.
82
- */
64
+ /** Turn one of the request's switches on or off. */
83
65
  interface ISwitch {
84
66
  /** Discriminant. */
85
67
  type: "switch";
86
- /** `surface` draws the surfaces; `xray` draws marks over the surfaces that would hide them. */
68
+ /**
69
+ * `surface` draws the surfaces; `xray` draws marks over the surfaces that
70
+ * would hide them.
71
+ */
87
72
  key: "surface" | "xray";
88
73
  /** The switch's new state. */
89
74
  on: boolean;
90
75
  }
91
- /**
92
- * Draw through one view.
93
- *
94
- * @evidence contracts/development/design.md#principled-representation A view is its text in the inspection view grammar, which the plan reader checks.
95
- * @evidence contracts/development/design.md#minimal-and-owned-surface The discriminant and the text.
96
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The text replaces every view, because the page draws through one.
97
- * @evidence contracts/development/common.md#meaningful-documentation States the grammar and the replacement.
98
- */
76
+ /** Draw through one view. */
99
77
  interface IView {
100
78
  /** Discriminant. */
101
79
  type: "view";
102
80
  /** A view text such as `film`, `front@ortho` or `0,1.6,4:0,1,0`. */
103
81
  view: string;
104
82
  }
105
- /**
106
- * Fix the second the picture shows.
107
- *
108
- * @evidence contracts/development/design.md#principled-representation Subject seconds, written as the `at` key, which replaces any even sampling.
109
- * @evidence contracts/development/design.md#minimal-and-owned-surface The discriminant and the second.
110
- * @evidence contracts/development/design.md#prohibited-design-shortcuts Playback does not dispatch it per frame; a pause or a seek does, so the request names the picture shown when nothing moves.
111
- * @evidence contracts/development/common.md#meaningful-documentation States the unit, the key and when it is dispatched.
112
- */
83
+ /** Fix the second the picture shows. */
113
84
  interface ITime {
114
85
  /** Discriminant. */
115
86
  type: "time";
116
87
  /** Subject second, zero or more. */
117
88
  seconds: number;
118
89
  }
119
- /**
120
- * Inspect another subject.
121
- *
122
- * @evidence contracts/development/design.md#principled-representation A subject name, or null for the host's only subject.
123
- * @evidence contracts/development/design.md#minimal-and-owned-surface The discriminant and the name.
124
- * @evidence contracts/development/design.md#prohibited-design-shortcuts Null keeps the grammar's own meaning instead of an empty name.
125
- * @evidence contracts/development/common.md#meaningful-documentation States the null case.
126
- */
90
+ /** Show a finding: fix the picture at its second and name its entities on it. */
91
+ interface ILocate {
92
+ /** Discriminant. */
93
+ type: "locate";
94
+ /** Subject second of the finding's witness, zero or more. */
95
+ seconds: number;
96
+ /** Drawn paths to label, replacing the current labels. */
97
+ label: string[];
98
+ }
99
+ /** Inspect another subject. */
127
100
  interface ISubject {
128
101
  /** Discriminant. */
129
102
  type: "subject";
130
103
  /** The subject's name, or null for the only subject. */
131
104
  name: string | null;
132
105
  }
133
- /**
134
- * Replace the whole request with the one an address or command text names.
135
- *
136
- * @evidence contracts/development/design.md#principled-representation The text is a query string of the plan grammar's keys, with or without its leading `?`.
137
- * @evidence contracts/development/design.md#minimal-and-owned-surface The discriminant and the text.
138
- * @evidence contracts/development/design.md#prohibited-design-shortcuts A refused text keeps the previous request, so a typing mistake never blanks the picture.
139
- * @evidence contracts/development/common.md#meaningful-documentation States the text's form and the refusal.
140
- */
106
+ /** Replace the whole request with the one an address or command text names. */
141
107
  interface IText {
142
108
  /** Discriminant. */
143
109
  type: "text";
144
110
  /** The address text. */
145
111
  text: string;
146
112
  }
147
- /**
148
- * Set back the request the scene still draws after it refused a new one.
149
- *
150
- * @evidence contracts/development/design.md#principled-representation The scene's refusal comes after the grammar accepted the request, such as a mark pattern that matches no kind, so the scene hands back the request it draws and the reason.
151
- * @evidence contracts/development/design.md#minimal-and-owned-surface The discriminant, the request and the reason.
152
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The request is a whole plan request the scene applied before, not a partial patch.
153
- * @evidence contracts/development/common.md#meaningful-documentation States who dispatches it and why.
154
- */
113
+ /** Set back the request the scene still draws after it refused a new one. */
155
114
  interface IRestore {
156
115
  /** Discriminant. */
157
116
  type: "restore";
@@ -0,0 +1,43 @@
1
+ import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
2
+ import type { IAutoMovieDrawScene, IAutoMovieInspectionHandle } from "@automovie/render";
3
+ import type * as THREE from "three";
4
+ import type { AutoMovieInspectorBeauty } from "./AutoMovieInspectorBeauty.js";
5
+ import type { AutoMovieInspectorPlayhead } from "./AutoMovieInspectorPlayhead.js";
6
+ import type { AutoMovieInspectorTransition } from "./AutoMovieInspectorTransition.js";
7
+ import type { IAutoMovieInspectorSceneHost } from "./IAutoMovieInspectorSceneHost.js";
8
+ /**
9
+ * What an inspector mount holds once its subject is ready: the subject and the
10
+ * resources drawn with, the inspection in force, and the frame loop's state.
11
+ */
12
+ export interface IAutoMovieInspectorLive {
13
+ /** The created subject. */
14
+ instance: IAutoMovieDrawScene;
15
+ /** The host's renderer. */
16
+ renderer: IAutoMovieInspectorSceneHost.IRenderer;
17
+ /** The host's renderer as a WebGL one, or null when it is not. */
18
+ compositor: THREE.WebGLRenderer | null;
19
+ /** The beauty picture's film stages. */
20
+ beauty: AutoMovieInspectorBeauty;
21
+ /** A transition's held outgoing shot. */
22
+ transition: AutoMovieInspectorTransition;
23
+ /** The inspection applied to the subject's scene. */
24
+ inspection: IAutoMovieInspectionHandle;
25
+ /** The request that inspection was applied from. */
26
+ applied: IAutoMovieCapturePlanRequest;
27
+ /** The pending animation frame, if one is scheduled. */
28
+ frame: number | undefined;
29
+ /** The previous frame's clock in milliseconds, before the first frame none. */
30
+ lastMs: number | undefined;
31
+ /** The playhead snapshot last drawn. */
32
+ drawn: AutoMovieInspectorPlayhead.ISnapshot | undefined;
33
+ /** The size the renderer was last sized to. */
34
+ size: IAutoMovieInspectorSceneHost.ISize | undefined;
35
+ /** Whether the next frame must redraw though the snapshot did not change. */
36
+ dirty: boolean;
37
+ /** Whether a seek is pending, during which no other draw starts. */
38
+ seeking: boolean;
39
+ /** The drawing error last reported, or null. */
40
+ error: string | null;
41
+ /** Whether labels of a paused picture are on screen. */
42
+ labelled: boolean;
43
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieInspectorLive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieInspectorLive.js","sourceRoot":"","sources":["../../src/inspector/IAutoMovieInspectorLive.ts"],"names":[],"mappings":""}
File without changes
@@ -1,21 +1,26 @@
1
1
  /**
2
- * One name in the tree of a subject's identity paths, as the selection panel lists it.
3
- *
4
- * @evidence contracts/development/design.md#principled-representation A path is names joined by `/`, so its prefixes form a tree; each node is one prefix, with the pattern that selects exactly that prefix and its subtree, and whether something drawn sits at that exact path or only beneath it.
5
- * @evidence contracts/development/design.md#minimal-and-owned-surface Produced by `buildAutoMovieInspectorPathTree` and read by the selection panel, which shows the name, edits by the pattern, and recurses into the children.
6
- * @evidence contracts/development/design.md#prohibited-design-shortcuts No node names a subject kind or a part; groups and objects are told apart only by `drawn`. The pattern is null where the path grammar has no pattern for exactly that node.
7
- * @evidence contracts/development/common.md#meaningful-documentation States what a node stands for and what each member holds.
2
+ * One name in the tree of a subject's identity paths, as the selection panel
3
+ * lists it.
8
4
  */
9
5
  export interface IAutoMovieInspectorPathNode {
10
- /** The last name of the path, or the empty string for the empty path of an object with no named ancestor. */
6
+ /**
7
+ * The last name of the path, or the empty string for the empty path of an
8
+ * object with no named ancestor.
9
+ */
11
10
  name: string;
12
11
  /** The names from the scene down to this node, joined by `/`. */
13
12
  path: string;
14
13
  /**
15
- * The pattern that selects this node and everything beneath it, and nothing else: the path itself when it has two names or more, `<name>/**` for a top-level name, since a pattern of one name matches that name at any depth, and null for the empty path, which only `**` reaches.
14
+ * The pattern that selects this node and everything beneath it, and nothing
15
+ * else: the path itself when it has two names or more, `<name>/**` for a
16
+ * top-level name, since a pattern of one name matches that name at any depth,
17
+ * and null for the empty path, which only `**` reaches.
16
18
  */
17
19
  pattern: string | null;
18
- /** Whether an object or mark sits at exactly this path, rather than only beneath it. */
20
+ /**
21
+ * Whether an object or mark sits at exactly this path, rather than only
22
+ * beneath it.
23
+ */
19
24
  drawn: boolean;
20
25
  /** The nodes one name deeper, in the order their paths first appeared. */
21
26
  children: IAutoMovieInspectorPathNode[];
@@ -1,11 +1,6 @@
1
1
  import type { IAutoMovieDrawSubject } from "@automovie/render";
2
2
  /**
3
- * What a page gives `AutoMovieInspector`: the subjects it offers, the request text it opens with, and where to hear about every change of the request.
4
- *
5
- * @evidence contracts/development/design.md#principled-representation The inspector's state is one request, so the page hands in its first text and listens for the text of each change; the subjects are the draw page's own subjects by name, so the page that draws and the page that inspects offer one record.
6
- * @evidence contracts/development/design.md#minimal-and-owned-surface Three members the scaffold page uses: the subject module's record as subjects, `location.search` as the first text and `createAutoMovieInspectorAddressWriter` as the listener. The subject type is render's `IAutoMovieDrawSubject`, not a parallel one.
7
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The text is read once; the inspector owns the request afterwards, so a page cannot fight it by passing a new text each render.
8
- * @evidence contracts/development/common.md#meaningful-documentation States what each member is, the identity each subject must keep, when the text is read and what the listener receives.
3
+ * What a page gives `AutoMovieInspector`: subjects, the first request and optional address and capture command wiring.
9
4
  */
10
5
  export interface IAutoMovieInspectorProps {
11
6
  /**
@@ -16,16 +11,10 @@ export interface IAutoMovieInspectorProps {
16
11
  subjects: Readonly<Record<string, IAutoMovieDrawSubject>>;
17
12
  /** Address query text the inspector opens with, such as `location.search`; read once, at mount, by `readAutoMovieInspectorAddress`. A text the grammar refuses, such as one with an unknown key, opens the request that asks for nothing, with the refusal shown. */
18
13
  initialText: string;
14
+ /** Executable and fixed arguments for capture from this host's working directory. Omit when the host only offers an address. */
15
+ captureCommand?: readonly [string, ...string[]];
19
16
  /**
20
17
  * Hear the address text of the request after every change, and once at mount, so the page keeps its address equal to the request. `createAutoMovieInspectorAddressWriter` gives one that writes through an injected `history`; without a listener the inspector touches no address.
21
- *
22
- * @evidence contracts/development/common.md#meaningful-documentation States what is received, when, and the default helper.
23
- * @evidenceExclude contracts/development/implementation.md#principled-implementation A callback signature; the page implements it.
24
- * @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A callback signature; the page implements it.
25
- * @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A callback signature; the page implements it.
26
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms A callback signature; the page implements it.
27
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A callback signature; the page implements it.
28
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A callback signature; the page implements it.
29
18
  */
30
19
  onRequestChange?: (text: string) => void;
31
20
  }
@@ -1,56 +1,79 @@
1
- import type { IAutoMovieCapturePlanRequest, IAutoMovieInspectionLegendEntry } from "@automovie/interface";
1
+ import type { IAutoMovieCapturePlanRequest, IAutoMovieInspectionDiagnostics, IAutoMovieInspectionLegendEntry } from "@automovie/interface";
2
2
  import type { IApplyAutoMovieInspectionProps } from "@automovie/render";
3
3
  /**
4
- * A subject mounted on the inspector's canvas by `mountAutoMovieInspectorScene`: the calls the component makes while it lives.
5
- *
6
- * @evidence contracts/development/design.md#principled-representation A mount is a live resource with a request in force, so it is a handle with one call to change the request and one to end it, the form the inspection handle has.
7
- * @evidence contracts/development/design.md#minimal-and-owned-surface Two calls the component's effects make; what the mount learns flows out through the `IReport` the component passes in.
8
- * @evidence contracts/development/design.md#prohibited-design-shortcuts `apply` never throws: a request the scene refuses is reported with the request still drawn, so the component sets that request back and the address stays equal to the picture.
9
- * @evidence contracts/development/common.md#meaningful-documentation States what the handle stands for and what each call does.
4
+ * A subject mounted on the inspector's canvas by
5
+ * `mountAutoMovieInspectorScene`: the calls the component makes while it
6
+ * lives.
10
7
  */
11
8
  export interface IAutoMovieInspectorScene {
12
9
  /**
13
- * Draw a new request from the next frame. Before the instance is ready the request is held and applied when it is.
10
+ * Draw a new request from the next frame. Before the instance is ready the
11
+ * request is held and applied when it is.
14
12
  *
15
- * The inspection is re-applied when the request's inspection differs, the playhead moves to the request's first second when that differs, and the picture redraws. When the inspection refuses the request, such as a mark pattern that matches no kind, the previous request stays drawn and is reported through `IReport.refused` with the reason. The same request object again does nothing.
16
- *
17
- * @evidence contracts/development/common.md#meaningful-documentation States when the request takes effect, what is re-applied, the refusal path and the identity rule.
18
- * @evidence contracts/development/implementation.md#principled-implementation The scene's inspection is restored before a new one is applied, as `applyAutoMovieInspection` requires a scene in its own state, and the previous request is re-applied when the new one throws, so the scene is never left uninspected.
19
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One call per request change, from the component's effect.
20
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A refusal is reported and undone, never drawn half-applied.
21
- * @evidence contracts/development/implementation.md#efficient-algorithms One restore and one apply, each linear in the scene and its marks, only when the inspection changed.
22
- * @evidence contracts/development/implementation.md#reuse-equivalent-work A request whose inspection writes the same text keeps the applied inspection.
23
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds one applied inspection; the replaced one is restored first.
13
+ * The inspection is re-applied when the request's inspection differs, the
14
+ * playhead moves to the request's first second when that differs, and the
15
+ * picture redraws. When the inspection refuses the request, such as a mark
16
+ * pattern that matches no kind, the previous request stays drawn and is
17
+ * reported through `IReport.refused` with the reason. The same request object
18
+ * again does nothing.
24
19
  */
25
20
  apply(request: IAutoMovieCapturePlanRequest): void;
26
21
  /**
27
- * End the mount: cancel the pending frame, restore the inspection, dispose the renderer and the instance, or dispose the instance when it arrives if it has not yet. Calling it again does nothing.
28
- *
29
- * @evidence contracts/development/common.md#meaningful-documentation States everything released, the late-instance case and the repeated call.
30
- * @evidence contracts/development/implementation.md#principled-implementation Release runs in the reverse of acquisition, every step attempted even when one throws, so one failure cannot leak the rest.
31
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One call that the component's effect cleanup makes.
32
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The renderer's context is not forced lost, because StrictMode mounts again on the same canvas and a lost context would leave the next renderer black.
33
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in what the inspection changed.
34
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A release computes nothing to reuse.
35
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources After the call no frame is pending and the mount holds no renderer, instance or inspection.
22
+ * Show or hide the diagnostic witness cubes from the next frame. Checks,
23
+ * their reports and console incidents continue either way.
24
+ */
25
+ overlay(show: boolean): void;
26
+ /**
27
+ * End the mount: cancel the pending frame, restore the inspection, dispose
28
+ * the renderer and the instance, or dispose the instance when it arrives if
29
+ * it has not yet. Calling it again does nothing.
36
30
  */
37
31
  dispose(): void;
38
32
  }
39
33
  export declare namespace IAutoMovieInspectorScene {
40
34
  /**
41
- * What a mount learns about its subject once the instance is ready, for the panels.
42
- *
43
- * @evidence contracts/development/design.md#principled-representation The identity paths a selection can name, the supplied marks the kinds are listed from, the view names a view can take, the subject's raster in pixels, its duration in seconds and its frames per second.
44
- * @evidence contracts/development/design.md#minimal-and-owned-surface Each member feeds one panel: paths the selection tree, marks the marks panel, views the view panel, the raster the canvas aspect, the duration and frame rate the readout.
45
- * @evidence contracts/development/design.md#prohibited-design-shortcuts Paths and marks are those of the first second drawn, and the kinds are listed under the current request because a sliver limit or a trail adds kinds; marks that appear later are reached by typing a pattern.
46
- * @evidence contracts/development/common.md#meaningful-documentation States what each member lists and at which second.
35
+ * What joined the samples of a reported span: `frames` for checks at
36
+ * consecutive output frames, `playback` for painted samples of one
37
+ * uninterrupted playback, whose unpainted film in between was not checked.
38
+ */
39
+ type EpisodeBasis = "frames" | "playback";
40
+ /**
41
+ * One console incident: a confirmed error's first visit, or a closed span of
42
+ * its observations.
43
+ */
44
+ type IIncident = {
45
+ kind: "first";
46
+ observation: IAutoMovieInspectionDiagnostics.IObservation;
47
+ } | {
48
+ kind: "episode";
49
+ basis: EpisodeBasis;
50
+ episode: IAutoMovieInspectionDiagnostics.IEpisode;
51
+ firstSample: IAutoMovieInspectionDiagnostics.ITime;
52
+ };
53
+ /**
54
+ * What a mount learns about its subject once the instance is ready, for the
55
+ * panels.
47
56
  */
48
57
  interface IFacts {
49
- /** Identity paths of every drawn object in scene order, then of every supplied mark, at the first second drawn. */
58
+ /**
59
+ * Identity paths of every drawn object in scene order, then of every
60
+ * supplied mark, at the first second drawn.
61
+ */
50
62
  paths: string[];
51
- /** The marks the subject supplies at the first second drawn; the marks panel lists the kinds a request can name from them with `listAutoMovieInspectionKinds`, under the request in force. */
63
+ /**
64
+ * Marks supplied at the first second drawn, which provide their kinds and
65
+ * styles to the marks panel.
66
+ */
52
67
  marks: NonNullable<IApplyAutoMovieInspectionProps["marks"]>;
53
- /** The subject's own view names, then the named viewpoints a fitted view takes. */
68
+ /**
69
+ * Subject-declared kinds available throughout the mount, including kinds
70
+ * with no mark at the first second.
71
+ */
72
+ markKinds?: IApplyAutoMovieInspectionProps["markKinds"];
73
+ /**
74
+ * The subject's own view names, then the named viewpoints a fitted view
75
+ * takes.
76
+ */
54
77
  views: string[];
55
78
  /** Width in pixels of a still of the subject. */
56
79
  width: number;
@@ -58,19 +81,18 @@ export declare namespace IAutoMovieInspectorScene {
58
81
  height: number;
59
82
  /** The subject's duration in seconds. */
60
83
  durationSeconds: number;
61
- /** Frames per second of the subject's own grid, the step the time slider moves by. */
84
+ /**
85
+ * Frames per second of the subject's own grid, the step the time slider
86
+ * moves by.
87
+ */
62
88
  fps: number;
63
89
  }
64
- /**
65
- * The labels of one paused picture, placed for the canvas as laid out.
66
- *
67
- * @evidence contracts/development/design.md#principled-representation Positions and line height are CSS pixels of the canvas, converted from the picture pixels render's placement works in by the ratio of the canvas's size to the subject's raster, so an element placed at them sits where a capture stamps the same label.
68
- * @evidence contracts/development/design.md#minimal-and-owned-surface The labels kept and the line height the component sizes them by; dropped labels are counted so the reader knows some were asked for.
69
- * @evidence contracts/development/design.md#prohibited-design-shortcuts No font or colour: the component owns how a label looks.
70
- * @evidence contracts/development/common.md#meaningful-documentation States the units and the conversion.
71
- */
90
+ /** The labels of one paused picture, placed for the canvas as laid out. */
72
91
  interface ILabels {
73
- /** Each kept label: its path, its text, and its top-left corner in CSS pixels from the canvas's top-left. */
92
+ /**
93
+ * Each kept label: its path, its text, and its top-left corner in CSS
94
+ * pixels from the canvas's top-left.
95
+ */
74
96
  labels: {
75
97
  /** The labelled path. */
76
98
  path: string;
@@ -81,78 +103,52 @@ export declare namespace IAutoMovieInspectorScene {
81
103
  /** CSS pixels from the canvas's top edge. */
82
104
  top: number;
83
105
  }[];
84
- /** Height of the stamp's label box in CSS pixels, which the overlap was decided for. */
106
+ /**
107
+ * Height of the stamp's label box in CSS pixels, which the overlap was
108
+ * decided for.
109
+ */
85
110
  lineHeight: number;
86
- /** How many asked labels were dropped because they would overlap a kept one or fall outside the picture. */
111
+ /**
112
+ * How many asked labels were dropped because they would overlap a kept one
113
+ * or fall outside the picture.
114
+ */
87
115
  dropped: number;
88
116
  }
89
117
  /**
90
- * Where a mount reports what it learns; the component turns each report into state.
91
- *
92
- * @evidence contracts/development/design.md#principled-representation Five events: ready, a legend, labels, a drawing error or its end, and a refused request.
93
- * @evidence contracts/development/design.md#minimal-and-owned-surface Each is read by the inspector component and nothing else.
94
- * @evidence contracts/development/design.md#prohibited-design-shortcuts A drawing error and a refused request are separate, because only the second changes the request.
95
- * @evidence contracts/development/common.md#meaningful-documentation States when each event fires.
118
+ * Where a mount reports what it learns; the component turns each report into
119
+ * state.
96
120
  */
97
121
  interface IReport {
98
- /**
99
- * The instance is ready and drawn once.
100
- *
101
- * @evidence contracts/development/common.md#meaningful-documentation States when it fires.
102
- * @evidenceExclude contracts/development/implementation.md#principled-implementation A callback signature; the component implements it.
103
- * @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A callback signature; the component implements it.
104
- * @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A callback signature; the component implements it.
105
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms A callback signature; the component implements it.
106
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A callback signature; the component implements it.
107
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A callback signature; the component implements it.
108
- */
122
+ /** The instance is ready and drawn once. */
109
123
  ready(facts: IFacts): void;
110
124
  /**
111
- * The legend of the picture, after an apply and after every draw while paused.
112
- *
113
- * @evidence contracts/development/common.md#meaningful-documentation States when it fires.
114
- * @evidenceExclude contracts/development/implementation.md#principled-implementation A callback signature; the component implements it.
115
- * @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A callback signature; the component implements it.
116
- * @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A callback signature; the component implements it.
117
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms A callback signature; the component implements it.
118
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A callback signature; the component implements it.
119
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A callback signature; the component implements it.
125
+ * The legend of the picture, after an apply and after every draw while
126
+ * paused.
120
127
  */
121
128
  legend(entries: IAutoMovieInspectionLegendEntry[]): void;
122
129
  /**
123
- * The labels the request's `label` patterns place on the picture, after every draw while paused, and none once playing starts.
124
- *
125
- * @evidence contracts/development/common.md#meaningful-documentation States when it fires and the empty case.
126
- * @evidenceExclude contracts/development/implementation.md#principled-implementation A callback signature; the component implements it.
127
- * @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A callback signature; the component implements it.
128
- * @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A callback signature; the component implements it.
129
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms A callback signature; the component implements it.
130
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A callback signature; the component implements it.
131
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A callback signature; the component implements it.
130
+ * The labels the request's `label` patterns place on the picture, after
131
+ * every draw while paused, and none once playing starts.
132
132
  */
133
133
  labels(placed: ILabels): void;
134
134
  /**
135
- * Why the last frame or the instance could not be drawn, or null once a frame draws again.
136
- *
137
- * @evidence contracts/development/common.md#meaningful-documentation States when it fires and what null means.
138
- * @evidenceExclude contracts/development/implementation.md#principled-implementation A callback signature; the component implements it.
139
- * @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A callback signature; the component implements it.
140
- * @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A callback signature; the component implements it.
141
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms A callback signature; the component implements it.
142
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A callback signature; the component implements it.
143
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A callback signature; the component implements it.
135
+ * Why the last frame or the instance could not be drawn, or null once a
136
+ * frame draws again.
144
137
  */
145
138
  error(message: string | null): void;
146
139
  /**
147
- * The scene refused a request; `request` is the one it still draws and `message` why.
148
- *
149
- * @evidence contracts/development/common.md#meaningful-documentation States when it fires and what each argument is.
150
- * @evidenceExclude contracts/development/implementation.md#principled-implementation A callback signature; the component implements it.
151
- * @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A callback signature; the component implements it.
152
- * @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A callback signature; the component implements it.
153
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms A callback signature; the component implements it.
154
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A callback signature; the component implements it.
155
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A callback signature; the component implements it.
140
+ * Findings and coverage of a painted production sample when the subject
141
+ * provides diagnostics.
142
+ */
143
+ diagnostics?(packet: IAutoMovieInspectionDiagnostics): void;
144
+ /**
145
+ * Console evidence from the current mount's confirmed diagnostic
146
+ * observations.
147
+ */
148
+ diagnosticIncident?(entry: IIncident): void;
149
+ /**
150
+ * The scene refused a request; `request` is the one it still draws and
151
+ * `message` why.
156
152
  */
157
153
  refused(request: IAutoMovieCapturePlanRequest, message: string): void;
158
154
  }