@automovie/viewer 0.3.4 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (387) hide show
  1. package/README.md +8 -87
  2. package/lib/IAutoMovieViewerCompletedFrame.d.ts +19 -11
  3. package/lib/IAutoMovieViewerDisplayMetadata.d.ts +0 -5
  4. package/lib/IAutoMovieViewerHandle.d.ts +3 -25
  5. package/lib/IMountViewerOptions.d.ts +24 -38
  6. package/lib/IViewerCameraStateSnapshot.d.ts +0 -5
  7. package/lib/IViewerFrameTransfer.d.ts +11 -0
  8. package/lib/IViewerFrameTransfer.js +3 -0
  9. package/lib/IViewerFrameTransfer.js.map +1 -0
  10. package/lib/IViewerFrameTransfer.mjs +0 -0
  11. package/lib/applyCaptureCanvasSize.d.ts +9 -10
  12. package/lib/applyCaptureCanvasSize.js +7 -13
  13. package/lib/applyCaptureCanvasSize.js.map +1 -1
  14. package/lib/applyCaptureCanvasSize.mjs +7 -10
  15. package/lib/applyCaptureCanvasSize.mjs.map +1 -1
  16. package/lib/audio/IAutoMovieAudioCue.d.ts +3 -8
  17. package/lib/audio/planAutoMovieAudioPlayback.d.ts +8 -21
  18. package/lib/audio/planAutoMovieAudioPlayback.js +8 -14
  19. package/lib/audio/planAutoMovieAudioPlayback.js.map +1 -1
  20. package/lib/audio/planAutoMovieAudioPlayback.mjs +8 -14
  21. package/lib/audio/planAutoMovieAudioPlayback.mjs.map +1 -1
  22. package/lib/audio/playAutoMovieAudioCues.d.ts +4 -11
  23. package/lib/audio/playAutoMovieAudioCues.js +4 -11
  24. package/lib/audio/playAutoMovieAudioCues.js.map +1 -1
  25. package/lib/audio/playAutoMovieAudioCues.mjs +4 -11
  26. package/lib/audio/playAutoMovieAudioCues.mjs.map +1 -1
  27. package/lib/createViewerCameraState.d.ts +3 -11
  28. package/lib/createViewerCameraState.js +80 -121
  29. package/lib/createViewerCameraState.js.map +1 -1
  30. package/lib/createViewerCameraState.mjs +46 -98
  31. package/lib/createViewerCameraState.mjs.map +1 -1
  32. package/lib/createViewerDisplayClock.d.ts +2 -10
  33. package/lib/createViewerDisplayClock.js +4 -12
  34. package/lib/createViewerDisplayClock.js.map +1 -1
  35. package/lib/createViewerDisplayClock.mjs +3 -11
  36. package/lib/createViewerDisplayClock.mjs.map +1 -1
  37. package/lib/createViewerDisplayPublication.d.ts +7 -15
  38. package/lib/createViewerDisplayPublication.js +7 -15
  39. package/lib/createViewerDisplayPublication.js.map +1 -1
  40. package/lib/createViewerDisplayPublication.mjs +7 -15
  41. package/lib/createViewerDisplayPublication.mjs.map +1 -1
  42. package/lib/createViewerDisplaySave.d.ts +8 -16
  43. package/lib/createViewerDisplaySave.js +8 -16
  44. package/lib/createViewerDisplaySave.js.map +1 -1
  45. package/lib/createViewerDisplaySave.mjs +8 -16
  46. package/lib/createViewerDisplaySave.mjs.map +1 -1
  47. package/lib/createViewerFrameControl.d.ts +8 -10
  48. package/lib/createViewerFrameControl.js +3 -15
  49. package/lib/createViewerFrameControl.js.map +1 -1
  50. package/lib/createViewerFrameControl.mjs +3 -12
  51. package/lib/createViewerFrameControl.mjs.map +1 -1
  52. package/lib/createViewerViewportResize.d.ts +4 -12
  53. package/lib/createViewerViewportResize.js +7 -20
  54. package/lib/createViewerViewportResize.js.map +1 -1
  55. package/lib/createViewerViewportResize.mjs +6 -14
  56. package/lib/createViewerViewportResize.mjs.map +1 -1
  57. package/lib/index.d.ts +1 -0
  58. package/lib/index.js +1 -0
  59. package/lib/index.js.map +1 -1
  60. package/lib/index.mjs +6 -1
  61. package/lib/inspector/AutoMovieInspector.d.ts +33 -13
  62. package/lib/inspector/AutoMovieInspector.js +110 -19
  63. package/lib/inspector/AutoMovieInspector.js.map +1 -1
  64. package/lib/inspector/AutoMovieInspector.mjs +121 -18
  65. package/lib/inspector/AutoMovieInspector.mjs.map +1 -1
  66. package/lib/inspector/AutoMovieInspectorBeauty.d.ts +41 -0
  67. package/lib/inspector/AutoMovieInspectorBeauty.js +56 -0
  68. package/lib/inspector/AutoMovieInspectorBeauty.js.map +1 -0
  69. package/lib/inspector/AutoMovieInspectorBeauty.mjs +55 -0
  70. package/lib/inspector/AutoMovieInspectorBeauty.mjs.map +1 -0
  71. package/lib/inspector/AutoMovieInspectorDiagnosticLog.d.ts +48 -0
  72. package/lib/inspector/AutoMovieInspectorDiagnosticLog.js +186 -0
  73. package/lib/inspector/AutoMovieInspectorDiagnosticLog.js.map +1 -0
  74. package/lib/inspector/AutoMovieInspectorDiagnosticLog.mjs +171 -0
  75. package/lib/inspector/AutoMovieInspectorDiagnosticLog.mjs.map +1 -0
  76. package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.d.ts +23 -0
  77. package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.js +37 -0
  78. package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.js.map +1 -0
  79. package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.mjs +85 -0
  80. package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.mjs.map +1 -0
  81. package/lib/inspector/AutoMovieInspectorMarksPanel.d.ts +4 -10
  82. package/lib/inspector/AutoMovieInspectorMarksPanel.js +18 -35
  83. package/lib/inspector/AutoMovieInspectorMarksPanel.js.map +1 -1
  84. package/lib/inspector/AutoMovieInspectorMarksPanel.mjs +32 -38
  85. package/lib/inspector/AutoMovieInspectorMarksPanel.mjs.map +1 -1
  86. package/lib/inspector/AutoMovieInspectorPlayhead.d.ts +35 -96
  87. package/lib/inspector/AutoMovieInspectorPlayhead.js +41 -101
  88. package/lib/inspector/AutoMovieInspectorPlayhead.js.map +1 -1
  89. package/lib/inspector/AutoMovieInspectorPlayhead.mjs +44 -98
  90. package/lib/inspector/AutoMovieInspectorPlayhead.mjs.map +1 -1
  91. package/lib/inspector/AutoMovieInspectorRequestPanel.d.ts +9 -10
  92. package/lib/inspector/AutoMovieInspectorRequestPanel.js +18 -12
  93. package/lib/inspector/AutoMovieInspectorRequestPanel.js.map +1 -1
  94. package/lib/inspector/AutoMovieInspectorRequestPanel.mjs +32 -14
  95. package/lib/inspector/AutoMovieInspectorRequestPanel.mjs.map +1 -1
  96. package/lib/inspector/AutoMovieInspectorSelectionPanel.d.ts +0 -8
  97. package/lib/inspector/AutoMovieInspectorSelectionPanel.js +0 -8
  98. package/lib/inspector/AutoMovieInspectorSelectionPanel.js.map +1 -1
  99. package/lib/inspector/AutoMovieInspectorSelectionPanel.mjs +0 -8
  100. package/lib/inspector/AutoMovieInspectorSelectionPanel.mjs.map +1 -1
  101. package/lib/inspector/AutoMovieInspectorShadePanel.d.ts +2 -9
  102. package/lib/inspector/AutoMovieInspectorShadePanel.js +18 -25
  103. package/lib/inspector/AutoMovieInspectorShadePanel.js.map +1 -1
  104. package/lib/inspector/AutoMovieInspectorShadePanel.mjs +18 -27
  105. package/lib/inspector/AutoMovieInspectorShadePanel.mjs.map +1 -1
  106. package/lib/inspector/AutoMovieInspectorTimePanel.d.ts +0 -8
  107. package/lib/inspector/AutoMovieInspectorTimePanel.js +0 -8
  108. package/lib/inspector/AutoMovieInspectorTimePanel.js.map +1 -1
  109. package/lib/inspector/AutoMovieInspectorTimePanel.mjs +0 -8
  110. package/lib/inspector/AutoMovieInspectorTimePanel.mjs.map +1 -1
  111. package/lib/inspector/AutoMovieInspectorTimeReadout.d.ts +0 -8
  112. package/lib/inspector/AutoMovieInspectorTimeReadout.js +4 -10
  113. package/lib/inspector/AutoMovieInspectorTimeReadout.js.map +1 -1
  114. package/lib/inspector/AutoMovieInspectorTimeReadout.mjs +3 -12
  115. package/lib/inspector/AutoMovieInspectorTimeReadout.mjs.map +1 -1
  116. package/lib/inspector/AutoMovieInspectorTransition.d.ts +79 -0
  117. package/lib/inspector/AutoMovieInspectorTransition.js +131 -0
  118. package/lib/inspector/AutoMovieInspectorTransition.js.map +1 -0
  119. package/lib/inspector/AutoMovieInspectorTransition.mjs +119 -0
  120. package/lib/inspector/AutoMovieInspectorTransition.mjs.map +1 -0
  121. package/lib/inspector/AutoMovieInspectorViewPanel.d.ts +0 -8
  122. package/lib/inspector/AutoMovieInspectorViewPanel.js +0 -8
  123. package/lib/inspector/AutoMovieInspectorViewPanel.js.map +1 -1
  124. package/lib/inspector/AutoMovieInspectorViewPanel.mjs +0 -8
  125. package/lib/inspector/AutoMovieInspectorViewPanel.mjs.map +1 -1
  126. package/lib/inspector/IAutoMovieInspectorAction.d.ts +54 -95
  127. package/lib/inspector/IAutoMovieInspectorLive.d.ts +43 -0
  128. package/lib/inspector/IAutoMovieInspectorLive.js +3 -0
  129. package/lib/inspector/IAutoMovieInspectorLive.js.map +1 -0
  130. package/lib/inspector/IAutoMovieInspectorLive.mjs +0 -0
  131. package/lib/inspector/IAutoMovieInspectorPathNode.d.ts +14 -9
  132. package/lib/inspector/IAutoMovieInspectorProps.d.ts +3 -14
  133. package/lib/inspector/IAutoMovieInspectorScene.d.ts +96 -100
  134. package/lib/inspector/IAutoMovieInspectorSceneHost.d.ts +37 -102
  135. package/lib/inspector/IAutoMovieInspectorState.d.ts +6 -7
  136. package/lib/inspector/assertAutoMovieInspectorRaster.d.ts +7 -0
  137. package/lib/inspector/assertAutoMovieInspectorRaster.js +19 -0
  138. package/lib/inspector/assertAutoMovieInspectorRaster.js.map +1 -0
  139. package/lib/inspector/assertAutoMovieInspectorRaster.mjs +17 -0
  140. package/lib/inspector/assertAutoMovieInspectorRaster.mjs.map +1 -0
  141. package/lib/inspector/buildAutoMovieInspectorPathTree.d.ts +9 -10
  142. package/lib/inspector/buildAutoMovieInspectorPathTree.js +9 -10
  143. package/lib/inspector/buildAutoMovieInspectorPathTree.js.map +1 -1
  144. package/lib/inspector/buildAutoMovieInspectorPathTree.mjs +9 -10
  145. package/lib/inspector/buildAutoMovieInspectorPathTree.mjs.map +1 -1
  146. package/lib/inspector/changesAutoMovieObservedScene.d.ts +16 -0
  147. package/lib/inspector/changesAutoMovieObservedScene.js +28 -0
  148. package/lib/inspector/changesAutoMovieObservedScene.js.map +1 -0
  149. package/lib/inspector/changesAutoMovieObservedScene.mjs +21 -0
  150. package/lib/inspector/changesAutoMovieObservedScene.mjs.map +1 -0
  151. package/lib/inspector/createAutoMovieInspectorAddressWriter.d.ts +13 -11
  152. package/lib/inspector/createAutoMovieInspectorAddressWriter.js +13 -11
  153. package/lib/inspector/createAutoMovieInspectorAddressWriter.js.map +1 -1
  154. package/lib/inspector/createAutoMovieInspectorAddressWriter.mjs +13 -11
  155. package/lib/inspector/createAutoMovieInspectorAddressWriter.mjs.map +1 -1
  156. package/lib/inspector/createAutoMovieInspectorCanvasHost.d.ts +7 -10
  157. package/lib/inspector/createAutoMovieInspectorCanvasHost.js +14 -11
  158. package/lib/inspector/createAutoMovieInspectorCanvasHost.js.map +1 -1
  159. package/lib/inspector/createAutoMovieInspectorCanvasHost.mjs +17 -14
  160. package/lib/inspector/createAutoMovieInspectorCanvasHost.mjs.map +1 -1
  161. package/lib/inspector/createAutoMovieInspectorState.d.ts +3 -9
  162. package/lib/inspector/createAutoMovieInspectorState.js +3 -9
  163. package/lib/inspector/createAutoMovieInspectorState.js.map +1 -1
  164. package/lib/inspector/createAutoMovieInspectorState.mjs +3 -9
  165. package/lib/inspector/createAutoMovieInspectorState.mjs.map +1 -1
  166. package/lib/inspector/firstAutoMovieInspectorSecond.d.ts +6 -0
  167. package/lib/inspector/firstAutoMovieInspectorSecond.js +13 -0
  168. package/lib/inspector/firstAutoMovieInspectorSecond.js.map +1 -0
  169. package/lib/inspector/firstAutoMovieInspectorSecond.mjs +11 -0
  170. package/lib/inspector/firstAutoMovieInspectorSecond.mjs.map +1 -0
  171. package/lib/inspector/followAutoMovieInspectorSize.d.ts +11 -0
  172. package/lib/inspector/followAutoMovieInspectorSize.js +26 -0
  173. package/lib/inspector/followAutoMovieInspectorSize.js.map +1 -0
  174. package/lib/inspector/followAutoMovieInspectorSize.mjs +26 -0
  175. package/lib/inspector/followAutoMovieInspectorSize.mjs.map +1 -0
  176. package/lib/inspector/formatAutoMovieInspectorAddress.d.ts +11 -10
  177. package/lib/inspector/formatAutoMovieInspectorAddress.js +15 -11
  178. package/lib/inspector/formatAutoMovieInspectorAddress.js.map +1 -1
  179. package/lib/inspector/formatAutoMovieInspectorAddress.mjs +15 -11
  180. package/lib/inspector/formatAutoMovieInspectorAddress.mjs.map +1 -1
  181. package/lib/inspector/formatAutoMovieInspectorCommand.d.ts +20 -14
  182. package/lib/inspector/formatAutoMovieInspectorCommand.js +33 -14
  183. package/lib/inspector/formatAutoMovieInspectorCommand.js.map +1 -1
  184. package/lib/inspector/formatAutoMovieInspectorCommand.mjs +26 -15
  185. package/lib/inspector/formatAutoMovieInspectorCommand.mjs.map +1 -1
  186. package/lib/inspector/handleAutoMovieInspectorKey.d.ts +24 -15
  187. package/lib/inspector/handleAutoMovieInspectorKey.js +27 -16
  188. package/lib/inspector/handleAutoMovieInspectorKey.js.map +1 -1
  189. package/lib/inspector/handleAutoMovieInspectorKey.mjs +27 -16
  190. package/lib/inspector/handleAutoMovieInspectorKey.mjs.map +1 -1
  191. package/lib/inspector/index.d.ts +5 -0
  192. package/lib/inspector/index.js +5 -0
  193. package/lib/inspector/index.js.map +1 -1
  194. package/lib/inspector/index.mjs +6 -1
  195. package/lib/inspector/inspectAutoMovieInspectorRequest.d.ts +19 -0
  196. package/lib/inspector/inspectAutoMovieInspectorRequest.js +20 -0
  197. package/lib/inspector/inspectAutoMovieInspectorRequest.js.map +1 -0
  198. package/lib/inspector/inspectAutoMovieInspectorRequest.mjs +20 -0
  199. package/lib/inspector/inspectAutoMovieInspectorRequest.mjs.map +1 -0
  200. package/lib/inspector/installAutoMovieInspectorRequest.d.ts +20 -0
  201. package/lib/inspector/installAutoMovieInspectorRequest.js +36 -0
  202. package/lib/inspector/installAutoMovieInspectorRequest.js.map +1 -0
  203. package/lib/inspector/installAutoMovieInspectorRequest.mjs +35 -0
  204. package/lib/inspector/installAutoMovieInspectorRequest.mjs.map +1 -0
  205. package/lib/inspector/locateAutoMovieInspectorFinding.d.ts +19 -0
  206. package/lib/inspector/locateAutoMovieInspectorFinding.js +34 -0
  207. package/lib/inspector/locateAutoMovieInspectorFinding.js.map +1 -0
  208. package/lib/inspector/locateAutoMovieInspectorFinding.mjs +37 -0
  209. package/lib/inspector/locateAutoMovieInspectorFinding.mjs.map +1 -0
  210. package/lib/inspector/messageOfAutoMovieInspectorError.d.ts +2 -0
  211. package/lib/inspector/messageOfAutoMovieInspectorError.js +8 -0
  212. package/lib/inspector/messageOfAutoMovieInspectorError.js.map +1 -0
  213. package/lib/inspector/messageOfAutoMovieInspectorError.mjs +8 -0
  214. package/lib/inspector/messageOfAutoMovieInspectorError.mjs.map +1 -0
  215. package/lib/inspector/mountAutoMovieInspectorPage.d.ts +5 -8
  216. package/lib/inspector/mountAutoMovieInspectorPage.js +3 -9
  217. package/lib/inspector/mountAutoMovieInspectorPage.js.map +1 -1
  218. package/lib/inspector/mountAutoMovieInspectorPage.mjs +4 -9
  219. package/lib/inspector/mountAutoMovieInspectorPage.mjs.map +1 -1
  220. package/lib/inspector/mountAutoMovieInspectorScene.d.ts +55 -12
  221. package/lib/inspector/mountAutoMovieInspectorScene.js +238 -164
  222. package/lib/inspector/mountAutoMovieInspectorScene.js.map +1 -1
  223. package/lib/inspector/mountAutoMovieInspectorScene.mjs +223 -149
  224. package/lib/inspector/mountAutoMovieInspectorScene.mjs.map +1 -1
  225. package/lib/inspector/placeAutoMovieInspectorLabels.d.ts +29 -0
  226. package/lib/inspector/placeAutoMovieInspectorLabels.js +33 -0
  227. package/lib/inspector/placeAutoMovieInspectorLabels.js.map +1 -0
  228. package/lib/inspector/placeAutoMovieInspectorLabels.mjs +32 -0
  229. package/lib/inspector/placeAutoMovieInspectorLabels.mjs.map +1 -0
  230. package/lib/inspector/readAutoMovieInspectorAddress.d.ts +8 -11
  231. package/lib/inspector/readAutoMovieInspectorAddress.js +8 -11
  232. package/lib/inspector/readAutoMovieInspectorAddress.js.map +1 -1
  233. package/lib/inspector/readAutoMovieInspectorAddress.mjs +8 -11
  234. package/lib/inspector/readAutoMovieInspectorAddress.mjs.map +1 -1
  235. package/lib/inspector/readAutoMovieInspectorFacts.d.ts +17 -0
  236. package/lib/inspector/readAutoMovieInspectorFacts.js +34 -0
  237. package/lib/inspector/readAutoMovieInspectorFacts.js.map +1 -0
  238. package/lib/inspector/readAutoMovieInspectorFacts.mjs +28 -0
  239. package/lib/inspector/readAutoMovieInspectorFacts.mjs.map +1 -0
  240. package/lib/inspector/readsAutoMovieInspectorPlacedScene.d.ts +9 -0
  241. package/lib/inspector/readsAutoMovieInspectorPlacedScene.js +14 -0
  242. package/lib/inspector/readsAutoMovieInspectorPlacedScene.js.map +1 -0
  243. package/lib/inspector/readsAutoMovieInspectorPlacedScene.mjs +14 -0
  244. package/lib/inspector/readsAutoMovieInspectorPlacedScene.mjs.map +1 -0
  245. package/lib/inspector/reduceAutoMovieInspectorState.d.ts +10 -10
  246. package/lib/inspector/reduceAutoMovieInspectorState.js +17 -11
  247. package/lib/inspector/reduceAutoMovieInspectorState.js.map +1 -1
  248. package/lib/inspector/reduceAutoMovieInspectorState.mjs +16 -11
  249. package/lib/inspector/reduceAutoMovieInspectorState.mjs.map +1 -1
  250. package/lib/inspector/releaseAutoMovieInspectorSteps.d.ts +6 -0
  251. package/lib/inspector/releaseAutoMovieInspectorSteps.js +23 -0
  252. package/lib/inspector/releaseAutoMovieInspectorSteps.js.map +1 -0
  253. package/lib/inspector/releaseAutoMovieInspectorSteps.mjs +19 -0
  254. package/lib/inspector/releaseAutoMovieInspectorSteps.mjs.map +1 -0
  255. package/lib/inspector/reportAutoMovieInspectorLabels.d.ts +21 -0
  256. package/lib/inspector/reportAutoMovieInspectorLabels.js +27 -0
  257. package/lib/inspector/reportAutoMovieInspectorLabels.js.map +1 -0
  258. package/lib/inspector/reportAutoMovieInspectorLabels.mjs +30 -0
  259. package/lib/inspector/reportAutoMovieInspectorLabels.mjs.map +1 -0
  260. package/lib/inspector/resolveAutoMovieInspectorCamera.d.ts +22 -0
  261. package/lib/inspector/resolveAutoMovieInspectorCamera.js +34 -0
  262. package/lib/inspector/resolveAutoMovieInspectorCamera.js.map +1 -0
  263. package/lib/inspector/resolveAutoMovieInspectorCamera.mjs +34 -0
  264. package/lib/inspector/resolveAutoMovieInspectorCamera.mjs.map +1 -0
  265. package/lib/inspector/showAutoMovieInspectorFinding.d.ts +25 -0
  266. package/lib/inspector/showAutoMovieInspectorFinding.js +26 -0
  267. package/lib/inspector/showAutoMovieInspectorFinding.js.map +1 -0
  268. package/lib/inspector/showAutoMovieInspectorFinding.mjs +26 -0
  269. package/lib/inspector/showAutoMovieInspectorFinding.mjs.map +1 -0
  270. package/lib/inspector/stopAutoMovieInspectorTime.d.ts +11 -0
  271. package/lib/inspector/stopAutoMovieInspectorTime.js +17 -0
  272. package/lib/inspector/stopAutoMovieInspectorTime.js.map +1 -0
  273. package/lib/inspector/stopAutoMovieInspectorTime.mjs +18 -0
  274. package/lib/inspector/stopAutoMovieInspectorTime.mjs.map +1 -0
  275. package/lib/inspector/writeAutoMovieInspectorInspection.d.ts +6 -0
  276. package/lib/inspector/writeAutoMovieInspectorInspection.js +12 -0
  277. package/lib/inspector/writeAutoMovieInspectorInspection.js.map +1 -0
  278. package/lib/inspector/writeAutoMovieInspectorInspection.mjs +12 -0
  279. package/lib/inspector/writeAutoMovieInspectorInspection.mjs.map +1 -0
  280. package/lib/internal.d.ts +7 -0
  281. package/lib/internal.js +25 -0
  282. package/lib/internal.js.map +1 -0
  283. package/lib/internal.mjs +8 -0
  284. package/lib/mountViewer.d.ts +16 -10
  285. package/lib/mountViewer.js +17 -14
  286. package/lib/mountViewer.js.map +1 -1
  287. package/lib/mountViewer.mjs +18 -12
  288. package/lib/mountViewer.mjs.map +1 -1
  289. package/lib/publishViewerCompletedFrame.d.ts +12 -10
  290. package/lib/publishViewerCompletedFrame.js +11 -9
  291. package/lib/publishViewerCompletedFrame.js.map +1 -1
  292. package/lib/publishViewerCompletedFrame.mjs +11 -9
  293. package/lib/publishViewerCompletedFrame.mjs.map +1 -1
  294. package/lib/redrawViewerCompletedFrame.d.ts +2 -10
  295. package/lib/redrawViewerCompletedFrame.js +4 -12
  296. package/lib/redrawViewerCompletedFrame.js.map +1 -1
  297. package/lib/redrawViewerCompletedFrame.mjs +3 -11
  298. package/lib/redrawViewerCompletedFrame.mjs.map +1 -1
  299. package/lib/releaseMountedViewer.d.ts +5 -9
  300. package/lib/releaseMountedViewer.js +5 -9
  301. package/lib/releaseMountedViewer.js.map +1 -1
  302. package/lib/releaseMountedViewer.mjs +5 -9
  303. package/lib/releaseMountedViewer.mjs.map +1 -1
  304. package/lib/transport/AutoMovieViewerTransport.d.ts +13 -122
  305. package/lib/transport/AutoMovieViewerTransport.js +10 -74
  306. package/lib/transport/AutoMovieViewerTransport.js.map +1 -1
  307. package/lib/transport/AutoMovieViewerTransport.mjs +10 -65
  308. package/lib/transport/AutoMovieViewerTransport.mjs.map +1 -1
  309. package/lib/transport/readAutoMovieReviewInterval.d.ts +3 -10
  310. package/lib/transport/readAutoMovieReviewInterval.js +11 -16
  311. package/lib/transport/readAutoMovieReviewInterval.js.map +1 -1
  312. package/lib/transport/readAutoMovieReviewInterval.mjs +8 -14
  313. package/lib/transport/readAutoMovieReviewInterval.mjs.map +1 -1
  314. package/package.json +12 -8
  315. package/src/IAutoMovieViewerCompletedFrame.ts +21 -11
  316. package/src/IAutoMovieViewerDisplayMetadata.ts +0 -5
  317. package/src/IAutoMovieViewerHandle.ts +3 -25
  318. package/src/IMountViewerOptions.ts +24 -38
  319. package/src/IViewerCameraStateSnapshot.ts +0 -5
  320. package/src/IViewerFrameTransfer.ts +13 -0
  321. package/src/applyCaptureCanvasSize.ts +9 -18
  322. package/src/audio/IAutoMovieAudioCue.ts +3 -8
  323. package/src/audio/planAutoMovieAudioPlayback.ts +9 -23
  324. package/src/audio/playAutoMovieAudioCues.ts +4 -11
  325. package/src/createViewerCameraState.ts +119 -175
  326. package/src/createViewerDisplayClock.ts +4 -12
  327. package/src/createViewerDisplayPublication.ts +7 -15
  328. package/src/createViewerDisplaySave.ts +8 -16
  329. package/src/createViewerFrameControl.ts +16 -24
  330. package/src/createViewerViewportResize.ts +7 -23
  331. package/src/index.ts +1 -0
  332. package/src/inspector/AutoMovieInspector.tsx +183 -20
  333. package/src/inspector/AutoMovieInspectorBeauty.ts +89 -0
  334. package/src/inspector/AutoMovieInspectorDiagnosticLog.ts +235 -0
  335. package/src/inspector/AutoMovieInspectorDiagnosticsPanel.tsx +118 -0
  336. package/src/inspector/AutoMovieInspectorMarksPanel.tsx +26 -34
  337. package/src/inspector/AutoMovieInspectorPlayhead.ts +53 -110
  338. package/src/inspector/AutoMovieInspectorRequestPanel.tsx +57 -29
  339. package/src/inspector/AutoMovieInspectorSelectionPanel.tsx +0 -8
  340. package/src/inspector/AutoMovieInspectorShadePanel.tsx +24 -29
  341. package/src/inspector/AutoMovieInspectorTimePanel.tsx +0 -8
  342. package/src/inspector/AutoMovieInspectorTimeReadout.tsx +4 -10
  343. package/src/inspector/AutoMovieInspectorTransition.ts +178 -0
  344. package/src/inspector/AutoMovieInspectorViewPanel.tsx +0 -8
  345. package/src/inspector/IAutoMovieInspectorAction.ts +57 -94
  346. package/src/inspector/IAutoMovieInspectorLive.ts +62 -0
  347. package/src/inspector/IAutoMovieInspectorPathNode.ts +14 -9
  348. package/src/inspector/IAutoMovieInspectorProps.ts +4 -14
  349. package/src/inspector/IAutoMovieInspectorScene.ts +104 -99
  350. package/src/inspector/IAutoMovieInspectorSceneHost.ts +43 -102
  351. package/src/inspector/IAutoMovieInspectorState.ts +6 -7
  352. package/src/inspector/assertAutoMovieInspectorRaster.ts +23 -0
  353. package/src/inspector/buildAutoMovieInspectorPathTree.ts +9 -10
  354. package/src/inspector/changesAutoMovieObservedScene.ts +30 -0
  355. package/src/inspector/createAutoMovieInspectorAddressWriter.ts +13 -11
  356. package/src/inspector/createAutoMovieInspectorCanvasHost.ts +14 -12
  357. package/src/inspector/createAutoMovieInspectorState.ts +3 -9
  358. package/src/inspector/firstAutoMovieInspectorSecond.ts +13 -0
  359. package/src/inspector/followAutoMovieInspectorSize.ts +32 -0
  360. package/src/inspector/formatAutoMovieInspectorAddress.ts +15 -11
  361. package/src/inspector/formatAutoMovieInspectorCommand.ts +44 -15
  362. package/src/inspector/handleAutoMovieInspectorKey.ts +27 -16
  363. package/src/inspector/index.ts +5 -0
  364. package/src/inspector/inspectAutoMovieInspectorRequest.ts +37 -0
  365. package/src/inspector/installAutoMovieInspectorRequest.ts +50 -0
  366. package/src/inspector/locateAutoMovieInspectorFinding.ts +40 -0
  367. package/src/inspector/messageOfAutoMovieInspectorError.ts +4 -0
  368. package/src/inspector/mountAutoMovieInspectorPage.tsx +7 -8
  369. package/src/inspector/mountAutoMovieInspectorScene.ts +290 -232
  370. package/src/inspector/placeAutoMovieInspectorLabels.ts +53 -0
  371. package/src/inspector/readAutoMovieInspectorAddress.ts +8 -11
  372. package/src/inspector/readAutoMovieInspectorFacts.ts +50 -0
  373. package/src/inspector/readsAutoMovieInspectorPlacedScene.ts +16 -0
  374. package/src/inspector/reduceAutoMovieInspectorState.ts +17 -11
  375. package/src/inspector/releaseAutoMovieInspectorSteps.ts +19 -0
  376. package/src/inspector/reportAutoMovieInspectorLabels.ts +45 -0
  377. package/src/inspector/resolveAutoMovieInspectorCamera.ts +50 -0
  378. package/src/inspector/showAutoMovieInspectorFinding.ts +40 -0
  379. package/src/inspector/stopAutoMovieInspectorTime.ts +19 -0
  380. package/src/inspector/writeAutoMovieInspectorInspection.ts +12 -0
  381. package/src/internal.ts +9 -0
  382. package/src/mountViewer.ts +17 -14
  383. package/src/publishViewerCompletedFrame.ts +14 -10
  384. package/src/redrawViewerCompletedFrame.ts +3 -12
  385. package/src/releaseMountedViewer.ts +5 -9
  386. package/src/transport/AutoMovieViewerTransport.ts +17 -144
  387. package/src/transport/readAutoMovieReviewInterval.ts +15 -16
