@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
@@ -4,36 +4,55 @@ exports.formatAutoMovieInspectorCommand = formatAutoMovieInspectorCommand;
4
4
  const render_1 = require("@automovie/render");
5
5
  /** An argument a POSIX shell passes through unquoted. */
6
6
  const PLAIN = /^[\w%+,./:=@-]+$/u;
7
+ /** A bare word that also stays one argument to a PowerShell script. */
8
+ const POWERSHELL_PLAIN = /^[\w+./:=-]+$/u;
7
9
  /**
8
- * Write the `automovie capture` command that repeats a request: its options, and the command line a person copies.
10
+ * Write a capture request's option tokens and a shell command to copy.
9
11
  *
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.
12
+ * Every pair `formatAutoMovieCapturePlanRequest` writes becomes one
13
+ * `--<key>=<value>` option, in its order. The `=` form is used for every
14
+ * option, so a value that starts with `-`, such as an axis cut `-x:0.2`, or
15
+ * that is empty stays the option's value. `readAutoMovieCaptureArguments` reads
16
+ * the options back to the same named values, so the command's reader gives an
17
+ * equal request.
11
18
  *
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.
19
+ * The text starts with the host's executable and arguments, or with `automovie
20
+ * capture` when the caller formats the request alone. The host supplies any
21
+ * options required to reproduce its subject and inputs. POSIX is the default.
22
+ * PowerShell also quotes commas so a script such as `pnpm` receives each list
23
+ * or plane as one argument.
13
24
  *
14
25
  * ```ts
15
26
  * const { text } = formatAutoMovieInspectorCommand(request);
16
27
  * ```
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
28
  */
