@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
@@ -0,0 +1,19 @@
1
+ // src/inspector/releaseAutoMovieInspectorSteps.ts
2
+ /**
3
+ * Run every release step of an inspector mount in order, then throw every
4
+ * failure together: the one failure as it was, several as one `AggregateError`,
5
+ * so a failed step never keeps a later resource alive.
6
+ */
7
+ function releaseAutoMovieInspectorSteps(steps) {
8
+ const failures = [];
9
+ for (const step of steps) try {
10
+ step();
11
+ } catch (error) {
12
+ failures.push(error);
13
+ }
14
+ if (failures.length === 1) throw failures[0];
15
+ if (failures.length > 1) throw new AggregateError(failures, "The inspector mount failed to release");
16
+ }
17
+ export { releaseAutoMovieInspectorSteps };
18
+
19
+ //# sourceMappingURL=releaseAutoMovieInspectorSteps.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"releaseAutoMovieInspectorSteps.mjs","names":[],"sources":["../../src/inspector/releaseAutoMovieInspectorSteps.ts"],"sourcesContent":["/**\n * Run every release step of an inspector mount in order, then throw every\n * failure together: the one failure as it was, several as one `AggregateError`,\n * so a failed step never keeps a later resource alive.\n */\nexport function releaseAutoMovieInspectorSteps(\n steps: readonly (() => void)[],\n): void {\n const failures: unknown[] = [];\n for (const step of steps)\n try {\n step();\n } catch (error) {\n failures.push(error);\n }\n if (failures.length === 1) throw failures[0];\n if (failures.length > 1)\n throw new AggregateError(failures, \"The inspector mount failed to release\");\n}\n"],"mappings":";;;;;;AAKA,SAAgB,+BACd,OACM;CACN,MAAM,WAAsB,CAAC;CAC7B,KAAK,MAAM,QAAQ,OACjB,IAAI;EACF,KAAK;CACP,SAAS,OAAO;EACd,SAAS,KAAK,KAAK;CACrB;CACF,IAAI,SAAS,WAAW,GAAG,MAAM,SAAS;CAC1C,IAAI,SAAS,SAAS,GACpB,MAAM,IAAI,eAAe,UAAU,uCAAuC;AAC9E"}
@@ -0,0 +1,21 @@
1
+ import type { IAutoMovieInspectionLegendEntry } from "@automovie/interface";
2
+ import type * as THREE from "three";
3
+ import type { IAutoMovieInspectorLive } from "./IAutoMovieInspectorLive.js";
4
+ import type { IAutoMovieInspectorScene } from "./IAutoMovieInspectorScene.js";
5
+ /**
6
+ * Report a painted picture's legend and labels: while paused, the inspection's
7
+ * legend with the witness legend and the labels placed on the picture's pixels;
8
+ * while playing, no labels, cleared once when the picture had some.
9
+ */
10
+ export declare function reportAutoMovieInspectorLabels(props: {
11
+ /** The mount's live state, whose `labelled` flag this keeps. */
12
+ now: IAutoMovieInspectorLive;
13
+ /** Where the mount reports. */
14
+ report: IAutoMovieInspectorScene.IReport;
15
+ /** The camera the picture was drawn through. */
16
+ camera: THREE.Camera;
17
+ /** The witness cubes' legend of this picture. */
18
+ diagnosticLegend: readonly IAutoMovieInspectionLegendEntry[];
19
+ /** Whether the playhead is playing. */
20
+ playing: boolean;
21
+ }): void;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reportAutoMovieInspectorLabels = reportAutoMovieInspectorLabels;
4
+ const placeAutoMovieInspectorLabels_js_1 = require("./placeAutoMovieInspectorLabels.js");
5
+ /**
6
+ * Report a painted picture's legend and labels: while paused, the inspection's
7
+ * legend with the witness legend and the labels placed on the picture's pixels;
8
+ * while playing, no labels, cleared once when the picture had some.
9
+ */
10
+ function reportAutoMovieInspectorLabels(props) {
11
+ const { now, report } = props;
12
+ if (!props.playing) {
13
+ report.legend([...now.inspection.legend, ...props.diagnosticLegend]);
14
+ report.labels((0, placeAutoMovieInspectorLabels_js_1.placeAutoMovieInspectorLabels)({
15
+ inspection: now.inspection,
16
+ camera: props.camera,
17
+ raster: now.instance,
18
+ shown: now.size,
19
+ }));
20
+ now.labelled = true;
21
+ }
22
+ else if (now.labelled) {
23
+ report.labels({ labels: [], lineHeight: 0, dropped: 0 });
24
+ now.labelled = false;
25
+ }
26
+ }
27
+ //# sourceMappingURL=reportAutoMovieInspectorLabels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reportAutoMovieInspectorLabels.js","sourceRoot":"","sources":["../../src/inspector/reportAutoMovieInspectorLabels.ts"],"names":[],"mappings":";;;AAKA,yFAAmF;AAEnF;;;;GAIG;AACH,wCAA+C,KAe9C;IACC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAiB,KAAK,CAAC;IAC5C,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;QACnB,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC;QACrE,MAAM,CAAC,MAAM,CACX,IAAA,gEAA6B,EAAC;YAC5B,UAAU,EAAE,GAAG,CAAC,UAAU;YAC1B,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,MAAM,EAAE,GAAG,CAAC,QAAQ;YACpB,KAAK,EAAE,GAAG,CAAC,IAAK;SACjB,CAAC,CACH,CAAC;QACF,GAAG,CAAC,QAAQ,GAAG,IAAI,CAAC;IACtB,CAAC;SAAM,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;QACxB,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;QACzD,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;IACvB,CAAC;AACH,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { placeAutoMovieInspectorLabels } from "./placeAutoMovieInspectorLabels.mjs";
2
+ // src/inspector/reportAutoMovieInspectorLabels.ts
3
+ /**
4
+ * Report a painted picture's legend and labels: while paused, the inspection's
5
+ * legend with the witness legend and the labels placed on the picture's pixels;
6
+ * while playing, no labels, cleared once when the picture had some.
7
+ */
8
+ function reportAutoMovieInspectorLabels(props) {
9
+ const { now, report } = props;
10
+ if (!props.playing) {
11
+ report.legend([...now.inspection.legend, ...props.diagnosticLegend]);
12
+ report.labels(placeAutoMovieInspectorLabels({
13
+ inspection: now.inspection,
14
+ camera: props.camera,
15
+ raster: now.instance,
16
+ shown: now.size
17
+ }));
18
+ now.labelled = true;
19
+ } else if (now.labelled) {
20
+ report.labels({
21
+ labels: [],
22
+ lineHeight: 0,
23
+ dropped: 0
24
+ });
25
+ now.labelled = false;
26
+ }
27
+ }
28
+ export { reportAutoMovieInspectorLabels };
29
+
30
+ //# sourceMappingURL=reportAutoMovieInspectorLabels.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reportAutoMovieInspectorLabels.mjs","names":[],"sources":["../../src/inspector/reportAutoMovieInspectorLabels.ts"],"sourcesContent":["import type { IAutoMovieInspectionLegendEntry } from \"@automovie/interface\";\nimport type * as THREE from \"three\";\n\nimport type { IAutoMovieInspectorLive } from \"./IAutoMovieInspectorLive.js\";\nimport type { IAutoMovieInspectorScene } from \"./IAutoMovieInspectorScene.js\";\nimport { placeAutoMovieInspectorLabels } from \"./placeAutoMovieInspectorLabels.js\";\n\n/**\n * Report a painted picture's legend and labels: while paused, the inspection's\n * legend with the witness legend and the labels placed on the picture's pixels;\n * while playing, no labels, cleared once when the picture had some.\n */\nexport function reportAutoMovieInspectorLabels(props: {\n /** The mount's live state, whose `labelled` flag this keeps. */\n now: IAutoMovieInspectorLive;\n\n /** Where the mount reports. */\n report: IAutoMovieInspectorScene.IReport;\n\n /** The camera the picture was drawn through. */\n camera: THREE.Camera;\n\n /** The witness cubes' legend of this picture. */\n diagnosticLegend: readonly IAutoMovieInspectionLegendEntry[];\n\n /** Whether the playhead is playing. */\n playing: boolean;\n}): void {\n const { now, report }: typeof props = props;\n if (!props.playing) {\n report.legend([...now.inspection.legend, ...props.diagnosticLegend]);\n report.labels(\n placeAutoMovieInspectorLabels({\n inspection: now.inspection,\n camera: props.camera,\n raster: now.instance,\n shown: now.size!,\n }),\n );\n now.labelled = true;\n } else if (now.labelled) {\n report.labels({ labels: [], lineHeight: 0, dropped: 0 });\n now.labelled = false;\n }\n}\n"],"mappings":";;;;;;;AAYA,SAAgB,+BAA+B,OAetC;CACP,MAAM,EAAE,KAAK,WAAyB;CACtC,IAAI,CAAC,MAAM,SAAS;EAClB,OAAO,OAAO,CAAC,GAAG,IAAI,WAAW,QAAQ,GAAG,MAAM,gBAAgB,CAAC;EACnE,OAAO,OACL,8BAA8B;GAC5B,YAAY,IAAI;GAChB,QAAQ,MAAM;GACd,QAAQ,IAAI;GACZ,OAAO,IAAI;EACb,CAAC,CACH;EACA,IAAI,WAAW;CACjB,OAAO,IAAI,IAAI,UAAU;EACvB,OAAO,OAAO;GAAE,QAAQ,CAAC;GAAG,YAAY;GAAG,SAAS;EAAE,CAAC;EACvD,IAAI,WAAW;CACjB;AACF"}
@@ -0,0 +1,22 @@
1
+ import { type IAutoMovieDrawScene, type IAutoMovieInspectionHandle } from "@automovie/render";
2
+ import type * as THREE from "three";
3
+ /**
4
+ * The camera the inspector draws a placed second through: the request's view,
5
+ * written as `text`, resolved against the subject's delivery camera and named
6
+ * views at `seconds`, a named view with a focus framed on what the inspection
7
+ * selects.
8
+ *
9
+ * The delivery camera first takes the subject raster's aspect, as a capture of
10
+ * the subject sets it, so a view frames what a capture of the same view frames
11
+ * whatever the canvas's shape.
12
+ */
13
+ export declare function resolveAutoMovieInspectorCamera(props: {
14
+ /** The created subject, placed at `seconds`. */
15
+ instance: IAutoMovieDrawScene;
16
+ /** The view's text, the request's first view. */
17
+ text: string;
18
+ /** The applied inspection, whose bounds frame a focused named view. */
19
+ inspection: IAutoMovieInspectionHandle;
20
+ /** The placed second. */
21
+ seconds: number;
22
+ }): THREE.Camera;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveAutoMovieInspectorCamera = resolveAutoMovieInspectorCamera;
4
+ const render_1 = require("@automovie/render");
5
+ /**
6
+ * The camera the inspector draws a placed second through: the request's view,
7
+ * written as `text`, resolved against the subject's delivery camera and named
8
+ * views at `seconds`, a named view with a focus framed on what the inspection
9
+ * selects.
10
+ *
11
+ * The delivery camera first takes the subject raster's aspect, as a capture of
12
+ * the subject sets it, so a view frames what a capture of the same view frames
13
+ * whatever the canvas's shape.
14
+ */
15
+ function resolveAutoMovieInspectorCamera(props) {
16
+ const { instance, text } = props;
17
+ const aspect = instance.width / instance.height;
18
+ if (instance.camera.aspect !== aspect) {
19
+ instance.camera.aspect = aspect;
20
+ instance.camera.updateProjectionMatrix();
21
+ }
22
+ const view = (0, render_1.parseAutoMovieInspectionView)(text);
23
+ return (0, render_1.resolveAutoMovieInspectionView)({
24
+ view,
25
+ text,
26
+ bounds: view.type === "named" ? props.inspection.bounds(view.focus) : null,
27
+ camera: instance.camera,
28
+ ...(instance.views === undefined ? {} : { views: instance.views }),
29
+ seconds: props.seconds,
30
+ width: instance.width,
31
+ height: instance.height,
32
+ }).camera;
33
+ }
34
+ //# sourceMappingURL=resolveAutoMovieInspectorCamera.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveAutoMovieInspectorCamera.js","sourceRoot":"","sources":["../../src/inspector/resolveAutoMovieInspectorCamera.ts"],"names":[],"mappings":";;;AACA,8CAK2B;AAG3B;;;;;;;;;GASG;AACH,yCAAgD,KAY/C;IACC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAiB,KAAK,CAAC;IAC/C,MAAM,MAAM,GAAW,QAAQ,CAAC,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC;IACxD,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;QACtC,QAAQ,CAAC,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;QAChC,QAAQ,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC;IAC3C,CAAC;IACD,MAAM,IAAI,GAA6B,IAAA,qCAA4B,EAAC,IAAI,CAAC,CAAC;IAC1E,OAAO,IAAA,uCAA8B,EAAC;QACpC,IAAI;QACJ,IAAI;QACJ,MAAM,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI;QAC1E,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,GAAG,CAAC,QAAQ,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC;QAClE,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,KAAK,EAAE,QAAQ,CAAC,KAAK;QACrB,MAAM,EAAE,QAAQ,CAAC,MAAM;KACxB,CAAC,CAAC,MAAM,CAAC;AACZ,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { parseAutoMovieInspectionView, resolveAutoMovieInspectionView } from "@automovie/render";
2
+ // src/inspector/resolveAutoMovieInspectorCamera.ts
3
+ /**
4
+ * The camera the inspector draws a placed second through: the request's view,
5
+ * written as `text`, resolved against the subject's delivery camera and named
6
+ * views at `seconds`, a named view with a focus framed on what the inspection
7
+ * selects.
8
+ *
9
+ * The delivery camera first takes the subject raster's aspect, as a capture of
10
+ * the subject sets it, so a view frames what a capture of the same view frames
11
+ * whatever the canvas's shape.
12
+ */
13
+ function resolveAutoMovieInspectorCamera(props) {
14
+ const { instance, text } = props;
15
+ const aspect = instance.width / instance.height;
16
+ if (instance.camera.aspect !== aspect) {
17
+ instance.camera.aspect = aspect;
18
+ instance.camera.updateProjectionMatrix();
19
+ }
20
+ const view = parseAutoMovieInspectionView(text);
21
+ return resolveAutoMovieInspectionView({
22
+ view,
23
+ text,
24
+ bounds: view.type === "named" ? props.inspection.bounds(view.focus) : null,
25
+ camera: instance.camera,
26
+ ...instance.views === void 0 ? {} : { views: instance.views },
27
+ seconds: props.seconds,
28
+ width: instance.width,
29
+ height: instance.height
30
+ }).camera;
31
+ }
32
+ export { resolveAutoMovieInspectorCamera };
33
+
34
+ //# sourceMappingURL=resolveAutoMovieInspectorCamera.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveAutoMovieInspectorCamera.mjs","names":[],"sources":["../../src/inspector/resolveAutoMovieInspectorCamera.ts"],"sourcesContent":["import type { IAutoMovieInspectionView } from \"@automovie/interface\";\nimport {\n type IAutoMovieDrawScene,\n type IAutoMovieInspectionHandle,\n parseAutoMovieInspectionView,\n resolveAutoMovieInspectionView,\n} from \"@automovie/render\";\nimport type * as THREE from \"three\";\n\n/**\n * The camera the inspector draws a placed second through: the request's view,\n * written as `text`, resolved against the subject's delivery camera and named\n * views at `seconds`, a named view with a focus framed on what the inspection\n * selects.\n *\n * The delivery camera first takes the subject raster's aspect, as a capture of\n * the subject sets it, so a view frames what a capture of the same view frames\n * whatever the canvas's shape.\n */\nexport function resolveAutoMovieInspectorCamera(props: {\n /** The created subject, placed at `seconds`. */\n instance: IAutoMovieDrawScene;\n\n /** The view's text, the request's first view. */\n text: string;\n\n /** The applied inspection, whose bounds frame a focused named view. */\n inspection: IAutoMovieInspectionHandle;\n\n /** The placed second. */\n seconds: number;\n}): THREE.Camera {\n const { instance, text }: typeof props = props;\n const aspect: number = instance.width / instance.height;\n if (instance.camera.aspect !== aspect) {\n instance.camera.aspect = aspect;\n instance.camera.updateProjectionMatrix();\n }\n const view: IAutoMovieInspectionView = parseAutoMovieInspectionView(text);\n return resolveAutoMovieInspectionView({\n view,\n text,\n bounds: view.type === \"named\" ? props.inspection.bounds(view.focus) : null,\n camera: instance.camera,\n ...(instance.views === undefined ? {} : { views: instance.views }),\n seconds: props.seconds,\n width: instance.width,\n height: instance.height,\n }).camera;\n}\n"],"mappings":";;;;;;;;;;;;AAmBA,SAAgB,gCAAgC,OAY/B;CACf,MAAM,EAAE,UAAU,SAAuB;CACzC,MAAM,SAAiB,SAAS,QAAQ,SAAS;CACjD,IAAI,SAAS,OAAO,WAAW,QAAQ;EACrC,SAAS,OAAO,SAAS;EACzB,SAAS,OAAO,uBAAuB;CACzC;CACA,MAAM,OAAiC,6BAA6B,IAAI;CACxE,OAAO,+BAA+B;EACpC;EACA;EACA,QAAQ,KAAK,SAAS,UAAU,MAAM,WAAW,OAAO,KAAK,KAAK,IAAI;EACtE,QAAQ,SAAS;EACjB,GAAI,SAAS,UAAU,KAAA,IAAY,CAAC,IAAI,EAAE,OAAO,SAAS,MAAM;EAChE,SAAS,MAAM;EACf,OAAO,SAAS;EAChB,QAAQ,SAAS;CACnB,CAAC,CAAC,CAAC;AACL"}
@@ -0,0 +1,25 @@
1
+ import type { IAutoMovieInspectionDiagnostics } from "@automovie/interface";
2
+ import type { AutoMovieInspectorPlayhead } from "./AutoMovieInspectorPlayhead.js";
3
+ import type { IAutoMovieInspectorAction } from "./IAutoMovieInspectorAction.js";
4
+ /**
5
+ * Stop the inspector at one finding's witness: move the playhead there, stop
6
+ * it, and locate the request there.
7
+ *
8
+ * Stopping playback makes the time readout write the stopped second into the
9
+ * request, so the playhead is moved to the witness before it stops: the stopped
10
+ * second and the located second are then the same, whichever edit the reducer
11
+ * receives last.
12
+ *
13
+ * @param props The witness, the drawn paths, the playhead and the request's
14
+ * dispatch.
15
+ */
16
+ export declare function showAutoMovieInspectorFinding(props: {
17
+ /** The witness to show. */
18
+ observation: IAutoMovieInspectionDiagnostics.IObservation;
19
+ /** The identity paths the scene draws. */
20
+ paths: readonly string[];
21
+ /** The inspector's playhead. */
22
+ playhead: AutoMovieInspectorPlayhead;
23
+ /** Where the request edit goes. */
24
+ dispatch: (action: IAutoMovieInspectorAction) => void;
25
+ }): void;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.showAutoMovieInspectorFinding = showAutoMovieInspectorFinding;
4
+ const locateAutoMovieInspectorFinding_js_1 = require("./locateAutoMovieInspectorFinding.js");
5
+ /**
6
+ * Stop the inspector at one finding's witness: move the playhead there, stop
7
+ * it, and locate the request there.
8
+ *
9
+ * Stopping playback makes the time readout write the stopped second into the
10
+ * request, so the playhead is moved to the witness before it stops: the stopped
11
+ * second and the located second are then the same, whichever edit the reducer
12
+ * receives last.
13
+ *
14
+ * @param props The witness, the drawn paths, the playhead and the request's
15
+ * dispatch.
16
+ */
17
+ function showAutoMovieInspectorFinding(props) {
18
+ const action = (0, locateAutoMovieInspectorFinding_js_1.locateAutoMovieInspectorFinding)(props.observation, props.paths);
19
+ props.playhead.seek(action.seconds);
20
+ props.playhead.pause();
21
+ props.dispatch({
22
+ ...action,
23
+ seconds: props.playhead.getSnapshot().seconds,
24
+ });
25
+ }
26
+ //# sourceMappingURL=showAutoMovieInspectorFinding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"showAutoMovieInspectorFinding.js","sourceRoot":"","sources":["../../src/inspector/showAutoMovieInspectorFinding.ts"],"names":[],"mappings":";;;AAIA,6FAAuF;AAEvF;;;;;;;;;;;GAWG;AACH,uCAA8C,KAY7C;IACC,MAAM,MAAM,GACV,IAAA,oEAA+B,EAAC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAClE,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACpC,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;IACvB,KAAK,CAAC,QAAQ,CAAC;QACb,GAAG,MAAM;QACT,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,OAAO;KAC9C,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { locateAutoMovieInspectorFinding } from "./locateAutoMovieInspectorFinding.mjs";
2
+ // src/inspector/showAutoMovieInspectorFinding.ts
3
+ /**
4
+ * Stop the inspector at one finding's witness: move the playhead there, stop
5
+ * it, and locate the request there.
6
+ *
7
+ * Stopping playback makes the time readout write the stopped second into the
8
+ * request, so the playhead is moved to the witness before it stops: the stopped
9
+ * second and the located second are then the same, whichever edit the reducer
10
+ * receives last.
11
+ *
12
+ * @param props The witness, the drawn paths, the playhead and the request's
13
+ * dispatch.
14
+ */
15
+ function showAutoMovieInspectorFinding(props) {
16
+ const action = locateAutoMovieInspectorFinding(props.observation, props.paths);
17
+ props.playhead.seek(action.seconds);
18
+ props.playhead.pause();
19
+ props.dispatch({
20
+ ...action,
21
+ seconds: props.playhead.getSnapshot().seconds
22
+ });
23
+ }
24
+ export { showAutoMovieInspectorFinding };
25
+
26
+ //# sourceMappingURL=showAutoMovieInspectorFinding.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"showAutoMovieInspectorFinding.mjs","names":[],"sources":["../../src/inspector/showAutoMovieInspectorFinding.ts"],"sourcesContent":["import type { IAutoMovieInspectionDiagnostics } from \"@automovie/interface\";\n\nimport type { AutoMovieInspectorPlayhead } from \"./AutoMovieInspectorPlayhead.js\";\nimport type { IAutoMovieInspectorAction } from \"./IAutoMovieInspectorAction.js\";\nimport { locateAutoMovieInspectorFinding } from \"./locateAutoMovieInspectorFinding.js\";\n\n/**\n * Stop the inspector at one finding's witness: move the playhead there, stop\n * it, and locate the request there.\n *\n * Stopping playback makes the time readout write the stopped second into the\n * request, so the playhead is moved to the witness before it stops: the stopped\n * second and the located second are then the same, whichever edit the reducer\n * receives last.\n *\n * @param props The witness, the drawn paths, the playhead and the request's\n * dispatch.\n */\nexport function showAutoMovieInspectorFinding(props: {\n /** The witness to show. */\n observation: IAutoMovieInspectionDiagnostics.IObservation;\n\n /** The identity paths the scene draws. */\n paths: readonly string[];\n\n /** The inspector's playhead. */\n playhead: AutoMovieInspectorPlayhead;\n\n /** Where the request edit goes. */\n dispatch: (action: IAutoMovieInspectorAction) => void;\n}): void {\n const action: IAutoMovieInspectorAction.ILocate =\n locateAutoMovieInspectorFinding(props.observation, props.paths);\n props.playhead.seek(action.seconds);\n props.playhead.pause();\n props.dispatch({\n ...action,\n seconds: props.playhead.getSnapshot().seconds,\n });\n}\n"],"mappings":";;;;;;;;;;;;;;AAkBA,SAAgB,8BAA8B,OAYrC;CACP,MAAM,SACJ,gCAAgC,MAAM,aAAa,MAAM,KAAK;CAChE,MAAM,SAAS,KAAK,OAAO,OAAO;CAClC,MAAM,SAAS,MAAM;CACrB,MAAM,SAAS;EACb,GAAG;EACH,SAAS,MAAM,SAAS,YAAY,CAAC,CAAC;CACxC,CAAC;AACH"}
@@ -0,0 +1,11 @@
1
+ import type { AutoMovieInspectorPlayhead } from "./AutoMovieInspectorPlayhead.js";
2
+ import type { IAutoMovieInspectorAction } from "./IAutoMovieInspectorAction.js";
3
+ /**
4
+ * The request edit a playhead change implies: when playback stops, by a pause
5
+ * or at the end, the stopped second becomes the request's.
6
+ *
7
+ * @param playing Whether the playhead played at the previous snapshot.
8
+ * @param snapshot The current snapshot.
9
+ * @returns The `time` edit for a stop, or null when playback did not stop.
10
+ */
11
+ export declare function stopAutoMovieInspectorTime(playing: boolean, snapshot: AutoMovieInspectorPlayhead.ISnapshot): IAutoMovieInspectorAction.ITime | null;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stopAutoMovieInspectorTime = stopAutoMovieInspectorTime;
4
+ /**
5
+ * The request edit a playhead change implies: when playback stops, by a pause
6
+ * or at the end, the stopped second becomes the request's.
7
+ *
8
+ * @param playing Whether the playhead played at the previous snapshot.
9
+ * @param snapshot The current snapshot.
10
+ * @returns The `time` edit for a stop, or null when playback did not stop.
11
+ */
12
+ function stopAutoMovieInspectorTime(playing, snapshot) {
13
+ return playing && !snapshot.playing
14
+ ? { type: "time", seconds: snapshot.seconds }
15
+ : null;
16
+ }
17
+ //# sourceMappingURL=stopAutoMovieInspectorTime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stopAutoMovieInspectorTime.js","sourceRoot":"","sources":["../../src/inspector/stopAutoMovieInspectorTime.ts"],"names":[],"mappings":";;;AAGA;;;;;;;GAOG;AACH,oCACE,OAAgB,EAChB,QAA8C;IAE9C,OAAO,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO;QACjC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,OAAO,EAAE;QAC7C,CAAC,CAAC,IAAI,CAAC;AACX,CAAC"}
@@ -0,0 +1,18 @@
1
+ // src/inspector/stopAutoMovieInspectorTime.ts
2
+ /**
3
+ * The request edit a playhead change implies: when playback stops, by a pause
4
+ * or at the end, the stopped second becomes the request's.
5
+ *
6
+ * @param playing Whether the playhead played at the previous snapshot.
7
+ * @param snapshot The current snapshot.
8
+ * @returns The `time` edit for a stop, or null when playback did not stop.
9
+ */
10
+ function stopAutoMovieInspectorTime(playing, snapshot) {
11
+ return playing && !snapshot.playing ? {
12
+ type: "time",
13
+ seconds: snapshot.seconds
14
+ } : null;
15
+ }
16
+ export { stopAutoMovieInspectorTime };
17
+
18
+ //# sourceMappingURL=stopAutoMovieInspectorTime.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stopAutoMovieInspectorTime.mjs","names":[],"sources":["../../src/inspector/stopAutoMovieInspectorTime.ts"],"sourcesContent":["import type { AutoMovieInspectorPlayhead } from \"./AutoMovieInspectorPlayhead.js\";\nimport type { IAutoMovieInspectorAction } from \"./IAutoMovieInspectorAction.js\";\n\n/**\n * The request edit a playhead change implies: when playback stops, by a pause\n * or at the end, the stopped second becomes the request's.\n *\n * @param playing Whether the playhead played at the previous snapshot.\n * @param snapshot The current snapshot.\n * @returns The `time` edit for a stop, or null when playback did not stop.\n */\nexport function stopAutoMovieInspectorTime(\n playing: boolean,\n snapshot: AutoMovieInspectorPlayhead.ISnapshot,\n): IAutoMovieInspectorAction.ITime | null {\n return playing && !snapshot.playing\n ? { type: \"time\", seconds: snapshot.seconds }\n : null;\n}\n"],"mappings":";;;;;;;;;AAWA,SAAgB,2BACd,SACA,UACwC;CACxC,OAAO,WAAW,CAAC,SAAS,UACxB;EAAE,MAAM;EAAQ,SAAS,SAAS;CAAQ,IAC1C;AACN"}
@@ -0,0 +1,6 @@
1
+ import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
2
+ /**
3
+ * A request's inspection as the text it writes: the identity by which the
4
+ * inspector reuses an applied inspection instead of applying it again.
5
+ */
6
+ export declare function writeAutoMovieInspectorInspection(request: Pick<IAutoMovieCapturePlanRequest, "inspection">): string;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.writeAutoMovieInspectorInspection = writeAutoMovieInspectorInspection;
4
+ const render_1 = require("@automovie/render");
5
+ /**
6
+ * A request's inspection as the text it writes: the identity by which the
7
+ * inspector reuses an applied inspection instead of applying it again.
8
+ */
9
+ function writeAutoMovieInspectorInspection(request) {
10
+ return JSON.stringify((0, render_1.formatAutoMovieInspectionRequest)(request.inspection));
11
+ }
12
+ //# sourceMappingURL=writeAutoMovieInspectorInspection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeAutoMovieInspectorInspection.js","sourceRoot":"","sources":["../../src/inspector/writeAutoMovieInspectorInspection.ts"],"names":[],"mappings":";;;AACA,8CAAqE;AAErE;;;GAGG;AACH,2CACE,OAAyD;IAEzD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAA,yCAAgC,EAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;AAC9E,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { formatAutoMovieInspectionRequest } from "@automovie/render";
2
+ // src/inspector/writeAutoMovieInspectorInspection.ts
3
+ /**
4
+ * A request's inspection as the text it writes: the identity by which the
5
+ * inspector reuses an applied inspection instead of applying it again.
6
+ */
7
+ function writeAutoMovieInspectorInspection(request) {
8
+ return JSON.stringify(formatAutoMovieInspectionRequest(request.inspection));
9
+ }
10
+ export { writeAutoMovieInspectorInspection };
11
+
12
+ //# sourceMappingURL=writeAutoMovieInspectorInspection.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeAutoMovieInspectorInspection.mjs","names":[],"sources":["../../src/inspector/writeAutoMovieInspectorInspection.ts"],"sourcesContent":["import type { IAutoMovieCapturePlanRequest } from \"@automovie/interface\";\nimport { formatAutoMovieInspectionRequest } from \"@automovie/render\";\n\n/**\n * A request's inspection as the text it writes: the identity by which the\n * inspector reuses an applied inspection instead of applying it again.\n */\nexport function writeAutoMovieInspectorInspection(\n request: Pick<IAutoMovieCapturePlanRequest, \"inspection\">,\n): string {\n return JSON.stringify(formatAutoMovieInspectionRequest(request.inspection));\n}\n"],"mappings":";;;;;;AAOA,SAAgB,kCACd,SACQ;CACR,OAAO,KAAK,UAAU,iCAAiC,QAAQ,UAAU,CAAC;AAC5E"}
@@ -0,0 +1,7 @@
1
+ export * from "./applyCaptureCanvasSize.js";
2
+ export * from "./inspector/assertAutoMovieInspectorRaster.js";
3
+ export * from "./inspector/changesAutoMovieObservedScene.js";
4
+ export * from "./inspector/firstAutoMovieInspectorSecond.js";
5
+ export * from "./inspector/messageOfAutoMovieInspectorError.js";
6
+ export * from "./inspector/readsAutoMovieInspectorPlacedScene.js";
7
+ export * from "./inspector/writeAutoMovieInspectorInspection.js";
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ // The applied-inspection and canvas helpers the test programme reads directly. They are not part of the public surface: a host reaches them through the inspector and the mount of the main entry.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ __exportStar(require("./applyCaptureCanvasSize.js"), exports);
19
+ __exportStar(require("./inspector/assertAutoMovieInspectorRaster.js"), exports);
20
+ __exportStar(require("./inspector/changesAutoMovieObservedScene.js"), exports);
21
+ __exportStar(require("./inspector/firstAutoMovieInspectorSecond.js"), exports);
22
+ __exportStar(require("./inspector/messageOfAutoMovieInspectorError.js"), exports);
23
+ __exportStar(require("./inspector/readsAutoMovieInspectorPlacedScene.js"), exports);
24
+ __exportStar(require("./inspector/writeAutoMovieInspectorInspection.js"), exports);
25
+ //# sourceMappingURL=internal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":";AAAA,mMAAmM;;;;;;;;;;;;;;;;AAEnM,8DAA4C;AAC5C,gFAA8D;AAC9D,+EAA6D;AAC7D,+EAA6D;AAC7D,kFAAgE;AAChE,oFAAkE;AAClE,mFAAiE"}
@@ -0,0 +1,8 @@
1
+ import { applyCaptureCanvasSize } from "./applyCaptureCanvasSize.mjs";
2
+ import { assertAutoMovieInspectorRaster } from "./inspector/assertAutoMovieInspectorRaster.mjs";
3
+ import { changesAutoMovieObservedScene } from "./inspector/changesAutoMovieObservedScene.mjs";
4
+ import { firstAutoMovieInspectorSecond } from "./inspector/firstAutoMovieInspectorSecond.mjs";
5
+ import { messageOfAutoMovieInspectorError } from "./inspector/messageOfAutoMovieInspectorError.mjs";
6
+ import { readsAutoMovieInspectorPlacedScene } from "./inspector/readsAutoMovieInspectorPlacedScene.mjs";
7
+ import { writeAutoMovieInspectorInspection } from "./inspector/writeAutoMovieInspectorInspection.mjs";
8
+ export { applyCaptureCanvasSize, assertAutoMovieInspectorRaster, changesAutoMovieObservedScene, firstAutoMovieInspectorSecond, messageOfAutoMovieInspectorError, readsAutoMovieInspectorPlacedScene, writeAutoMovieInspectorInspection };
@@ -4,17 +4,23 @@ import type { IMountViewerOptions } from "./IMountViewerOptions.js";
4
4
  /** A synchronous producer may report a handled draw or discard its return. */