@@ -1,132 +1,67 @@
1
- import type { IAutoMovieSectionRenderer } from "@automovie/render";
1
+ import type { IAutoMovieFilmIndirectRenderer, IAutoMovieSectionRenderer } from "@automovie/render";
2
2
  import type * as THREE from "three";
3
3
  /**
4
- * What the inspector's scene mount takes from the page: a renderer, the animation-frame clock and the canvas size.
4
+ * What the inspector's scene mount takes from the page: a renderer, the
5
+ * animation-frame clock and the canvas size.
5
6
  *
6
- * `createAutoMovieInspectorCanvasHost` gives the browser's: a `WebGLRenderer` on the canvas, `requestAnimationFrame` and the canvas's layout size. A unit test gives recording doubles, so the mount's lifecycle runs without a browser.
7
- *
8
- * @evidence contracts/development/design.md#principled-representation The three things a render loop needs from its platform: a drawing surface, a frame clock in milliseconds and the drawing size in CSS pixels with the device pixel ratio.
9
- * @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the viewer and read only by `mountAutoMovieInspectorScene`; the renderer is the structural subset of `THREE.WebGLRenderer` the mount calls, extending render's own section-renderer seam.
10
- * @evidence contracts/development/design.md#prohibited-design-shortcuts Structural rather than `THREE.WebGLRenderer`, because demanding the whole renderer would put a live WebGL context between the lifecycle and any check of it; the real renderer satisfies it as it stands.
11
- * @evidence contracts/development/common.md#meaningful-documentation States who supplies it in a page and in a test, and what each member is.
7
+ * `createAutoMovieInspectorCanvasHost` gives the browser's: a `WebGLRenderer`
8
+ * on the canvas, `requestAnimationFrame` and the canvas's layout size. A unit
9
+ * test gives recording doubles, so the mount's lifecycle runs without a
10
+ * browser.
12
11
  */
