@automovie/viewer 0.3.4 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (387) hide show
  1. package/README.md +8 -87
  2. package/lib/IAutoMovieViewerCompletedFrame.d.ts +19 -11
  3. package/lib/IAutoMovieViewerDisplayMetadata.d.ts +0 -5
  4. package/lib/IAutoMovieViewerHandle.d.ts +3 -25
  5. package/lib/IMountViewerOptions.d.ts +24 -38
  6. package/lib/IViewerCameraStateSnapshot.d.ts +0 -5
  7. package/lib/IViewerFrameTransfer.d.ts +11 -0
  8. package/lib/IViewerFrameTransfer.js +3 -0
  9. package/lib/IViewerFrameTransfer.js.map +1 -0
  10. package/lib/IViewerFrameTransfer.mjs +0 -0
  11. package/lib/applyCaptureCanvasSize.d.ts +9 -10
  12. package/lib/applyCaptureCanvasSize.js +7 -13
  13. package/lib/applyCaptureCanvasSize.js.map +1 -1
  14. package/lib/applyCaptureCanvasSize.mjs +7 -10
  15. package/lib/applyCaptureCanvasSize.mjs.map +1 -1
  16. package/lib/audio/IAutoMovieAudioCue.d.ts +3 -8
  17. package/lib/audio/planAutoMovieAudioPlayback.d.ts +8 -21
  18. package/lib/audio/planAutoMovieAudioPlayback.js +8 -14
  19. package/lib/audio/planAutoMovieAudioPlayback.js.map +1 -1
  20. package/lib/audio/planAutoMovieAudioPlayback.mjs +8 -14
  21. package/lib/audio/planAutoMovieAudioPlayback.mjs.map +1 -1
  22. package/lib/audio/playAutoMovieAudioCues.d.ts +4 -11
  23. package/lib/audio/playAutoMovieAudioCues.js +4 -11
  24. package/lib/audio/playAutoMovieAudioCues.js.map +1 -1
  25. package/lib/audio/playAutoMovieAudioCues.mjs +4 -11
  26. package/lib/audio/playAutoMovieAudioCues.mjs.map +1 -1
  27. package/lib/createViewerCameraState.d.ts +3 -11
  28. package/lib/createViewerCameraState.js +80 -121
  29. package/lib/createViewerCameraState.js.map +1 -1
  30. package/lib/createViewerCameraState.mjs +46 -98
  31. package/lib/createViewerCameraState.mjs.map +1 -1
  32. package/lib/createViewerDisplayClock.d.ts +2 -10
  33. package/lib/createViewerDisplayClock.js +4 -12
  34. package/lib/createViewerDisplayClock.js.map +1 -1
  35. package/lib/createViewerDisplayClock.mjs +3 -11
  36. package/lib/createViewerDisplayClock.mjs.map +1 -1
  37. package/lib/createViewerDisplayPublication.d.ts +7 -15
  38. package/lib/createViewerDisplayPublication.js +7 -15
  39. package/lib/createViewerDisplayPublication.js.map +1 -1
  40. package/lib/createViewerDisplayPublication.mjs +7 -15
  41. package/lib/createViewerDisplayPublication.mjs.map +1 -1
  42. package/lib/createViewerDisplaySave.d.ts +8 -16
  43. package/lib/createViewerDisplaySave.js +8 -16
  44. package/lib/createViewerDisplaySave.js.map +1 -1
  45. package/lib/createViewerDisplaySave.mjs +8 -16
  46. package/lib/createViewerDisplaySave.mjs.map +1 -1
  47. package/lib/createViewerFrameControl.d.ts +8 -10
  48. package/lib/createViewerFrameControl.js +3 -15
  49. package/lib/createViewerFrameControl.js.map +1 -1
  50. package/lib/createViewerFrameControl.mjs +3 -12
  51. package/lib/createViewerFrameControl.mjs.map +1 -1
  52. package/lib/createViewerViewportResize.d.ts +4 -12
  53. package/lib/createViewerViewportResize.js +7 -20
  54. package/lib/createViewerViewportResize.js.map +1 -1
  55. package/lib/createViewerViewportResize.mjs +6 -14
  56. package/lib/createViewerViewportResize.mjs.map +1 -1
  57. package/lib/index.d.ts +1 -0
  58. package/lib/index.js +1 -0
  59. package/lib/index.js.map +1 -1
  60. package/lib/index.mjs +6 -1
  61. package/lib/inspector/AutoMovieInspector.d.ts +33 -13
  62. package/lib/inspector/AutoMovieInspector.js +110 -19
  63. package/lib/inspector/AutoMovieInspector.js.map +1 -1
  64. package/lib/inspector/AutoMovieInspector.mjs +121 -18
  65. package/lib/inspector/AutoMovieInspector.mjs.map +1 -1
  66. package/lib/inspector/AutoMovieInspectorBeauty.d.ts +41 -0
  67. package/lib/inspector/AutoMovieInspectorBeauty.js +56 -0
  68. package/lib/inspector/AutoMovieInspectorBeauty.js.map +1 -0
  69. package/lib/inspector/AutoMovieInspectorBeauty.mjs +55 -0
  70. package/lib/inspector/AutoMovieInspectorBeauty.mjs.map +1 -0
  71. package/lib/inspector/AutoMovieInspectorDiagnosticLog.d.ts +48 -0
  72. package/lib/inspector/AutoMovieInspectorDiagnosticLog.js +186 -0
  73. package/lib/inspector/AutoMovieInspectorDiagnosticLog.js.map +1 -0
  74. package/lib/inspector/AutoMovieInspectorDiagnosticLog.mjs +171 -0
  75. package/lib/inspector/AutoMovieInspectorDiagnosticLog.mjs.map +1 -0
  76. package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.d.ts +23 -0
  77. package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.js +37 -0
  78. package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.js.map +1 -0
  79. package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.mjs +85 -0
  80. package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.mjs.map +1 -0
  81. package/lib/inspector/AutoMovieInspectorMarksPanel.d.ts +4 -10
  82. package/lib/inspector/AutoMovieInspectorMarksPanel.js +18 -35
  83. package/lib/inspector/AutoMovieInspectorMarksPanel.js.map +1 -1
  84. package/lib/inspector/AutoMovieInspectorMarksPanel.mjs +32 -38
  85. package/lib/inspector/AutoMovieInspectorMarksPanel.mjs.map +1 -1
  86. package/lib/inspector/AutoMovieInspectorPlayhead.d.ts +35 -96
  87. package/lib/inspector/AutoMovieInspectorPlayhead.js +41 -101
  88. package/lib/inspector/AutoMovieInspectorPlayhead.js.map +1 -1
  89. package/lib/inspector/AutoMovieInspectorPlayhead.mjs +44 -98
  90. package/lib/inspector/AutoMovieInspectorPlayhead.mjs.map +1 -1
  91. package/lib/inspector/AutoMovieInspectorRequestPanel.d.ts +9 -10
  92. package/lib/inspector/AutoMovieInspectorRequestPanel.js +18 -12
  93. package/lib/inspector/AutoMovieInspectorRequestPanel.js.map +1 -1
  94. package/lib/inspector/AutoMovieInspectorRequestPanel.mjs +32 -14
  95. package/lib/inspector/AutoMovieInspectorRequestPanel.mjs.map +1 -1
  96. package/lib/inspector/AutoMovieInspectorSelectionPanel.d.ts +0 -8
  97. package/lib/inspector/AutoMovieInspectorSelectionPanel.js +0 -8
  98. package/lib/inspector/AutoMovieInspectorSelectionPanel.js.map +1 -1
  99. package/lib/inspector/AutoMovieInspectorSelectionPanel.mjs +0 -8
  100. package/lib/inspector/AutoMovieInspectorSelectionPanel.mjs.map +1 -1
  101. package/lib/inspector/AutoMovieInspectorShadePanel.d.ts +2 -9
  102. package/lib/inspector/AutoMovieInspectorShadePanel.js +18 -25
  103. package/lib/inspector/AutoMovieInspectorShadePanel.js.map +1 -1
  104. package/lib/inspector/AutoMovieInspectorShadePanel.mjs +18 -27
  105. package/lib/inspector/AutoMovieInspectorShadePanel.mjs.map +1 -1
  106. package/lib/inspector/AutoMovieInspectorTimePanel.d.ts +0 -8
  107. package/lib/inspector/AutoMovieInspectorTimePanel.js +0 -8
  108. package/lib/inspector/AutoMovieInspectorTimePanel.js.map +1 -1
  109. package/lib/inspector/AutoMovieInspectorTimePanel.mjs +0 -8
  110. package/lib/inspector/AutoMovieInspectorTimePanel.mjs.map +1 -1
  111. package/lib/inspector/AutoMovieInspectorTimeReadout.d.ts +0 -8
  112. package/lib/inspector/AutoMovieInspectorTimeReadout.js +4 -10
  113. package/lib/inspector/AutoMovieInspectorTimeReadout.js.map +1 -1
  114. package/lib/inspector/AutoMovieInspectorTimeReadout.mjs +3 -12
  115. package/lib/inspector/AutoMovieInspectorTimeReadout.mjs.map +1 -1
  116. package/lib/inspector/AutoMovieInspectorTransition.d.ts +79 -0
  117. package/lib/inspector/AutoMovieInspectorTransition.js +131 -0
  118. package/lib/inspector/AutoMovieInspectorTransition.js.map +1 -0
  119. package/lib/inspector/AutoMovieInspectorTransition.mjs +119 -0
  120. package/lib/inspector/AutoMovieInspectorTransition.mjs.map +1 -0
  121. package/lib/inspector/AutoMovieInspectorViewPanel.d.ts +0 -8
  122. package/lib/inspector/AutoMovieInspectorViewPanel.js +0 -8
  123. package/lib/inspector/AutoMovieInspectorViewPanel.js.map +1 -1
  124. package/lib/inspector/AutoMovieInspectorViewPanel.mjs +0 -8
  125. package/lib/inspector/AutoMovieInspectorViewPanel.mjs.map +1 -1
  126. package/lib/inspector/IAutoMovieInspectorAction.d.ts +54 -95
  127. package/lib/inspector/IAutoMovieInspectorLive.d.ts +43 -0
  128. package/lib/inspector/IAutoMovieInspectorLive.js +3 -0
  129. package/lib/inspector/IAutoMovieInspectorLive.js.map +1 -0
  130. package/lib/inspector/IAutoMovieInspectorLive.mjs +0 -0
  131. package/lib/inspector/IAutoMovieInspectorPathNode.d.ts +14 -9
  132. package/lib/inspector/IAutoMovieInspectorProps.d.ts +3 -14
  133. package/lib/inspector/IAutoMovieInspectorScene.d.ts +96 -100
  134. package/lib/inspector/IAutoMovieInspectorSceneHost.d.ts +37 -102
  135. package/lib/inspector/IAutoMovieInspectorState.d.ts +6 -7
  136. package/lib/inspector/assertAutoMovieInspectorRaster.d.ts +7 -0
  137. package/lib/inspector/assertAutoMovieInspectorRaster.js +19 -0
  138. package/lib/inspector/assertAutoMovieInspectorRaster.js.map +1 -0
  139. package/lib/inspector/assertAutoMovieInspectorRaster.mjs +17 -0
  140. package/lib/inspector/assertAutoMovieInspectorRaster.mjs.map +1 -0
  141. package/lib/inspector/buildAutoMovieInspectorPathTree.d.ts +9 -10
  142. package/lib/inspector/buildAutoMovieInspectorPathTree.js +9 -10
  143. package/lib/inspector/buildAutoMovieInspectorPathTree.js.map +1 -1
  144. package/lib/inspector/buildAutoMovieInspectorPathTree.mjs +9 -10
  145. package/lib/inspector/buildAutoMovieInspectorPathTree.mjs.map +1 -1
  146. package/lib/inspector/changesAutoMovieObservedScene.d.ts +16 -0
  147. package/lib/inspector/changesAutoMovieObservedScene.js +28 -0
  148. package/lib/inspector/changesAutoMovieObservedScene.js.map +1 -0
  149. package/lib/inspector/changesAutoMovieObservedScene.mjs +21 -0
  150. package/lib/inspector/changesAutoMovieObservedScene.mjs.map +1 -0
  151. package/lib/inspector/createAutoMovieInspectorAddressWriter.d.ts +13 -11
  152. package/lib/inspector/createAutoMovieInspectorAddressWriter.js +13 -11
  153. package/lib/inspector/createAutoMovieInspectorAddressWriter.js.map +1 -1
  154. package/lib/inspector/createAutoMovieInspectorAddressWriter.mjs +13 -11
  155. package/lib/inspector/createAutoMovieInspectorAddressWriter.mjs.map +1 -1
  156. package/lib/inspector/createAutoMovieInspectorCanvasHost.d.ts +7 -10
  157. package/lib/inspector/createAutoMovieInspectorCanvasHost.js +14 -11
  158. package/lib/inspector/createAutoMovieInspectorCanvasHost.js.map +1 -1
  159. package/lib/inspector/createAutoMovieInspectorCanvasHost.mjs +17 -14
  160. package/lib/inspector/createAutoMovieInspectorCanvasHost.mjs.map +1 -1
  161. package/lib/inspector/createAutoMovieInspectorState.d.ts +3 -9
  162. package/lib/inspector/createAutoMovieInspectorState.js +3 -9
  163. package/lib/inspector/createAutoMovieInspectorState.js.map +1 -1
  164. package/lib/inspector/createAutoMovieInspectorState.mjs +3 -9
  165. package/lib/inspector/createAutoMovieInspectorState.mjs.map +1 -1
  166. package/lib/inspector/firstAutoMovieInspectorSecond.d.ts +6 -0
  167. package/lib/inspector/firstAutoMovieInspectorSecond.js +13 -0
  168. package/lib/inspector/firstAutoMovieInspectorSecond.js.map +1 -0
  169. package/lib/inspector/firstAutoMovieInspectorSecond.mjs +11 -0
  170. package/lib/inspector/firstAutoMovieInspectorSecond.mjs.map +1 -0
  171. package/lib/inspector/followAutoMovieInspectorSize.d.ts +11 -0
  172. package/lib/inspector/followAutoMovieInspectorSize.js +26 -0
  173. package/lib/inspector/followAutoMovieInspectorSize.js.map +1 -0
  174. package/lib/inspector/followAutoMovieInspectorSize.mjs +26 -0
  175. package/lib/inspector/followAutoMovieInspectorSize.mjs.map +1 -0
  176. package/lib/inspector/formatAutoMovieInspectorAddress.d.ts +11 -10
  177. package/lib/inspector/formatAutoMovieInspectorAddress.js +15 -11
  178. package/lib/inspector/formatAutoMovieInspectorAddress.js.map +1 -1
  179. package/lib/inspector/formatAutoMovieInspectorAddress.mjs +15 -11
  180. package/lib/inspector/formatAutoMovieInspectorAddress.mjs.map +1 -1
  181. package/lib/inspector/formatAutoMovieInspectorCommand.d.ts +20 -14
  182. package/lib/inspector/formatAutoMovieInspectorCommand.js +33 -14
  183. package/lib/inspector/formatAutoMovieInspectorCommand.js.map +1 -1
  184. package/lib/inspector/formatAutoMovieInspectorCommand.mjs +26 -15
  185. package/lib/inspector/formatAutoMovieInspectorCommand.mjs.map +1 -1
  186. package/lib/inspector/handleAutoMovieInspectorKey.d.ts +24 -15
  187. package/lib/inspector/handleAutoMovieInspectorKey.js +27 -16
  188. package/lib/inspector/handleAutoMovieInspectorKey.js.map +1 -1
  189. package/lib/inspector/handleAutoMovieInspectorKey.mjs +27 -16
  190. package/lib/inspector/handleAutoMovieInspectorKey.mjs.map +1 -1
  191. package/lib/inspector/index.d.ts +5 -0
  192. package/lib/inspector/index.js +5 -0
  193. package/lib/inspector/index.js.map +1 -1
  194. package/lib/inspector/index.mjs +6 -1
  195. package/lib/inspector/inspectAutoMovieInspectorRequest.d.ts +19 -0
  196. package/lib/inspector/inspectAutoMovieInspectorRequest.js +20 -0
  197. package/lib/inspector/inspectAutoMovieInspectorRequest.js.map +1 -0
  198. package/lib/inspector/inspectAutoMovieInspectorRequest.mjs +20 -0
  199. package/lib/inspector/inspectAutoMovieInspectorRequest.mjs.map +1 -0
  200. package/lib/inspector/installAutoMovieInspectorRequest.d.ts +20 -0
  201. package/lib/inspector/installAutoMovieInspectorRequest.js +36 -0
  202. package/lib/inspector/installAutoMovieInspectorRequest.js.map +1 -0
  203. package/lib/inspector/installAutoMovieInspectorRequest.mjs +35 -0
  204. package/lib/inspector/installAutoMovieInspectorRequest.mjs.map +1 -0
  205. package/lib/inspector/locateAutoMovieInspectorFinding.d.ts +19 -0
  206. package/lib/inspector/locateAutoMovieInspectorFinding.js +34 -0
  207. package/lib/inspector/locateAutoMovieInspectorFinding.js.map +1 -0
  208. package/lib/inspector/locateAutoMovieInspectorFinding.mjs +37 -0
  209. package/lib/inspector/locateAutoMovieInspectorFinding.mjs.map +1 -0
  210. package/lib/inspector/messageOfAutoMovieInspectorError.d.ts +2 -0
  211. package/lib/inspector/messageOfAutoMovieInspectorError.js +8 -0
  212. package/lib/inspector/messageOfAutoMovieInspectorError.js.map +1 -0
  213. package/lib/inspector/messageOfAutoMovieInspectorError.mjs +8 -0
  214. package/lib/inspector/messageOfAutoMovieInspectorError.mjs.map +1 -0
  215. package/lib/inspector/mountAutoMovieInspectorPage.d.ts +5 -8
  216. package/lib/inspector/mountAutoMovieInspectorPage.js +3 -9
  217. package/lib/inspector/mountAutoMovieInspectorPage.js.map +1 -1
  218. package/lib/inspector/mountAutoMovieInspectorPage.mjs +4 -9
  219. package/lib/inspector/mountAutoMovieInspectorPage.mjs.map +1 -1
  220. package/lib/inspector/mountAutoMovieInspectorScene.d.ts +55 -12
  221. package/lib/inspector/mountAutoMovieInspectorScene.js +238 -164
  222. package/lib/inspector/mountAutoMovieInspectorScene.js.map +1 -1
  223. package/lib/inspector/mountAutoMovieInspectorScene.mjs +223 -149
  224. package/lib/inspector/mountAutoMovieInspectorScene.mjs.map +1 -1
  225. package/lib/inspector/placeAutoMovieInspectorLabels.d.ts +29 -0
  226. package/lib/inspector/placeAutoMovieInspectorLabels.js +33 -0
  227. package/lib/inspector/placeAutoMovieInspectorLabels.js.map +1 -0
  228. package/lib/inspector/placeAutoMovieInspectorLabels.mjs +32 -0
  229. package/lib/inspector/placeAutoMovieInspectorLabels.mjs.map +1 -0
  230. package/lib/inspector/readAutoMovieInspectorAddress.d.ts +8 -11
  231. package/lib/inspector/readAutoMovieInspectorAddress.js +8 -11
  232. package/lib/inspector/readAutoMovieInspectorAddress.js.map +1 -1
  233. package/lib/inspector/readAutoMovieInspectorAddress.mjs +8 -11
  234. package/lib/inspector/readAutoMovieInspectorAddress.mjs.map +1 -1
  235. package/lib/inspector/readAutoMovieInspectorFacts.d.ts +17 -0
  236. package/lib/inspector/readAutoMovieInspectorFacts.js +34 -0
  237. package/lib/inspector/readAutoMovieInspectorFacts.js.map +1 -0
  238. package/lib/inspector/readAutoMovieInspectorFacts.mjs +28 -0
  239. package/lib/inspector/readAutoMovieInspectorFacts.mjs.map +1 -0
  240. package/lib/inspector/readsAutoMovieInspectorPlacedScene.d.ts +9 -0
  241. package/lib/inspector/readsAutoMovieInspectorPlacedScene.js +14 -0
  242. package/lib/inspector/readsAutoMovieInspectorPlacedScene.js.map +1 -0
  243. package/lib/inspector/readsAutoMovieInspectorPlacedScene.mjs +14 -0
  244. package/lib/inspector/readsAutoMovieInspectorPlacedScene.mjs.map +1 -0
  245. package/lib/inspector/reduceAutoMovieInspectorState.d.ts +10 -10
  246. package/lib/inspector/reduceAutoMovieInspectorState.js +17 -11
  247. package/lib/inspector/reduceAutoMovieInspectorState.js.map +1 -1
  248. package/lib/inspector/reduceAutoMovieInspectorState.mjs +16 -11
  249. package/lib/inspector/reduceAutoMovieInspectorState.mjs.map +1 -1
  250. package/lib/inspector/releaseAutoMovieInspectorSteps.d.ts +6 -0
  251. package/lib/inspector/releaseAutoMovieInspectorSteps.js +23 -0
  252. package/lib/inspector/releaseAutoMovieInspectorSteps.js.map +1 -0
  253. package/lib/inspector/releaseAutoMovieInspectorSteps.mjs +19 -0
  254. package/lib/inspector/releaseAutoMovieInspectorSteps.mjs.map +1 -0
  255. package/lib/inspector/reportAutoMovieInspectorLabels.d.ts +21 -0
  256. package/lib/inspector/reportAutoMovieInspectorLabels.js +27 -0
  257. package/lib/inspector/reportAutoMovieInspectorLabels.js.map +1 -0
  258. package/lib/inspector/reportAutoMovieInspectorLabels.mjs +30 -0
  259. package/lib/inspector/reportAutoMovieInspectorLabels.mjs.map +1 -0
  260. package/lib/inspector/resolveAutoMovieInspectorCamera.d.ts +22 -0
  261. package/lib/inspector/resolveAutoMovieInspectorCamera.js +34 -0
  262. package/lib/inspector/resolveAutoMovieInspectorCamera.js.map +1 -0
  263. package/lib/inspector/resolveAutoMovieInspectorCamera.mjs +34 -0
  264. package/lib/inspector/resolveAutoMovieInspectorCamera.mjs.map +1 -0
  265. package/lib/inspector/showAutoMovieInspectorFinding.d.ts +25 -0
  266. package/lib/inspector/showAutoMovieInspectorFinding.js +26 -0
  267. package/lib/inspector/showAutoMovieInspectorFinding.js.map +1 -0
  268. package/lib/inspector/showAutoMovieInspectorFinding.mjs +26 -0
  269. package/lib/inspector/showAutoMovieInspectorFinding.mjs.map +1 -0
  270. package/lib/inspector/stopAutoMovieInspectorTime.d.ts +11 -0
  271. package/lib/inspector/stopAutoMovieInspectorTime.js +17 -0
  272. package/lib/inspector/stopAutoMovieInspectorTime.js.map +1 -0
  273. package/lib/inspector/stopAutoMovieInspectorTime.mjs +18 -0
  274. package/lib/inspector/stopAutoMovieInspectorTime.mjs.map +1 -0
  275. package/lib/inspector/writeAutoMovieInspectorInspection.d.ts +6 -0
  276. package/lib/inspector/writeAutoMovieInspectorInspection.js +12 -0
  277. package/lib/inspector/writeAutoMovieInspectorInspection.js.map +1 -0
  278. package/lib/inspector/writeAutoMovieInspectorInspection.mjs +12 -0
  279. package/lib/inspector/writeAutoMovieInspectorInspection.mjs.map +1 -0
  280. package/lib/internal.d.ts +7 -0
  281. package/lib/internal.js +25 -0
  282. package/lib/internal.js.map +1 -0
  283. package/lib/internal.mjs +8 -0
  284. package/lib/mountViewer.d.ts +16 -10
  285. package/lib/mountViewer.js +17 -14
  286. package/lib/mountViewer.js.map +1 -1
  287. package/lib/mountViewer.mjs +18 -12
  288. package/lib/mountViewer.mjs.map +1 -1
  289. package/lib/publishViewerCompletedFrame.d.ts +12 -10
  290. package/lib/publishViewerCompletedFrame.js +11 -9
  291. package/lib/publishViewerCompletedFrame.js.map +1 -1
  292. package/lib/publishViewerCompletedFrame.mjs +11 -9
  293. package/lib/publishViewerCompletedFrame.mjs.map +1 -1
  294. package/lib/redrawViewerCompletedFrame.d.ts +2 -10
  295. package/lib/redrawViewerCompletedFrame.js +4 -12
  296. package/lib/redrawViewerCompletedFrame.js.map +1 -1
  297. package/lib/redrawViewerCompletedFrame.mjs +3 -11
  298. package/lib/redrawViewerCompletedFrame.mjs.map +1 -1
  299. package/lib/releaseMountedViewer.d.ts +5 -9
  300. package/lib/releaseMountedViewer.js +5 -9
  301. package/lib/releaseMountedViewer.js.map +1 -1
  302. package/lib/releaseMountedViewer.mjs +5 -9
  303. package/lib/releaseMountedViewer.mjs.map +1 -1
  304. package/lib/transport/AutoMovieViewerTransport.d.ts +13 -122
  305. package/lib/transport/AutoMovieViewerTransport.js +10 -74
  306. package/lib/transport/AutoMovieViewerTransport.js.map +1 -1
  307. package/lib/transport/AutoMovieViewerTransport.mjs +10 -65
  308. package/lib/transport/AutoMovieViewerTransport.mjs.map +1 -1
  309. package/lib/transport/readAutoMovieReviewInterval.d.ts +3 -10
  310. package/lib/transport/readAutoMovieReviewInterval.js +11 -16
  311. package/lib/transport/readAutoMovieReviewInterval.js.map +1 -1
  312. package/lib/transport/readAutoMovieReviewInterval.mjs +8 -14
  313. package/lib/transport/readAutoMovieReviewInterval.mjs.map +1 -1
  314. package/package.json +12 -8
  315. package/src/IAutoMovieViewerCompletedFrame.ts +21 -11
  316. package/src/IAutoMovieViewerDisplayMetadata.ts +0 -5
  317. package/src/IAutoMovieViewerHandle.ts +3 -25
  318. package/src/IMountViewerOptions.ts +24 -38
  319. package/src/IViewerCameraStateSnapshot.ts +0 -5
  320. package/src/IViewerFrameTransfer.ts +13 -0
  321. package/src/applyCaptureCanvasSize.ts +9 -18
  322. package/src/audio/IAutoMovieAudioCue.ts +3 -8
  323. package/src/audio/planAutoMovieAudioPlayback.ts +9 -23
  324. package/src/audio/playAutoMovieAudioCues.ts +4 -11
  325. package/src/createViewerCameraState.ts +119 -175
  326. package/src/createViewerDisplayClock.ts +4 -12
  327. package/src/createViewerDisplayPublication.ts +7 -15
  328. package/src/createViewerDisplaySave.ts +8 -16
  329. package/src/createViewerFrameControl.ts +16 -24
  330. package/src/createViewerViewportResize.ts +7 -23
  331. package/src/index.ts +1 -0
  332. package/src/inspector/AutoMovieInspector.tsx +183 -20
  333. package/src/inspector/AutoMovieInspectorBeauty.ts +89 -0
  334. package/src/inspector/AutoMovieInspectorDiagnosticLog.ts +235 -0
  335. package/src/inspector/AutoMovieInspectorDiagnosticsPanel.tsx +118 -0
  336. package/src/inspector/AutoMovieInspectorMarksPanel.tsx +26 -34
  337. package/src/inspector/AutoMovieInspectorPlayhead.ts +53 -110
  338. package/src/inspector/AutoMovieInspectorRequestPanel.tsx +57 -29
  339. package/src/inspector/AutoMovieInspectorSelectionPanel.tsx +0 -8
  340. package/src/inspector/AutoMovieInspectorShadePanel.tsx +24 -29
  341. package/src/inspector/AutoMovieInspectorTimePanel.tsx +0 -8
  342. package/src/inspector/AutoMovieInspectorTimeReadout.tsx +4 -10
  343. package/src/inspector/AutoMovieInspectorTransition.ts +178 -0
  344. package/src/inspector/AutoMovieInspectorViewPanel.tsx +0 -8
  345. package/src/inspector/IAutoMovieInspectorAction.ts +57 -94
  346. package/src/inspector/IAutoMovieInspectorLive.ts +62 -0
  347. package/src/inspector/IAutoMovieInspectorPathNode.ts +14 -9
  348. package/src/inspector/IAutoMovieInspectorProps.ts +4 -14
  349. package/src/inspector/IAutoMovieInspectorScene.ts +104 -99
  350. package/src/inspector/IAutoMovieInspectorSceneHost.ts +43 -102
  351. package/src/inspector/IAutoMovieInspectorState.ts +6 -7
  352. package/src/inspector/assertAutoMovieInspectorRaster.ts +23 -0
  353. package/src/inspector/buildAutoMovieInspectorPathTree.ts +9 -10
  354. package/src/inspector/changesAutoMovieObservedScene.ts +30 -0
  355. package/src/inspector/createAutoMovieInspectorAddressWriter.ts +13 -11
  356. package/src/inspector/createAutoMovieInspectorCanvasHost.ts +14 -12
  357. package/src/inspector/createAutoMovieInspectorState.ts +3 -9
  358. package/src/inspector/firstAutoMovieInspectorSecond.ts +13 -0
  359. package/src/inspector/followAutoMovieInspectorSize.ts +32 -0
  360. package/src/inspector/formatAutoMovieInspectorAddress.ts +15 -11
  361. package/src/inspector/formatAutoMovieInspectorCommand.ts +44 -15
  362. package/src/inspector/handleAutoMovieInspectorKey.ts +27 -16
  363. package/src/inspector/index.ts +5 -0
  364. package/src/inspector/inspectAutoMovieInspectorRequest.ts +37 -0
  365. package/src/inspector/installAutoMovieInspectorRequest.ts +50 -0
  366. package/src/inspector/locateAutoMovieInspectorFinding.ts +40 -0
  367. package/src/inspector/messageOfAutoMovieInspectorError.ts +4 -0
  368. package/src/inspector/mountAutoMovieInspectorPage.tsx +7 -8
  369. package/src/inspector/mountAutoMovieInspectorScene.ts +290 -232
  370. package/src/inspector/placeAutoMovieInspectorLabels.ts +53 -0
  371. package/src/inspector/readAutoMovieInspectorAddress.ts +8 -11
  372. package/src/inspector/readAutoMovieInspectorFacts.ts +50 -0
  373. package/src/inspector/readsAutoMovieInspectorPlacedScene.ts +16 -0
  374. package/src/inspector/reduceAutoMovieInspectorState.ts +17 -11
  375. package/src/inspector/releaseAutoMovieInspectorSteps.ts +19 -0
  376. package/src/inspector/reportAutoMovieInspectorLabels.ts +45 -0
  377. package/src/inspector/resolveAutoMovieInspectorCamera.ts +50 -0
  378. package/src/inspector/showAutoMovieInspectorFinding.ts +40 -0
  379. package/src/inspector/stopAutoMovieInspectorTime.ts +19 -0
  380. package/src/inspector/writeAutoMovieInspectorInspection.ts +12 -0
  381. package/src/internal.ts +9 -0
  382. package/src/mountViewer.ts +17 -14
  383. package/src/publishViewerCompletedFrame.ts +14 -10
  384. package/src/redrawViewerCompletedFrame.ts +3 -12
  385. package/src/releaseMountedViewer.ts +5 -9
  386. package/src/transport/AutoMovieViewerTransport.ts +17 -144
  387. package/src/transport/readAutoMovieReviewInterval.ts +15 -16
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AutoMovieInspectorDiagnosticsPanel = AutoMovieInspectorDiagnosticsPanel;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const showAutoMovieInspectorFinding_js_1 = require("./showAutoMovieInspectorFinding.js");
6
+ /**
7
+ * Diagnostics: the confirmed errors this mount has reported, newest first, each with buttons that show its evidence.
8
+ *
9
+ * A first visit offers its witness; a span offers its first and its worst witness and says whether consecutive frames or uninterrupted playback joined it. A button stops the playhead at the witness and locates the request there through `showAutoMovieInspectorFinding`, so the picture, the address and the capture command name that second with the finding's drawn entities labelled. The checkbox shows or hides the witness cubes and the status line; checks and reports continue either way.
10
+ */
11
+ function AutoMovieInspectorDiagnosticsPanel(props) {
12
+ const show = (observation) => (0, showAutoMovieInspectorFinding_js_1.showAutoMovieInspectorFinding)({
13
+ observation,
14
+ paths: props.paths,
15
+ playhead: props.playhead,
16
+ dispatch: props.dispatch,
17
+ });
18
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("label", { style: { display: "block", marginBottom: 6 }, children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: props.witnesses, onChange: (event) => props.onWitnesses(event.target.checked) }), " ", "show witnesses"] }), props.incidents.length === 0 ? ((0, jsx_runtime_1.jsx)("p", { style: { margin: 0, color: "#666" }, children: "No confirmed error reported yet." })) : ((0, jsx_runtime_1.jsx)("ol", { style: { margin: 0, paddingLeft: 18 }, children: props.incidents.map((incident, index) => {
19
+ const witness = incident.kind === "first"
20
+ ? incident.observation
21
+ : incident.episode.worst;
22
+ const { finding } = witness;
23
+ return ((0, jsx_runtime_1.jsxs)("li", { style: { marginBottom: 4 }, children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("code", { children: finding.code }), " ", finding.paths.length === 0
24
+ ? finding.check
25
+ : finding.paths.join(" / ")] }), (0, jsx_runtime_1.jsx)("div", { style: { color: "#666" }, children: incident.kind === "first"
26
+ ? `first seen at ${clock(witness.time)}`
27
+ : `${incident.episode.samples} ${incident.basis === "frames" ? "consecutive frames" : "painted samples in playback"} from ${clock(incident.firstSample)} to ${clock(incident.episode.last)}` }), incident.kind === "first" ? ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: () => show(witness), children: "show" })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("button", { type: "button", onClick: () => show(incident.episode.first), children: "first" }), " ", (0, jsx_runtime_1.jsx)("button", { type: "button", onClick: () => show(witness), children: "worst" })] }))] }, index));
28
+ }) }))] }));
29
+ }
30
+ /** A clock as seconds to the millisecond and, when it has one, its exact output frame; navigation still uses the exact seconds. */
31
+ function clock(time) {
32
+ const seconds = `${Number(time.filmSeconds.toFixed(3))} s`;
33
+ return time.outputFrame === undefined
34
+ ? seconds
35
+ : `${seconds} (frame ${time.outputFrame})`;
36
+ }
37
+ //# sourceMappingURL=AutoMovieInspectorDiagnosticsPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoMovieInspectorDiagnosticsPanel.js","sourceRoot":"","sources":["../../src/inspector/AutoMovieInspectorDiagnosticsPanel.tsx"],"names":[],"mappings":";;;;AAMA,yFAAmF;AAEnF;;;;GAIG;AACH,4CAAmD,KAkBlD;IACC,MAAM,IAAI,GAEE,CACV,WAAyD,EACnD,EAAE,CACR,IAAA,gEAA6B,EAAC;QAC5B,WAAW;QACX,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ;KACzB,CAAC,CAAC;IACL,OAAO,CACL,4CACE,mCAAO,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,aACjD,kCACE,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,KAAK,CAAC,SAAS,EACxB,QAAQ,EAAE,CAAC,KAAoC,EAAQ,EAAE,CACvD,KAAK,CAAC,WAAW,CAAC,KAAK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O,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,GAC1L,EACL,QAAQ,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,CAC3B,mCAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAS,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,qBAE/C,CACV,CAAC,CAAC,CAAC,CACF,6DACE,mCACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAS,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,sBAG1C,EAAC,GAAG,EACb,mCAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAS,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,sBAE/C,IACR,CACJ,KA5BM,KAAK,CA6BT,CACN,CAAC;gBACJ,CAAC,CACF,GACE,CACN,IACG,CACP,CAAC;AACJ,CAAC;AAED,mIAAmI;AACnI,SAAS,KAAK,CAAC,IAA2C;IACxD,MAAM,OAAO,GAAW,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACnE,OAAO,IAAI,CAAC,WAAW,KAAK,SAAS;QACnC,CAAC,CAAC,OAAO;QACT,CAAC,CAAC,GAAG,OAAO,WAAW,IAAI,CAAC,WAAW,GAAG,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,85 @@
1
+ import { showAutoMovieInspectorFinding } from "./showAutoMovieInspectorFinding.mjs";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ // src/inspector/AutoMovieInspectorDiagnosticsPanel.tsx
4
+ /**
5
+ * Diagnostics: the confirmed errors this mount has reported, newest first, each with buttons that show its evidence.
6
+ *
7
+ * A first visit offers its witness; a span offers its first and its worst witness and says whether consecutive frames or uninterrupted playback joined it. A button stops the playhead at the witness and locates the request there through `showAutoMovieInspectorFinding`, so the picture, the address and the capture command name that second with the finding's drawn entities labelled. The checkbox shows or hides the witness cubes and the status line; checks and reports continue either way.
8
+ */
9
+ function AutoMovieInspectorDiagnosticsPanel(props) {
10
+ const show = (observation) => showAutoMovieInspectorFinding({
11
+ observation,
12
+ paths: props.paths,
13
+ playhead: props.playhead,
14
+ dispatch: props.dispatch
15
+ });
16
+ return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("label", {
17
+ style: {
18
+ display: "block",
19
+ marginBottom: 6
20
+ },
21
+ children: [
22
+ /* @__PURE__ */ jsx("input", {
23
+ type: "checkbox",
24
+ checked: props.witnesses,
25
+ onChange: (event) => props.onWitnesses(event.target.checked)
26
+ }),
27
+ " ",
28
+ "show witnesses"
29
+ ]
30
+ }), props.incidents.length === 0 ? /* @__PURE__ */ jsx("p", {
31
+ style: {
32
+ margin: 0,
33
+ color: "#666"
34
+ },
35
+ children: "No confirmed error reported yet."
36
+ }) : /* @__PURE__ */ jsx("ol", {
37
+ style: {
38
+ margin: 0,
39
+ paddingLeft: 18
40
+ },
41
+ children: props.incidents.map((incident, index) => {
42
+ const witness = incident.kind === "first" ? incident.observation : incident.episode.worst;
43
+ const { finding } = witness;
44
+ return /* @__PURE__ */ jsxs("li", {
45
+ style: { marginBottom: 4 },
46
+ children: [
47
+ /* @__PURE__ */ jsxs("div", { children: [
48
+ /* @__PURE__ */ jsx("code", { children: finding.code }),
49
+ " ",
50
+ finding.paths.length === 0 ? finding.check : finding.paths.join(" / ")
51
+ ] }),
52
+ /* @__PURE__ */ jsx("div", {
53
+ style: { color: "#666" },
54
+ children: incident.kind === "first" ? `first seen at ${clock(witness.time)}` : `${incident.episode.samples} ${incident.basis === "frames" ? "consecutive frames" : "painted samples in playback"} from ${clock(incident.firstSample)} to ${clock(incident.episode.last)}`
55
+ }),
56
+ incident.kind === "first" ? /* @__PURE__ */ jsx("button", {
57
+ type: "button",
58
+ onClick: () => show(witness),
59
+ children: "show"
60
+ }) : /* @__PURE__ */ jsxs(Fragment, { children: [
61
+ /* @__PURE__ */ jsx("button", {
62
+ type: "button",
63
+ onClick: () => show(incident.episode.first),
64
+ children: "first"
65
+ }),
66
+ " ",
67
+ /* @__PURE__ */ jsx("button", {
68
+ type: "button",
69
+ onClick: () => show(witness),
70
+ children: "worst"
71
+ })
72
+ ] })
73
+ ]
74
+ }, index);
75
+ })
76
+ })] });
77
+ }
78
+ /** A clock as seconds to the millisecond and, when it has one, its exact output frame; navigation still uses the exact seconds. */
79
+ function clock(time) {
80
+ const seconds = `${Number(time.filmSeconds.toFixed(3))} s`;
81
+ return time.outputFrame === void 0 ? seconds : `${seconds} (frame ${time.outputFrame})`;
82
+ }
83
+ export { AutoMovieInspectorDiagnosticsPanel };
84
+
85
+ //# sourceMappingURL=AutoMovieInspectorDiagnosticsPanel.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoMovieInspectorDiagnosticsPanel.mjs","names":[],"sources":["../../src/inspector/AutoMovieInspectorDiagnosticsPanel.tsx"],"sourcesContent":["import type { IAutoMovieInspectionDiagnostics } from \"@automovie/interface\";\nimport type { ChangeEvent, JSX } from \"react\";\n\nimport type { AutoMovieInspectorPlayhead } from \"./AutoMovieInspectorPlayhead.js\";\nimport type { IAutoMovieInspectorAction } from \"./IAutoMovieInspectorAction.js\";\nimport type { IAutoMovieInspectorScene } from \"./IAutoMovieInspectorScene.js\";\nimport { showAutoMovieInspectorFinding } from \"./showAutoMovieInspectorFinding.js\";\n\n/**\n * Diagnostics: the confirmed errors this mount has reported, newest first, each with buttons that show its evidence.\n *\n * A first visit offers its witness; a span offers its first and its worst witness and says whether consecutive frames or uninterrupted playback joined it. A button stops the playhead at the witness and locates the request there through `showAutoMovieInspectorFinding`, so the picture, the address and the capture command name that second with the finding's drawn entities labelled. The checkbox shows or hides the witness cubes and the status line; checks and reports continue either way.\n */\nexport function AutoMovieInspectorDiagnosticsPanel(props: {\n /** Reported incidents, newest first. */\n incidents: readonly IAutoMovieInspectorScene.IIncident[];\n\n /** The identity paths the scene draws. */\n paths: readonly string[];\n\n /** Whether the witness cubes and the status line are shown. */\n witnesses: boolean;\n\n /** Show or hide the witnesses. */\n onWitnesses: (show: boolean) => void;\n\n /** The playhead a located finding stops at. */\n playhead: AutoMovieInspectorPlayhead;\n\n /** Where edits go. */\n dispatch: (action: IAutoMovieInspectorAction) => void;\n}): JSX.Element {\n const show: (\n observation: IAutoMovieInspectionDiagnostics.IObservation,\n ) => void = (\n observation: IAutoMovieInspectionDiagnostics.IObservation,\n ): void =>\n showAutoMovieInspectorFinding({\n observation,\n paths: props.paths,\n playhead: props.playhead,\n dispatch: props.dispatch,\n });\n return (\n <div>\n <label style={{ display: \"block\", marginBottom: 6 }}>\n <input\n type=\"checkbox\"\n checked={props.witnesses}\n onChange={(event: ChangeEvent<HTMLInputElement>): void =>\n props.onWitnesses(event.target.checked)\n }\n />{\" \"}\n show witnesses\n </label>\n {props.incidents.length === 0 ? (\n <p style={{ margin: 0, color: \"#666\" }}>\n No confirmed error reported yet.\n </p>\n ) : (\n <ol style={{ margin: 0, paddingLeft: 18 }}>\n {props.incidents.map(\n (\n incident: IAutoMovieInspectorScene.IIncident,\n index: number,\n ): JSX.Element => {\n const witness: IAutoMovieInspectionDiagnostics.IObservation =\n incident.kind === \"first\"\n ? incident.observation\n : incident.episode.worst;\n const { finding } = witness;\n return (\n <li key={index} style={{ marginBottom: 4 }}>\n <div>\n <code>{finding.code}</code>{\" \"}\n {finding.paths.length === 0\n ? finding.check\n : finding.paths.join(\" / \")}\n </div>\n <div style={{ color: \"#666\" }}>\n {incident.kind === \"first\"\n ? `first seen at ${clock(witness.time)}`\n : `${incident.episode.samples} ${incident.basis === \"frames\" ? \"consecutive frames\" : \"painted samples in playback\"} from ${clock(incident.firstSample)} to ${clock(incident.episode.last)}`}\n </div>\n {incident.kind === \"first\" ? (\n <button type=\"button\" onClick={(): void => show(witness)}>\n show\n </button>\n ) : (\n <>\n <button\n type=\"button\"\n onClick={(): void => show(incident.episode.first)}\n >\n first\n </button>{\" \"}\n <button type=\"button\" onClick={(): void => show(witness)}>\n worst\n </button>\n </>\n )}\n </li>\n );\n },\n )}\n </ol>\n )}\n </div>\n );\n}\n\n/** A clock as seconds to the millisecond and, when it has one, its exact output frame; navigation still uses the exact seconds. */\nfunction clock(time: IAutoMovieInspectionDiagnostics.ITime): string {\n const seconds: string = `${Number(time.filmSeconds.toFixed(3))} s`;\n return time.outputFrame === undefined\n ? seconds\n : `${seconds} (frame ${time.outputFrame})`;\n}\n"],"mappings":";;;;;;;;AAaA,SAAgB,mCAAmC,OAkBnC;CACd,MAAM,QAGJ,gBAEA,8BAA8B;EAC5B;EACA,OAAO,MAAM;EACb,UAAU,MAAM;EAChB,UAAU,MAAM;CAClB,CAAC;CACH,OACE,qBAAC,OAAD,EAAA,UAAA,CACE,qBAAC,SAAD;EAAO,OAAO;GAAE,SAAS;GAAS,cAAc;EAAE;EAAlD,UAAA;GACE,oBAAC,SAAD;IACE,MAAK;IACL,SAAS,MAAM;IACf,WAAW,UACT,MAAM,YAAY,MAAM,OAAO,OAAO;GAEzC,CAAA;GAAE;GAAI;EAEF;CACN,CAAA,GAAA,MAAM,UAAU,WAAW,IAC1B,oBAAC,KAAD;EAAG,OAAO;GAAE,QAAQ;GAAG,OAAO;EAAO;EAAG,UAAA;CAErC,CAAA,IAEH,oBAAC,MAAD;EAAI,OAAO;GAAE,QAAQ;GAAG,aAAa;EAAG;EACrC,UAAA,MAAM,UAAU,KAEb,UACA,UACgB;GAChB,MAAM,UACJ,SAAS,SAAS,UACd,SAAS,cACT,SAAS,QAAQ;GACvB,MAAM,EAAE,YAAY;GACpB,OACE,qBAAC,MAAD;IAAgB,OAAO,EAAE,cAAc,EAAE;IAAzC,UAAA;KACE,qBAAC,OAAD,EAAA,UAAA;MACE,oBAAC,QAAD,EAAA,UAAO,QAAQ,KAAW,CAAA;MAAE;MAC3B,QAAQ,MAAM,WAAW,IACtB,QAAQ,QACR,QAAQ,MAAM,KAAK,KAAK;KACzB,EAAA,CAAA;KACL,oBAAC,OAAD;MAAK,OAAO,EAAE,OAAO,OAAO;MACzB,UAAA,SAAS,SAAS,UACf,iBAAiB,MAAM,QAAQ,IAAI,MACnC,GAAG,SAAS,QAAQ,QAAQ,GAAG,SAAS,UAAU,WAAW,uBAAuB,8BAA8B,QAAQ,MAAM,SAAS,WAAW,EAAE,MAAM,MAAM,SAAS,QAAQ,IAAI;KACxL,CAAA;KACJ,SAAS,SAAS,UACjB,oBAAC,UAAD;MAAQ,MAAK;MAAS,eAAqB,KAAK,OAAO;MAAG,UAAA;KAElD,CAAA,IAER,qBAAA,UAAA,EAAA,UAAA;MACE,oBAAC,UAAD;OACE,MAAK;OACL,eAAqB,KAAK,SAAS,QAAQ,KAAK;OACjD,UAAA;MAEO,CAAA;MAAE;MACV,oBAAC,UAAD;OAAQ,MAAK;OAAS,eAAqB,KAAK,OAAO;OAAG,UAAA;MAElD,CAAA;KACR,EAAA,CAAA;IAEF;GA7BK,GAAA,KA6BL;EAER,CACF;CACE,CAAA,CAEH,EAAA,CAAA;AAET;;AAGA,SAAS,MAAM,MAAqD;CAClE,MAAM,UAAkB,GAAG,OAAO,KAAK,YAAY,QAAQ,CAAC,CAAC,EAAE;CAC/D,OAAO,KAAK,gBAAgB,KAAA,IACxB,UACA,GAAG,QAAQ,UAAU,KAAK,YAAY;AAC5C"}
@@ -3,23 +3,17 @@ import { type IApplyAutoMovieInspectionProps } from "@automovie/render";
3
3
  import type { JSX } from "react";