5
5
  type ViewerFrameProducer = ((elapsedSeconds: number) => boolean) | ((elapsedSeconds: number) => void);
6
6
  /**
7
- * Mount a render loop onto a canvas: create a `WebGLRenderer`, drive `onFrame(elapsedSeconds)` each animation frame, then render `scene` from `camera`.
7
+ * Mount a render loop onto a canvas: create a `WebGLRenderer`, drive
8
+ * `onFrame(elapsedSeconds)` each animation frame, then render `scene` from
9
+ * `camera`.
8
10
  *
9
- * This is the one browser-only entry point. `onFrame` is where a {@link AutoMoviePlayer} advances: the viewer stays a thin shell around the deterministic engine. `elapsedSeconds` is measured from the first frame. If `onFrame` returns `true` it has **already drawn** the frame itself (e.g. a multi-pass cross-dissolve composite), so the loop skips its own default `render`; returning `undefined`/`false` keeps the plain single-pass render. External seek/guide producers call the returned `completeFrame` immediately after their original draw, before an unpreserved native buffer can clear. A manual guide retains the completed clock; a seek supplies its own seconds. Freezes suppress animation producer calls; explicit redraw/restoration still uses the original producer. Independently advancing source clocks or audio supply `freezeCompleted` and restore their source time through `redrawCompleted`.
10
- *
11
- * @evidence contracts/development/implementation.md#principled-implementation Owns one browser renderer/RAF loop, runs the original producer under a validated display clock and publishes actual handled or ordinary completion through the existing observer boundary. Live CSS size and selected pixel ratio synchronize native backing/projection; changed viewports redraw the original completed producer even while paused or frozen.
12
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Clock and native camera transfer retain their existing owners; createViewerFrameControl owns the actual public controller and nested producer leases. Named context options distinguish original handled-frame hooks from native renderer creation and terminal mount shutdown.
13
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No native render method is replaced, a handled frame without producer facts is not invented, and stopped controls cannot redraw a retired renderer; ordinary native drawing preflights the existing failed scene/shadow owners, preserving active settings and clock calculations.
14
- * @evidence contracts/development/common.md#meaningful-documentation Documentation gives handled-frame responsibility, explicit draw-before-completion, preserved guide clock, finite transfer time, terminal controls and public cleanup's native-proof limits.
15
- * @evidence contracts/development/implementation.md#efficient-algorithms Per-frame coordination adds fixed client-size/DPR reads and native-size comparisons plus producer/render/observer cost. Browser layout work remains real host cost. Only changed viewports resize backing and redraw the completed producer; no scene traversal is added to active draws, while shutdown delegates shadow traversal and fixed renderer/compositor retirement.
16
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Handled record identity suppresses repeated idle publication and the current completed clock is preserved for guides; stop shares one sticky attempt and equal frame metadata is not independent pixel/source equivalence.
17
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources At most one scheduled RAF and one outer producer freeze lease are retained; the same RAF observes layout/DPR, adding no observer or event listener. Stop cancels scheduling and retires the lease without resuming it before independent native cleanup. Initialization/frame failure attempts acquired owner cleanup, closed controls refuse new effects and borrowed model resources remain caller-owned. Public disposal is not independent OS/GPU kernel release proof.
11
+ * This is the one browser-only entry point. `onFrame` is where a
12
+ * {@link AutoMoviePlayer} advances: the viewer stays a thin shell around the
13
+ * deterministic engine. `elapsedSeconds` is measured from the first frame. If
14
+ * `onFrame` returns `true` it has **already drawn** the frame itself (e.g. a
15
+ * multi-pass cross-dissolve composite), so the loop skips its own default
16
+ * `render`; returning `undefined`/`false` keeps the plain single-pass render.
17
+ * External seek/guide producers call the returned `completeFrame` immediately
18
+ * after their original draw, before an unpreserved native buffer can clear. A
19
+ * manual guide retains the completed clock; a seek supplies its own seconds.
20
+ * Freezes suppress animation producer calls; explicit redraw/restoration still
21
+ * uses the original producer. Independently advancing source clocks or audio
22
+ * supply `freezeCompleted` and restore their source time through
23
+ * `redrawCompleted`.
18
24
  */