13
12
  export interface IAutoMovieInspectorSceneHost {
14
13
  /**
15
- * Create the renderer one mount draws with; the mount disposes it when it ends.
16
- *
17
- * @evidence contracts/development/common.md#meaningful-documentation States ownership of the result.
18
- * @evidenceExclude contracts/development/implementation.md#principled-implementation A signature has no body; the host that implements it answers.
19
- * @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A signature has no body; the host that implements it answers.
20
- * @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A signature has no body; the host that implements it answers.
21
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms A signature has no body; the host that implements it answers.
22
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A signature has no body; the host that implements it answers.
23
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The mount owns the renderer and calls its `dispose` once.
14
+ * Create the renderer one mount draws with; the mount disposes it when it
15
+ * ends.
24
16
  */
25
- createRenderer(): IAutoMovieInspectorSceneHost.IRenderer;
17
+ createRenderer(): IAutoMovieInspectorSceneHost.ICreated;
26
18
  /**
27
- * Run `callback` once before the next repaint with the frame's time in milliseconds, and return a handle `cancelFrame` takes.
28
- *
29
- * @evidence contracts/development/common.md#meaningful-documentation States the unit and the handle.
30
- * @evidenceExclude contracts/development/implementation.md#principled-implementation A signature has no body; the host that implements it answers.
31
- * @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A signature has no body; the host that implements it answers.
32
- * @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A signature has no body; the host that implements it answers.
33
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms A signature has no body; the host that implements it answers.
34
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A signature has no body; the host that implements it answers.
35
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The mount holds at most one pending handle and cancels it when it ends.
19
+ * Run `callback` once before the next repaint with the frame's time in
20
+ * milliseconds, and return a handle `cancelFrame` takes.
36
21
  */
37
22
  requestFrame(callback: (nowMs: number) => void): number;
38
- /**
39
- * Cancel a pending frame so its callback never runs.
40
- *
41
- * @evidence contracts/development/common.md#meaningful-documentation States the effect.
42
- * @evidenceExclude contracts/development/implementation.md#principled-implementation A signature has no body; the host that implements it answers.
43
- * @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A signature has no body; the host that implements it answers.
44
- * @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A signature has no body; the host that implements it answers.
45
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms A signature has no body; the host that implements it answers.
46
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A signature has no body; the host that implements it answers.
47
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A signature has no body; the host that implements it answers.
48
- */
23
+ /** Cancel a pending frame so its callback never runs. */
49
24
  cancelFrame(handle: number): void;
50
25
  /**
51
- * The size to draw at now: CSS pixels of the drawing area and the device pixel ratio.
52
- *
53
- * @evidence contracts/development/common.md#meaningful-documentation States the units.
54
- * @evidenceExclude contracts/development/implementation.md#principled-implementation A signature has no body; the host that implements it answers.
55
- * @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A signature has no body; the host that implements it answers.
56
- * @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A signature has no body; the host that implements it answers.
57
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms A signature has no body; the host that implements it answers.
58
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A signature has no body; the host that implements it answers.
59
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A signature has no body; the host that implements it answers.
26
+ * The size to draw at now: CSS pixels of the drawing area and the device
27
+ * pixel ratio.
60
28
  */
61
29
  size(): IAutoMovieInspectorSceneHost.ISize;
62
30
  }
