@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
@@ -1,15 +1,12 @@
1
1
  import type { IAutoMovieInspectorSceneHost } from "./IAutoMovieInspectorSceneHost.js";
2
2
  /**
3
- * The browser's scene host for one canvas: a `WebGLRenderer` drawing into it, the window's animation frames, and the canvas's layout size with the device pixel ratio.
3
+ * The browser's scene host for one canvas: a `WebGLRenderer` drawing into it,
4
+ * the window's animation frames, and the canvas's layout size with the device
5
+ * pixel ratio.
4
6
  *
5
- * Each `createRenderer` call makes a new renderer on the same canvas, which reuses the canvas's context, so a mount after a dispose draws; the mount disposes each renderer without losing the context. A canvas that has no layout size yet reports zero, and the mount skips drawing until it has one.
6
- *
7
- * @evidence contracts/development/common.md#meaningful-documentation States what each member is in a browser, the context reuse across mounts and the zero-size case.
8
- * @evidence contracts/development/implementation.md#principled-implementation `requestAnimationFrame` paces drawing to the display and stops in a hidden tab; `clientWidth` and `clientHeight` are the CSS size the page laid out, and `devicePixelRatio` scales the buffer to device pixels.
9
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Four one-line members over the canvas and its window.
10
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No global is replaced; the canvas's own window is used, so a canvas in another frame paces by that frame.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant per call.
12
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A host computes nothing to reuse; the mount reuses its renderer.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds the borrowed canvas only; each renderer it creates is owned and disposed by the mount that asked for it.
7
+ * Each `createRenderer` call makes a new renderer on the same canvas, which
8
+ * reuses the canvas's context, so a mount after a dispose draws; the mount
9
+ * disposes each renderer without losing the context. A canvas that has no
10
+ * layout size yet reports zero, and the mount skips drawing until it has one.
14
11
  */
15
12
  export declare function createAutoMovieInspectorCanvasHost(canvas: HTMLCanvasElement): IAutoMovieInspectorSceneHost;
@@ -36,22 +36,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.createAutoMovieInspectorCanvasHost = createAutoMovieInspectorCanvasHost;
37
37
  const THREE = __importStar(require("three"));
38
38
  /**
39
- * The browser's scene host for one canvas: a `WebGLRenderer` drawing into it, the window's animation frames, and the canvas's layout size with the device pixel ratio.
39
+ * The browser's scene host for one canvas: a `WebGLRenderer` drawing into it,
40
+ * the window's animation frames, and the canvas's layout size with the device
41
+ * pixel ratio.
40
42
  *
41
- * Each `createRenderer` call makes a new renderer on the same canvas, which reuses the canvas's context, so a mount after a dispose draws; the mount disposes each renderer without losing the context. A canvas that has no layout size yet reports zero, and the mount skips drawing until it has one.
42
- *
43
- * @evidence contracts/development/common.md#meaningful-documentation States what each member is in a browser, the context reuse across mounts and the zero-size case.
44
- * @evidence contracts/development/implementation.md#principled-implementation `requestAnimationFrame` paces drawing to the display and stops in a hidden tab; `clientWidth` and `clientHeight` are the CSS size the page laid out, and `devicePixelRatio` scales the buffer to device pixels.
45
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Four one-line members over the canvas and its window.
46
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No global is replaced; the canvas's own window is used, so a canvas in another frame paces by that frame.
47
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant per call.
48
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A host computes nothing to reuse; the mount reuses its renderer.
49
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds the borrowed canvas only; each renderer it creates is owned and disposed by the mount that asked for it.
43
+ * Each `createRenderer` call makes a new renderer on the same canvas, which
44
+ * reuses the canvas's context, so a mount after a dispose draws; the mount
45
+ * disposes each renderer without losing the context. A canvas that has no
46
+ * layout size yet reports zero, and the mount skips drawing until it has one.
50
47
  */