19
25
  export declare const mountViewer: (canvas: HTMLCanvasElement, scene: THREE.Scene, camera: THREE.PerspectiveCamera, onFrame: ViewerFrameProducer, options?: IMountViewerOptions) => IAutoMovieViewerHandle;
20
26
  export {};
@@ -43,17 +43,23 @@ const publishViewerCompletedFrame_js_1 = require("./publishViewerCompletedFrame.
43
43
  const redrawViewerCompletedFrame_js_1 = require("./redrawViewerCompletedFrame.js");
44
44
  const releaseMountedViewer_js_1 = require("./releaseMountedViewer.js");
45
45
  /**
46
- * Mount a render loop onto a canvas: create a `WebGLRenderer`, drive `onFrame(elapsedSeconds)` each animation frame, then render `scene` from `camera`.
46
+ * Mount a render loop onto a canvas: create a `WebGLRenderer`, drive
47
+ * `onFrame(elapsedSeconds)` each animation frame, then render `scene` from
48
+ * `camera`.
47
49
  *
48
- * This is the one browser-only entry point. `onFrame` is where a {@link AutoMoviePlayer} advances: the viewer stays a thin shell around the deterministic engine. `elapsedSeconds` is measured from the first frame. If `onFrame` returns `true` it has **already drawn** the frame itself (e.g. a multi-pass cross-dissolve composite), so the loop skips its own default `render`; returning `undefined`/`false` keeps the plain single-pass render. External seek/guide producers call the returned `completeFrame` immediately after their original draw, before an unpreserved native buffer can clear. A manual guide retains the completed clock; a seek supplies its own seconds. Freezes suppress animation producer calls; explicit redraw/restoration still uses the original producer. Independently advancing source clocks or audio supply `freezeCompleted` and restore their source time through `redrawCompleted`.
49
- *
50
- * @evidence contracts/development/implementation.md#principled-implementation Owns one browser renderer/RAF loop, runs the original producer under a validated display clock and publishes actual handled or ordinary completion through the existing observer boundary. Live CSS size and selected pixel ratio synchronize native backing/projection; changed viewports redraw the original completed producer even while paused or frozen.
51
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Clock and native camera transfer retain their existing owners; createViewerFrameControl owns the actual public controller and nested producer leases. Named context options distinguish original handled-frame hooks from native renderer creation and terminal mount shutdown.
52
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No native render method is replaced, a handled frame without producer facts is not invented, and stopped controls cannot redraw a retired renderer; ordinary native drawing preflights the existing failed scene/shadow owners, preserving active settings and clock calculations.
53
- * @evidence contracts/development/common.md#meaningful-documentation Documentation gives handled-frame responsibility, explicit draw-before-completion, preserved guide clock, finite transfer time, terminal controls and public cleanup's native-proof limits.
54
- * @evidence contracts/development/implementation.md#efficient-algorithms Per-frame coordination adds fixed client-size/DPR reads and native-size comparisons plus producer/render/observer cost. Browser layout work remains real host cost. Only changed viewports resize backing and redraw the completed producer; no scene traversal is added to active draws, while shutdown delegates shadow traversal and fixed renderer/compositor retirement.
55
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Handled record identity suppresses repeated idle publication and the current completed clock is preserved for guides; stop shares one sticky attempt and equal frame metadata is not independent pixel/source equivalence.
56
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources At most one scheduled RAF and one outer producer freeze lease are retained; the same RAF observes layout/DPR, adding no observer or event listener. Stop cancels scheduling and retires the lease without resuming it before independent native cleanup. Initialization/frame failure attempts acquired owner cleanup, closed controls refuse new effects and borrowed model resources remain caller-owned. Public disposal is not independent OS/GPU kernel release proof.
50
+ * This is the one browser-only entry point. `onFrame` is where a
51
+ * {@link AutoMoviePlayer} advances: the viewer stays a thin shell around the
52
+ * deterministic engine. `elapsedSeconds` is measured from the first frame. If
53
+ * `onFrame` returns `true` it has **already drawn** the frame itself (e.g. a
54
+ * multi-pass cross-dissolve composite), so the loop skips its own default
55
+ * `render`; returning `undefined`/`false` keeps the plain single-pass render.
56
+ * External seek/guide producers call the returned `completeFrame` immediately
57
+ * after their original draw, before an unpreserved native buffer can clear. A
58
+ * manual guide retains the completed clock; a seek supplies its own seconds.
59
+ * Freezes suppress animation producer calls; explicit redraw/restoration still
60
+ * uses the original producer. Independently advancing source clocks or audio
61
+ * supply `freezeCompleted` and restore their source time through
62
+ * `redrawCompleted`.
57
63
  */
58
64
  const mountViewer = (canvas, scene, camera, onFrame, options) => {
59
65
  const renderer = new THREE.WebGLRenderer({
@@ -67,10 +73,7 @@ const mountViewer = (canvas, scene, camera, onFrame, options) => {
67
73
  try {
68
74
  const resize = (0, createViewerViewportResize_js_1.createViewerViewportResize)(renderer, camera);
69
75
  const synchronizeViewport = () => resize(canvas.clientWidth || 1, canvas.clientHeight || 1, options?.pixelRatio ??
70
- (Number.isFinite(window.devicePixelRatio) &&
71
- window.devicePixelRatio > 0
72
- ? window.devicePixelRatio
73
- : 1));
76
+ (window.devicePixelRatio > 0 ? window.devicePixelRatio : 1));
74
77
  synchronizeViewport();
75
78
  let startMs = null;
76
79
  const clock = (0, createViewerDisplayClock_js_1.createViewerDisplayClock)();
@@ -1 +1 @@
1
- {"version":3,"file":"mountViewer.js","sourceRoot":"","sources":["../src/mountViewer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;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