4
4
  import type { IAutoMovieInspectorAction } from "./IAutoMovieInspectorAction.js";
5
5
  /**
6
- * Marks: the kinds the picture can draw, each with its default colour and switched by its own kind pattern, the x-ray switch, and the legend of what the picture draws.
6
+ * Controls for available mark kinds and x-ray, with the legend of the current picture.
7
7
  *
8
- * The kinds are render's `listAutoMovieInspectionKinds` of the supplied marks under the request in force, so a sliver limit or a trail adds its kinds as soon as it is asked for. A kind is checked when the request's `marks` holds that kind as a pattern; patterns typed in the address, such as `defect/*`, stay in the request and are listed beside the kinds. The legend is the inspection's: each colour drawn, what it marks and how many marks carry it.
9
- *
10
- * @evidence contracts/development/common.md#meaningful-documentation States what is listed, when a kind is checked, where typed patterns appear and what the legend counts.
11
- * @evidence contracts/development/implementation.md#principled-implementation The kinds come from render's one kind list and the legend from render's inspection handle, so the panel restates no kind rule and invents no colour.
12
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One checkbox per kind, one switch, one list of legend entries.
13
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A typed pattern that is not a listed kind is shown with its own checkbox rather than dropped.
14
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the supplied marks, the kinds, the patterns and the legend.
15
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A view with handlers.
16
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Holds nothing.
8
+ * Render lists both declared and styled kinds. A kind is checked when the request holds its name as a mark pattern. Typed patterns keep their own controls. Swatches come from supplied or measured styles, and the legend counts what is drawn now.
17
9
  */