51
48
  function createAutoMovieInspectorCanvasHost(canvas) {
52
49
  const view = canvas.ownerDocument.defaultView ?? window;
53
50
  return {
54
- createRenderer: () => new THREE.WebGLRenderer({ canvas, antialias: true }),
51
+ createRenderer: () => {
52
+ const renderer = new THREE.WebGLRenderer({
53
+ canvas,
54
+ antialias: true,
55
+ });
56
+ return { renderer, compositor: renderer };
57
+ },
55
58
  requestFrame: (callback) => view.requestAnimationFrame(callback),
56
59
  cancelFrame: (handle) => view.cancelAnimationFrame(handle),
57
60
  size: () => ({
@@ -1 +1 @@
1
- {"version":3,"file":"createAutoMovieInspectorCanvasHost.js","sourceRoot":"","sources":["../../src/inspector/createAutoMovieInspectorCanvasHost.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,KAAK,kCAAc;AAI/B;;;;;;;;;;;;GAYG;AACH,4CACE,MAAyB;IAEzB,MAAM,IAAI,GAAW,MAAM,CAAC,aAAa,CAAC,WAAW,IAAI,MAAM,CAAC;IAChE,OAAO;QACL,cAAc,EAAE,GAA2C,EAAE,CAC3D,IAAI,KAAK,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QACtD,YAAY,EAAE,CAAC,QAAiC,EAAU,EAAE,CAC1D,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC;QACtC,WAAW,EAAE,CAAC,MAAc,EAAQ,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC;QACxE,IAAI,EAAE,GAAuC,EAAE,CAAC,CAAC;YAC/C,KAAK,EAAE,MAAM,CAAC,WAAW;YACzB,MAAM,EAAE,MAAM,CAAC,YAAY;YAC3B,UAAU,EAAE,IAAI,CAAC,gBAAgB;SAClC,CAAC;KACH,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"createAutoMovieInspectorCanvasHost.js","sourceRoot":"","sources":["../../src/inspector/createAutoMovieInspectorCanvasHost.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,KAAK,kCAAc;AAI/B;;;;;;;;;GASG;AACH,4CACE,MAAyB;IAEzB,MAAM,IAAI,GAAW,MAAM,CAAC,aAAa,CAAC,WAAW,IAAI,MAAM,CAAC;IAChE,OAAO;QACL,cAAc,EAAE,GAA0C,EAAE;YAC1D,MAAM,QAAQ,GAAwB,IAAI,KAAK,CAAC,aAAa,CAAC;gBAC5D,MAAM;gBACN,SAAS,EAAE,IAAI;aAChB,CAAC,CAAC;YACH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC;QAC5C,CAAC;QACD,YAAY,EAAE,CAAC,QAAiC,EAAU,EAAE,CAC1D,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC;QACtC,WAAW,EAAE,CAAC,MAAc,EAAQ,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC;QACxE,IAAI,EAAE,GAAuC,EAAE,CAAC,CAAC;YAC/C,KAAK,EAAE,MAAM,CAAC,WAAW;YACzB,MAAM,EAAE,MAAM,CAAC,YAAY;YAC3B,UAAU,EAAE,IAAI,CAAC,gBAAgB;SAClC,CAAC;KACH,CAAC;AACJ,CAAC"}
@@ -1,25 +1,28 @@
1
1
  import * as THREE from "three";
2
2
  // src/inspector/createAutoMovieInspectorCanvasHost.ts
3
3
  /**
4
- * The browser's scene host for one canvas: a `WebGLRenderer` drawing into it, the window's animation frames, and the canvas's layout size with the device pixel ratio.
4
+ * The browser's scene host for one canvas: a `WebGLRenderer` drawing into it,
5
+ * the window's animation frames, and the canvas's layout size with the device
6
+ * pixel ratio.
5
7
  *
6
- * Each `createRenderer` call makes a new renderer on the same canvas, which reuses the canvas's context, so a mount after a dispose draws; the mount disposes each renderer without losing the context. A canvas that has no layout size yet reports zero, and the mount skips drawing until it has one.
7
- *
8
- * @evidence contracts/development/common.md#meaningful-documentation States what each member is in a browser, the context reuse across mounts and the zero-size case.
9
- * @evidence contracts/development/implementation.md#principled-implementation `requestAnimationFrame` paces drawing to the display and stops in a hidden tab; `clientWidth` and `clientHeight` are the CSS size the page laid out, and `devicePixelRatio` scales the buffer to device pixels.
10
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Four one-line members over the canvas and its window.
11
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No global is replaced; the canvas's own window is used, so a canvas in another frame paces by that frame.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant per call.
13
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A host computes nothing to reuse; the mount reuses its renderer.
14
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds the borrowed canvas only; each renderer it creates is owned and disposed by the mount that asked for it.
8
+ * Each `createRenderer` call makes a new renderer on the same canvas, which
9
+ * reuses the canvas's context, so a mount after a dispose draws; the mount
10
+ * disposes each renderer without losing the context. A canvas that has no
11
+ * layout size yet reports zero, and the mount skips drawing until it has one.
15
12
  */
16
13
  function createAutoMovieInspectorCanvasHost(canvas) {
17
14
  const view = canvas.ownerDocument.defaultView ?? window;
18
15
  return {
19
- createRenderer: () => new THREE.WebGLRenderer({
20
- canvas,
21
- antialias: true
22
- }),
16
+ createRenderer: () => {
17
+ const renderer = new THREE.WebGLRenderer({
18
+ canvas,
19
+ antialias: true
20
+ });
21
+ return {
22
+ renderer,
23
+ compositor: renderer
24
+ };
25
+ },
23
26
  requestFrame: (callback) => view.requestAnimationFrame(callback),
24
27
  cancelFrame: (handle) => view.cancelAnimationFrame(handle),
25
28
  size: () => ({
@@ -1 +1 @@
1
- {"version":3,"file":"createAutoMovieInspectorCanvasHost.mjs","names":[],"sources":["../../src/inspector/createAutoMovieInspectorCanvasHost.ts"],"sourcesContent":["import * as THREE from \"three\";\n\nimport type { IAutoMovieInspectorSceneHost } from \"./IAutoMovieInspectorSceneHost.js\";\n\n/**\n * The browser's scene host for one canvas: a `WebGLRenderer` drawing into it, the window's animation frames, and the canvas's layout size with the device pixel ratio.\n *\n * Each `createRenderer` call makes a new renderer on the same canvas, which reuses the canvas's context, so a mount after a dispose draws; the mount disposes each renderer without losing the context. A canvas that has no layout size yet reports zero, and the mount skips drawing until it has one.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States what each member is in a browser, the context reuse across mounts and the zero-size case.\n * @evidence contracts/development/implementation.md#principled-implementation `requestAnimationFrame` paces drawing to the display and stops in a hidden tab; `clientWidth` and `clientHeight` are the CSS size the page laid out, and `devicePixelRatio` scales the buffer to device pixels.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Four one-line members over the canvas and its window.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No global is replaced; the canvas's own window is used, so a canvas in another frame paces by that frame.\n * @evidence contracts/development/implementation.md#efficient-algorithms Constant per call.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A host computes nothing to reuse; the mount reuses its renderer.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds the borrowed canvas only; each renderer it creates is owned and disposed by the mount that asked for it.\n */\nexport function createAutoMovieInspectorCanvasHost(\n canvas: HTMLCanvasElement,\n): IAutoMovieInspectorSceneHost {\n const view: Window = canvas.ownerDocument.defaultView ?? window;\n return {\n createRenderer: (): IAutoMovieInspectorSceneHost.IRenderer =>\n new THREE.WebGLRenderer({ canvas, antialias: true }),\n requestFrame: (callback: (nowMs: number) => void): number =>\n view.requestAnimationFrame(callback),\n cancelFrame: (handle: number): void => view.cancelAnimationFrame(handle),\n size: (): IAutoMovieInspectorSceneHost.ISize => ({\n width: canvas.clientWidth,\n height: canvas.clientHeight,\n pixelRatio: view.devicePixelRatio,\n }),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;AAiBA,SAAgB,mCACd,QAC8B;CAC9B,MAAM,OAAe,OAAO,cAAc,eAAe;CACzD,OAAO;EACL,sBACE,IAAI,MAAM,cAAc;GAAE;GAAQ,WAAW;EAAK,CAAC;EACrD,eAAe,aACb,KAAK,sBAAsB,QAAQ;EACrC,cAAc,WAAyB,KAAK,qBAAqB,MAAM;EACvE,aAAiD;GAC/C,OAAO,OAAO;GACd,QAAQ,OAAO;GACf,YAAY,KAAK;EACnB;CACF;AACF"}
1
+ {"version":3,"file":"createAutoMovieInspectorCanvasHost.mjs","names":[],"sources":["../../src/inspector/createAutoMovieInspectorCanvasHost.ts"],"sourcesContent":["import * as THREE from \"three\";\n\nimport type { IAutoMovieInspectorSceneHost } from \"./IAutoMovieInspectorSceneHost.js\";\n\n/**\n * The browser's scene host for one canvas: a `WebGLRenderer` drawing into it,\n * the window's animation frames, and the canvas's layout size with the device\n * pixel ratio.\n *\n * Each `createRenderer` call makes a new renderer on the same canvas, which\n * reuses the canvas's context, so a mount after a dispose draws; the mount\n * disposes each renderer without losing the context. A canvas that has no\n * layout size yet reports zero, and the mount skips drawing until it has one.\n */\nexport function createAutoMovieInspectorCanvasHost(\n canvas: HTMLCanvasElement,\n): IAutoMovieInspectorSceneHost {\n const view: Window = canvas.ownerDocument.defaultView ?? window;\n return {\n createRenderer: (): IAutoMovieInspectorSceneHost.ICreated => {\n const renderer: THREE.WebGLRenderer = new THREE.WebGLRenderer({\n canvas,\n antialias: true,\n });\n return { renderer, compositor: renderer };\n },\n requestFrame: (callback: (nowMs: number) => void): number =>\n view.requestAnimationFrame(callback),\n cancelFrame: (handle: number): void => view.cancelAnimationFrame(handle),\n size: (): IAutoMovieInspectorSceneHost.ISize => ({\n width: canvas.clientWidth,\n height: canvas.clientHeight,\n pixelRatio: view.devicePixelRatio,\n }),\n };\n}\n"],"mappings":";;;;;;;;;;;;AAcA,SAAgB,mCACd,QAC8B;CAC9B,MAAM,OAAe,OAAO,cAAc,eAAe;CACzD,OAAO;EACL,sBAA6D;GAC3D,MAAM,WAAgC,IAAI,MAAM,cAAc;IAC5D;IACA,WAAW;GACb,CAAC;GACD,OAAO;IAAE;IAAU,YAAY;GAAS;EAC1C;EACA,eAAe,aACb,KAAK,sBAAsB,QAAQ;EACrC,cAAc,WAAyB,KAAK,qBAAqB,MAAM;EACvE,aAAiD;GAC/C,OAAO,OAAO;GACd,QAAQ,OAAO;GACf,YAAY,KAAK;EACnB;CACF;AACF"}
@@ -2,14 +2,8 @@ import type { IAutoMovieInspectorState } from "./IAutoMovieInspectorState.js";
2
2
  /**
3
3
  * The inspector's first state, read from the address text it opens with.
4
4
  *
5
- * The text is applied as a `text` edit of the request the empty address names, which asks for nothing, so a refused address opens on that request with the refusal shown and the page still draws.
6
- *
7
- * @evidence contracts/development/common.md#meaningful-documentation States where the first request comes from and what a refused address gives.
8
- * @evidence contracts/development/implementation.md#principled-implementation The empty address is the grammar's request that asks for nothing, and the opening text goes through the same reducer edit a typed address does, so both refuse alike.
9
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Read the empty address, then reduce the given text onto it.
10
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No default request is written here; the grammar's empty reading supplies it.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Two readings, linear in the text's length.
12
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Called once per inspector, as `useReducer`'s initializer.
13
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh state and keeps nothing.
5
+ * The text is applied as a `text` edit of the request the empty address names,
6
+ * which asks for nothing, so a refused address opens on that request with the
7
+ * refusal shown and the page still draws.
14
8
  */
15
9
  export declare function createAutoMovieInspectorState(text: string): IAutoMovieInspectorState;
@@ -6,15 +6,9 @@ const reduceAutoMovieInspectorState_js_1 = require("./reduceAutoMovieInspectorSt
6
6
  /**
7
7
  * The inspector's first state, read from the address text it opens with.
8
8
  *
9
- * The text is applied as a `text` edit of the request the empty address names, which asks for nothing, so a refused address opens on that request with the refusal shown and the page still draws.
10
- *
11
- * @evidence contracts/development/common.md#meaningful-documentation States where the first request comes from and what a refused address gives.
12
- * @evidence contracts/development/implementation.md#principled-implementation The empty address is the grammar's request that asks for nothing, and the opening text goes through the same reducer edit a typed address does, so both refuse alike.
13
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Read the empty address, then reduce the given text onto it.
14
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No default request is written here; the grammar's empty reading supplies it.
15
- * @evidence contracts/development/implementation.md#efficient-algorithms Two readings, linear in the text's length.
16
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Called once per inspector, as `useReducer`'s initializer.
17
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh state and keeps nothing.
9
+ * The text is applied as a `text` edit of the request the empty address names,
10
+ * which asks for nothing, so a refused address opens on that request with the
11
+ * refusal shown and the page still draws.
18
12
  */
19
13
  function createAutoMovieInspectorState(text) {
20
14
  return (0, reduceAutoMovieInspectorState_js_1.reduceAutoMovieInspectorState)({ request: (0, readAutoMovieInspectorAddress_js_1.readAutoMovieInspectorAddress)(""), error: null }, { type: "text", text });
@@ -1 +1 @@
1
- {"version":3,"file":"createAutoMovieInspectorState.js","sourceRoot":"","sources":["../../src/inspector/createAutoMovieInspectorState.ts"],"names":[],"mappings":";;;AACA,yFAAmF;AACnF,yFAAmF;AAEnF;;;;;;;;;;;;GAYG;AACH,uCACE,IAAY;IAEZ,OAAO,IAAA,gEAA6B,EAClC,EAAE,OAAO,EAAE,IAAA,gEAA6B,EAAC,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAC3D,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CACvB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"createAutoMovieInspectorState.js","sourceRoot":"","sources":["../../src/inspector/createAutoMovieInspectorState.ts"],"names":[],"mappings":";;;AACA,yFAAmF;AACnF,yFAAmF;AAEnF;;;;;;GAMG;AACH,uCACE,IAAY;IAEZ,OAAO,IAAA,gEAA6B,EAClC,EAAE,OAAO,EAAE,IAAA,gEAA6B,EAAC,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAC3D,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CACvB,CAAC;AACJ,CAAC"}
@@ -4,15 +4,9 @@ import { reduceAutoMovieInspectorState } from "./reduceAutoMovieInspectorState.m
4
4
  /**
5
5
  * The inspector's first state, read from the address text it opens with.
6
6
  *
7
- * The text is applied as a `text` edit of the request the empty address names, which asks for nothing, so a refused address opens on that request with the refusal shown and the page still draws.
8
- *
9
- * @evidence contracts/development/common.md#meaningful-documentation States where the first request comes from and what a refused address gives.
10
- * @evidence contracts/development/implementation.md#principled-implementation The empty address is the grammar's request that asks for nothing, and the opening text goes through the same reducer edit a typed address does, so both refuse alike.
11
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Read the empty address, then reduce the given text onto it.
12
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No default request is written here; the grammar's empty reading supplies it.
13
- * @evidence contracts/development/implementation.md#efficient-algorithms Two readings, linear in the text's length.
14
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Called once per inspector, as `useReducer`'s initializer.
15
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh state and keeps nothing.
7
+ * The text is applied as a `text` edit of the request the empty address names,
8
+ * which asks for nothing, so a refused address opens on that request with the
9
+ * refusal shown and the page still draws.
16
10
  */
17
11
  function createAutoMovieInspectorState(text) {
18
12
  return reduceAutoMovieInspectorState({
@@ -1 +1 @@
1
- {"version":3,"file":"createAutoMovieInspectorState.mjs","names":[],"sources":["../../src/inspector/createAutoMovieInspectorState.ts"],"sourcesContent":["import type { IAutoMovieInspectorState } from \"./IAutoMovieInspectorState.js\";\nimport { readAutoMovieInspectorAddress } from \"./readAutoMovieInspectorAddress.js\";\nimport { reduceAutoMovieInspectorState } from \"./reduceAutoMovieInspectorState.js\";\n\n/**\n * The inspector's first state, read from the address text it opens with.\n *\n * The text is applied as a `text` edit of the request the empty address names, which asks for nothing, so a refused address opens on that request with the refusal shown and the page still draws.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States where the first request comes from and what a refused address gives.\n * @evidence contracts/development/implementation.md#principled-implementation The empty address is the grammar's request that asks for nothing, and the opening text goes through the same reducer edit a typed address does, so both refuse alike.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Read the empty address, then reduce the given text onto it.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No default request is written here; the grammar's empty reading supplies it.\n * @evidence contracts/development/implementation.md#efficient-algorithms Two readings, linear in the text's length.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Called once per inspector, as `useReducer`'s initializer.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh state and keeps nothing.\n */\nexport function createAutoMovieInspectorState(\n text: string,\n): IAutoMovieInspectorState {\n return reduceAutoMovieInspectorState(\n { request: readAutoMovieInspectorAddress(\"\"), error: null },\n { type: \"text\", text },\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAiBA,SAAgB,8BACd,MAC0B;CAC1B,OAAO,8BACL;EAAE,SAAS,8BAA8B,EAAE;EAAG,OAAO;CAAK,GAC1D;EAAE,MAAM;EAAQ;CAAK,CACvB;AACF"}
1
+ {"version":3,"file":"createAutoMovieInspectorState.mjs","names":[],"sources":["../../src/inspector/createAutoMovieInspectorState.ts"],"sourcesContent":["import type { IAutoMovieInspectorState } from \"./IAutoMovieInspectorState.js\";\nimport { readAutoMovieInspectorAddress } from \"./readAutoMovieInspectorAddress.js\";\nimport { reduceAutoMovieInspectorState } from \"./reduceAutoMovieInspectorState.js\";\n\n/**\n * The inspector's first state, read from the address text it opens with.\n *\n * The text is applied as a `text` edit of the request the empty address names,\n * which asks for nothing, so a refused address opens on that request with the\n * refusal shown and the page still draws.\n */\nexport function createAutoMovieInspectorState(\n text: string,\n): IAutoMovieInspectorState {\n return reduceAutoMovieInspectorState(\n { request: readAutoMovieInspectorAddress(\"\"), error: null },\n { type: \"text\", text },\n );\n}\n"],"mappings":";;;;;;;;;;AAWA,SAAgB,8BACd,MAC0B;CAC1B,OAAO,8BACL;EAAE,SAAS,8BAA8B,EAAE;EAAG,OAAO;CAAK,GAC1D;EAAE,MAAM;EAAQ;CAAK,CACvB;AACF"}
@@ -0,0 +1,6 @@
1
+ import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
2
+ /**
3
+ * The first second a request draws: its first explicit second, or the start of
4
+ * its sampling.
5
+ */
6
+ export declare function firstAutoMovieInspectorSecond(request: Pick<IAutoMovieCapturePlanRequest, "sampling">): number;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.firstAutoMovieInspectorSecond = firstAutoMovieInspectorSecond;
4
+ /**
5
+ * The first second a request draws: its first explicit second, or the start of
6
+ * its sampling.
7
+ */
8
+ function firstAutoMovieInspectorSecond(request) {
9
+ return request.sampling.kind === "at"
10
+ ? request.sampling.seconds[0]
11
+ : request.sampling.from;
12
+ }
13
+ //# sourceMappingURL=firstAutoMovieInspectorSecond.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"firstAutoMovieInspectorSecond.js","sourceRoot":"","sources":["../../src/inspector/firstAutoMovieInspectorSecond.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACH,uCACE,OAAuD;IAEvD,OAAO,OAAO,CAAC,QAAQ,CAAC,IAAI,KAAK,IAAI;QACnC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAE;QAC9B,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC;AAC5B,CAAC"}
@@ -0,0 +1,11 @@
1
+ // src/inspector/firstAutoMovieInspectorSecond.ts
2
+ /**
3
+ * The first second a request draws: its first explicit second, or the start of
4
+ * its sampling.
5
+ */
6
+ function firstAutoMovieInspectorSecond(request) {
7
+ return request.sampling.kind === "at" ? request.sampling.seconds[0] : request.sampling.from;
8
+ }
9
+ export { firstAutoMovieInspectorSecond };
10
+
11
+ //# sourceMappingURL=firstAutoMovieInspectorSecond.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"firstAutoMovieInspectorSecond.mjs","names":[],"sources":["../../src/inspector/firstAutoMovieInspectorSecond.ts"],"sourcesContent":["import type { IAutoMovieCapturePlanRequest } from \"@automovie/interface\";\n\n/**\n * The first second a request draws: its first explicit second, or the start of\n * its sampling.\n */\nexport function firstAutoMovieInspectorSecond(\n request: Pick<IAutoMovieCapturePlanRequest, \"sampling\">,\n): number {\n return request.sampling.kind === \"at\"\n ? request.sampling.seconds[0]!\n : request.sampling.from;\n}\n"],"mappings":";;;;;AAMA,SAAgB,8BACd,SACQ;CACR,OAAO,QAAQ,SAAS,SAAS,OAC7B,QAAQ,SAAS,QAAQ,KACzB,QAAQ,SAAS;AACvB"}
@@ -0,0 +1,11 @@
1
+ import type { IAutoMovieInspectorLive } from "./IAutoMovieInspectorLive.js";
2
+ import type { IAutoMovieInspectorSceneHost } from "./IAutoMovieInspectorSceneHost.js";
3
+ /**
4
+ * Follow the host's drawing size: when every side and the pixel ratio are
5
+ * positive and finite and differ from the size the renderer has, resize the
6
+ * renderer's drawing buffer, leaving the canvas's layout to the page, and mark
7
+ * the mount for a redraw.
8
+ *
9
+ * @returns Whether the size can be drawn at.
10
+ */
11
+ export declare function followAutoMovieInspectorSize(now: IAutoMovieInspectorLive, size: IAutoMovieInspectorSceneHost.ISize): boolean;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.followAutoMovieInspectorSize = followAutoMovieInspectorSize;
4
+ /**
5
+ * Follow the host's drawing size: when every side and the pixel ratio are
6
+ * positive and finite and differ from the size the renderer has, resize the
7
+ * renderer's drawing buffer, leaving the canvas's layout to the page, and mark
8
+ * the mount for a redraw.
9
+ *
10
+ * @returns Whether the size can be drawn at.
11
+ */
12
+ function followAutoMovieInspectorSize(now, size) {
13
+ const drawable = [size.width, size.height, size.pixelRatio].every((value) => value > 0);
14
+ if (drawable &&
15
+ (now.size === undefined ||
16
+ now.size.width !== size.width ||
17
+ now.size.height !== size.height ||
18
+ now.size.pixelRatio !== size.pixelRatio)) {
19
+ now.renderer.setPixelRatio(size.pixelRatio);
20
+ now.renderer.setSize(size.width, size.height, false);
21
+ now.size = size;
22
+ now.dirty = true;
23
+ }
24
+ return drawable;
25
+ }
26
+ //# sourceMappingURL=followAutoMovieInspectorSize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"followAutoMovieInspectorSize.js","sourceRoot":"","sources":["../../src/inspector/followAutoMovieInspectorSize.ts"],"names":[],"mappings":";;;AAGA;;;;;;;GAOG;AACH,sCACE,GAA4B,EAC5B,IAAwC;IAExC,MAAM,QAAQ,GAAY,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,KAAK,CACxE,CAAC,KAAa,EAAW,EAAE,CAAC,KAAK,GAAG,CAAC,CACtC,CAAC;IACF,IACE,QAAQ;QACR,CAAC,GAAG,CAAC,IAAI,KAAK,SAAS;YACrB,GAAG,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK;YAC7B,GAAG,CAAC,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM;YAC/B,GAAG,CAAC,IAAI,CAAC,UAAU,KAAK,IAAI,CAAC,UAAU,CAAC,EAC1C,CAAC;QACD,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC5C,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QACrD,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC;QAChB,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC;IACnB,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -0,0 +1,26 @@
1
+ // src/inspector/followAutoMovieInspectorSize.ts
2
+ /**
3
+ * Follow the host's drawing size: when every side and the pixel ratio are
4
+ * positive and finite and differ from the size the renderer has, resize the
5
+ * renderer's drawing buffer, leaving the canvas's layout to the page, and mark
6
+ * the mount for a redraw.
7
+ *
8
+ * @returns Whether the size can be drawn at.
9
+ */
10
+ function followAutoMovieInspectorSize(now, size) {
11
+ const drawable = [
12
+ size.width,
13
+ size.height,
14
+ size.pixelRatio
15
+ ].every((value) => value > 0);
16
+ if (drawable && (now.size === void 0 || now.size.width !== size.width || now.size.height !== size.height || now.size.pixelRatio !== size.pixelRatio)) {
17
+ now.renderer.setPixelRatio(size.pixelRatio);
18
+ now.renderer.setSize(size.width, size.height, false);
19
+ now.size = size;
20
+ now.dirty = true;
21
+ }
22
+ return drawable;
23
+ }
24
+ export { followAutoMovieInspectorSize };
25
+
26
+ //# sourceMappingURL=followAutoMovieInspectorSize.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"followAutoMovieInspectorSize.mjs","names":[],"sources":["../../src/inspector/followAutoMovieInspectorSize.ts"],"sourcesContent":["import type { IAutoMovieInspectorLive } from \"./IAutoMovieInspectorLive.js\";\nimport type { IAutoMovieInspectorSceneHost } from \"./IAutoMovieInspectorSceneHost.js\";\n\n/**\n * Follow the host's drawing size: when every side and the pixel ratio are\n * positive and finite and differ from the size the renderer has, resize the\n * renderer's drawing buffer, leaving the canvas's layout to the page, and mark\n * the mount for a redraw.\n *\n * @returns Whether the size can be drawn at.\n */\nexport function followAutoMovieInspectorSize(\n now: IAutoMovieInspectorLive,\n size: IAutoMovieInspectorSceneHost.ISize,\n): boolean {\n const drawable: boolean = [size.width, size.height, size.pixelRatio].every(\n (value: number): boolean => value > 0,\n );\n if (\n drawable &&\n (now.size === undefined ||\n now.size.width !== size.width ||\n now.size.height !== size.height ||\n now.size.pixelRatio !== size.pixelRatio)\n ) {\n now.renderer.setPixelRatio(size.pixelRatio);\n now.renderer.setSize(size.width, size.height, false);\n now.size = size;\n now.dirty = true;\n }\n return drawable;\n}\n"],"mappings":";;;;;;;;;AAWA,SAAgB,6BACd,KACA,MACS;CACT,MAAM,WAAoB;EAAC,KAAK;EAAO,KAAK;EAAQ,KAAK;CAAU,CAAC,CAAC,OAClE,UAA2B,QAAQ,CACtC;CACA,IACE,aACC,IAAI,SAAS,KAAA,KACZ,IAAI,KAAK,UAAU,KAAK,SACxB,IAAI,KAAK,WAAW,KAAK,UACzB,IAAI,KAAK,eAAe,KAAK,aAC/B;EACA,IAAI,SAAS,cAAc,KAAK,UAAU;EAC1C,IAAI,SAAS,QAAQ,KAAK,OAAO,KAAK,QAAQ,KAAK;EACnD,IAAI,OAAO;EACX,IAAI,QAAQ;CACd;CACA,OAAO;AACT"}
@@ -1,15 +1,16 @@
1
1
  import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
2
2
  /**
3
- * Write a request as the query text of an address, without the leading `?`, so the address repeats the request and `readAutoMovieInspectorAddress` reads it back equal.
3
+ * Write a request as the query text of an address, without the leading `?`, so
4
+ * the address repeats the request and `readAutoMovieInspectorAddress` reads it
5
+ * back equal.
4
6
  *
5
- * Keys and values come from `formatAutoMovieCapturePlanRequest`, in its order and with absent values left out, so the request that asks for nothing is the empty text. Each key and value is escaped by `encodeURIComponent`, then the separators `,`, `:`, `;`, `/`, `@` and `=` are put back, because a query may hold them as they are and `URLSearchParams` reads them unchanged (a pair splits at its first `=`, and no key holds one), so `parts=hero/torso&views=front@focus=hero&color=hero=ff8800` stays readable. A key whose value is empty is written bare.
6
- *
7
- * @evidence contracts/development/common.md#meaningful-documentation States the order, the escaping, which characters stay readable and why that is safe, the bare key and the round trip.
8
- * @evidence contracts/development/implementation.md#principled-implementation The grammar's own writer decides keys and values; `encodeURIComponent` escapes every character that would change the query's structure (`&`, `+`, `#`, `%`, space), and the restored separators are sub-delimiters RFC 3986 allows in a query, which the WHATWG URL parser leaves as they are; `=` inside a value is safe because `URLSearchParams` splits a pair at its first `=` and no grammar key holds one.
9
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One map over the written pairs and one join.
10
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No key or value is written here by hand, so a key the grammar adds reaches the address unchanged.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the length of the written request.
12
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure conversion of one request.
13
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh string and keeps nothing.
7
+ * Keys and values come from `formatAutoMovieCapturePlanRequest`, in its order
8
+ * and with absent values left out, so the request that asks for nothing is the
9
+ * empty text. Each key and value is escaped by `encodeURIComponent`, then the
10
+ * separators `,`, `:`, `;`, `/`, `@` and `=` are put back, because a query may
11
+ * hold them as they are and `URLSearchParams` reads them unchanged (a pair
12
+ * splits at its first `=`, and no key holds one), so
13
+ * `parts=hero/torso&views=front@focus=hero&color=hero=ff8800` stays readable. A
14
+ * key whose value is empty is written bare.
14
15
  */
15
16
  export declare function formatAutoMovieInspectorAddress(request: IAutoMovieCapturePlanRequest): string;
@@ -2,7 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.formatAutoMovieInspectorAddress = formatAutoMovieInspectorAddress;
4
4
  const render_1 = require("@automovie/render");
5
- /** Characters the grammar writes that a query keeps readable: list, view, path, focus, colour pair and cut separators. */
5
+ /**
6
+ * Characters the grammar writes that a query keeps readable: list, view, path,
7
+ * focus, colour pair and cut separators.
8
+ */
6
9
  const READABLE = new Map([
7
10
  ["%2C", ","],
8
11
  ["%3A", ":"],
@@ -12,17 +15,18 @@ const READABLE = new Map([
12
15
  ["%3D", "="],
13
16
  ]);
14
17
  /**
15
- * Write a request as the query text of an address, without the leading `?`, so the address repeats the request and `readAutoMovieInspectorAddress` reads it back equal.
16
- *
17
- * Keys and values come from `formatAutoMovieCapturePlanRequest`, in its order and with absent values left out, so the request that asks for nothing is the empty text. Each key and value is escaped by `encodeURIComponent`, then the separators `,`, `:`, `;`, `/`, `@` and `=` are put back, because a query may hold them as they are and `URLSearchParams` reads them unchanged (a pair splits at its first `=`, and no key holds one), so `parts=hero/torso&views=front@focus=hero&color=hero=ff8800` stays readable. A key whose value is empty is written bare.
18
+ * Write a request as the query text of an address, without the leading `?`, so
19
+ * the address repeats the request and `readAutoMovieInspectorAddress` reads it
20
+ * back equal.
18
21
  *
19
- * @evidence contracts/development/common.md#meaningful-documentation States the order, the escaping, which characters stay readable and why that is safe, the bare key and the round trip.
20
- * @evidence contracts/development/implementation.md#principled-implementation The grammar's own writer decides keys and values; `encodeURIComponent` escapes every character that would change the query's structure (`&`, `+`, `#`, `%`, space), and the restored separators are sub-delimiters RFC 3986 allows in a query, which the WHATWG URL parser leaves as they are; `=` inside a value is safe because `URLSearchParams` splits a pair at its first `=` and no grammar key holds one.
21
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One map over the written pairs and one join.
22
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No key or value is written here by hand, so a key the grammar adds reaches the address unchanged.
23
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the length of the written request.
24
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure conversion of one request.
25
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh string and keeps nothing.
22
+ * Keys and values come from `formatAutoMovieCapturePlanRequest`, in its order
23
+ * and with absent values left out, so the request that asks for nothing is the
24
+ * empty text. Each key and value is escaped by `encodeURIComponent`, then the
25
+ * separators `,`, `:`, `;`, `/`, `@` and `=` are put back, because a query may
26
+ * hold them as they are and `URLSearchParams` reads them unchanged (a pair
27
+ * splits at its first `=`, and no key holds one), so
28
+ * `parts=hero/torso&views=front@focus=hero&color=hero=ff8800` stays readable. A
29
+ * key whose value is empty is written bare.
26
30
  */
27
31
  function formatAutoMovieInspectorAddress(request) {
28
32
  return (0, render_1.formatAutoMovieCapturePlanRequest)(request)
@@ -1 +1 @@
1
- {"version":3,"file":"formatAutoMovieInspectorAddress.js","sourceRoot":"","sources":["../../src/inspector/formatAutoMovieInspectorAddress.ts"],"names":[],"mappings":";;;AACA,8CAAsE;AAEtE,0HAA0H;AAC1H,MAAM,QAAQ,GAAgC,IAAI,GAAG,CAAiB;IACpE,CAAC,KAAK,EAAE,GAAG,CAAC;IACZ,CAAC,KAAK,EAAE,GAAG,CAAC;IACZ,CAAC,KAAK,EAAE,GAAG,CAAC;IACZ,CAAC,KAAK,EAAE,GAAG,CAAC;IACZ,CAAC,KAAK,EAAE,GAAG,CAAC;IACZ,CAAC,KAAK,EAAE,GAAG,CAAC;CACb,CAAC,CAAC;AAEH;;;;;;;;;;;;GAYG;AACH,yCACE,OAAqC;IAErC,OAAO,IAAA,0CAAiC,EAAC,OAAO,CAAC;SAC9C,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAA+B,EAAU,EAAE,CAC1D,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,CAC/D;SACA,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC;AAED,kEAAkE;AAClE,SAAS,MAAM,CAAC,IAAY;IAC1B,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC,OAAO,CACrC,2BAA2B,EAC3B,CAAC,IAAY,EAAU,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAE,CAC9C,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"formatAutoMovieInspectorAddress.js","sourceRoot":"","sources":["../../src/inspector/formatAutoMovieInspectorAddress.ts"],"names":[],"mappings":";;;AACA,8CAAsE;AAEtE;;;GAGG;AACH,MAAM,QAAQ,GAAgC,IAAI,GAAG,CAAiB;IACpE,CAAC,KAAK,EAAE,GAAG,CAAC;IACZ,CAAC,KAAK,EAAE,GAAG,CAAC;IACZ,CAAC,KAAK,EAAE,GAAG,CAAC;IACZ,CAAC,KAAK,EAAE,GAAG,CAAC;IACZ,CAAC,KAAK,EAAE,GAAG,CAAC;IACZ,CAAC,KAAK,EAAE,GAAG,CAAC;CACb,CAAC,CAAC;AAEH;;;;;;;;;;;;;GAaG;AACH,yCACE,OAAqC;IAErC,OAAO,IAAA,0CAAiC,EAAC,OAAO,CAAC;SAC9C,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAA+B,EAAU,EAAE,CAC1D,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,CAC/D;SACA,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC;AAED,kEAAkE;AAClE,SAAS,MAAM,CAAC,IAAY;IAC1B,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC,OAAO,CACrC,2BAA2B,EAC3B,CAAC,IAAY,EAAU,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAE,CAC9C,CAAC;AACJ,CAAC"}
@@ -1,6 +1,9 @@
1
1
  import { formatAutoMovieCapturePlanRequest } from "@automovie/render";
2
2
  // src/inspector/formatAutoMovieInspectorAddress.ts
3
- /** Characters the grammar writes that a query keeps readable: list, view, path, focus, colour pair and cut separators. */
3
+ /**
4
+ * Characters the grammar writes that a query keeps readable: list, view, path,
5
+ * focus, colour pair and cut separators.
6
+ */
4
7
  const READABLE = /* @__PURE__ */ new Map([
5
8
  ["%2C", ","],
6
9
  ["%3A", ":"],
@@ -10,17 +13,18 @@ const READABLE = /* @__PURE__ */ new Map([
10
13
  ["%3D", "="]
11
14
  ]);
12
15
  /**
13
- * Write a request as the query text of an address, without the leading `?`, so the address repeats the request and `readAutoMovieInspectorAddress` reads it back equal.
14
- *
15
- * Keys and values come from `formatAutoMovieCapturePlanRequest`, in its order and with absent values left out, so the request that asks for nothing is the empty text. Each key and value is escaped by `encodeURIComponent`, then the separators `,`, `:`, `;`, `/`, `@` and `=` are put back, because a query may hold them as they are and `URLSearchParams` reads them unchanged (a pair splits at its first `=`, and no key holds one), so `parts=hero/torso&views=front@focus=hero&color=hero=ff8800` stays readable. A key whose value is empty is written bare.
16
+ * Write a request as the query text of an address, without the leading `?`, so
17
+ * the address repeats the request and `readAutoMovieInspectorAddress` reads it
18
+ * back equal.
16
19
  *
17
- * @evidence contracts/development/common.md#meaningful-documentation States the order, the escaping, which characters stay readable and why that is safe, the bare key and the round trip.
18
- * @evidence contracts/development/implementation.md#principled-implementation The grammar's own writer decides keys and values; `encodeURIComponent` escapes every character that would change the query's structure (`&`, `+`, `#`, `%`, space), and the restored separators are sub-delimiters RFC 3986 allows in a query, which the WHATWG URL parser leaves as they are; `=` inside a value is safe because `URLSearchParams` splits a pair at its first `=` and no grammar key holds one.
19
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One map over the written pairs and one join.
20
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No key or value is written here by hand, so a key the grammar adds reaches the address unchanged.
21
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the length of the written request.
22
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure conversion of one request.
23
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh string and keeps nothing.
20
+ * Keys and values come from `formatAutoMovieCapturePlanRequest`, in its order
21
+ * and with absent values left out, so the request that asks for nothing is the
22
+ * empty text. Each key and value is escaped by `encodeURIComponent`, then the
23
+ * separators `,`, `:`, `;`, `/`, `@` and `=` are put back, because a query may
24
+ * hold them as they are and `URLSearchParams` reads them unchanged (a pair
25
+ * splits at its first `=`, and no key holds one), so
26
+ * `parts=hero/torso&views=front@focus=hero&color=hero=ff8800` stays readable. A
27
+ * key whose value is empty is written bare.
24
28
  */
25
29
  function formatAutoMovieInspectorAddress(request) {
26
30
  return formatAutoMovieCapturePlanRequest(request).map(([key, value]) => value === "" ? escape(key) : `${escape(key)}=${escape(value)}`).join("&");
@@ -1 +1 @@
1
- {"version":3,"file":"formatAutoMovieInspectorAddress.mjs","names":[],"sources":["../../src/inspector/formatAutoMovieInspectorAddress.ts"],"sourcesContent":["import type { IAutoMovieCapturePlanRequest } from \"@automovie/interface\";\nimport { formatAutoMovieCapturePlanRequest } from \"@automovie/render\";\n\n/** Characters the grammar writes that a query keeps readable: list, view, path, focus, colour pair and cut separators. */\nconst READABLE: ReadonlyMap<string, string> = new Map<string, string>([\n [\"%2C\", \",\"],\n [\"%3A\", \":\"],\n [\"%3B\", \";\"],\n [\"%2F\", \"/\"],\n [\"%40\", \"@\"],\n [\"%3D\", \"=\"],\n]);\n\n/**\n * Write a request as the query text of an address, without the leading `?`, so the address repeats the request and `readAutoMovieInspectorAddress` reads it back equal.\n *\n * Keys and values come from `formatAutoMovieCapturePlanRequest`, in its order and with absent values left out, so the request that asks for nothing is the empty text. Each key and value is escaped by `encodeURIComponent`, then the separators `,`, `:`, `;`, `/`, `@` and `=` are put back, because a query may hold them as they are and `URLSearchParams` reads them unchanged (a pair splits at its first `=`, and no key holds one), so `parts=hero/torso&views=front@focus=hero&color=hero=ff8800` stays readable. A key whose value is empty is written bare.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the order, the escaping, which characters stay readable and why that is safe, the bare key and the round trip.\n * @evidence contracts/development/implementation.md#principled-implementation The grammar's own writer decides keys and values; `encodeURIComponent` escapes every character that would change the query's structure (`&`, `+`, `#`, `%`, space), and the restored separators are sub-delimiters RFC 3986 allows in a query, which the WHATWG URL parser leaves as they are; `=` inside a value is safe because `URLSearchParams` splits a pair at its first `=` and no grammar key holds one.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One map over the written pairs and one join.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No key or value is written here by hand, so a key the grammar adds reaches the address unchanged.\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 a fresh string and keeps nothing.\n */\nexport function formatAutoMovieInspectorAddress(\n request: IAutoMovieCapturePlanRequest,\n): string {\n return formatAutoMovieCapturePlanRequest(request)\n .map(([key, value]: [key: string, value: string]): string =>\n value === \"\" ? escape(key) : `${escape(key)}=${escape(value)}`,\n )\n .join(\"&\");\n}\n\n/** `encodeURIComponent` with the readable separators put back. */\nfunction escape(text: string): string {\n return encodeURIComponent(text).replace(\n /%2C|%3A|%3B|%2F|%40|%3D/gu,\n (code: string): string => READABLE.get(code)!,\n );\n}\n"],"mappings":";;;AAIA,MAAM,2BAAwC,IAAI,IAAoB;CACpE,CAAC,OAAO,GAAG;CACX,CAAC,OAAO,GAAG;CACX,CAAC,OAAO,GAAG;CACX,CAAC,OAAO,GAAG;CACX,CAAC,OAAO,GAAG;CACX,CAAC,OAAO,GAAG;AACb,CAAC;;;;;;;;;;;;;;AAeD,SAAgB,gCACd,SACQ;CACR,OAAO,kCAAkC,OAAO,CAAC,CAC9C,KAAK,CAAC,KAAK,WACV,UAAU,KAAK,OAAO,GAAG,IAAI,GAAG,OAAO,GAAG,EAAE,GAAG,OAAO,KAAK,GAC7D,CAAC,CACA,KAAK,GAAG;AACb;;AAGA,SAAS,OAAO,MAAsB;CACpC,OAAO,mBAAmB,IAAI,CAAC,CAAC,QAC9B,8BACC,SAAyB,SAAS,IAAI,IAAI,CAC7C;AACF"}
1
+ {"version":3,"file":"formatAutoMovieInspectorAddress.mjs","names":[],"sources":["../../src/inspector/formatAutoMovieInspectorAddress.ts"],"sourcesContent":["import type { IAutoMovieCapturePlanRequest } from \"@automovie/interface\";\nimport { formatAutoMovieCapturePlanRequest } from \"@automovie/render\";\n\n/**\n * Characters the grammar writes that a query keeps readable: list, view, path,\n * focus, colour pair and cut separators.\n */\nconst READABLE: ReadonlyMap<string, string> = new Map<string, string>([\n [\"%2C\", \",\"],\n [\"%3A\", \":\"],\n [\"%3B\", \";\"],\n [\"%2F\", \"/\"],\n [\"%40\", \"@\"],\n [\"%3D\", \"=\"],\n]);\n\n/**\n * Write a request as the query text of an address, without the leading `?`, so\n * the address repeats the request and `readAutoMovieInspectorAddress` reads it\n * back equal.\n *\n * Keys and values come from `formatAutoMovieCapturePlanRequest`, in its order\n * and with absent values left out, so the request that asks for nothing is the\n * empty text. Each key and value is escaped by `encodeURIComponent`, then the\n * separators `,`, `:`, `;`, `/`, `@` and `=` are put back, because a query may\n * hold them as they are and `URLSearchParams` reads them unchanged (a pair\n * splits at its first `=`, and no key holds one), so\n * `parts=hero/torso&views=front@focus=hero&color=hero=ff8800` stays readable. A\n * key whose value is empty is written bare.\n */\nexport function formatAutoMovieInspectorAddress(\n request: IAutoMovieCapturePlanRequest,\n): string {\n return formatAutoMovieCapturePlanRequest(request)\n .map(([key, value]: [key: string, value: string]): string =>\n value === \"\" ? escape(key) : `${escape(key)}=${escape(value)}`,\n )\n .join(\"&\");\n}\n\n/** `encodeURIComponent` with the readable separators put back. */\nfunction escape(text: string): string {\n return encodeURIComponent(text).replace(\n /%2C|%3A|%3B|%2F|%40|%3D/gu,\n (code: string): string => READABLE.get(code)!,\n );\n}\n"],"mappings":";;;;;;AAOA,MAAM,2BAAwC,IAAI,IAAoB;CACpE,CAAC,OAAO,GAAG;CACX,CAAC,OAAO,GAAG;CACX,CAAC,OAAO,GAAG;CACX,CAAC,OAAO,GAAG;CACX,CAAC,OAAO,GAAG;CACX,CAAC,OAAO,GAAG;AACb,CAAC;;;;;;;;;;;;;;;AAgBD,SAAgB,gCACd,SACQ;CACR,OAAO,kCAAkC,OAAO,CAAC,CAC9C,KAAK,CAAC,KAAK,WACV,UAAU,KAAK,OAAO,GAAG,IAAI,GAAG,OAAO,GAAG,EAAE,GAAG,OAAO,KAAK,GAC7D,CAAC,CACA,KAAK,GAAG;AACb;;AAGA,SAAS,OAAO,MAAsB;CACpC,OAAO,mBAAmB,IAAI,CAAC,CAAC,QAC9B,8BACC,SAAyB,SAAS,IAAI,IAAI,CAC7C;AACF"}
@@ -1,26 +1,32 @@
1
1
  import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
2
2
  /**
3
- * Write the `automovie capture` command that repeats a request: its options, and the command line a person copies.
3
+ * Write a capture request's option tokens and a shell command to copy.
4
4
  *
5
- * 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.
5
+ * Every pair `formatAutoMovieCapturePlanRequest` writes becomes one
6
+ * `--<key>=<value>` option, in its order. The `=` form is used for every
7
+ * option, so a value that starts with `-`, such as an axis cut `-x:0.2`, or
8
+ * that is empty stays the option's value. `readAutoMovieCaptureArguments` reads
9
+ * the options back to the same named values, so the command's reader gives an
10
+ * equal request.
6
11
  *
7
- * 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.
12
+ * The text starts with the host's executable and arguments, or with `automovie
13
+ * capture` when the caller formats the request alone. The host supplies any
14
+ * options required to reproduce its subject and inputs. POSIX is the default.
15
+ * PowerShell also quotes commas so a script such as `pnpm` receives each list
16
+ * or plane as one argument.
8
17
  *
9
18
  * ```ts
10
19
  * const { text } = formatAutoMovieInspectorCommand(request);
11
20
  * ```
12
- *
13
- * @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.
14
- * @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.
15
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One map to options and one join with quoting.
16
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No option is written by hand, so the command offers exactly what the address carries.
17
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the length of the written request.
18
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure conversion of one request.
19
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns fresh strings and keeps nothing.
20
21
  */
21
- export declare function formatAutoMovieInspectorCommand(request: IAutoMovieCapturePlanRequest): {
22
- /** The options after `automovie capture`, one argument each. */
22
+ export declare function formatAutoMovieInspectorCommand(request: IAutoMovieCapturePlanRequest, props?: {
23
+ /** Executable and fixed arguments supplied by the capture host. */
24
+ command?: readonly [string, ...string[]];
25
+ /** The shell syntax used for the copied text. Defaults to POSIX. */
26
+ shell?: "posix" | "powershell";
27
+ }): {
28
+ /** The request's own options, one argument each. */
23
29
  options: string[];
24
- /** The whole command line, quoted for a POSIX shell. */
30
+ /** The command with the host and request arguments quoted for the shell. */
25
31
  text: string;
26
32
  };