26
- function formatAutoMovieInspectorCommand(request) {
29
+ function formatAutoMovieInspectorCommand(request, props = {}) {
27
30
  const options = (0, render_1.formatAutoMovieCapturePlanRequest)(request).map(([key, value]) => `--${key}=${value}`);
31
+ const powershell = props.shell === "powershell";
32
+ const quote = powershell
33
+ ? quotePowerShell
34
+ : quotePosix;
35
+ const [executable, ...fixed] = props.command ?? ["automovie", "capture"];
36
+ const program = quote(executable);
28
37
  return {
29
38
  options,
30
- text: ["automovie", "capture", ...options.map(quote)].join(" "),
39
+ text: [
40
+ powershell && program !== executable ? `& ${program}` : program,
41
+ ...fixed.map(quote),
42
+ ...options.map(quote),
43
+ ].join(" "),
31
44
  };
32
45
  }
33
46
  /** One argument as a POSIX shell word. */
34
- function quote(argument) {
47
+ function quotePosix(argument) {
35
48
  return PLAIN.test(argument)
36
49
  ? argument
37
50
  : `'${argument.replaceAll("'", "'\\''")}'`;
38
51
  }
52
+ /** One argument as a PowerShell word, including smart single quotes. */
53
+ function quotePowerShell(argument) {
54
+ return POWERSHELL_PLAIN.test(argument)
55
+ ? argument
56
+ : `'${argument.replace(/['\u2018-\u201b]/gu, "$&$&")}'`;
57
+ }
39
58
  //# sourceMappingURL=formatAutoMovieInspectorCommand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatAutoMovieInspectorCommand.js","sourceRoot":"","sources":["../../src/inspector/formatAutoMovieInspectorCommand.ts"],"names":[],"mappings":";;;AACA,8CAAsE;AAEtE,yDAAyD;AACzD,MAAM,KAAK,GAAW,mBAAmB,CAAC;AAE1C;;;;;;;;;;;;;;;;;;GAkBG;AACH,yCACE,OAAqC;IAQrC,MAAM,OAAO,GAAa,IAAA,0CAAiC,EAAC,OAAO,CAAC,CAAC,GAAG,CACtE,CAAC,CAAC,GAAG,EAAE,KAAK,CAA+B,EAAU,EAAE,CAAC,KAAK,GAAG,IAAI,KAAK,EAAE,CAC5E,CAAC;IACF,OAAO;QACL,OAAO;QACP,IAAI,EAAE,CAAC,WAAW,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;KAChE,CAAC;AACJ,CAAC;AAED,0CAA0C;AAC1C,SAAS,KAAK,CAAC,QAAgB;IAC7B,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,IAAI,QAAQ,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC;AAC/C,CAAC"}
1
+ {"version":3,"file":"formatAutoMovieInspectorCommand.js","sourceRoot":"","sources":["../../src/inspector/formatAutoMovieInspectorCommand.ts"],"names":[],"mappings":";;;AACA,8CAAsE;AAEtE,yDAAyD;AACzD,MAAM,KAAK,GAAW,mBAAmB,CAAC;AAE1C,uEAAuE;AACvE,MAAM,gBAAgB,GAAW,gBAAgB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,yCACE,OAAqC,EACrC,KAAK,GAMD,EAAE;IAQN,MAAM,OAAO,GAAa,IAAA,0CAAiC,EAAC,OAAO,CAAC,CAAC,GAAG,CACtE,CAAC,CAAC,GAAG,EAAE,KAAK,CAA+B,EAAU,EAAE,CAAC,KAAK,GAAG,IAAI,KAAK,EAAE,CAC5E,CAAC;IACF,MAAM,UAAU,GAAY,KAAK,CAAC,KAAK,KAAK,YAAY,CAAC;IACzD,MAAM,KAAK,GAAiC,UAAU;QACpD,CAAC,CAAC,eAAe;QACjB,CAAC,CAAC,UAAU,CAAC;IACf,MAAM,CAAC,UAAU,EAAE,GAAG,KAAK,CAAC,GAC1B,KAAK,CAAC,OAAO,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAC5C,MAAM,OAAO,GAAW,KAAK,CAAC,UAAU,CAAC,CAAC;IAC1C,OAAO;QACL,OAAO;QACP,IAAI,EAAE;YACJ,UAAU,IAAI,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO;YAC/D,GAAG,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC;YACnB,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC;SACtB,CAAC,IAAI,CAAC,GAAG,CAAC;KACZ,CAAC;AACJ,CAAC;AAED,0CAA0C;AAC1C,SAAS,UAAU,CAAC,QAAgB;IAClC,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,IAAI,QAAQ,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC;AAC/C,CAAC;AAED,wEAAwE;AACxE,SAAS,eAAe,CAAC,QAAgB;IACvC,OAAO,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC;QACpC,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,IAAI,QAAQ,CAAC,OAAO,CAAC,oBAAoB,EAAE,MAAM,CAAC,GAAG,CAAC;AAC5D,CAAC"}
@@ -2,40 +2,51 @@ import { formatAutoMovieCapturePlanRequest } from "@automovie/render";
2
2
  // src/inspector/formatAutoMovieInspectorCommand.ts
3
3
  /** An argument a POSIX shell passes through unquoted. */
4
4
  const PLAIN = /^[\w%+,./:=@-]+$/u;
5
+ /** A bare word that also stays one argument to a PowerShell script. */
6
+ const POWERSHELL_PLAIN = /^[\w+./:=-]+$/u;
5
7
  /**
6
- * Write the `automovie capture` command that repeats a request: its options, and the command line a person copies.
8
+ * Write a capture request's option tokens and a shell command to copy.
7
9
  *
8
- * 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.
10
+ * Every pair `formatAutoMovieCapturePlanRequest` writes becomes one
11
+ * `--<key>=<value>` option, in its order. The `=` form is used for every
12
+ * option, so a value that starts with `-`, such as an axis cut `-x:0.2`, or
13
+ * that is empty stays the option's value. `readAutoMovieCaptureArguments` reads
14
+ * the options back to the same named values, so the command's reader gives an
15
+ * equal request.
9
16
  *
10
- * 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.
17
+ * The text starts with the host's executable and arguments, or with `automovie
18
+ * capture` when the caller formats the request alone. The host supplies any
19
+ * options required to reproduce its subject and inputs. POSIX is the default.
20
+ * PowerShell also quotes commas so a script such as `pnpm` receives each list
21
+ * or plane as one argument.
11
22
  *
12
23
  * ```ts
13
24
  * const { text } = formatAutoMovieInspectorCommand(request);
14
25
  * ```
15
- *
16
- * @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.
17
- * @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.
18
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One map to options and one join with quoting.
19
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No option is written by hand, so the command offers exactly what the address carries.
20
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the length of the written request.
21
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure conversion of one request.
22
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns fresh strings and keeps nothing.
23
26
  */
24
- function formatAutoMovieInspectorCommand(request) {
27
+ function formatAutoMovieInspectorCommand(request, props = {}) {
25
28
  const options = formatAutoMovieCapturePlanRequest(request).map(([key, value]) => `--${key}=${value}`);
29
+ const powershell = props.shell === "powershell";
30
+ const quote = powershell ? quotePowerShell : quotePosix;
31
+ const [executable, ...fixed] = props.command ?? ["automovie", "capture"];
32
+ const program = quote(executable);
26
33
  return {
27
34
  options,
28
35
  text: [
29
- "automovie",
30
- "capture",
36
+ powershell && program !== executable ? `& ${program}` : program,
37
+ ...fixed.map(quote),
31
38
  ...options.map(quote)
32
39
  ].join(" ")
33
40
  };
34
41
  }
35
42
  /** One argument as a POSIX shell word. */
36
- function quote(argument) {
43
+ function quotePosix(argument) {
37
44
  return PLAIN.test(argument) ? argument : `'${argument.replaceAll("'", "'\\''")}'`;
38
45
  }
46
+ /** One argument as a PowerShell word, including smart single quotes. */
47
+ function quotePowerShell(argument) {
48
+ return POWERSHELL_PLAIN.test(argument) ? argument : `'${argument.replace(/['\u2018-\u201b]/gu, "$&$&")}'`;
49
+ }
39
50
  export { formatAutoMovieInspectorCommand };
40
51
 
41
52
  //# sourceMappingURL=formatAutoMovieInspectorCommand.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatAutoMovieInspectorCommand.mjs","names":[],"sources":["../../src/inspector/formatAutoMovieInspectorCommand.ts"],"sourcesContent":["import type { IAutoMovieCapturePlanRequest } from \"@automovie/interface\";\nimport { formatAutoMovieCapturePlanRequest } from \"@automovie/render\";\n\n/** An argument a POSIX shell passes through unquoted. */\nconst PLAIN: RegExp = /^[\\w%+,./:=@-]+$/u;\n\n/**\n * Write the `automovie capture` command that repeats a request: its options, and the command line a person copies.\n *\n * 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.\n *\n * 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.\n *\n * ```ts\n * const { text } = formatAutoMovieInspectorCommand(request);\n * ```\n *\n * @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.\n * @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.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One map to options and one join with quoting.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No option is written by hand, so the command offers exactly what the address carries.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the length of the written request.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure conversion of one request.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns fresh strings and keeps nothing.\n */\nexport function formatAutoMovieInspectorCommand(\n request: IAutoMovieCapturePlanRequest,\n): {\n /** The options after `automovie capture`, one argument each. */\n options: string[];\n\n /** The whole command line, quoted for a POSIX shell. */\n text: string;\n} {\n const options: string[] = formatAutoMovieCapturePlanRequest(request).map(\n ([key, value]: [key: string, value: string]): string => `--${key}=${value}`,\n );\n return {\n options,\n text: [\"automovie\", \"capture\", ...options.map(quote)].join(\" \"),\n };\n}\n\n/** One argument as a POSIX shell word. */\nfunction quote(argument: string): string {\n return PLAIN.test(argument)\n ? argument\n : `'${argument.replaceAll(\"'\", \"'\\\\''\")}'`;\n}\n"],"mappings":";;;AAIA,MAAM,QAAgB;;;;;;;;;;;;;;;;;;;;AAqBtB,SAAgB,gCACd,SAOA;CACA,MAAM,UAAoB,kCAAkC,OAAO,CAAC,CAAC,KAClE,CAAC,KAAK,WAAiD,KAAK,IAAI,GAAG,OACtE;CACA,OAAO;EACL;EACA,MAAM;GAAC;GAAa;GAAW,GAAG,QAAQ,IAAI,KAAK;EAAC,CAAC,CAAC,KAAK,GAAG;CAChE;AACF;;AAGA,SAAS,MAAM,UAA0B;CACvC,OAAO,MAAM,KAAK,QAAQ,IACtB,WACA,IAAI,SAAS,WAAW,KAAK,OAAO,EAAE;AAC5C"}
1
+ {"version":3,"file":"formatAutoMovieInspectorCommand.mjs","names":[],"sources":["../../src/inspector/formatAutoMovieInspectorCommand.ts"],"sourcesContent":["import type { IAutoMovieCapturePlanRequest } from \"@automovie/interface\";\nimport { formatAutoMovieCapturePlanRequest } from \"@automovie/render\";\n\n/** An argument a POSIX shell passes through unquoted. */\nconst PLAIN: RegExp = /^[\\w%+,./:=@-]+$/u;\n\n/** A bare word that also stays one argument to a PowerShell script. */\nconst POWERSHELL_PLAIN: RegExp = /^[\\w+./:=-]+$/u;\n\n/**\n * Write a capture request's option tokens and a shell command to copy.\n *\n * Every pair `formatAutoMovieCapturePlanRequest` writes becomes one\n * `--<key>=<value>` option, in its order. The `=` form is used for every\n * option, so a value that starts with `-`, such as an axis cut `-x:0.2`, or\n * that is empty stays the option's value. `readAutoMovieCaptureArguments` reads\n * the options back to the same named values, so the command's reader gives an\n * equal request.\n *\n * The text starts with the host's executable and arguments, or with `automovie\n * capture` when the caller formats the request alone. The host supplies any\n * options required to reproduce its subject and inputs. POSIX is the default.\n * PowerShell also quotes commas so a script such as `pnpm` receives each list\n * or plane as one argument.\n *\n * ```ts\n * const { text } = formatAutoMovieInspectorCommand(request);\n * ```\n */\nexport function formatAutoMovieInspectorCommand(\n request: IAutoMovieCapturePlanRequest,\n props: {\n /** Executable and fixed arguments supplied by the capture host. */\n command?: readonly [string, ...string[]];\n\n /** The shell syntax used for the copied text. Defaults to POSIX. */\n shell?: \"posix\" | \"powershell\";\n } = {},\n): {\n /** The request's own options, one argument each. */\n options: string[];\n\n /** The command with the host and request arguments quoted for the shell. */\n text: string;\n} {\n const options: string[] = formatAutoMovieCapturePlanRequest(request).map(\n ([key, value]: [key: string, value: string]): string => `--${key}=${value}`,\n );\n const powershell: boolean = props.shell === \"powershell\";\n const quote: (argument: string) => string = powershell\n ? quotePowerShell\n : quotePosix;\n const [executable, ...fixed]: readonly [string, ...string[]] =\n props.command ?? [\"automovie\", \"capture\"];\n const program: string = quote(executable);\n return {\n options,\n text: [\n powershell && program !== executable ? `& ${program}` : program,\n ...fixed.map(quote),\n ...options.map(quote),\n ].join(\" \"),\n };\n}\n\n/** One argument as a POSIX shell word. */\nfunction quotePosix(argument: string): string {\n return PLAIN.test(argument)\n ? argument\n : `'${argument.replaceAll(\"'\", \"'\\\\''\")}'`;\n}\n\n/** One argument as a PowerShell word, including smart single quotes. */\nfunction quotePowerShell(argument: string): string {\n return POWERSHELL_PLAIN.test(argument)\n ? argument\n : `'${argument.replace(/['\\u2018-\\u201b]/gu, \"$&$&\")}'`;\n}\n"],"mappings":";;;AAIA,MAAM,QAAgB;;AAGtB,MAAM,mBAA2B;;;;;;;;;;;;;;;;;;;;;AAsBjC,SAAgB,gCACd,SACA,QAMI,CAAC,GAOL;CACA,MAAM,UAAoB,kCAAkC,OAAO,CAAC,CAAC,KAClE,CAAC,KAAK,WAAiD,KAAK,IAAI,GAAG,OACtE;CACA,MAAM,aAAsB,MAAM,UAAU;CAC5C,MAAM,QAAsC,aACxC,kBACA;CACJ,MAAM,CAAC,YAAY,GAAG,SACpB,MAAM,WAAW,CAAC,aAAa,SAAS;CAC1C,MAAM,UAAkB,MAAM,UAAU;CACxC,OAAO;EACL;EACA,MAAM;GACJ,cAAc,YAAY,aAAa,KAAK,YAAY;GACxD,GAAG,MAAM,IAAI,KAAK;GAClB,GAAG,QAAQ,IAAI,KAAK;EACtB,CAAC,CAAC,KAAK,GAAG;CACZ;AACF;;AAGA,SAAS,WAAW,UAA0B;CAC5C,OAAO,MAAM,KAAK,QAAQ,IACtB,WACA,IAAI,SAAS,WAAW,KAAK,OAAO,EAAE;AAC5C;;AAGA,SAAS,gBAAgB,UAA0B;CACjD,OAAO,iBAAiB,KAAK,QAAQ,IACjC,WACA,IAAI,SAAS,QAAQ,sBAAsB,MAAM,EAAE;AACzD"}
@@ -1,25 +1,34 @@
1
1
  import type { AutoMovieInspectorPlayhead } from "./AutoMovieInspectorPlayhead.js";
2
2
  /**
3
- * 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.
3
+ * The inspector's playback keys, as a video player's: Space and K play or
4
+ * pause, J and L seek one second back and forward, comma and full stop step one
5
+ * frame back and forward with playback paused, Home and End go to the first and
6
+ * last second. K, J and L work in either case.
4
7
  *
5
- * Frame steps start at the slider's displayed frame and include the exact end of the subject, even when it falls between regular frames.
8
+ * Frame steps start at the slider's displayed frame and include the exact end
9
+ * of the subject, even when it falls between regular frames.
6
10
  *
7
- * 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.
11
+ * A key is left to the page, unhandled and moving nothing, when Ctrl, Meta or
12
+ * Alt is held, so the browser's and the system's shortcuts keep working, and
13
+ * when the key's target is or sits inside an element that takes the key itself
14
+ * (a field, a button, a summary, a link, editable text, or a widget by its
15
+ * role), so Space still presses a button and opens a section. Shift is allowed,
16
+ * since it only changes a letter's case.
8
17
  *
9
- * 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.
18
+ * A seek or a step returns the second the playhead now shows, which the caller
19
+ * makes the request's `time`, as the slider does; play and pause return null,
20
+ * because a stop already becomes the request's second through the time readout.
21
+ * A key the inspector does not use is not handled either.
10
22
  *
11
- * @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.
23
+ * @param event The pressed key's `KeyboardEvent` members the decision reads;
24
+ * `target` is the element the key went to, or null when it is not an
25
+ * element.
12
26
  * @param playhead The playhead the keys drive.
13
- * @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.
14
- * @returns Whether the key was used, so the caller prevents its default, and the second a seek left the playhead on.
15
- *
16
- * @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.
17
- * @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.
18
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Two early returns, then one table from key to move and one lookup.
19
- * @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.
20
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant work per key, besides one `closest` walk up the target's ancestors.
21
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Uses the same presentation grid as the slider.
22
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Holds nothing between calls.
27
+ * @param fps The subject's frames per second, the step of comma and full stop;
28
+ * null before a subject is ready, when they step a twenty-fourth of a
29
+ * second.
30
+ * @returns Whether the key was used, so the caller prevents its default, and
31
+ * the second a seek left the playhead on.
23
32
  */
24
33
  export declare function handleAutoMovieInspectorKey(event: {
25
34
  key: string;
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.handleAutoMovieInspectorKey = handleAutoMovieInspectorKey;
4
4
  const render_1 = require("@automovie/render");
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 = [
9
11
  "input",
@@ -20,26 +22,35 @@ const INTERACTIVE = [
20
22
  "[role=switch]",
21
23
  ].join(", ");
22
24
  /**
23
- * 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.
25
+ * The inspector's playback keys, as a video player's: Space and K play or
26
+ * pause, J and L seek one second back and forward, comma and full stop step one
27
+ * frame back and forward with playback paused, Home and End go to the first and
28
+ * last second. K, J and L work in either case.
24
29
  *
25
- * Frame steps start at the slider's displayed frame and include the exact end of the subject, even when it falls between regular frames.
30
+ * Frame steps start at the slider's displayed frame and include the exact end
31
+ * of the subject, even when it falls between regular frames.
26
32
  *
27
- * 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.
33
+ * A key is left to the page, unhandled and moving nothing, when Ctrl, Meta or
34
+ * Alt is held, so the browser's and the system's shortcuts keep working, and
35
+ * when the key's target is or sits inside an element that takes the key itself
36
+ * (a field, a button, a summary, a link, editable text, or a widget by its
37
+ * role), so Space still presses a button and opens a section. Shift is allowed,
38
+ * since it only changes a letter's case.
28
39
  *
29
- * 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.
40
+ * A seek or a step returns the second the playhead now shows, which the caller
41
+ * makes the request's `time`, as the slider does; play and pause return null,
42
+ * because a stop already becomes the request's second through the time readout.
43
+ * A key the inspector does not use is not handled either.
30
44
  *
31
- * @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.
45
+ * @param event The pressed key's `KeyboardEvent` members the decision reads;
46
+ * `target` is the element the key went to, or null when it is not an
47
+ * element.
32
48
  * @param playhead The playhead the keys drive.
33
- * @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.
34
- * @returns Whether the key was used, so the caller prevents its default, and the second a seek left the playhead on.
35
- *
36
- * @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.
37
- * @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.
38
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Two early returns, then one table from key to move and one lookup.
39
- * @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.
40
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant work per key, besides one `closest` walk up the target's ancestors.
41
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Uses the same presentation grid as the slider.
42
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Holds nothing between calls.
49
+ * @param fps The subject's frames per second, the step of comma and full stop;
50
+ * null before a subject is ready, when they step a twenty-fourth of a
51
+ * second.
52
+ * @returns Whether the key was used, so the caller prevents its default, and
53
+ * the second a seek left the playhead on.
43
54
  */
44
55
  function handleAutoMovieInspectorKey(event, playhead, fps) {
45
56
  // A shortcut, or a key a control answers itself, stays with the page.
@@ -1 +1 @@
1
- {"version":3,"file":"handleAutoMovieInspectorKey.js","sourceRoot":"","sources":["../../src/inspector/handleAutoMovieInspectorKey.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"handleAutoMovieInspectorKey.js","sourceRoot":"","sources":["../../src/inspector/handleAutoMovieInspectorKey.ts"],"names":[],"mappings":"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"}
@@ -1,7 +1,9 @@
1
1
  import { AutoMovieFrameGrid } from "@automovie/render";
2
2
  // src/inspector/handleAutoMovieInspectorKey.ts
3
3
  /**
4
- * 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.
4
+ * The elements that take a key themselves: fields, buttons, disclosure
5
+ * summaries, links, editable text and the widgets that answer Space or arrows
6
+ * by their role.
5
7
  */
6
8
  const INTERACTIVE = [
7
9
  "input",
@@ -18,26 +20,35 @@ const INTERACTIVE = [
18
20
  "[role=switch]"
19
21
  ].join(", ");
20
22
  /**
21
- * 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.
23
+ * The inspector's playback keys, as a video player's: Space and K play or
24
+ * pause, J and L seek one second back and forward, comma and full stop step one
25
+ * frame back and forward with playback paused, Home and End go to the first and
26
+ * last second. K, J and L work in either case.
22
27
  *
23
- * Frame steps start at the slider's displayed frame and include the exact end of the subject, even when it falls between regular frames.
28
+ * Frame steps start at the slider's displayed frame and include the exact end
29
+ * of the subject, even when it falls between regular frames.
24
30
  *
25
- * 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.
31
+ * A key is left to the page, unhandled and moving nothing, when Ctrl, Meta or
32
+ * Alt is held, so the browser's and the system's shortcuts keep working, and
33
+ * when the key's target is or sits inside an element that takes the key itself
34
+ * (a field, a button, a summary, a link, editable text, or a widget by its
35
+ * role), so Space still presses a button and opens a section. Shift is allowed,
36
+ * since it only changes a letter's case.
26
37
  *
27
- * 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.
38
+ * A seek or a step returns the second the playhead now shows, which the caller
39
+ * makes the request's `time`, as the slider does; play and pause return null,
40
+ * because a stop already becomes the request's second through the time readout.
41
+ * A key the inspector does not use is not handled either.
28
42
  *
29
- * @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.
43
+ * @param event The pressed key's `KeyboardEvent` members the decision reads;
44
+ * `target` is the element the key went to, or null when it is not an
45
+ * element.
30
46
  * @param playhead The playhead the keys drive.
31
- * @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.
32
- * @returns Whether the key was used, so the caller prevents its default, and the second a seek left the playhead on.
33
- *
34
- * @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.
35
- * @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.
36
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Two early returns, then one table from key to move and one lookup.
37
- * @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.
38
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant work per key, besides one `closest` walk up the target's ancestors.
39
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Uses the same presentation grid as the slider.
40
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Holds nothing between calls.
47
+ * @param fps The subject's frames per second, the step of comma and full stop;
48
+ * null before a subject is ready, when they step a twenty-fourth of a
49
+ * second.
50
+ * @returns Whether the key was used, so the caller prevents its default, and
51
+ * the second a seek left the playhead on.
41
52
  */
42
53
  function handleAutoMovieInspectorKey(event, playhead, fps) {
43
54
  if (event.ctrlKey || event.metaKey || event.altKey) return {
@@ -1 +1 @@
1
- {"version":3,"file":"handleAutoMovieInspectorKey.mjs","names":[],"sources":["../../src/inspector/handleAutoMovieInspectorKey.ts"],"sourcesContent":["import { AutoMovieFrameGrid } from \"@automovie/render\";\n\nimport type { AutoMovieInspectorPlayhead } from \"./AutoMovieInspectorPlayhead.js\";\n\n/**\n * 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.\n */\nconst INTERACTIVE: string = [\n \"input\",\n \"select\",\n \"textarea\",\n \"button\",\n \"summary\",\n \"a[href]\",\n '[contenteditable]:not([contenteditable=\"false\"])',\n \"[role=button]\",\n \"[role=tab]\",\n \"[role=checkbox]\",\n \"[role=slider]\",\n \"[role=switch]\",\n].join(\", \");\n\n/**\n * 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.\n *\n * Frame steps start at the slider's displayed frame and include the exact end of the subject, even when it falls between regular frames.\n *\n * 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.\n *\n * 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.\n *\n * @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.\n * @param playhead The playhead the keys drive.\n * @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.\n * @returns Whether the key was used, so the caller prevents its default, and the second a seek left the playhead on.\n *\n * @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.\n * @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.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Two early returns, then one table from key to move and one lookup.\n * @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.\n * @evidence contracts/development/implementation.md#efficient-algorithms Constant work per key, besides one `closest` walk up the target's ancestors.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Uses the same presentation grid as the slider.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Holds nothing between calls.\n */\nexport function handleAutoMovieInspectorKey(\n event: {\n key: string;\n ctrlKey: boolean;\n metaKey: boolean;\n altKey: boolean;\n target: { closest(selectors: string): unknown } | null;\n },\n playhead: AutoMovieInspectorPlayhead,\n fps: number | null,\n): { handled: boolean; seconds: number | null } {\n // A shortcut, or a key a control answers itself, stays with the page.\n if (event.ctrlKey || event.metaKey || event.altKey)\n return { handled: false, seconds: null };\n if (event.target !== null && event.target.closest(INTERACTIVE) !== null)\n return { handled: false, seconds: null };\n\n const seek: (seconds: number) => number = (seconds: number): number => {\n playhead.seek(seconds);\n return playhead.getSnapshot().seconds;\n };\n const step: (direction: -1 | 1) => number = (direction: -1 | 1): number => {\n playhead.pause();\n const { seconds, durationSeconds }: AutoMovieInspectorPlayhead.ISnapshot =\n playhead.getSnapshot();\n if (fps === null) return seek(seconds + direction / 24);\n\n const last: number = AutoMovieFrameGrid.last(durationSeconds, fps);\n const frame: number = AutoMovieFrameGrid.nearest(\n seconds,\n durationSeconds,\n fps,\n last,\n );\n return seek(\n AutoMovieFrameGrid.time(frame + direction, durationSeconds, fps),\n );\n };\n const toggle: () => null = (): null => {\n if (playhead.getSnapshot().playing) playhead.pause();\n else playhead.play();\n return null;\n };\n const moves: Readonly<Record<string, () => number | null>> = {\n \" \": toggle,\n k: toggle,\n K: toggle,\n j: (): number => seek(playhead.getSnapshot().seconds - 1),\n J: (): number => seek(playhead.getSnapshot().seconds - 1),\n l: (): number => seek(playhead.getSnapshot().seconds + 1),\n L: (): number => seek(playhead.getSnapshot().seconds + 1),\n \",\": (): number => step(-1),\n \".\": (): number => step(1),\n Home: (): number => seek(0),\n End: (): number => seek(playhead.getSnapshot().durationSeconds),\n };\n const move: (() => number | null) | undefined = moves[event.key];\n return move === undefined\n ? { handled: false, seconds: null }\n : { handled: true, seconds: move() };\n}\n"],"mappings":";;;;;AAOA,MAAM,cAAsB;CAC1B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC,CAAC,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;;AAwBX,SAAgB,4BACd,OAOA,UACA,KAC8C;CAE9C,IAAI,MAAM,WAAW,MAAM,WAAW,MAAM,QAC1C,OAAO;EAAE,SAAS;EAAO,SAAS;CAAK;CACzC,IAAI,MAAM,WAAW,QAAQ,MAAM,OAAO,QAAQ,WAAW,MAAM,MACjE,OAAO;EAAE,SAAS;EAAO,SAAS;CAAK;CAEzC,MAAM,QAAqC,YAA4B;EACrE,SAAS,KAAK,OAAO;EACrB,OAAO,SAAS,YAAY,CAAC,CAAC;CAChC;CACA,MAAM,QAAuC,cAA8B;EACzE,SAAS,MAAM;EACf,MAAM,EAAE,SAAS,oBACf,SAAS,YAAY;EACvB,IAAI,QAAQ,MAAM,OAAO,KAAK,UAAU,YAAY,EAAE;EAEtD,MAAM,OAAe,mBAAmB,KAAK,iBAAiB,GAAG;EACjE,MAAM,QAAgB,mBAAmB,QACvC,SACA,iBACA,KACA,IACF;EACA,OAAO,KACL,mBAAmB,KAAK,QAAQ,WAAW,iBAAiB,GAAG,CACjE;CACF;CACA,MAAM,eAAiC;EACrC,IAAI,SAAS,YAAY,CAAC,CAAC,SAAS,SAAS,MAAM;OAC9C,SAAS,KAAK;EACnB,OAAO;CACT;CAcA,MAAM,OAA0C;EAZ9C,KAAK;EACL,GAAG;EACH,GAAG;EACH,SAAiB,KAAK,SAAS,YAAY,CAAC,CAAC,UAAU,CAAC;EACxD,SAAiB,KAAK,SAAS,YAAY,CAAC,CAAC,UAAU,CAAC;EACxD,SAAiB,KAAK,SAAS,YAAY,CAAC,CAAC,UAAU,CAAC;EACxD,SAAiB,KAAK,SAAS,YAAY,CAAC,CAAC,UAAU,CAAC;EACxD,WAAmB,KAAK,EAAE;EAC1B,WAAmB,KAAK,CAAC;EACzB,YAAoB,KAAK,CAAC;EAC1B,WAAmB,KAAK,SAAS,YAAY,CAAC,CAAC,eAAe;CAEZ,EAAE,MAAM;CAC5D,OAAO,SAAS,KAAA,IACZ;EAAE,SAAS;EAAO,SAAS;CAAK,IAChC;EAAE,SAAS;EAAM,SAAS,KAAK;CAAE;AACvC"}
1
+ {"version":3,"file":"handleAutoMovieInspectorKey.mjs","names":[],"sources":["../../src/inspector/handleAutoMovieInspectorKey.ts"],"sourcesContent":["import { AutoMovieFrameGrid } from \"@automovie/render\";\n\nimport type { AutoMovieInspectorPlayhead } from \"./AutoMovieInspectorPlayhead.js\";\n\n/**\n * The elements that take a key themselves: fields, buttons, disclosure\n * summaries, links, editable text and the widgets that answer Space or arrows\n * by their role.\n */\nconst INTERACTIVE: string = [\n \"input\",\n \"select\",\n \"textarea\",\n \"button\",\n \"summary\",\n \"a[href]\",\n '[contenteditable]:not([contenteditable=\"false\"])',\n \"[role=button]\",\n \"[role=tab]\",\n \"[role=checkbox]\",\n \"[role=slider]\",\n \"[role=switch]\",\n].join(\", \");\n\n/**\n * The inspector's playback keys, as a video player's: Space and K play or\n * pause, J and L seek one second back and forward, comma and full stop step one\n * frame back and forward with playback paused, Home and End go to the first and\n * last second. K, J and L work in either case.\n *\n * Frame steps start at the slider's displayed frame and include the exact end\n * of the subject, even when it falls between regular frames.\n *\n * A key is left to the page, unhandled and moving nothing, when Ctrl, Meta or\n * Alt is held, so the browser's and the system's shortcuts keep working, and\n * when the key's target is or sits inside an element that takes the key itself\n * (a field, a button, a summary, a link, editable text, or a widget by its\n * role), so Space still presses a button and opens a section. Shift is allowed,\n * since it only changes a letter's case.\n *\n * A seek or a step returns the second the playhead now shows, which the caller\n * makes the request's `time`, as the slider does; play and pause return null,\n * because a stop already becomes the request's second through the time readout.\n * A key the inspector does not use is not handled either.\n *\n * @param event The pressed key's `KeyboardEvent` members the decision reads;\n * `target` is the element the key went to, or null when it is not an\n * element.\n * @param playhead The playhead the keys drive.\n * @param fps The subject's frames per second, the step of comma and full stop;\n * null before a subject is ready, when they step a twenty-fourth of a\n * second.\n * @returns Whether the key was used, so the caller prevents its default, and\n * the second a seek left the playhead on.\n */\nexport function handleAutoMovieInspectorKey(\n event: {\n key: string;\n ctrlKey: boolean;\n metaKey: boolean;\n altKey: boolean;\n target: { closest(selectors: string): unknown } | null;\n },\n playhead: AutoMovieInspectorPlayhead,\n fps: number | null,\n): { handled: boolean; seconds: number | null } {\n // A shortcut, or a key a control answers itself, stays with the page.\n if (event.ctrlKey || event.metaKey || event.altKey)\n return { handled: false, seconds: null };\n if (event.target !== null && event.target.closest(INTERACTIVE) !== null)\n return { handled: false, seconds: null };\n\n const seek: (seconds: number) => number = (seconds: number): number => {\n playhead.seek(seconds);\n return playhead.getSnapshot().seconds;\n };\n const step: (direction: -1 | 1) => number = (direction: -1 | 1): number => {\n playhead.pause();\n const { seconds, durationSeconds }: AutoMovieInspectorPlayhead.ISnapshot =\n playhead.getSnapshot();\n if (fps === null) return seek(seconds + direction / 24);\n\n const last: number = AutoMovieFrameGrid.last(durationSeconds, fps);\n const frame: number = AutoMovieFrameGrid.nearest(\n seconds,\n durationSeconds,\n fps,\n last,\n );\n return seek(\n AutoMovieFrameGrid.time(frame + direction, durationSeconds, fps),\n );\n };\n const toggle: () => null = (): null => {\n if (playhead.getSnapshot().playing) playhead.pause();\n else playhead.play();\n return null;\n };\n const moves: Readonly<Record<string, () => number | null>> = {\n \" \": toggle,\n k: toggle,\n K: toggle,\n j: (): number => seek(playhead.getSnapshot().seconds - 1),\n J: (): number => seek(playhead.getSnapshot().seconds - 1),\n l: (): number => seek(playhead.getSnapshot().seconds + 1),\n L: (): number => seek(playhead.getSnapshot().seconds + 1),\n \",\": (): number => step(-1),\n \".\": (): number => step(1),\n Home: (): number => seek(0),\n End: (): number => seek(playhead.getSnapshot().durationSeconds),\n };\n const move: (() => number | null) | undefined = moves[event.key];\n return move === undefined\n ? { handled: false, seconds: null }\n : { handled: true, seconds: move() };\n}\n"],"mappings":";;;;;;;AASA,MAAM,cAAsB;CAC1B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC,CAAC,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCX,SAAgB,4BACd,OAOA,UACA,KAC8C;CAE9C,IAAI,MAAM,WAAW,MAAM,WAAW,MAAM,QAC1C,OAAO;EAAE,SAAS;EAAO,SAAS;CAAK;CACzC,IAAI,MAAM,WAAW,QAAQ,MAAM,OAAO,QAAQ,WAAW,MAAM,MACjE,OAAO;EAAE,SAAS;EAAO,SAAS;CAAK;CAEzC,MAAM,QAAqC,YAA4B;EACrE,SAAS,KAAK,OAAO;EACrB,OAAO,SAAS,YAAY,CAAC,CAAC;CAChC;CACA,MAAM,QAAuC,cAA8B;EACzE,SAAS,MAAM;EACf,MAAM,EAAE,SAAS,oBACf,SAAS,YAAY;EACvB,IAAI,QAAQ,MAAM,OAAO,KAAK,UAAU,YAAY,EAAE;EAEtD,MAAM,OAAe,mBAAmB,KAAK,iBAAiB,GAAG;EACjE,MAAM,QAAgB,mBAAmB,QACvC,SACA,iBACA,KACA,IACF;EACA,OAAO,KACL,mBAAmB,KAAK,QAAQ,WAAW,iBAAiB,GAAG,CACjE;CACF;CACA,MAAM,eAAiC;EACrC,IAAI,SAAS,YAAY,CAAC,CAAC,SAAS,SAAS,MAAM;OAC9C,SAAS,KAAK;EACnB,OAAO;CACT;CAcA,MAAM,OAA0C;EAZ9C,KAAK;EACL,GAAG;EACH,GAAG;EACH,SAAiB,KAAK,SAAS,YAAY,CAAC,CAAC,UAAU,CAAC;EACxD,SAAiB,KAAK,SAAS,YAAY,CAAC,CAAC,UAAU,CAAC;EACxD,SAAiB,KAAK,SAAS,YAAY,CAAC,CAAC,UAAU,CAAC;EACxD,SAAiB,KAAK,SAAS,YAAY,CAAC,CAAC,UAAU,CAAC;EACxD,WAAmB,KAAK,EAAE;EAC1B,WAAmB,KAAK,CAAC;EACzB,YAAoB,KAAK,CAAC;EAC1B,WAAmB,KAAK,SAAS,YAAY,CAAC,CAAC,eAAe;CAEZ,EAAE,MAAM;CAC5D,OAAO,SAAS,KAAA,IACZ;EAAE,SAAS;EAAO,SAAS;CAAK,IAChC;EAAE,SAAS;EAAM,SAAS,KAAK;CAAE;AACvC"}
@@ -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";
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AutoMovieInspector.js"), exports);
18
+ __exportStar(require("./AutoMovieInspectorDiagnosticsPanel.js"), exports);
18
19
  __exportStar(require("./AutoMovieInspectorMarksPanel.js"), exports);
19
20
  __exportStar(require("./AutoMovieInspectorPlayhead.js"), exports);
20
21
  __exportStar(require("./AutoMovieInspectorRequestPanel.js"), exports);
@@ -22,6 +23,7 @@ __exportStar(require("./AutoMovieInspectorSelectionPanel.js"), exports);
22
23
  __exportStar(require("./AutoMovieInspectorShadePanel.js"), exports);
23
24
  __exportStar(require("./AutoMovieInspectorTimePanel.js"), exports);
24
25
  __exportStar(require("./AutoMovieInspectorTimeReadout.js"), exports);
26
+ __exportStar(require("./AutoMovieInspectorTransition.js"), exports);
25
27
  __exportStar(require("./AutoMovieInspectorViewPanel.js"), exports);
26
28
  __exportStar(require("./buildAutoMovieInspectorPathTree.js"), exports);
27
29
  __exportStar(require("./createAutoMovieInspectorAddressWriter.js"), exports);
@@ -30,6 +32,9 @@ __exportStar(require("./createAutoMovieInspectorState.js"), exports);
30
32
  __exportStar(require("./formatAutoMovieInspectorAddress.js"), exports);
31
33
  __exportStar(require("./formatAutoMovieInspectorCommand.js"), exports);
32
34
  __exportStar(require("./handleAutoMovieInspectorKey.js"), exports);
35
+ __exportStar(require("./locateAutoMovieInspectorFinding.js"), exports);
36
+ __exportStar(require("./showAutoMovieInspectorFinding.js"), exports);
37
+ __exportStar(require("./stopAutoMovieInspectorTime.js"), exports);
33
38
  __exportStar(require("./IAutoMovieInspectorAction.js"), exports);
34
39
  __exportStar(require("./IAutoMovieInspectorPathNode.js"), exports);
35
40
  __exportStar(require("./IAutoMovieInspectorProps.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/inspector/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,oEAAkD;AAClD,kEAAgD;AAChD,sEAAoD;AACpD,wEAAsD;AACtD,oEAAkD;AAClD,mEAAiD;AACjD,qEAAmD;AACnD,mEAAiD;AACjD,uEAAqD;AACrD,6EAA2D;AAC3D,0EAAwD;AACxD,qEAAmD;AACnD,uEAAqD;AACrD,uEAAqD;AACrD,mEAAiD;AACjD,iEAA+C;AAC/C,mEAAiD;AACjD,gEAA8C;AAC9C,gEAA8C;AAC9C,oEAAkD;AAClD,gEAA8C;AAC9C,mEAAiD;AACjD,oEAAkD;AAClD,qEAAmD;AACnD,qEAAmD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/inspector/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,0EAAwD;AACxD,oEAAkD;AAClD,kEAAgD;AAChD,sEAAoD;AACpD,wEAAsD;AACtD,oEAAkD;AAClD,mEAAiD;AACjD,qEAAmD;AACnD,oEAAkD;AAClD,mEAAiD;AACjD,uEAAqD;AACrD,6EAA2D;AAC3D,0EAAwD;AACxD,qEAAmD;AACnD,uEAAqD;AACrD,uEAAqD;AACrD,mEAAiD;AACjD,uEAAqD;AACrD,qEAAmD;AACnD,kEAAgD;AAChD,iEAA+C;AAC/C,mEAAiD;AACjD,gEAA8C;AAC9C,gEAA8C;AAC9C,oEAAkD;AAClD,gEAA8C;AAC9C,mEAAiD;AACjD,oEAAkD;AAClD,qEAAmD;AACnD,qEAAmD"}
@@ -1,4 +1,5 @@
1
1
  import { AutoMovieInspector } from "./AutoMovieInspector.mjs";
2
+ import { AutoMovieInspectorDiagnosticsPanel } from "./AutoMovieInspectorDiagnosticsPanel.mjs";
2
3
  import { AutoMovieInspectorMarksPanel } from "./AutoMovieInspectorMarksPanel.mjs";
3
4
  import { AutoMovieInspectorPlayhead } from "./AutoMovieInspectorPlayhead.mjs";
4
5
  import { AutoMovieInspectorRequestPanel } from "./AutoMovieInspectorRequestPanel.mjs";
@@ -6,6 +7,7 @@ import { AutoMovieInspectorSelectionPanel } from "./AutoMovieInspectorSelectionP
6
7
  import { AutoMovieInspectorShadePanel } from "./AutoMovieInspectorShadePanel.mjs";
7
8
  import { AutoMovieInspectorTimePanel } from "./AutoMovieInspectorTimePanel.mjs";
8
9
  import { AutoMovieInspectorTimeReadout } from "./AutoMovieInspectorTimeReadout.mjs";
10
+ import { AutoMovieInspectorTransition } from "./AutoMovieInspectorTransition.mjs";
9
11
  import { AutoMovieInspectorViewPanel } from "./AutoMovieInspectorViewPanel.mjs";
10
12
  import { buildAutoMovieInspectorPathTree } from "./buildAutoMovieInspectorPathTree.mjs";
11
13
  import { createAutoMovieInspectorAddressWriter } from "./createAutoMovieInspectorAddressWriter.mjs";
@@ -14,8 +16,11 @@ import { createAutoMovieInspectorState } from "./createAutoMovieInspectorState.m
14
16
  import { formatAutoMovieInspectorAddress } from "./formatAutoMovieInspectorAddress.mjs";
15
17
  import { formatAutoMovieInspectorCommand } from "./formatAutoMovieInspectorCommand.mjs";
16
18
  import { handleAutoMovieInspectorKey } from "./handleAutoMovieInspectorKey.mjs";
19
+ import { locateAutoMovieInspectorFinding } from "./locateAutoMovieInspectorFinding.mjs";
20
+ import { showAutoMovieInspectorFinding } from "./showAutoMovieInspectorFinding.mjs";
21
+ import { stopAutoMovieInspectorTime } from "./stopAutoMovieInspectorTime.mjs";
17
22
  import { mountAutoMovieInspectorPage } from "./mountAutoMovieInspectorPage.mjs";
18
23
  import { mountAutoMovieInspectorScene } from "./mountAutoMovieInspectorScene.mjs";
19
24
  import { readAutoMovieInspectorAddress } from "./readAutoMovieInspectorAddress.mjs";
20
25
  import { reduceAutoMovieInspectorState } from "./reduceAutoMovieInspectorState.mjs";
21
- export { AutoMovieInspector, AutoMovieInspectorMarksPanel, AutoMovieInspectorPlayhead, AutoMovieInspectorRequestPanel, AutoMovieInspectorSelectionPanel, AutoMovieInspectorShadePanel, AutoMovieInspectorTimePanel, AutoMovieInspectorTimeReadout, AutoMovieInspectorViewPanel, buildAutoMovieInspectorPathTree, createAutoMovieInspectorAddressWriter, createAutoMovieInspectorCanvasHost, createAutoMovieInspectorState, formatAutoMovieInspectorAddress, formatAutoMovieInspectorCommand, handleAutoMovieInspectorKey, mountAutoMovieInspectorPage, mountAutoMovieInspectorScene, readAutoMovieInspectorAddress, reduceAutoMovieInspectorState };
26
+ export { AutoMovieInspector, AutoMovieInspectorDiagnosticsPanel, AutoMovieInspectorMarksPanel, AutoMovieInspectorPlayhead, AutoMovieInspectorRequestPanel, AutoMovieInspectorSelectionPanel, AutoMovieInspectorShadePanel, AutoMovieInspectorTimePanel, AutoMovieInspectorTimeReadout, AutoMovieInspectorTransition, AutoMovieInspectorViewPanel, buildAutoMovieInspectorPathTree, createAutoMovieInspectorAddressWriter, createAutoMovieInspectorCanvasHost, createAutoMovieInspectorState, formatAutoMovieInspectorAddress, formatAutoMovieInspectorCommand, handleAutoMovieInspectorKey, locateAutoMovieInspectorFinding, mountAutoMovieInspectorPage, mountAutoMovieInspectorScene, readAutoMovieInspectorAddress, reduceAutoMovieInspectorState, showAutoMovieInspectorFinding, stopAutoMovieInspectorTime };
@@ -0,0 +1,19 @@
1
+ import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
2
+ import { type IApplyAutoMovieInspectionProps, type IAutoMovieDrawScene, type IAutoMovieInspectionHandle } from "@automovie/render";
3
+ import type { IAutoMovieInspectorSceneHost } from "./IAutoMovieInspectorSceneHost.js";
4
+ /**
5
+ * Apply a request's inspection to the subject's scene with the marks of the
6
+ * placed second and the kinds the subject declares, as the draw page applies
7
+ * it. It throws what `applyAutoMovieInspection` refuses, leaving the scene as
8
+ * it was, so the mount can keep or fall back to another request.
9
+ */
10
+ export declare function inspectAutoMovieInspectorRequest(props: {
11
+ /** The created subject. */
12
+ instance: IAutoMovieDrawScene;
13
+ /** The inspector's renderer. */
14
+ renderer: IAutoMovieInspectorSceneHost.IRenderer;
15
+ /** The request whose inspection is applied. */
16
+ request: IAutoMovieCapturePlanRequest;
17
+ /** The marks of the placed second; absent applies none. */
18
+ marks: IApplyAutoMovieInspectionProps["marks"] | undefined;
19
+ }): IAutoMovieInspectionHandle;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.inspectAutoMovieInspectorRequest = inspectAutoMovieInspectorRequest;
4
+ const render_1 = require("@automovie/render");
5
+ /**
6
+ * Apply a request's inspection to the subject's scene with the marks of the
7
+ * placed second and the kinds the subject declares, as the draw page applies
8
+ * it. It throws what `applyAutoMovieInspection` refuses, leaving the scene as
9
+ * it was, so the mount can keep or fall back to another request.
10
+ */
11
+ function inspectAutoMovieInspectorRequest(props) {
12
+ return (0, render_1.applyAutoMovieInspection)({
13
+ scene: props.instance.scene,
14
+ request: props.request.inspection,
15
+ renderer: props.renderer,
16
+ ...(props.marks === undefined ? {} : { marks: props.marks }),
17
+ markKinds: props.instance.markKinds ?? [],
18
+ });
19
+ }
20
+ //# sourceMappingURL=inspectAutoMovieInspectorRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspectAutoMovieInspectorRequest.js","sourceRoot":"","sources":["../../src/inspector/inspectAutoMovieInspectorRequest.ts"],"names":[],"mappings":";;;AACA,8CAK2B;AAI3B;;;;;GAKG;AACH,0CAAiD,KAYhD;IACC,OAAO,IAAA,iCAAwB,EAAC;QAC9B,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK;QAC3B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU;QACjC,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,GAAG,CAAC,KAAK,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC;QAC5D,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,SAAS,IAAI,EAAE;KAC1C,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { applyAutoMovieInspection } from "@automovie/render";
2
+ // src/inspector/inspectAutoMovieInspectorRequest.ts
3
+ /**
4
+ * Apply a request's inspection to the subject's scene with the marks of the
5
+ * placed second and the kinds the subject declares, as the draw page applies
6
+ * it. It throws what `applyAutoMovieInspection` refuses, leaving the scene as
7
+ * it was, so the mount can keep or fall back to another request.
8
+ */
9
+ function inspectAutoMovieInspectorRequest(props) {
10
+ return applyAutoMovieInspection({
11
+ scene: props.instance.scene,
12
+ request: props.request.inspection,
13
+ renderer: props.renderer,
14
+ ...props.marks === void 0 ? {} : { marks: props.marks },
15
+ markKinds: props.instance.markKinds ?? []
16
+ });
17
+ }
18
+ export { inspectAutoMovieInspectorRequest };
19
+
20
+ //# sourceMappingURL=inspectAutoMovieInspectorRequest.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspectAutoMovieInspectorRequest.mjs","names":[],"sources":["../../src/inspector/inspectAutoMovieInspectorRequest.ts"],"sourcesContent":["import type { IAutoMovieCapturePlanRequest } from \"@automovie/interface\";\nimport {\n type IApplyAutoMovieInspectionProps,\n type IAutoMovieDrawScene,\n type IAutoMovieInspectionHandle,\n applyAutoMovieInspection,\n} from \"@automovie/render\";\n\nimport type { IAutoMovieInspectorSceneHost } from \"./IAutoMovieInspectorSceneHost.js\";\n\n/**\n * Apply a request's inspection to the subject's scene with the marks of the\n * placed second and the kinds the subject declares, as the draw page applies\n * it. It throws what `applyAutoMovieInspection` refuses, leaving the scene as\n * it was, so the mount can keep or fall back to another request.\n */\nexport function inspectAutoMovieInspectorRequest(props: {\n /** The created subject. */\n instance: IAutoMovieDrawScene;\n\n /** The inspector's renderer. */\n renderer: IAutoMovieInspectorSceneHost.IRenderer;\n\n /** The request whose inspection is applied. */\n request: IAutoMovieCapturePlanRequest;\n\n /** The marks of the placed second; absent applies none. */\n marks: IApplyAutoMovieInspectionProps[\"marks\"] | undefined;\n}): IAutoMovieInspectionHandle {\n return applyAutoMovieInspection({\n scene: props.instance.scene,\n request: props.request.inspection,\n renderer: props.renderer,\n ...(props.marks === undefined ? {} : { marks: props.marks }),\n markKinds: props.instance.markKinds ?? [],\n });\n}\n"],"mappings":";;;;;;;;AAgBA,SAAgB,iCAAiC,OAYlB;CAC7B,OAAO,yBAAyB;EAC9B,OAAO,MAAM,SAAS;EACtB,SAAS,MAAM,QAAQ;EACvB,UAAU,MAAM;EAChB,GAAI,MAAM,UAAU,KAAA,IAAY,CAAC,IAAI,EAAE,OAAO,MAAM,MAAM;EAC1D,WAAW,MAAM,SAAS,aAAa,CAAC;CAC1C,CAAC;AACH"}
@@ -0,0 +1,20 @@
1
+ import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
2
+ import type { IAutoMovieInspectorLive } from "./IAutoMovieInspectorLive.js";
3
+ /**
4
+ * Install a request's inspection on the mount's subject with the marks of the
5
+ * placed second; when the scene refuses it, install the applied request again,
6
+ * so the preceding inspection stays in force, and hand the refusal to
7
+ * `refused`.
8
+ *
9
+ * @returns Whether the request's own inspection was installed.
10
+ */
11
+ export declare function installAutoMovieInspectorRequest(props: {
12
+ /** The mount's live state, whose inspection this replaces. */
13
+ now: IAutoMovieInspectorLive;
14
+ /** The request to install. */
15
+ request: IAutoMovieCapturePlanRequest;
16
+ /** The placed second, whose marks the inspection draws. */
17
+ seconds: number;
18
+ /** Told the refusal's error when the request is refused. */
19
+ refused: (error: unknown) => void;
20
+ }): boolean;