18
10
  export declare function AutoMovieInspectorMarksPanel(props: {
19
11
  /** The request shown. */
20
12
  request: IAutoMovieCapturePlanRequest;
21
13
  /** The marks the subject supplies, from which the kinds are listed. */
22
14
  marks: NonNullable<IApplyAutoMovieInspectionProps["marks"]>;
15
+ /** Mark kinds declared for the subject's lifetime. */
16
+ markKinds?: readonly string[];
23
17
  /** The legend of the current picture. */
24
18
  legend: readonly IAutoMovieInspectionLegendEntry[];
25
19
  /** Where edits go. */
@@ -4,34 +4,14 @@ exports.AutoMovieInspectorMarksPanel = AutoMovieInspectorMarksPanel;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const render_1 = require("@automovie/render");
6
6
  /**
7
- * Marks: the kinds the picture can draw, each with its default colour and switched by its own kind pattern, the x-ray switch, and the legend of what the picture draws.
7
+ * Controls for available mark kinds and x-ray, with the legend of the current picture.
8
8
  *
9
- * The kinds are render's `listAutoMovieInspectionKinds` of the supplied marks under the request in force, so a sliver limit or a trail adds its kinds as soon as it is asked for. A kind is checked when the request's `marks` holds that kind as a pattern; patterns typed in the address, such as `defect/*`, stay in the request and are listed beside the kinds. The legend is the inspection's: each colour drawn, what it marks and how many marks carry it.
10
- *
11
- * @evidence contracts/development/common.md#meaningful-documentation States what is listed, when a kind is checked, where typed patterns appear and what the legend counts.
12
- * @evidence contracts/development/implementation.md#principled-implementation The kinds come from render's one kind list and the legend from render's inspection handle, so the panel restates no kind rule and invents no colour.
13
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One checkbox per kind, one switch, one list of legend entries.
14
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A typed pattern that is not a listed kind is shown with its own checkbox rather than dropped.
15
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the supplied marks, the kinds, the patterns and the legend.
16
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A view with handlers.
17
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Holds nothing.
9
+ * Render lists both declared and styled kinds. A kind is checked when the request holds its name as a mark pattern. Typed patterns keep their own controls. Swatches come from supplied or measured styles, and the legend counts what is drawn now.
18
10
  */
19
11
  function AutoMovieInspectorMarksPanel(props) {
20
12
  const marks = props.request.inspection.marks;
21
- const kinds = (0, render_1.listAutoMovieInspectionKinds)({
22
- request: props.request.inspection,
23
- marks: props.marks,
24
- });
25
- const colors = new Map(kinds.map((entry) => [
26
- entry.kind,
27
- entry.color,
28
- ]));
29
- const listed = [
30
- ...new Set([
31
- ...kinds.map((entry) => entry.kind),
32
- ...marks,
33
- ]),
34
- ];
13
+ const colors = (0, render_1.listAutoMovieInspectionKindOptions)({ request: props.request.inspection, marks: props.marks }, props.markKinds);
14
+ const listed = [...new Set([...colors.keys(), ...marks])];
35
15
  return ((0, jsx_runtime_1.jsxs)("fieldset", { style: { border: 0, padding: 0, margin: 0, minWidth: 0 }, children: [(0, jsx_runtime_1.jsx)("legend", { style: {
36
16
  position: "absolute",
37
17
  width: 1,
@@ -39,17 +19,20 @@ function AutoMovieInspectorMarksPanel(props) {
39
19
  overflow: "hidden",
40
20
  clipPath: "inset(50%)",
41
21
  whiteSpace: "nowrap",
42
- }, children: "Marks" }), listed.map((kind) => ((0, jsx_runtime_1.jsxs)("label", { style: { display: "block" }, children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: marks.includes(kind), onChange: (event) => props.dispatch({
43
- type: "marks",
44
- pattern: kind,
45
- on: event.target.checked,
46
- }) }), " ", colors.has(kind) ? ((0, jsx_runtime_1.jsx)("span", { style: {
47
- display: "inline-block",
48
- width: 10,
49
- height: 10,
50
- marginRight: 4,
51
- background: `#${colors.get(kind).toString(16).padStart(6, "0")}`,
52
- } })) : null, kind] }, kind))), (0, jsx_runtime_1.jsxs)("label", { style: { display: "block" }, children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: props.request.inspection.xray, onChange: (event) => props.dispatch({
22
+ }, children: "Marks" }), listed.map((kind) => {
23
+ const color = colors.get(kind);
24
+ return ((0, jsx_runtime_1.jsxs)("label", { style: { display: "block" }, children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: marks.includes(kind), onChange: (event) => props.dispatch({
25
+ type: "marks",
26
+ pattern: kind,
27
+ on: event.target.checked,
28
+ }) }), " ", color !== undefined ? ((0, jsx_runtime_1.jsx)("span", { style: {
29
+ display: "inline-block",
30
+ width: 10,
31
+ height: 10,
32
+ marginRight: 4,
33
+ background: `#${color.toString(16).padStart(6, "0")}`,
34
+ } })) : null, kind] }, kind));
35
+ }), (0, jsx_runtime_1.jsxs)("label", { style: { display: "block" }, children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: props.request.inspection.xray, onChange: (event) => props.dispatch({
53
36
  type: "switch",
54
37
  key: "xray",
55
38
  on: event.target.checked,
@@ -1 +1 @@
1
- {"version":3,"file":"AutoMovieInspectorMarksPanel.js","sourceRoot":"","sources":["../../src/inspector/AutoMovieInspectorMarksPanel.tsx"],"names":[],"mappings":";;;;AACA,8CAAsG;AAK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AG,CACf,CAAC,KAAsC,EAAe,EAAE,CAAC,CACvD,2CACE,iCACE,KAAK,EAAE;gCACL,OAAO,EAAE,cAAc;gCACvB,KAAK,EAAE,EAAE;gCACT,MAAM,EAAE,EAAE;gCACV,WAAW,EAAE,CAAC;gCACd,UAAU,EAAE,IAAI,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE;6BAC5D,GACD,EACD,KAAK,CAAC,KAAK,QAAI,KAAK,CAAC,KAAK,KAVpB,GAAG,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,KAAK,EAAE,CAWnC,CACN,CACF,GACE,IACI,CACZ,CAAC;AACJ,CAAC"}
@@ -1,27 +1,18 @@
1
- import { listAutoMovieInspectionKinds } from "@automovie/render";
1
+ import { listAutoMovieInspectionKindOptions } from "@automovie/render";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  // src/inspector/AutoMovieInspectorMarksPanel.tsx
4
4
  /**
5
- * Marks: the kinds the picture can draw, each with its default colour and switched by its own kind pattern, the x-ray switch, and the legend of what the picture draws.
5
+ * Controls for available mark kinds and x-ray, with the legend of the current picture.
6
6
  *
7
- * The kinds are render's `listAutoMovieInspectionKinds` of the supplied marks under the request in force, so a sliver limit or a trail adds its kinds as soon as it is asked for. A kind is checked when the request's `marks` holds that kind as a pattern; patterns typed in the address, such as `defect/*`, stay in the request and are listed beside the kinds. The legend is the inspection's: each colour drawn, what it marks and how many marks carry it.
8
- *
9
- * @evidence contracts/development/common.md#meaningful-documentation States what is listed, when a kind is checked, where typed patterns appear and what the legend counts.
10
- * @evidence contracts/development/implementation.md#principled-implementation The kinds come from render's one kind list and the legend from render's inspection handle, so the panel restates no kind rule and invents no colour.
11
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One checkbox per kind, one switch, one list of legend entries.
12
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A typed pattern that is not a listed kind is shown with its own checkbox rather than dropped.
13
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the supplied marks, the kinds, the patterns and the legend.
14
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A view with handlers.
15
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Holds nothing.
7
+ * Render lists both declared and styled kinds. A kind is checked when the request holds its name as a mark pattern. Typed patterns keep their own controls. Swatches come from supplied or measured styles, and the legend counts what is drawn now.
16
8
  */
17
9
  function AutoMovieInspectorMarksPanel(props) {
18
10
  const marks = props.request.inspection.marks;
19
- const kinds = listAutoMovieInspectionKinds({
11
+ const colors = listAutoMovieInspectionKindOptions({
20
12
  request: props.request.inspection,
21
13
  marks: props.marks
22
- });
23
- const colors = new Map(kinds.map((entry) => [entry.kind, entry.color]));
24
- const listed = [.../* @__PURE__ */ new Set([...kinds.map((entry) => entry.kind), ...marks])];
14
+ }, props.markKinds);
15
+ const listed = [.../* @__PURE__ */ new Set([...colors.keys(), ...marks])];
25
16
  return /* @__PURE__ */ jsxs("fieldset", {
26
17
  style: {
27
18
  border: 0,
@@ -41,29 +32,32 @@ function AutoMovieInspectorMarksPanel(props) {
41
32
  },
42
33
  children: "Marks"
43
34
  }),
44
- listed.map((kind) => /* @__PURE__ */ jsxs("label", {
45
- style: { display: "block" },
46
- children: [
47
- /* @__PURE__ */ jsx("input", {
48
- type: "checkbox",
49
- checked: marks.includes(kind),
50
- onChange: (event) => props.dispatch({
51
- type: "marks",
52
- pattern: kind,
53
- on: event.target.checked
54
- })
55
- }),
56
- " ",
57
- colors.has(kind) ? /* @__PURE__ */ jsx("span", { style: {
58
- display: "inline-block",
59
- width: 10,
60
- height: 10,
61
- marginRight: 4,
62
- background: `#${colors.get(kind).toString(16).padStart(6, "0")}`
63
- } }) : null,
64
- kind
65
- ]
66
- }, kind)),
35
+ listed.map((kind) => {
36
+ const color = colors.get(kind);
37
+ return /* @__PURE__ */ jsxs("label", {
38
+ style: { display: "block" },
39
+ children: [
40
+ /* @__PURE__ */ jsx("input", {
41
+ type: "checkbox",
42
+ checked: marks.includes(kind),
43
+ onChange: (event) => props.dispatch({
44
+ type: "marks",
45
+ pattern: kind,
46
+ on: event.target.checked
47
+ })
48
+ }),
49
+ " ",
50
+ color !== void 0 ? /* @__PURE__ */ jsx("span", { style: {
51
+ display: "inline-block",
52
+ width: 10,
53
+ height: 10,
54
+ marginRight: 4,
55
+ background: `#${color.toString(16).padStart(6, "0")}`
56
+ } }) : null,
57
+ kind
58
+ ]
59
+ }, kind);
60
+ }),
67
61
  /* @__PURE__ */ jsxs("label", {
68
62
  style: { display: "block" },
69
63
  children: [
@@ -1 +1 @@
1
- {"version":3,"file":"AutoMovieInspectorMarksPanel.mjs","names":[],"sources":["../../src/inspector/AutoMovieInspectorMarksPanel.tsx"],"sourcesContent":["import type { IAutoMovieCapturePlanRequest, IAutoMovieInspectionKind, IAutoMovieInspectionLegendEntry } from \"@automovie/interface\";\nimport { type IApplyAutoMovieInspectionProps, listAutoMovieInspectionKinds } from \"@automovie/render\";\nimport type { ChangeEvent, JSX } from \"react\";\n\nimport type { IAutoMovieInspectorAction } from \"./IAutoMovieInspectorAction.js\";\n\n/**\n * Marks: the kinds the picture can draw, each with its default colour and switched by its own kind pattern, the x-ray switch, and the legend of what the picture draws.\n *\n * The kinds are render's `listAutoMovieInspectionKinds` of the supplied marks under the request in force, so a sliver limit or a trail adds its kinds as soon as it is asked for. A kind is checked when the request's `marks` holds that kind as a pattern; patterns typed in the address, such as `defect/*`, stay in the request and are listed beside the kinds. The legend is the inspection's: each colour drawn, what it marks and how many marks carry it.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States what is listed, when a kind is checked, where typed patterns appear and what the legend counts.\n * @evidence contracts/development/implementation.md#principled-implementation The kinds come from render's one kind list and the legend from render's inspection handle, so the panel restates no kind rule and invents no colour.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One checkbox per kind, one switch, one list of legend entries.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A typed pattern that is not a listed kind is shown with its own checkbox rather than dropped.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the supplied marks, the kinds, the patterns and the legend.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A view with handlers.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Holds nothing.\n */\nexport function AutoMovieInspectorMarksPanel(props: {\n /** The request shown. */\n request: IAutoMovieCapturePlanRequest;\n\n /** The marks the subject supplies, from which the kinds are listed. */\n marks: NonNullable<IApplyAutoMovieInspectionProps[\"marks\"]>;\n\n /** The legend of the current picture. */\n legend: readonly IAutoMovieInspectionLegendEntry[];\n\n /** Where edits go. */\n dispatch: (action: IAutoMovieInspectorAction) => void;\n}): JSX.Element {\n const marks: string[] = props.request.inspection.marks;\n const kinds: IAutoMovieInspectionKind[] = listAutoMovieInspectionKinds({\n request: props.request.inspection,\n marks: props.marks,\n });\n const colors: Map<string, number> = new Map<string, number>(\n kinds.map((entry: IAutoMovieInspectionKind): [string, number] => [\n entry.kind,\n entry.color,\n ]),\n );\n const listed: string[] = [\n ...new Set<string>([\n ...kinds.map((entry: IAutoMovieInspectionKind): string => entry.kind),\n ...marks,\n ]),\n ];\n return (\n <fieldset style={{ border: 0, padding: 0, margin: 0, minWidth: 0 }}>\n <legend\n style={{\n position: \"absolute\",\n width: 1,\n height: 1,\n overflow: \"hidden\",\n clipPath: \"inset(50%)\",\n whiteSpace: \"nowrap\",\n }}\n >\n Marks\n </legend>\n {listed.map(\n (kind: string): JSX.Element => (\n <label key={kind} style={{ display: \"block\" }}>\n <input\n type=\"checkbox\"\n checked={marks.includes(kind)}\n onChange={(event: ChangeEvent<HTMLInputElement>): void =>\n props.dispatch({\n type: \"marks\",\n pattern: kind,\n on: event.target.checked,\n })\n }\n />{\" \"}\n {colors.has(kind) ? (\n <span\n style={{\n display: \"inline-block\",\n width: 10,\n height: 10,\n marginRight: 4,\n background: `#${colors.get(kind)!.toString(16).padStart(6, \"0\")}`,\n }}\n />\n ) : null}\n {kind}\n </label>\n ),\n )}\n <label style={{ display: \"block\" }}>\n <input\n type=\"checkbox\"\n checked={props.request.inspection.xray}\n onChange={(event: ChangeEvent<HTMLInputElement>): void =>\n props.dispatch({\n type: \"switch\",\n key: \"xray\",\n on: event.target.checked,\n })\n }\n />{\" \"}\n x-ray\n </label>\n <ul style={{ listStyle: \"none\", padding: 0, margin: \"6px 0 0\" }}>\n {props.legend.map(\n (entry: IAutoMovieInspectionLegendEntry): JSX.Element => (\n <li key={`${entry.label}:${entry.color}`}>\n <span\n style={{\n display: \"inline-block\",\n width: 10,\n height: 10,\n marginRight: 6,\n background: `#${entry.color.toString(16).padStart(6, \"0\")}`,\n }}\n />\n {entry.label} x{entry.count}\n </li>\n ),\n )}\n </ul>\n </fieldset>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAmBA,SAAgB,6BAA6B,OAY7B;CACd,MAAM,QAAkB,MAAM,QAAQ,WAAW;CACjD,MAAM,QAAoC,6BAA6B;EACrE,SAAS,MAAM,QAAQ;EACvB,OAAO,MAAM;CACf,CAAC;CACD,MAAM,SAA8B,IAAI,IACtC,MAAM,KAAK,UAAsD,CAC/D,MAAM,MACN,MAAM,KACR,CAAC,CACH;CACA,MAAM,SAAmB,CACvB,mBAAG,IAAI,IAAY,CACjB,GAAG,MAAM,KAAK,UAA4C,MAAM,IAAI,GACpE,GAAG,KACL,CAAC,CACH;CACA,OACE,qBAAC,YAAD;EAAU,OAAO;GAAE,QAAQ;GAAG,SAAS;GAAG,QAAQ;GAAG,UAAU;EAAE;EAAjE,UAAA;GACE,oBAAC,UAAD;IACE,OAAO;KACL,UAAU;KACV,OAAO;KACP,QAAQ;KACR,UAAU;KACV,UAAU;KACV,YAAY;IACd;IACD,UAAA;GAEO,CAAA;GACP,OAAO,KACL,SACC,qBAAC,SAAD;IAAkB,OAAO,EAAE,SAAS,QAAQ;IAA5C,UAAA;KACE,oBAAC,SAAD;MACE,MAAK;MACL,SAAS,MAAM,SAAS,IAAI;MAC5B,WAAW,UACT,MAAM,SAAS;OACb,MAAM;OACN,SAAS;OACT,IAAI,MAAM,OAAO;MACnB,CAAC;KAEJ,CAAA;KAAE;KACF,OAAO,IAAI,IAAI,IACd,oBAAC,QAAD,EACE,OAAO;MACL,SAAS;MACT,OAAO;MACP,QAAQ;MACR,aAAa;MACb,YAAY,IAAI,OAAO,IAAI,IAAI,CAAC,CAAE,SAAS,EAAE,CAAC,CAAC,SAAS,GAAG,GAAG;KAChE,EACD,CAAA,IACC;KACH;IACI;GAxBK,GAAA,IAwBL,CAEX;GACA,qBAAC,SAAD;IAAO,OAAO,EAAE,SAAS,QAAQ;IAAjC,UAAA;KACE,oBAAC,SAAD;MACE,MAAK;MACL,SAAS,MAAM,QAAQ,WAAW;MAClC,WAAW,UACT,MAAM,SAAS;OACb,MAAM;OACN,KAAK;OACL,IAAI,MAAM,OAAO;MACnB,CAAC;KAEJ,CAAA;KAAE;KAAI;IAEF;;GACP,oBAAC,MAAD;IAAI,OAAO;KAAE,WAAW;KAAQ,SAAS;KAAG,QAAQ;IAAU;IAC3D,UAAA,MAAM,OAAO,KACX,UACC,qBAAC,MAAD,EAAA,UAAA;KACE,oBAAC,QAAD,EACE,OAAO;MACL,SAAS;MACT,OAAO;MACP,QAAQ;MACR,aAAa;MACb,YAAY,IAAI,MAAM,MAAM,SAAS,EAAE,CAAC,CAAC,SAAS,GAAG,GAAG;KAC1D,EACD,CAAA;KACA,MAAM;KAAM;KAAG,MAAM;IACpB,EAAA,GAXK,GAAG,MAAM,MAAM,GAAG,MAAM,OAW7B,CAER;GACE,CAAA;EACI;;AAEd"}
1
+ {"version":3,"file":"AutoMovieInspectorMarksPanel.mjs","names":[],"sources":["../../src/inspector/AutoMovieInspectorMarksPanel.tsx"],"sourcesContent":["import type {\n IAutoMovieCapturePlanRequest,\n IAutoMovieInspectionLegendEntry,\n} from \"@automovie/interface\";\nimport {\n type IApplyAutoMovieInspectionProps,\n listAutoMovieInspectionKindOptions,\n} from \"@automovie/render\";\nimport type { ChangeEvent, JSX } from \"react\";\n\nimport type { IAutoMovieInspectorAction } from \"./IAutoMovieInspectorAction.js\";\n\n/**\n * Controls for available mark kinds and x-ray, with the legend of the current picture.\n *\n * Render lists both declared and styled kinds. A kind is checked when the request holds its name as a mark pattern. Typed patterns keep their own controls. Swatches come from supplied or measured styles, and the legend counts what is drawn now.\n */\nexport function AutoMovieInspectorMarksPanel(props: {\n /** The request shown. */\n request: IAutoMovieCapturePlanRequest;\n\n /** The marks the subject supplies, from which the kinds are listed. */\n marks: NonNullable<IApplyAutoMovieInspectionProps[\"marks\"]>;\n\n /** Mark kinds declared for the subject's lifetime. */\n markKinds?: readonly string[];\n\n /** The legend of the current picture. */\n legend: readonly IAutoMovieInspectionLegendEntry[];\n\n /** Where edits go. */\n dispatch: (action: IAutoMovieInspectorAction) => void;\n}): JSX.Element {\n const marks: string[] = props.request.inspection.marks;\n const colors: ReadonlyMap<string, number | undefined> =\n listAutoMovieInspectionKindOptions(\n { request: props.request.inspection, marks: props.marks },\n props.markKinds,\n );\n const listed: string[] = [...new Set([...colors.keys(), ...marks])];\n return (\n <fieldset style={{ border: 0, padding: 0, margin: 0, minWidth: 0 }}>\n <legend\n style={{\n position: \"absolute\",\n width: 1,\n height: 1,\n overflow: \"hidden\",\n clipPath: \"inset(50%)\",\n whiteSpace: \"nowrap\",\n }}\n >\n Marks\n </legend>\n {listed.map((kind: string): JSX.Element => {\n const color: number | undefined = colors.get(kind);\n return (\n <label key={kind} style={{ display: \"block\" }}>\n <input\n type=\"checkbox\"\n checked={marks.includes(kind)}\n onChange={(event: ChangeEvent<HTMLInputElement>): void =>\n props.dispatch({\n type: \"marks\",\n pattern: kind,\n on: event.target.checked,\n })\n }\n />{\" \"}\n {color !== undefined ? (\n <span\n style={{\n display: \"inline-block\",\n width: 10,\n height: 10,\n marginRight: 4,\n background: `#${color.toString(16).padStart(6, \"0\")}`,\n }}\n />\n ) : null}\n {kind}\n </label>\n );\n })}\n <label style={{ display: \"block\" }}>\n <input\n type=\"checkbox\"\n checked={props.request.inspection.xray}\n onChange={(event: ChangeEvent<HTMLInputElement>): void =>\n props.dispatch({\n type: \"switch\",\n key: \"xray\",\n on: event.target.checked,\n })\n }\n />{\" \"}\n x-ray\n </label>\n <ul style={{ listStyle: \"none\", padding: 0, margin: \"6px 0 0\" }}>\n {props.legend.map(\n (entry: IAutoMovieInspectionLegendEntry): JSX.Element => (\n <li key={`${entry.label}:${entry.color}`}>\n <span\n style={{\n display: \"inline-block\",\n width: 10,\n height: 10,\n marginRight: 6,\n background: `#${entry.color.toString(16).padStart(6, \"0\")}`,\n }}\n />\n {entry.label} x{entry.count}\n </li>\n ),\n )}\n </ul>\n </fieldset>\n );\n}\n"],"mappings":";;;;;;;;AAiBA,SAAgB,6BAA6B,OAe7B;CACd,MAAM,QAAkB,MAAM,QAAQ,WAAW;CACjD,MAAM,SACJ,mCACE;EAAE,SAAS,MAAM,QAAQ;EAAY,OAAO,MAAM;CAAM,GACxD,MAAM,SACR;CACF,MAAM,SAAmB,CAAC,mBAAG,IAAI,IAAI,CAAC,GAAG,OAAO,KAAK,GAAG,GAAG,KAAK,CAAC,CAAC;CAClE,OACE,qBAAC,YAAD;EAAU,OAAO;GAAE,QAAQ;GAAG,SAAS;GAAG,QAAQ;GAAG,UAAU;EAAE;EAAjE,UAAA;GACE,oBAAC,UAAD;IACE,OAAO;KACL,UAAU;KACV,OAAO;KACP,QAAQ;KACR,UAAU;KACV,UAAU;KACV,YAAY;IACd;IACD,UAAA;GAEO,CAAA;GACP,OAAO,KAAK,SAA8B;IACzC,MAAM,QAA4B,OAAO,IAAI,IAAI;IACjD,OACE,qBAAC,SAAD;KAAkB,OAAO,EAAE,SAAS,QAAQ;KAA5C,UAAA;MACE,oBAAC,SAAD;OACE,MAAK;OACL,SAAS,MAAM,SAAS,IAAI;OAC5B,WAAW,UACT,MAAM,SAAS;QACb,MAAM;QACN,SAAS;QACT,IAAI,MAAM,OAAO;OACnB,CAAC;MAEJ,CAAA;MAAE;MACF,UAAU,KAAA,IACT,oBAAC,QAAD,EACE,OAAO;OACL,SAAS;OACT,OAAO;OACP,QAAQ;OACR,aAAa;OACb,YAAY,IAAI,MAAM,SAAS,EAAE,CAAC,CAAC,SAAS,GAAG,GAAG;MACpD,EACD,CAAA,IACC;MACH;KACI;IAxBK,GAAA,IAwBL;GAEX,CAAC;GACD,qBAAC,SAAD;IAAO,OAAO,EAAE,SAAS,QAAQ;IAAjC,UAAA;KACE,oBAAC,SAAD;MACE,MAAK;MACL,SAAS,MAAM,QAAQ,WAAW;MAClC,WAAW,UACT,MAAM,SAAS;OACb,MAAM;OACN,KAAK;OACL,IAAI,MAAM,OAAO;MACnB,CAAC;KAEJ,CAAA;KAAE;KAAI;IAEF;;GACP,oBAAC,MAAD;IAAI,OAAO;KAAE,WAAW;KAAQ,SAAS;KAAG,QAAQ;IAAU;IAC3D,UAAA,MAAM,OAAO,KACX,UACC,qBAAC,MAAD,EAAA,UAAA;KACE,oBAAC,QAAD,EACE,OAAO;MACL,SAAS;MACT,OAAO;MACP,QAAQ;MACR,aAAa;MACb,YAAY,IAAI,MAAM,MAAM,SAAS,EAAE,CAAC,CAAC,SAAS,GAAG,GAAG;KAC1D,EACD,CAAA;KACA,MAAM;KAAM;KAAG,MAAM;IACpB,EAAA,GAXK,GAAG,MAAM,MAAM,GAAG,MAAM,OAW7B,CAER;GACE,CAAA;EACI;;AAEd"}
@@ -1,132 +1,66 @@
1
1
  /**
2
- * The inspector's playhead: the second shown, the subject's duration, whether it plays and how fast, kept outside React.
2
+ * The inspector's playhead: the second shown, the subject's duration, whether
3
+ * it plays and how fast, kept outside React.
3
4
  *
4
- * The render loop advances it and reads it directly every frame. The time readout reads its snapshot through `useSyncExternalStore` with `subscribe` and `getSnapshot`, and the time panel only whether it plays, so a playing frame re-renders the readout alone and a start or stop also the panel's play button. A snapshot is replaced, never changed, so its identity tells a reader whether anything moved. Seconds stay within `[0, durationSeconds]`.
5
+ * The render loop advances it and reads it directly every frame. The time
6
+ * readout reads its snapshot through `useSyncExternalStore` with `subscribe`
7
+ * and `getSnapshot`, and the time panel only whether it plays, so a playing
8
+ * frame re-renders the readout alone and a start or stop also the panel's play
9
+ * button. A snapshot is replaced, never changed, so its identity tells a reader
10
+ * whether anything moved. Seconds stay within `[0, durationSeconds]`.
5
11
  *
6
- * The rate scales how fast the preview plays and is not part of the request: it changes no picture, and the capture grammar's `rate` key, stills per second, is a different quantity.
12
+ * The rate scales how fast the preview plays and is not part of the request: it
13
+ * changes no picture, and the capture grammar's `rate` key, stills per second,
14
+ * is a different quantity.
7
15
  *
8
16
  * ```ts
9
- * const seconds = useSyncExternalStore(playhead.subscribe, playhead.getSnapshot).seconds;
17
+ * const seconds = useSyncExternalStore(
18
+ * playhead.subscribe,
19
+ * playhead.getSnapshot,
20
+ * ).seconds;
10
21
  * ```
11
- *
12
- * @evidence contracts/development/design.md#principled-representation Seconds and duration are subject seconds, the rate is a positive multiplier of wall time and playing is a boolean; the snapshot is one immutable record so the external-store contract's identity comparison is exact.
13
- * @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the inspector, one per mounted component; the scene mount calls `setDuration`, `seek` and `advance`, the time panel `play`, `pause` and `setRate` and subscribes to the playing flag, the readout `seek`, `subscribe` and `getSnapshot`, and the inspector's keys, through `handleAutoMovieInspectorKey`, `play`, `pause`, `seek` and `getSnapshot`.
14
- * @evidence contracts/development/design.md#prohibited-design-shortcuts `subscribe` and `getSnapshot` are bound properties, so React keeps one subscription across renders instead of resubscribing to a new function each time.
15
- * @evidence contracts/development/common.md#meaningful-documentation States who moves and who reads the playhead and what each reader re-renders on, why it lives outside React, the snapshot's identity rule, the range and why the rate is not a request member.
16
22
  */
17
23
  export declare class AutoMovieInspectorPlayhead {
18
24
  private snapshot_;
19
25
  private readonly listeners_;
20
- /**
21
- * Call `listener` after every change, until the returned function is called.
22
- *
23
- * @evidence contracts/development/common.md#meaningful-documentation States when the listener runs and how it is removed.
24
- * @evidence contracts/development/implementation.md#principled-implementation The external-store contract React's `useSyncExternalStore` reads: subscribe returns its own unsubscribe.
25
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One set of listeners.
26
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The same listener given twice is held once, as a set holds it.
27
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant time to add and to remove.
28
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A registration computes nothing.
29
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds the listener until its unsubscribe runs; the set grows by one per live subscription, which React keeps at two per mounted inspector, the time panel's and the readout's.
30
- */
26
+ /** Call `listener` after every change, until the returned function is called. */
31
27
  readonly subscribe: (listener: () => void) => () => void;
32
- /**
33
- * The current snapshot, the same object until something changes.
34
- *
35
- * @evidence contracts/development/common.md#meaningful-documentation States the identity rule.
36
- * @evidence contracts/development/implementation.md#principled-implementation `useSyncExternalStore` requires a cached snapshot, or it renders forever.
37
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Returns the held record.
38
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Never builds a record on read.
39
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant.
40
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Returns what is held.
41
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Allocates nothing.
42
- */
28
+ /** The current snapshot, the same object until something changes. */
43
29
  readonly getSnapshot: () => AutoMovieInspectorPlayhead.ISnapshot;
44
30
  /**
45
- * Set the subject's duration when an instance is ready, keeping the second within it.
31
+ * Set the subject's duration when an instance is ready, keeping the second
32
+ * within it.
46
33
  *
47
- * It throws for a duration that is not a positive finite number.
48
- *
49
- * @evidence contracts/development/common.md#meaningful-documentation States when it is called, the clamp and the refusal.
50
- * @evidence contracts/development/implementation.md#principled-implementation Seconds beyond the subject's end show nothing of it, so the second is clamped to the new range.
51
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Check, then one change.
52
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A bad duration is refused instead of clamping every second to zero.
53
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant plus one call per listener.
54
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A state change.
55
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Replaces one record.
34
+ * It throws for a duration that is not positive.
56
35
  */
57
36
  setDuration(durationSeconds: number): void;
58
37
  /**
59
- * Start playing; from the end, play starts again at zero.
60
- *
61
- * @evidence contracts/development/common.md#meaningful-documentation States the restart at the end.
62
- * @evidence contracts/development/implementation.md#principled-implementation A playhead at the end has nothing left to play, so play means the whole subject again.
63
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One change.
64
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Playing an unready subject (duration zero) is a no-op rather than a loop at zero.
65
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant plus one call per listener.
66
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A state change.
67
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Replaces one record.
38
+ * Start playing; from the end, play starts again at zero, which counts as a
39
+ * jump.
68
40
  */
69
41
  play(): void;
70
- /**
71
- * Stop playing where the playhead is.
72
- *
73
- * @evidence contracts/development/common.md#meaningful-documentation States that the second is kept.
74
- * @evidence contracts/development/implementation.md#principled-implementation The paused second is the picture the request then names.
75
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One change.
76
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Pausing a paused playhead changes nothing and notifies no one.
77
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant plus one call per listener.
78
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A state change.
79
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Replaces one record.
80
- */
42
+ /** Stop playing where the playhead is. */
81
43
  pause(): void;
82
44
  /**
83
- * Show one second, clamped to `[0, durationSeconds]`; playing continues from it. A second that is not finite is refused.
84
- *
85
- * @evidence contracts/development/common.md#meaningful-documentation States the clamp, that playing continues and the refusal.
86
- * @evidence contracts/development/implementation.md#principled-implementation A slider or an address can ask past either end, and the nearest second the subject has is the one drawn.
87
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Check, clamp, change.
88
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts NaN is refused instead of clamped to an end.
89
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant plus one call per listener.
90
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A state change.
91
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Replaces one record.
45
+ * Show one second, clamped to `[0, durationSeconds]`; playing continues from
46
+ * it. Moving to another second counts as a jump.
92
47
  */
93
48
  seek(seconds: number): void;
94
49
  /**
95
- * Play `rate` subject seconds per wall second. It throws for a rate that is not positive and finite.
96
- *
97
- * @evidence contracts/development/common.md#meaningful-documentation States the unit and the refusal.
98
- * @evidence contracts/development/implementation.md#principled-implementation The rate multiplies the wall time `advance` is given.
99
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Check, change.
100
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Zero and negative rates are refused; pausing is `pause`.
101
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant plus one call per listener.
102
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A state change.
103
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Replaces one record.
50
+ * Play `rate` subject seconds per wall second. It throws for a rate that is
51
+ * not positive.
104
52
  */
105
53
  setRate(rate: number): void;
106
54
  /**
107
- * Move a playing playhead by `wallSeconds` of wall time times the rate, stopping at the end. A paused playhead does not move.
108
- *
109
- * @evidence contracts/development/common.md#meaningful-documentation States the unit, the stop at the end and the paused case.
110
- * @evidence contracts/development/implementation.md#principled-implementation Subject time is wall time scaled by the rate; reaching the end pauses there so the last picture stays.
111
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One change from one sum.
112
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Negative or non-finite wall time, such as a clock step backwards, moves nothing.
113
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant plus one call per listener, once per animation frame while playing.
114
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A state change.
115
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Replaces one record.
55
+ * Move a playing playhead by `wallSeconds` of wall time times the rate,
56
+ * stopping at the end. A paused playhead does not move.
116
57
  */
117
58
  advance(wallSeconds: number): void;
118
59
  /** Replace the snapshot when a member differs, then tell every listener. */
119
60
  private change;
120
61
  }
121
62
  export declare namespace AutoMovieInspectorPlayhead {
122
- /**
123
- * One immutable state of the playhead.
124
- *
125
- * @evidence contracts/development/design.md#principled-representation Subject seconds and duration, a wall-time multiplier and a playing flag, with `0 <= seconds <= durationSeconds` kept by the playhead.
126
- * @evidence contracts/development/design.md#minimal-and-owned-surface The four members the readout shows and the loop reads.
127
- * @evidence contracts/development/design.md#prohibited-design-shortcuts A duration of zero means no instance is ready yet, not a subject that lasts no time.
128
- * @evidence contracts/development/common.md#meaningful-documentation States each member's unit and the zero duration.
129
- */
63
+ /** One immutable state of the playhead. */
130
64
  interface ISnapshot {
131
65
  /** The second shown, subject seconds. */
132
66
  seconds: number;
@@ -136,5 +70,10 @@ export declare namespace AutoMovieInspectorPlayhead {
136
70
  playing: boolean;
137
71
  /** Subject seconds played per wall second, positive. */
138
72
  rate: number;
73
+ /**
74
+ * Number of seeks to another second and restarts from the end so far; two
75
+ * snapshots with the same count are joined by playback alone.
76
+ */
77
+ jump: number;
139
78
  }
140
79
  }