63
31
  export declare namespace IAutoMovieInspectorSceneHost {
64
- /**
65
- * The part of `THREE.WebGLRenderer` the inspector's mount calls.
66
- *
67
- * @evidence contracts/development/design.md#principled-representation Drawing, sizing, release and the section clipping switch, with three.js's own signatures, so the real renderer is assignable as it is.
68
- * @evidence contracts/development/design.md#minimal-and-owned-surface Four methods and the inherited switch, each called by the mount.
69
- * @evidence contracts/development/design.md#prohibited-design-shortcuts No context or capability member, so a recording double needs no WebGL.
70
- * @evidence contracts/development/common.md#meaningful-documentation States what each member is for.
71
- */
72
- interface IRenderer extends IAutoMovieSectionRenderer {
32
+ /** A created renderer and, when it is a WebGL one, that renderer as such. */
33
+ interface ICreated {
34
+ /** The renderer the mount draws with. */
35
+ renderer: IRenderer;
73
36
  /**
74
- * Draw a scene through a camera into the canvas.
75
- *
76
- * @evidence contracts/development/common.md#meaningful-documentation States the effect.
77
- * @evidenceExclude contracts/development/implementation.md#principled-implementation three.js's own method.
78
- * @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure three.js's own method.
79
- * @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts three.js's own method.
80
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms three.js's own method.
81
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work three.js's own method.
82
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources three.js's own method.
37
+ * The same renderer as a `THREE.WebGLRenderer`, or null for one that is
38
+ * not: a subject's render-target work and a transition's compositing need
39
+ * its native targets.
83
40
  */
41
+ compositor: THREE.WebGLRenderer | null;
42
+ }
43
+ /**
44
+ * The part of `THREE.WebGLRenderer` the inspector's mount calls, including
45
+ * what `AutoMovieFilmResponseStage` and `AutoMovieFilmIndirectStage` drive
46
+ * when a subject supplies optics and shading.
47
+ */
48
+ interface IRenderer extends IAutoMovieSectionRenderer, IAutoMovieFilmIndirectRenderer {
49
+ /** Draw a scene through a camera into the canvas. */
84
50
  render(scene: THREE.Object3D, camera: THREE.Camera): void;
85
- /**
86
- * Set the device pixel ratio the drawing buffer is scaled by.
87
- *
88
- * @evidence contracts/development/common.md#meaningful-documentation States the effect.
89
- * @evidenceExclude contracts/development/implementation.md#principled-implementation three.js's own method.
90
- * @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure three.js's own method.
91
- * @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts three.js's own method.
92
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms three.js's own method.
93
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work three.js's own method.
94
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources three.js's own method.
95
- */
51
+ /** Set the device pixel ratio the drawing buffer is scaled by. */
96
52
  setPixelRatio(ratio: number): void;
97
53
  /**
98
- * Size the drawing buffer in CSS pixels; `updateStyle` false leaves the canvas's layout to the page.
99
- *
100
- * @evidence contracts/development/common.md#meaningful-documentation States the unit and the style switch.
101
- * @evidenceExclude contracts/development/implementation.md#principled-implementation three.js's own method.
102
- * @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure three.js's own method.
103
- * @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts three.js's own method.
104
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms three.js's own method.
105
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work three.js's own method.
106
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources three.js's own method.
54
+ * Size the drawing buffer in CSS pixels; `updateStyle` false leaves the
55
+ * canvas's layout to the page.
107
56
  */
108
57
  setSize(width: number, height: number, updateStyle?: boolean): void;
109
58
  /**
110
- * Release the renderer's GPU resources. The context is not lost, so a later renderer on the same canvas draws.
111
- *
112
- * @evidence contracts/development/common.md#meaningful-documentation States what is released and what is kept.
113
- * @evidenceExclude contracts/development/implementation.md#principled-implementation three.js's own method.
114
- * @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure three.js's own method.
115
- * @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts three.js's own method.
116
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms three.js's own method.
117
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work three.js's own method.
118
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources three.js's own method.
59
+ * Release the renderer's GPU resources. The context is not lost, so a later
60
+ * renderer on the same canvas draws.
119
61
  */
120
62
  dispose(): void;
121
63
  }
122
- /**
123
- * The drawing size the host reports.
124
- *
125
- * @evidence contracts/development/design.md#principled-representation CSS pixels and a device pixel ratio, the two numbers a WebGL drawing buffer is sized from.
126
- * @evidence contracts/development/design.md#minimal-and-owned-surface Three numbers.
127
- * @evidence contracts/development/design.md#prohibited-design-shortcuts That they are positive and finite is checked by the mount, which skips a frame otherwise.
128
- * @evidence contracts/development/common.md#meaningful-documentation States each unit.
129
- */
64
+ /** The drawing size the host reports. */
130
65
  interface ISize {
131
66
  /** Drawing width, CSS pixels. */
132
67
  width: number;
@@ -1,15 +1,14 @@
1
1
  import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
2
2
  /**
3
- * What the inspector holds between edits: the one request every control edits and the canvas draws, and the last refusal.
4
- *
5
- * @evidence contracts/development/design.md#principled-representation The page's whole state is one capture plan request, so the address, the command and the picture all derive from it; the refusal is text because it is only shown.
6
- * @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the viewer, produced by `createAutoMovieInspectorState` and `reduceAutoMovieInspectorState`, read by `AutoMovieInspector`. The request is render's own plan request.
7
- * @evidence contracts/development/design.md#prohibited-design-shortcuts A refused edit keeps the previous request beside its reason, so no half-applied request exists.
8
- * @evidence contracts/development/common.md#meaningful-documentation States what each member holds and what null means.
3
+ * What the inspector holds between edits: the one request every control edits
4
+ * and the canvas draws, and the last refusal.
9
5
  */
10
6
  export interface IAutoMovieInspectorState {
11
7
  /** The request drawn, as the plan grammar read it. */
12
8
  request: IAutoMovieCapturePlanRequest;
13
- /** Why the last edit was refused, naming the key, or null when it was accepted. */
9
+ /**
10
+ * Why the last edit was refused, naming the key, or null when it was
11
+ * accepted.
12
+ */
14
13
  error: string | null;
15
14
  }
@@ -0,0 +1,7 @@
1
+ import type { IAutoMovieDrawScene } from "@automovie/render";
2
+ /**
3
+ * Refuse, naming the subject, a subject whose duration, frame rate, width or
4
+ * height is not positive, before the mount gives the playhead its duration: no
5
+ * clock or picture follows from it.
6
+ */
7
+ export declare function assertAutoMovieInspectorRaster(name: string, instance: Pick<IAutoMovieDrawScene, "durationSeconds" | "fps" | "width" | "height">): void;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assertAutoMovieInspectorRaster = assertAutoMovieInspectorRaster;
4
+ /**
5
+ * Refuse, naming the subject, a subject whose duration, frame rate, width or
6
+ * height is not positive, before the mount gives the playhead its duration: no
7
+ * clock or picture follows from it.
8
+ */
9
+ function assertAutoMovieInspectorRaster(name, instance) {
10
+ for (const [field, value] of [
11
+ ["duration", instance.durationSeconds],
12
+ ["fps", instance.fps],
13
+ ["width", instance.width],
14
+ ["height", instance.height],
15
+ ])
16
+ if (!(value > 0))
17
+ throw new Error(`Subject "${name}" ${field} ${value} is not positive`);
18
+ }
19
+ //# sourceMappingURL=assertAutoMovieInspectorRaster.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertAutoMovieInspectorRaster.js","sourceRoot":"","sources":["../../src/inspector/assertAutoMovieInspectorRaster.ts"],"names":[],"mappings":";;;AAEA;;;;GAIG;AACH,wCACE,IAAY,EACZ,QAGC;IAED,KAAK,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI;QAC3B,CAAC,UAAU,EAAE,QAAQ,CAAC,eAAe,CAAC;QACtC,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;QACrB,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC;QACzB,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC;KACnB;QACR,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC;YACd,MAAM,IAAI,KAAK,CAAC,YAAY,IAAI,KAAK,KAAK,IAAI,KAAK,kBAAkB,CAAC,CAAC;AAC7E,CAAC"}
@@ -0,0 +1,17 @@
1
+ // src/inspector/assertAutoMovieInspectorRaster.ts
2
+ /**
3
+ * Refuse, naming the subject, a subject whose duration, frame rate, width or
4
+ * height is not positive, before the mount gives the playhead its duration: no
5
+ * clock or picture follows from it.
6
+ */
7
+ function assertAutoMovieInspectorRaster(name, instance) {
8
+ for (const [field, value] of [
9
+ ["duration", instance.durationSeconds],
10
+ ["fps", instance.fps],
11
+ ["width", instance.width],
12
+ ["height", instance.height]
13
+ ]) if (!(value > 0)) throw new Error(`Subject "${name}" ${field} ${value} is not positive`);
14
+ }
15
+ export { assertAutoMovieInspectorRaster };
16
+
17
+ //# sourceMappingURL=assertAutoMovieInspectorRaster.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertAutoMovieInspectorRaster.mjs","names":[],"sources":["../../src/inspector/assertAutoMovieInspectorRaster.ts"],"sourcesContent":["import type { IAutoMovieDrawScene } from \"@automovie/render\";\n\n/**\n * Refuse, naming the subject, a subject whose duration, frame rate, width or\n * height is not positive, before the mount gives the playhead its duration: no\n * clock or picture follows from it.\n */\nexport function assertAutoMovieInspectorRaster(\n name: string,\n instance: Pick<\n IAutoMovieDrawScene,\n \"durationSeconds\" | \"fps\" | \"width\" | \"height\"\n >,\n): void {\n for (const [field, value] of [\n [\"duration\", instance.durationSeconds],\n [\"fps\", instance.fps],\n [\"width\", instance.width],\n [\"height\", instance.height],\n ] as const)\n if (!(value > 0))\n throw new Error(`Subject \"${name}\" ${field} ${value} is not positive`);\n}\n"],"mappings":";;;;;;AAOA,SAAgB,+BACd,MACA,UAIM;CACN,KAAK,MAAM,CAAC,OAAO,UAAU;EAC3B,CAAC,YAAY,SAAS,eAAe;EACrC,CAAC,OAAO,SAAS,GAAG;EACpB,CAAC,SAAS,SAAS,KAAK;EACxB,CAAC,UAAU,SAAS,MAAM;CAC5B,GACE,IAAI,EAAE,QAAQ,IACZ,MAAM,IAAI,MAAM,YAAY,KAAK,IAAI,MAAM,GAAG,MAAM,iBAAiB;AAC3E"}
@@ -2,18 +2,17 @@ import type { IAutoMovieInspectorPathNode } from "./IAutoMovieInspectorPathNode.
2
2
  /**
3
3
  * Arrange identity paths into the tree of their names, for the selection panel.
4
4
  *
5
- * Each distinct path becomes one node marked `drawn`, and each prefix of it a node above, created once however many paths share it. Siblings keep the order in which their first path appeared, so paths listed in scene order give the scene's order, and a path repeated later, as two objects that share a path are, adds nothing. The empty path, which an object with no named ancestor has, becomes one top-level node with the empty name and no pattern.
5
+ * Each distinct path becomes one node marked `drawn`, and each prefix of it a
6
+ * node above, created once however many paths share it. Siblings keep the order
7
+ * in which their first path appeared, so paths listed in scene order give the
8
+ * scene's order, and a path repeated later, as two objects that share a path
9
+ * are, adds nothing. The empty path, which an object with no named ancestor
10
+ * has, becomes one top-level node with the empty name and no pattern.
6
11
  *
7
12
  * ```ts
8
- * const tree = buildAutoMovieInspectorPathTree(listAutoMovieInspectionPaths(scene).map(({ path }) => path));
13
+ * const tree = buildAutoMovieInspectorPathTree(
14
+ * listAutoMovieInspectionPaths(scene).map(({ path }) => path),
15
+ * );
9
16
  * ```
10
- *
11
- * @evidence contracts/development/common.md#meaningful-documentation States what becomes a node, the order, what a repeated path does, the empty path and each node's pattern rule by reference to the node type.
12
- * @evidence contracts/development/implementation.md#principled-implementation A path is split on `/` as the path grammar splits it, so a node's prefix is a path the grammar can name; an anchored pattern (one holding `/`) selects that prefix and its subtree, which is why a top-level name is written `<name>/**`.
13
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One walk per path down a map from prefix to node, creating what is missing.
14
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No name is treated specially; a name holding a wildcard character stays a wildcard in its pattern, because the grammar has no escape.
15
- * @evidence contracts/development/implementation.md#efficient-algorithms One hashed lookup per name of every path; each lookup key is the prefix built by appending one name, so the cost is the total length of the prefixes, which for paths a few names deep is a small multiple of their own length.
16
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of one list.
17
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh tree and keeps nothing.
18
17
  */
19
18
  export declare function buildAutoMovieInspectorPathTree(paths: readonly string[]): IAutoMovieInspectorPathNode[];
@@ -4,19 +4,18 @@ exports.buildAutoMovieInspectorPathTree = buildAutoMovieInspectorPathTree;
4
4
  /**
5
5
  * Arrange identity paths into the tree of their names, for the selection panel.
6
6
  *
7
- * Each distinct path becomes one node marked `drawn`, and each prefix of it a node above, created once however many paths share it. Siblings keep the order in which their first path appeared, so paths listed in scene order give the scene's order, and a path repeated later, as two objects that share a path are, adds nothing. The empty path, which an object with no named ancestor has, becomes one top-level node with the empty name and no pattern.
7
+ * Each distinct path becomes one node marked `drawn`, and each prefix of it a
8
+ * node above, created once however many paths share it. Siblings keep the order
9
+ * in which their first path appeared, so paths listed in scene order give the
10
+ * scene's order, and a path repeated later, as two objects that share a path
11
+ * are, adds nothing. The empty path, which an object with no named ancestor
12
+ * has, becomes one top-level node with the empty name and no pattern.
8
13
  *
9
14
  * ```ts
10
- * const tree = buildAutoMovieInspectorPathTree(listAutoMovieInspectionPaths(scene).map(({ path }) => path));
15
+ * const tree = buildAutoMovieInspectorPathTree(
16
+ * listAutoMovieInspectionPaths(scene).map(({ path }) => path),
17
+ * );
11
18
  * ```
12
- *
13
- * @evidence contracts/development/common.md#meaningful-documentation States what becomes a node, the order, what a repeated path does, the empty path and each node's pattern rule by reference to the node type.
14
- * @evidence contracts/development/implementation.md#principled-implementation A path is split on `/` as the path grammar splits it, so a node's prefix is a path the grammar can name; an anchored pattern (one holding `/`) selects that prefix and its subtree, which is why a top-level name is written `<name>/**`.
15
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One walk per path down a map from prefix to node, creating what is missing.
16
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No name is treated specially; a name holding a wildcard character stays a wildcard in its pattern, because the grammar has no escape.
17
- * @evidence contracts/development/implementation.md#efficient-algorithms One hashed lookup per name of every path; each lookup key is the prefix built by appending one name, so the cost is the total length of the prefixes, which for paths a few names deep is a small multiple of their own length.
18
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of one list.
19
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh tree and keeps nothing.
20
19
  */
21
20
  function buildAutoMovieInspectorPathTree(paths) {
22
21
  const roots = [];
@@ -1 +1 @@
1
- {"version":3,"file":"buildAutoMovieInspectorPathTree.js","sourceRoot":"","sources":["../../src/inspector/buildAutoMovieInspectorPathTree.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;;;GAgBG;AACH,yCACE,KAAwB;IAExB,MAAM,KAAK,GAAkC,EAAE,CAAC;IAChD,MAAM,KAAK,GAA6C,IAAI,GAAG,EAG5D,CAAC;IACJ,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,KAAK,GAAa,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC7D,IAAI,QAAQ,GAAkC,KAAK,CAAC;QACpD,IAAI,IAA6C,CAAC;QAClD,IAAI,MAAM,GAAW,EAAE,CAAC;QACxB,KAAK,IAAI,KAAK,GAAW,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;YAC1D,MAAM,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,KAAK,CAAC,KAAK,CAAE,EAAE,CAAC;YAChE,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACzB,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;gBACvB,IAAI,GAAG;oBACL,IAAI,EAAE,KAAK,CAAC,KAAK,CAAE;oBACnB,IAAI,EAAE,MAAM;oBACZ,OAAO,EAAE,MAAM,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,KAAK,CAAC,CAAC,CAAC,MAAM;oBACrE,KAAK,EAAE,KAAK;oBACZ,QAAQ,EAAE,EAAE;iBACb,CAAC;gBACF,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;gBACxB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;YACD,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC3B,CAAC;QACD,IAAK,CAAC,KAAK,GAAG,IAAI,CAAC;IACrB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
1
+ {"version":3,"file":"buildAutoMovieInspectorPathTree.js","sourceRoot":"","sources":["../../src/inspector/buildAutoMovieInspectorPathTree.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;;GAeG;AACH,yCACE,KAAwB;IAExB,MAAM,KAAK,GAAkC,EAAE,CAAC;IAChD,MAAM,KAAK,GAA6C,IAAI,GAAG,EAG5D,CAAC;IACJ,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,KAAK,GAAa,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC7D,IAAI,QAAQ,GAAkC,KAAK,CAAC;QACpD,IAAI,IAA6C,CAAC;QAClD,IAAI,MAAM,GAAW,EAAE,CAAC;QACxB,KAAK,IAAI,KAAK,GAAW,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;YAC1D,MAAM,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,KAAK,CAAC,KAAK,CAAE,EAAE,CAAC;YAChE,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACzB,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;gBACvB,IAAI,GAAG;oBACL,IAAI,EAAE,KAAK,CAAC,KAAK,CAAE;oBACnB,IAAI,EAAE,MAAM;oBACZ,OAAO,EAAE,MAAM,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,KAAK,CAAC,CAAC,CAAC,MAAM;oBACrE,KAAK,EAAE,KAAK;oBACZ,QAAQ,EAAE,EAAE;iBACb,CAAC;gBACF,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;gBACxB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;YACD,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC3B,CAAC;QACD,IAAK,CAAC,KAAK,GAAG,IAAI,CAAC;IACrB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -2,19 +2,18 @@
2
2
  /**
3
3
  * Arrange identity paths into the tree of their names, for the selection panel.
4
4
  *
5
- * Each distinct path becomes one node marked `drawn`, and each prefix of it a node above, created once however many paths share it. Siblings keep the order in which their first path appeared, so paths listed in scene order give the scene's order, and a path repeated later, as two objects that share a path are, adds nothing. The empty path, which an object with no named ancestor has, becomes one top-level node with the empty name and no pattern.
5
+ * Each distinct path becomes one node marked `drawn`, and each prefix of it a
6
+ * node above, created once however many paths share it. Siblings keep the order
7
+ * in which their first path appeared, so paths listed in scene order give the
8
+ * scene's order, and a path repeated later, as two objects that share a path
9
+ * are, adds nothing. The empty path, which an object with no named ancestor
10
+ * has, becomes one top-level node with the empty name and no pattern.
6
11
  *
7
12
  * ```ts
8
- * const tree = buildAutoMovieInspectorPathTree(listAutoMovieInspectionPaths(scene).map(({ path }) => path));
13
+ * const tree = buildAutoMovieInspectorPathTree(
14
+ * listAutoMovieInspectionPaths(scene).map(({ path }) => path),
15
+ * );
9
16
  * ```
10
- *
11
- * @evidence contracts/development/common.md#meaningful-documentation States what becomes a node, the order, what a repeated path does, the empty path and each node's pattern rule by reference to the node type.
12
- * @evidence contracts/development/implementation.md#principled-implementation A path is split on `/` as the path grammar splits it, so a node's prefix is a path the grammar can name; an anchored pattern (one holding `/`) selects that prefix and its subtree, which is why a top-level name is written `<name>/**`.
13
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One walk per path down a map from prefix to node, creating what is missing.
14
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No name is treated specially; a name holding a wildcard character stays a wildcard in its pattern, because the grammar has no escape.
15
- * @evidence contracts/development/implementation.md#efficient-algorithms One hashed lookup per name of every path; each lookup key is the prefix built by appending one name, so the cost is the total length of the prefixes, which for paths a few names deep is a small multiple of their own length.
16
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of one list.
17
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh tree and keeps nothing.
18
17
  */
19
18
  function buildAutoMovieInspectorPathTree(paths) {
20
19
  const roots = [];
@@ -1 +1 @@
1
- {"version":3,"file":"buildAutoMovieInspectorPathTree.mjs","names":[],"sources":["../../src/inspector/buildAutoMovieInspectorPathTree.ts"],"sourcesContent":["import type { IAutoMovieInspectorPathNode } from \"./IAutoMovieInspectorPathNode.js\";\n\n/**\n * Arrange identity paths into the tree of their names, for the selection panel.\n *\n * Each distinct path becomes one node marked `drawn`, and each prefix of it a node above, created once however many paths share it. Siblings keep the order in which their first path appeared, so paths listed in scene order give the scene's order, and a path repeated later, as two objects that share a path are, adds nothing. The empty path, which an object with no named ancestor has, becomes one top-level node with the empty name and no pattern.\n *\n * ```ts\n * const tree = buildAutoMovieInspectorPathTree(listAutoMovieInspectionPaths(scene).map(({ path }) => path));\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation States what becomes a node, the order, what a repeated path does, the empty path and each node's pattern rule by reference to the node type.\n * @evidence contracts/development/implementation.md#principled-implementation A path is split on `/` as the path grammar splits it, so a node's prefix is a path the grammar can name; an anchored pattern (one holding `/`) selects that prefix and its subtree, which is why a top-level name is written `<name>/**`.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One walk per path down a map from prefix to node, creating what is missing.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No name is treated specially; a name holding a wildcard character stays a wildcard in its pattern, because the grammar has no escape.\n * @evidence contracts/development/implementation.md#efficient-algorithms One hashed lookup per name of every path; each lookup key is the prefix built by appending one name, so the cost is the total length of the prefixes, which for paths a few names deep is a small multiple of their own length.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of one list.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh tree and keeps nothing.\n */\nexport function buildAutoMovieInspectorPathTree(\n paths: readonly string[],\n): IAutoMovieInspectorPathNode[] {\n const roots: IAutoMovieInspectorPathNode[] = [];\n const nodes: Map<string, IAutoMovieInspectorPathNode> = new Map<\n string,\n IAutoMovieInspectorPathNode\n >();\n for (const path of paths) {\n const names: string[] = path === \"\" ? [\"\"] : path.split(\"/\");\n let siblings: IAutoMovieInspectorPathNode[] = roots;\n let node: IAutoMovieInspectorPathNode | undefined;\n let prefix: string = \"\";\n for (let depth: number = 0; depth < names.length; depth++) {\n prefix = depth === 0 ? names[0]! : `${prefix}/${names[depth]!}`;\n node = nodes.get(prefix);\n if (node === undefined) {\n node = {\n name: names[depth]!,\n path: prefix,\n pattern: prefix === \"\" ? null : depth === 0 ? `${prefix}/**` : prefix,\n drawn: false,\n children: [],\n };\n nodes.set(prefix, node);\n siblings.push(node);\n }\n siblings = node.children;\n }\n node!.drawn = true;\n }\n return roots;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,SAAgB,gCACd,OAC+B;CAC/B,MAAM,QAAuC,CAAC;CAC9C,MAAM,wBAAkD,IAAI,IAG1D;CACF,KAAK,MAAM,QAAQ,OAAO;EACxB,MAAM,QAAkB,SAAS,KAAK,CAAC,EAAE,IAAI,KAAK,MAAM,GAAG;EAC3D,IAAI,WAA0C;EAC9C,IAAI;EACJ,IAAI,SAAiB;EACrB,KAAK,IAAI,QAAgB,GAAG,QAAQ,MAAM,QAAQ,SAAS;GACzD,SAAS,UAAU,IAAI,MAAM,KAAM,GAAG,OAAO,GAAG,MAAM;GACtD,OAAO,MAAM,IAAI,MAAM;GACvB,IAAI,SAAS,KAAA,GAAW;IACtB,OAAO;KACL,MAAM,MAAM;KACZ,MAAM;KACN,SAAS,WAAW,KAAK,OAAO,UAAU,IAAI,GAAG,OAAO,OAAO;KAC/D,OAAO;KACP,UAAU,CAAC;IACb;IACA,MAAM,IAAI,QAAQ,IAAI;IACtB,SAAS,KAAK,IAAI;GACpB;GACA,WAAW,KAAK;EAClB;EACA,KAAM,QAAQ;CAChB;CACA,OAAO;AACT"}
1
+ {"version":3,"file":"buildAutoMovieInspectorPathTree.mjs","names":[],"sources":["../../src/inspector/buildAutoMovieInspectorPathTree.ts"],"sourcesContent":["import type { IAutoMovieInspectorPathNode } from \"./IAutoMovieInspectorPathNode.js\";\n\n/**\n * Arrange identity paths into the tree of their names, for the selection panel.\n *\n * Each distinct path becomes one node marked `drawn`, and each prefix of it a\n * node above, created once however many paths share it. Siblings keep the order\n * in which their first path appeared, so paths listed in scene order give the\n * scene's order, and a path repeated later, as two objects that share a path\n * are, adds nothing. The empty path, which an object with no named ancestor\n * has, becomes one top-level node with the empty name and no pattern.\n *\n * ```ts\n * const tree = buildAutoMovieInspectorPathTree(\n * listAutoMovieInspectionPaths(scene).map(({ path }) => path),\n * );\n * ```\n */\nexport function buildAutoMovieInspectorPathTree(\n paths: readonly string[],\n): IAutoMovieInspectorPathNode[] {\n const roots: IAutoMovieInspectorPathNode[] = [];\n const nodes: Map<string, IAutoMovieInspectorPathNode> = new Map<\n string,\n IAutoMovieInspectorPathNode\n >();\n for (const path of paths) {\n const names: string[] = path === \"\" ? [\"\"] : path.split(\"/\");\n let siblings: IAutoMovieInspectorPathNode[] = roots;\n let node: IAutoMovieInspectorPathNode | undefined;\n let prefix: string = \"\";\n for (let depth: number = 0; depth < names.length; depth++) {\n prefix = depth === 0 ? names[0]! : `${prefix}/${names[depth]!}`;\n node = nodes.get(prefix);\n if (node === undefined) {\n node = {\n name: names[depth]!,\n path: prefix,\n pattern: prefix === \"\" ? null : depth === 0 ? `${prefix}/**` : prefix,\n drawn: false,\n children: [],\n };\n nodes.set(prefix, node);\n siblings.push(node);\n }\n siblings = node.children;\n }\n node!.drawn = true;\n }\n return roots;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAkBA,SAAgB,gCACd,OAC+B;CAC/B,MAAM,QAAuC,CAAC;CAC9C,MAAM,wBAAkD,IAAI,IAG1D;CACF,KAAK,MAAM,QAAQ,OAAO;EACxB,MAAM,QAAkB,SAAS,KAAK,CAAC,EAAE,IAAI,KAAK,MAAM,GAAG;EAC3D,IAAI,WAA0C;EAC9C,IAAI;EACJ,IAAI,SAAiB;EACrB,KAAK,IAAI,QAAgB,GAAG,QAAQ,MAAM,QAAQ,SAAS;GACzD,SAAS,UAAU,IAAI,MAAM,KAAM,GAAG,OAAO,GAAG,MAAM;GACtD,OAAO,MAAM,IAAI,MAAM;GACvB,IAAI,SAAS,KAAA,GAAW;IACtB,OAAO;KACL,MAAM,MAAM;KACZ,MAAM;KACN,SAAS,WAAW,KAAK,OAAO,UAAU,IAAI,GAAG,OAAO,OAAO;KAC/D,OAAO;KACP,UAAU,CAAC;IACb;IACA,MAAM,IAAI,QAAQ,IAAI;IACtB,SAAS,KAAK,IAAI;GACpB;GACA,WAAW,KAAK;EAClB;EACA,KAAM,QAAQ;CAChB;CACA,OAAO;AACT"}
@@ -0,0 +1,16 @@
1
+ import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
2
+ /**
3
+ * Whether applying an inspection changes scene state that a placed observation
4
+ * reads.
5
+ *
6
+ * `applyAutoMovieInspection` takes unselected objects off their layers
7
+ * (`parts`, `hide`, `surface` off), overrides materials (`shade` other than
8
+ * beauty, `color`), adds mark geometry to its overlay group (`marks`, `trail`)
9
+ * and gives materials a clipping plane (`section`). An inspection with none of
10
+ * these leaves only its empty overlay group and its screen-space labels, which
11
+ * no observer reads, so the scene it leaves can be observed as placed.
12
+ *
13
+ * @param inspection The inspection of a request.
14
+ * @returns True when the scene must be restored before an observation.
15
+ */
16
+ export declare function changesAutoMovieObservedScene(inspection: IAutoMovieCapturePlanRequest["inspection"]): boolean;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.changesAutoMovieObservedScene = changesAutoMovieObservedScene;
4
+ /**
5
+ * Whether applying an inspection changes scene state that a placed observation
6
+ * reads.
7
+ *
8
+ * `applyAutoMovieInspection` takes unselected objects off their layers
9
+ * (`parts`, `hide`, `surface` off), overrides materials (`shade` other than
10
+ * beauty, `color`), adds mark geometry to its overlay group (`marks`, `trail`)
11
+ * and gives materials a clipping plane (`section`). An inspection with none of
12
+ * these leaves only its empty overlay group and its screen-space labels, which
13
+ * no observer reads, so the scene it leaves can be observed as placed.
14
+ *
15
+ * @param inspection The inspection of a request.
16
+ * @returns True when the scene must be restored before an observation.
17
+ */
18
+ function changesAutoMovieObservedScene(inspection) {
19
+ return (inspection.parts.length !== 0 ||
20
+ inspection.hide.length !== 0 ||
21
+ !inspection.surface ||
22
+ inspection.shade !== "beauty" ||
23
+ inspection.color.length !== 0 ||
24
+ inspection.marks.length !== 0 ||
25
+ inspection.trail.length !== 0 ||
26
+ inspection.section !== null);
27
+ }
28
+ //# sourceMappingURL=changesAutoMovieObservedScene.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changesAutoMovieObservedScene.js","sourceRoot":"","sources":["../../src/inspector/changesAutoMovieObservedScene.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;GAaG;AACH,uCACE,UAAsD;IAEtD,OAAO,CACL,UAAU,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;QAC7B,UAAU,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC;QAC5B,CAAC,UAAU,CAAC,OAAO;QACnB,UAAU,CAAC,KAAK,KAAK,QAAQ;QAC7B,UAAU,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;QAC7B,UAAU,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;QAC7B,UAAU,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;QAC7B,UAAU,CAAC,OAAO,KAAK,IAAI,CAC5B,CAAC;AACJ,CAAC"}
@@ -0,0 +1,21 @@
1
+ // src/inspector/changesAutoMovieObservedScene.ts
2
+ /**
3
+ * Whether applying an inspection changes scene state that a placed observation
4
+ * reads.
5
+ *
6
+ * `applyAutoMovieInspection` takes unselected objects off their layers
7
+ * (`parts`, `hide`, `surface` off), overrides materials (`shade` other than
8
+ * beauty, `color`), adds mark geometry to its overlay group (`marks`, `trail`)
9
+ * and gives materials a clipping plane (`section`). An inspection with none of
10
+ * these leaves only its empty overlay group and its screen-space labels, which
11
+ * no observer reads, so the scene it leaves can be observed as placed.
12
+ *
13
+ * @param inspection The inspection of a request.
14
+ * @returns True when the scene must be restored before an observation.
15
+ */
16
+ function changesAutoMovieObservedScene(inspection) {
17
+ return inspection.parts.length !== 0 || inspection.hide.length !== 0 || !inspection.surface || inspection.shade !== "beauty" || inspection.color.length !== 0 || inspection.marks.length !== 0 || inspection.trail.length !== 0 || inspection.section !== null;
18
+ }
19
+ export { changesAutoMovieObservedScene };
20
+
21
+ //# sourceMappingURL=changesAutoMovieObservedScene.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changesAutoMovieObservedScene.mjs","names":[],"sources":["../../src/inspector/changesAutoMovieObservedScene.ts"],"sourcesContent":["import type { IAutoMovieCapturePlanRequest } from \"@automovie/interface\";\n\n/**\n * Whether applying an inspection changes scene state that a placed observation\n * reads.\n *\n * `applyAutoMovieInspection` takes unselected objects off their layers\n * (`parts`, `hide`, `surface` off), overrides materials (`shade` other than\n * beauty, `color`), adds mark geometry to its overlay group (`marks`, `trail`)\n * and gives materials a clipping plane (`section`). An inspection with none of\n * these leaves only its empty overlay group and its screen-space labels, which\n * no observer reads, so the scene it leaves can be observed as placed.\n *\n * @param inspection The inspection of a request.\n * @returns True when the scene must be restored before an observation.\n */\nexport function changesAutoMovieObservedScene(\n inspection: IAutoMovieCapturePlanRequest[\"inspection\"],\n): boolean {\n return (\n inspection.parts.length !== 0 ||\n inspection.hide.length !== 0 ||\n !inspection.surface ||\n inspection.shade !== \"beauty\" ||\n inspection.color.length !== 0 ||\n inspection.marks.length !== 0 ||\n inspection.trail.length !== 0 ||\n inspection.section !== null\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,SAAgB,8BACd,YACS;CACT,OACE,WAAW,MAAM,WAAW,KAC5B,WAAW,KAAK,WAAW,KAC3B,CAAC,WAAW,WACZ,WAAW,UAAU,YACrB,WAAW,MAAM,WAAW,KAC5B,WAAW,MAAM,WAAW,KAC5B,WAAW,MAAM,WAAW,KAC5B,WAAW,YAAY;AAE3B"}
@@ -1,19 +1,21 @@
1
1
  /**
2
- * Build an `onRequestChange` listener that keeps a page's address equal to the inspector's request, writing through the `history` and `location` the host passes.
2
+ * Build an `onRequestChange` listener that keeps a page's address equal to the
3
+ * inspector's request, writing through the `history` and `location` the host
4
+ * passes.
3
5
  *
4
- * Each text the inspector reports, as `formatAutoMovieInspectorAddress` writes it, becomes the address's query: the path and the fragment are kept, the empty request clears the query, and `history.replaceState` writes it with the entry's own state, so editing the request adds no history entry. A text equal to the current query writes nothing. The library reaches no global: a host that passes no listener keeps its address untouched.
6
+ * Each text the inspector reports, as `formatAutoMovieInspectorAddress` writes
7
+ * it, becomes the address's query: the path and the fragment are kept, the
8
+ * empty request clears the query, and `history.replaceState` writes it with the
9
+ * entry's own state, so editing the request adds no history entry. A text equal
10
+ * to the current query writes nothing. The library reaches no global: a host
11
+ * that passes no listener keeps its address untouched.
5
12
  *
6
13
  * ```ts
7
- * const onRequestChange = createAutoMovieInspectorAddressWriter({ location, history });
14
+ * const onRequestChange = createAutoMovieInspectorAddressWriter({
15
+ * location,
16
+ * history,
17
+ * });
8
18
  * ```
9
- *
10
- * @evidence contracts/development/common.md#meaningful-documentation States what becomes of each text, what is kept, the empty and unchanged cases, why history gains no entry, and that nothing global is reached.
11
- * @evidence contracts/development/implementation.md#principled-implementation `replaceState` changes the current entry's URL without navigating or adding an entry, and `location.search` is `?` plus the query, or empty, which the comparison mirrors.
12
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One closure over the two injected objects.
13
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No `window` is read; the host's objects are the only ones written.
14
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant work plus the length of the address per call.
15
- * @evidence contracts/development/implementation.md#reuse-equivalent-work An unchanged query is not written again, which the inspector's report at mount relies on.
16
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds the two borrowed objects for as long as the listener lives; nothing else.
17
19
  */
18
20
  export declare function createAutoMovieInspectorAddressWriter(props: {
19
21
  /** The page's location, read for the current path, query and fragment. */
@@ -2,21 +2,23 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createAutoMovieInspectorAddressWriter = createAutoMovieInspectorAddressWriter;
4
4
  /**
5
- * Build an `onRequestChange` listener that keeps a page's address equal to the inspector's request, writing through the `history` and `location` the host passes.
5
+ * Build an `onRequestChange` listener that keeps a page's address equal to the
6
+ * inspector's request, writing through the `history` and `location` the host
7
+ * passes.
6
8
  *
7
- * Each text the inspector reports, as `formatAutoMovieInspectorAddress` writes it, becomes the address's query: the path and the fragment are kept, the empty request clears the query, and `history.replaceState` writes it with the entry's own state, so editing the request adds no history entry. A text equal to the current query writes nothing. The library reaches no global: a host that passes no listener keeps its address untouched.
9
+ * Each text the inspector reports, as `formatAutoMovieInspectorAddress` writes
10
+ * it, becomes the address's query: the path and the fragment are kept, the
11
+ * empty request clears the query, and `history.replaceState` writes it with the
12
+ * entry's own state, so editing the request adds no history entry. A text equal
13
+ * to the current query writes nothing. The library reaches no global: a host
14
+ * that passes no listener keeps its address untouched.
8
15
  *
9
16
  * ```ts
10
- * const onRequestChange = createAutoMovieInspectorAddressWriter({ location, history });
17
+ * const onRequestChange = createAutoMovieInspectorAddressWriter({
18
+ * location,
19
+ * history,
20
+ * });
11
21
  * ```
12
- *
13
- * @evidence contracts/development/common.md#meaningful-documentation States what becomes of each text, what is kept, the empty and unchanged cases, why history gains no entry, and that nothing global is reached.
14
- * @evidence contracts/development/implementation.md#principled-implementation `replaceState` changes the current entry's URL without navigating or adding an entry, and `location.search` is `?` plus the query, or empty, which the comparison mirrors.
15
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One closure over the two injected objects.
16
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No `window` is read; the host's objects are the only ones written.
17
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant work plus the length of the address per call.
18
- * @evidence contracts/development/implementation.md#reuse-equivalent-work An unchanged query is not written again, which the inspector's report at mount relies on.
19
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds the two borrowed objects for as long as the listener lives; nothing else.
20
22
  */
21
23
  function createAutoMovieInspectorAddressWriter(props) {
22
24
  return (text) => {
@@ -1 +1 @@
1
- {"version":3,"file":"createAutoMovieInspectorAddressWriter.js","sourceRoot":"","sources":["../../src/inspector/createAutoMovieInspectorAddressWriter.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,+CAAsD,KAMrD;IACC,OAAO,CAAC,IAAY,EAAQ,EAAE;QAC5B,MAAM,MAAM,GAAW,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC;QACrD,IAAI,MAAM,KAAK,KAAK,CAAC,QAAQ,CAAC,MAAM;YAAE,OAAO;QAC7C,KAAK,CAAC,OAAO,CAAC,YAAY,CACxB,KAAK,CAAC,OAAO,CAAC,KAAK,EACnB,EAAE,EACF,GAAG,KAAK,CAAC,QAAQ,CAAC,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,CAC5D,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"createAutoMovieInspectorAddressWriter.js","sourceRoot":"","sources":["../../src/inspector/createAutoMovieInspectorAddressWriter.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,+CAAsD,KAMrD;IACC,OAAO,CAAC,IAAY,EAAQ,EAAE;QAC5B,MAAM,MAAM,GAAW,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC;QACrD,IAAI,MAAM,KAAK,KAAK,CAAC,QAAQ,CAAC,MAAM;YAAE,OAAO;QAC7C,KAAK,CAAC,OAAO,CAAC,YAAY,CACxB,KAAK,CAAC,OAAO,CAAC,KAAK,EACnB,EAAE,EACF,GAAG,KAAK,CAAC,QAAQ,CAAC,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,CAC5D,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
@@ -1,20 +1,22 @@
1
1
  // src/inspector/createAutoMovieInspectorAddressWriter.ts
2
2
  /**
3
- * Build an `onRequestChange` listener that keeps a page's address equal to the inspector's request, writing through the `history` and `location` the host passes.
3
+ * Build an `onRequestChange` listener that keeps a page's address equal to the
4
+ * inspector's request, writing through the `history` and `location` the host
5
+ * passes.
4
6
  *
5
- * Each text the inspector reports, as `formatAutoMovieInspectorAddress` writes it, becomes the address's query: the path and the fragment are kept, the empty request clears the query, and `history.replaceState` writes it with the entry's own state, so editing the request adds no history entry. A text equal to the current query writes nothing. The library reaches no global: a host that passes no listener keeps its address untouched.
7
+ * Each text the inspector reports, as `formatAutoMovieInspectorAddress` writes
8
+ * it, becomes the address's query: the path and the fragment are kept, the
9
+ * empty request clears the query, and `history.replaceState` writes it with the
10
+ * entry's own state, so editing the request adds no history entry. A text equal
11
+ * to the current query writes nothing. The library reaches no global: a host
12
+ * that passes no listener keeps its address untouched.
6
13
  *
7
14
  * ```ts
8
- * const onRequestChange = createAutoMovieInspectorAddressWriter({ location, history });
15
+ * const onRequestChange = createAutoMovieInspectorAddressWriter({
16
+ * location,
17
+ * history,
18
+ * });
9
19
  * ```
10
- *
11
- * @evidence contracts/development/common.md#meaningful-documentation States what becomes of each text, what is kept, the empty and unchanged cases, why history gains no entry, and that nothing global is reached.
12
- * @evidence contracts/development/implementation.md#principled-implementation `replaceState` changes the current entry's URL without navigating or adding an entry, and `location.search` is `?` plus the query, or empty, which the comparison mirrors.
13
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One closure over the two injected objects.
14
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No `window` is read; the host's objects are the only ones written.
15
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant work plus the length of the address per call.
16
- * @evidence contracts/development/implementation.md#reuse-equivalent-work An unchanged query is not written again, which the inspector's report at mount relies on.
17
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds the two borrowed objects for as long as the listener lives; nothing else.
18
20
  */
19
21
  function createAutoMovieInspectorAddressWriter(props) {
20
22
  return (text) => {
@@ -1 +1 @@
1
- {"version":3,"file":"createAutoMovieInspectorAddressWriter.mjs","names":[],"sources":["../../src/inspector/createAutoMovieInspectorAddressWriter.ts"],"sourcesContent":["/**\n * Build an `onRequestChange` listener that keeps a page's address equal to the inspector's request, writing through the `history` and `location` the host passes.\n *\n * Each text the inspector reports, as `formatAutoMovieInspectorAddress` writes it, becomes the address's query: the path and the fragment are kept, the empty request clears the query, and `history.replaceState` writes it with the entry's own state, so editing the request adds no history entry. A text equal to the current query writes nothing. The library reaches no global: a host that passes no listener keeps its address untouched.\n *\n * ```ts\n * const onRequestChange = createAutoMovieInspectorAddressWriter({ location, history });\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation States what becomes of each text, what is kept, the empty and unchanged cases, why history gains no entry, and that nothing global is reached.\n * @evidence contracts/development/implementation.md#principled-implementation `replaceState` changes the current entry's URL without navigating or adding an entry, and `location.search` is `?` plus the query, or empty, which the comparison mirrors.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One closure over the two injected objects.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No `window` is read; the host's objects are the only ones written.\n * @evidence contracts/development/implementation.md#efficient-algorithms Constant work plus the length of the address per call.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work An unchanged query is not written again, which the inspector's report at mount relies on.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds the two borrowed objects for as long as the listener lives; nothing else.\n */\nexport function createAutoMovieInspectorAddressWriter(props: {\n /** The page's location, read for the current path, query and fragment. */\n location: Pick<Location, \"pathname\" | \"search\" | \"hash\">;\n\n /** The page's history, whose current entry's address is replaced. */\n history: Pick<History, \"replaceState\" | \"state\">;\n}): (text: string) => void {\n return (text: string): void => {\n const search: string = text === \"\" ? \"\" : `?${text}`;\n if (search === props.location.search) return;\n props.history.replaceState(\n props.history.state,\n \"\",\n `${props.location.pathname}${search}${props.location.hash}`,\n );\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,SAAgB,sCAAsC,OAM3B;CACzB,QAAQ,SAAuB;EAC7B,MAAM,SAAiB,SAAS,KAAK,KAAK,IAAI;EAC9C,IAAI,WAAW,MAAM,SAAS,QAAQ;EACtC,MAAM,QAAQ,aACZ,MAAM,QAAQ,OACd,IACA,GAAG,MAAM,SAAS,WAAW,SAAS,MAAM,SAAS,MACvD;CACF;AACF"}
1
+ {"version":3,"file":"createAutoMovieInspectorAddressWriter.mjs","names":[],"sources":["../../src/inspector/createAutoMovieInspectorAddressWriter.ts"],"sourcesContent":["/**\n * Build an `onRequestChange` listener that keeps a page's address equal to the\n * inspector's request, writing through the `history` and `location` the host\n * passes.\n *\n * Each text the inspector reports, as `formatAutoMovieInspectorAddress` writes\n * it, becomes the address's query: the path and the fragment are kept, the\n * empty request clears the query, and `history.replaceState` writes it with the\n * entry's own state, so editing the request adds no history entry. A text equal\n * to the current query writes nothing. The library reaches no global: a host\n * that passes no listener keeps its address untouched.\n *\n * ```ts\n * const onRequestChange = createAutoMovieInspectorAddressWriter({\n * location,\n * history,\n * });\n * ```\n */\nexport function createAutoMovieInspectorAddressWriter(props: {\n /** The page's location, read for the current path, query and fragment. */\n location: Pick<Location, \"pathname\" | \"search\" | \"hash\">;\n\n /** The page's history, whose current entry's address is replaced. */\n history: Pick<History, \"replaceState\" | \"state\">;\n}): (text: string) => void {\n return (text: string): void => {\n const search: string = text === \"\" ? \"\" : `?${text}`;\n if (search === props.location.search) return;\n props.history.replaceState(\n props.history.state,\n \"\",\n `${props.location.pathname}${search}${props.location.hash}`,\n );\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAmBA,SAAgB,sCAAsC,OAM3B;CACzB,QAAQ,SAAuB;EAC7B,MAAM,SAAiB,SAAS,KAAK,KAAK,IAAI;EAC9C,IAAI,WAAW,MAAM,SAAS,QAAQ;EACtC,MAAM,QAAQ,aACZ,MAAM,QAAQ,OACd,IACA,GAAG,MAAM,SAAS,WAAW,SAAS,MAAM,SAAS,MACvD;CACF;AACF"}