@automovie/render 0.2.0 → 0.3.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 (681) hide show
  1. package/lib/IAutoMovieCaptionEntry.d.ts +1 -28
  2. package/lib/IAutoMovieCaptionSidecar.d.ts +1 -25
  3. package/lib/IAutoMovieCapturedFrame.d.ts +1 -22
  4. package/lib/IAutoMovieGuidePassOutput.d.ts +1 -23
  5. package/lib/IAutoMoviePoseKeypointActor.d.ts +1 -36
  6. package/lib/IAutoMoviePoseKeypointFrame.d.ts +1 -25
  7. package/lib/IAutoMoviePoseKeypointSidecar.d.ts +1 -21
  8. package/lib/IAutoMovieRenderAdapters.d.ts +1 -34
  9. package/lib/IAutoMovieRenderAndSeeRequest.d.ts +1 -32
  10. package/lib/IAutoMovieRenderAndSeeResult.d.ts +1 -20
  11. package/lib/IAutoMovieRenderChunk.d.ts +1 -48
  12. package/lib/IAutoMovieRenderChunkPlan.d.ts +1 -32
  13. package/lib/IAutoMovieRenderPassManifest.d.ts +1 -21
  14. package/lib/IAutoMovieRenderReassembly.d.ts +1 -24
  15. package/lib/IAutoMovieRenderResult.d.ts +1 -39
  16. package/lib/IAutoMovieSequenceRenderAdapters.d.ts +1 -36
  17. package/lib/IAutoMovieSequenceRenderAndSeeRequest.d.ts +1 -36
  18. package/lib/IAutoMovieSequenceRenderAndSeeResult.d.ts +1 -23
  19. package/lib/IAutoMovieSequenceRenderFrame.d.ts +1 -41
  20. package/lib/IAutoMovieSequenceRenderPlan.d.ts +1 -76
  21. package/lib/IAutoMovieSequenceRenderResult.d.ts +1 -44
  22. package/lib/IAutoMovieSequenceRenderShotSpan.d.ts +1 -39
  23. package/lib/IAutoMovieSequenceRenderTransitionSpan.d.ts +1 -39
  24. package/lib/audio/mixAutoMovieAudioPcm.d.ts +2 -39
  25. package/lib/audio/mixAutoMovieAudioPcm.js.map +1 -1
  26. package/lib/audio/mixAutoMovieAudioPcm.mjs.map +1 -1
  27. package/lib/auditAutoMovieRenderObservation.d.ts +2 -14
  28. package/lib/auditAutoMovieRenderObservation.js.map +1 -1
  29. package/lib/auditAutoMovieRenderObservation.mjs.map +1 -1
  30. package/lib/cache/createAutoMovieHttpArtifactStore.d.ts +1 -1
  31. package/lib/cache/createAutoMovieHttpArtifactStore.mjs.map +1 -1
  32. package/lib/caption/IAutoMovieBeatCaption.d.ts +1 -22
  33. package/lib/caption/beatCaptions.d.ts +1 -2
  34. package/lib/caption/beatCaptions.js.map +1 -1
  35. package/lib/caption/beatCaptions.mjs.map +1 -1
  36. package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.d.ts +1 -12
  37. package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.js.map +1 -1
  38. package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.mjs.map +1 -1
  39. package/lib/caption/parseAutoMovieCaptionLanguage.d.ts +1 -14
  40. package/lib/caption/parseAutoMovieCaptionLanguage.js.map +1 -1
  41. package/lib/caption/parseAutoMovieCaptionLanguage.mjs.map +1 -1
  42. package/lib/capture/AutoMovieCaptureFolder.d.ts +3 -13
  43. package/lib/capture/AutoMovieCaptureFolder.js.map +1 -1
  44. package/lib/capture/AutoMovieCaptureFolder.mjs.map +1 -1
  45. package/lib/capture/IAutoMovieCaptureBudget.d.ts +1 -24
  46. package/lib/capture/IAutoMovieCaptureCell.d.ts +1 -33
  47. package/lib/capture/IAutoMovieCaptureComparison.d.ts +1 -75
  48. package/lib/capture/IAutoMovieCaptureDrawing.d.ts +1 -56
  49. package/lib/capture/IAutoMovieCaptureLayout.d.ts +1 -47
  50. package/lib/capture/IAutoMovieCapturePlan.d.ts +1 -30
  51. package/lib/capture/IAutoMovieCapturePlanRequest.d.ts +1 -97
  52. package/lib/capture/IAutoMovieCaptureRecord.d.ts +1 -134
  53. package/lib/capture/IAutoMovieCaptureRequestSource.d.ts +1 -36
  54. package/lib/capture/IAutoMovieCaptureResolution.d.ts +1 -20
  55. package/lib/capture/IAutoMovieCaptureSelection.d.ts +1 -23
  56. package/lib/capture/IAutoMovieCaptureStorage.d.ts +1 -76
  57. package/lib/capture/IAutoMovieCaptureSubject.d.ts +1 -81
  58. package/lib/capture/IAutoMovieCaptureTime.d.ts +1 -16
  59. package/lib/capture/IAutoMovieCaptureWindow.d.ts +1 -24
  60. package/lib/capture/compareAutoMovieCaptureRounds.d.ts +2 -23
  61. package/lib/capture/compareAutoMovieCaptureRounds.js.map +1 -1
  62. package/lib/capture/compareAutoMovieCaptureRounds.mjs.map +1 -1
  63. package/lib/capture/formatAutoMovieCapturePlanRequest.d.ts +1 -1
  64. package/lib/capture/formatAutoMovieCapturePlanRequest.js.map +1 -1
  65. package/lib/capture/formatAutoMovieCapturePlanRequest.mjs.map +1 -1
  66. package/lib/capture/markAutoMovieCaptureCell.d.ts +1 -1
  67. package/lib/capture/markAutoMovieCaptureCell.mjs.map +1 -1
  68. package/lib/capture/parseAutoMovieCapturePlanRequest.d.ts +1 -2
  69. package/lib/capture/parseAutoMovieCapturePlanRequest.js.map +1 -1
  70. package/lib/capture/parseAutoMovieCapturePlanRequest.mjs.map +1 -1
  71. package/lib/capture/planAutoMovieCapture.d.ts +2 -11
  72. package/lib/capture/planAutoMovieCapture.js.map +1 -1
  73. package/lib/capture/planAutoMovieCapture.mjs.map +1 -1
  74. package/lib/capture/planAutoMovieCaptureFrames.d.ts +2 -22
  75. package/lib/capture/planAutoMovieCaptureFrames.js.map +1 -1
  76. package/lib/capture/planAutoMovieCaptureFrames.mjs.map +1 -1
  77. package/lib/capture/planAutoMovieCaptureLayout.d.ts +2 -16
  78. package/lib/capture/planAutoMovieCaptureLayout.js.map +1 -1
  79. package/lib/capture/planAutoMovieCaptureLayout.mjs.map +1 -1
  80. package/lib/capture/planAutoMovieVideoFrames.d.ts +2 -8
  81. package/lib/capture/planAutoMovieVideoFrames.js.map +1 -1
  82. package/lib/capture/planAutoMovieVideoFrames.mjs.map +1 -1
  83. package/lib/capture/planAutoMovieVideoSceneCuts.d.ts +2 -8
  84. package/lib/capture/planAutoMovieVideoSceneCuts.js.map +1 -1
  85. package/lib/capture/planAutoMovieVideoSceneCuts.mjs.map +1 -1
  86. package/lib/capture/readAutoMovieVideoSceneCuts.d.ts +2 -6
  87. package/lib/capture/readAutoMovieVideoSceneCuts.js.map +1 -1
  88. package/lib/capture/readAutoMovieVideoSceneCuts.mjs.map +1 -1
  89. package/lib/capture/resolveAutoMovieCapturePatterns.d.ts +2 -10
  90. package/lib/capture/resolveAutoMovieCapturePatterns.js.map +1 -1
  91. package/lib/capture/resolveAutoMovieCapturePatterns.mjs.map +1 -1
  92. package/lib/capture/runAutoMovieCapture.d.ts +2 -21
  93. package/lib/capture/runAutoMovieCapture.js.map +1 -1
  94. package/lib/capture/runAutoMovieCapture.mjs.map +1 -1
  95. package/lib/capture/runAutoMovieVideoCapture.d.ts +2 -20
  96. package/lib/capture/runAutoMovieVideoCapture.js.map +1 -1
  97. package/lib/capture/runAutoMovieVideoCapture.mjs.map +1 -1
  98. package/lib/capture/scaleAutoMovieCaptureLabels.d.ts +2 -5
  99. package/lib/capture/scaleAutoMovieCaptureLabels.js.map +1 -1
  100. package/lib/capture/scaleAutoMovieCaptureLabels.mjs.map +1 -1
  101. package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.d.ts +2 -6
  102. package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.js.map +1 -1
  103. package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.mjs.map +1 -1
  104. package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.d.ts +2 -14
  105. package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.js.map +1 -1
  106. package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.mjs.map +1 -1
  107. package/lib/delivery/AutoMovieProductionPngRole.d.ts +1 -14
  108. package/lib/delivery/IAutoMovieProductionPngProfile.d.ts +1 -41
  109. package/lib/delivery/IAutoMovieProductionVideoProfile.d.ts +1 -46
  110. package/lib/delivery/assertAutoMovieCaptureClock.d.ts +2 -9
  111. package/lib/delivery/assertAutoMovieCaptureClock.js.map +1 -1
  112. package/lib/delivery/assertAutoMovieCaptureClock.mjs.map +1 -1
  113. package/lib/delivery/assertProductionPngPicture.d.ts +2 -6
  114. package/lib/delivery/assertProductionPngPicture.js.map +1 -1
  115. package/lib/delivery/assertProductionPngPicture.mjs.map +1 -1
  116. package/lib/delivery/assertProductionVideoProfile.d.ts +2 -6
  117. package/lib/delivery/assertProductionVideoProfile.js.map +1 -1
  118. package/lib/delivery/assertProductionVideoProfile.mjs.map +1 -1
  119. package/lib/delivery/auditAutoMovieDecodedFrames.d.ts +2 -35
  120. package/lib/delivery/auditAutoMovieDecodedFrames.js.map +1 -1
  121. package/lib/delivery/auditAutoMovieDecodedFrames.mjs.map +1 -1
  122. package/lib/delivery/auditAutoMovieEncodedPresentation.d.ts +2 -8
  123. package/lib/delivery/auditAutoMovieEncodedPresentation.js.map +1 -1
  124. package/lib/delivery/auditAutoMovieEncodedPresentation.mjs.map +1 -1
  125. package/lib/delivery/planAutoMovieVideoEncoding.d.ts +2 -18
  126. package/lib/delivery/planAutoMovieVideoEncoding.js.map +1 -1
  127. package/lib/delivery/planAutoMovieVideoEncoding.mjs.map +1 -1
  128. package/lib/delivery/productionOpusDescription.d.ts +2 -6
  129. package/lib/delivery/productionOpusDescription.js.map +1 -1
  130. package/lib/delivery/productionOpusDescription.mjs.map +1 -1
  131. package/lib/delivery/resolveProductionPngProfile.d.ts +2 -7
  132. package/lib/delivery/resolveProductionPngProfile.js.map +1 -1
  133. package/lib/delivery/resolveProductionPngProfile.mjs.map +1 -1
  134. package/lib/delivery/resolveProductionVideoProfile.d.ts +2 -7
  135. package/lib/delivery/resolveProductionVideoProfile.js.map +1 -1
  136. package/lib/delivery/resolveProductionVideoProfile.mjs.map +1 -1
  137. package/lib/draw/AutoMovieDrawSession.d.ts +3 -16
  138. package/lib/draw/AutoMovieDrawSession.js.map +1 -1
  139. package/lib/draw/AutoMovieDrawSession.mjs.map +1 -1
  140. package/lib/draw/IAutoMovieDrawCall.d.ts +1 -27
  141. package/lib/draw/IAutoMovieDrawDescription.d.ts +1 -15
  142. package/lib/draw/IAutoMovieDrawFunction.d.ts +1 -3
  143. package/lib/draw/IAutoMovieDrawResult.d.ts +1 -36
  144. package/lib/draw/IAutoMovieDrawScene.d.ts +9 -2
  145. package/lib/draw/decodeAutoMovieDrawPixels.d.ts +2 -6
  146. package/lib/draw/decodeAutoMovieDrawPixels.js.map +1 -1
  147. package/lib/draw/decodeAutoMovieDrawPixels.mjs.map +1 -1
  148. package/lib/draw/describeAutoMovieDrawScene.d.ts +4 -4
  149. package/lib/draw/describeAutoMovieDrawScene.js +10 -4
  150. package/lib/draw/describeAutoMovieDrawScene.js.map +1 -1
  151. package/lib/draw/describeAutoMovieDrawScene.mjs +8 -4
  152. package/lib/draw/describeAutoMovieDrawScene.mjs.map +1 -1
  153. package/lib/draw/index.d.ts +1 -0
  154. package/lib/draw/index.js +1 -0
  155. package/lib/draw/index.js.map +1 -1
  156. package/lib/draw/index.mjs +2 -1
  157. package/lib/draw/installAutoMovieDraw.d.ts +6 -6
  158. package/lib/draw/installAutoMovieDraw.js +18 -23
  159. package/lib/draw/installAutoMovieDraw.js.map +1 -1
  160. package/lib/draw/installAutoMovieDraw.mjs +16 -23
  161. package/lib/draw/installAutoMovieDraw.mjs.map +1 -1
  162. package/lib/draw/planAutoMovieDrawCall.d.ts +1 -3
  163. package/lib/draw/planAutoMovieDrawCall.js.map +1 -1
  164. package/lib/draw/planAutoMovieDrawCall.mjs.map +1 -1
  165. package/lib/draw/renderAutoMovieDrawnVideo.d.ts +2 -12
  166. package/lib/draw/renderAutoMovieDrawnVideo.js.map +1 -1
  167. package/lib/draw/renderAutoMovieDrawnVideo.mjs.map +1 -1
  168. package/lib/draw/replaceAutoMovieDrawInspection.d.ts +24 -0
  169. package/lib/draw/replaceAutoMovieDrawInspection.js +29 -0
  170. package/lib/draw/replaceAutoMovieDrawInspection.js.map +1 -0
  171. package/lib/draw/replaceAutoMovieDrawInspection.mjs +29 -0
  172. package/lib/draw/replaceAutoMovieDrawInspection.mjs.map +1 -0
  173. package/lib/draw/stampAutoMovieDrawLegend.d.ts +2 -4
  174. package/lib/draw/stampAutoMovieDrawLegend.js.map +1 -1
  175. package/lib/draw/stampAutoMovieDrawLegend.mjs.map +1 -1
  176. package/lib/film/AutoMovieOrderedScalar.d.ts +1 -15
  177. package/lib/film/IAutoMovieProductionAudioAssetIdentity.d.ts +1 -28
  178. package/lib/film/IAutoMovieProductionAudioAssetIdentityBase.d.ts +1 -29
  179. package/lib/film/IAutoMovieProductionEncoderIdentity.d.ts +1 -36
  180. package/lib/film/IAutoMovieProductionRenderChunk.d.ts +1 -39
  181. package/lib/film/IAutoMovieProductionRenderJobPlan.d.ts +1 -53
  182. package/lib/film/IAutoMovieProductionRenderRuntimeIdentity.d.ts +1 -31
  183. package/lib/film/IAutoMovieProductionRenderTier.d.ts +1 -25
  184. package/lib/film/equalOrderedScalars.d.ts +2 -5
  185. package/lib/film/equalOrderedScalars.js.map +1 -1
  186. package/lib/film/equalOrderedScalars.mjs.map +1 -1
  187. package/lib/film/normalizeAudioAssets.d.ts +1 -1
  188. package/lib/film/normalizeAudioAssets.js.map +1 -1
  189. package/lib/film/normalizeAudioAssets.mjs.map +1 -1
  190. package/lib/film/normalizeRenderTier.d.ts +1 -1
  191. package/lib/film/normalizeRenderTier.mjs.map +1 -1
  192. package/lib/film/planProductionRenderJob.d.ts +2 -16
  193. package/lib/film/planProductionRenderJob.js.map +1 -1
  194. package/lib/film/planProductionRenderJob.mjs.map +1 -1
  195. package/lib/film/resolveProductionRenderTierFrameFormat.d.ts +1 -2
  196. package/lib/film/resolveProductionRenderTierFrameFormat.mjs.map +1 -1
  197. package/lib/film/validWaveAudioIdentity.d.ts +1 -1
  198. package/lib/film/validWaveAudioIdentity.mjs.map +1 -1
  199. package/lib/index.mjs +8 -7
  200. package/lib/picture/AutoMovieRasterSheet.d.ts +2 -2
  201. package/lib/picture/AutoMovieRasterSheet.js.map +1 -1
  202. package/lib/picture/AutoMovieRasterSheet.mjs.map +1 -1
  203. package/lib/picture/IAutoMovieRasterComparison.d.ts +1 -33
  204. package/lib/picture/IAutoMovieRasterImage.d.ts +1 -17
  205. package/lib/picture/compareAutoMovieRasters.d.ts +1 -2
  206. package/lib/picture/compareAutoMovieRasters.js.map +1 -1
  207. package/lib/picture/compareAutoMovieRasters.mjs.map +1 -1
  208. package/lib/picture/decodeAutoMovieRasterPng.d.ts +1 -1
  209. package/lib/picture/decodeAutoMovieRasterPng.js.map +1 -1
  210. package/lib/picture/decodeAutoMovieRasterPng.mjs.map +1 -1
  211. package/lib/picture/encodeAutoMovieRasterPng.d.ts +1 -1
  212. package/lib/picture/encodeAutoMovieRasterPng.js.map +1 -1
  213. package/lib/picture/encodeAutoMovieRasterPng.mjs.map +1 -1
  214. package/lib/picture/hashAutoMovieRasterImage.d.ts +1 -1
  215. package/lib/picture/hashAutoMovieRasterImage.mjs.map +1 -1
  216. package/lib/picture/stampAutoMovieRasterLabel.d.ts +2 -5
  217. package/lib/picture/stampAutoMovieRasterLabel.js.map +1 -1
  218. package/lib/picture/stampAutoMovieRasterLabel.mjs.map +1 -1
  219. package/lib/planCaptionSidecar.d.ts +2 -8
  220. package/lib/planCaptionSidecar.js.map +1 -1
  221. package/lib/planCaptionSidecar.mjs.map +1 -1
  222. package/lib/planChunkedSequenceRender.d.ts +2 -9
  223. package/lib/planChunkedSequenceRender.js.map +1 -1
  224. package/lib/planChunkedSequenceRender.mjs.map +1 -1
  225. package/lib/planGuidePassOutputs.d.ts +2 -6
  226. package/lib/planGuidePassOutputs.js.map +1 -1
  227. package/lib/planGuidePassOutputs.mjs.map +1 -1
  228. package/lib/planPoseKeypointSidecar.d.ts +2 -12
  229. package/lib/planPoseKeypointSidecar.js.map +1 -1
  230. package/lib/planPoseKeypointSidecar.mjs.map +1 -1
  231. package/lib/planSequenceRender.d.ts +2 -9
  232. package/lib/planSequenceRender.js.map +1 -1
  233. package/lib/planSequenceRender.mjs.map +1 -1
  234. package/lib/planViewerFrameTimes.d.ts +2 -16
  235. package/lib/planViewerFrameTimes.js.map +1 -1
  236. package/lib/planViewerFrameTimes.mjs.map +1 -1
  237. package/lib/renderAndSee.d.ts +1 -2
  238. package/lib/renderAndSee.js.map +1 -1
  239. package/lib/renderAndSee.mjs.map +1 -1
  240. package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.d.ts +1 -41
  241. package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.d.ts +1 -53
  242. package/lib/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.d.ts +1 -27
  243. package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.d.ts +2 -13
  244. package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.js.map +1 -1
  245. package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.mjs.map +1 -1
  246. package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.d.ts +2 -8
  247. package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.js.map +1 -1
  248. package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.mjs.map +1 -1
  249. package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.d.ts +1 -1
  250. package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.js.map +1 -1
  251. package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.mjs.map +1 -1
  252. package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.d.ts +1 -2
  253. package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.js.map +1 -1
  254. package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.mjs.map +1 -1
  255. package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.d.ts +2 -8
  256. package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.js.map +1 -1
  257. package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.mjs.map +1 -1
  258. package/lib/renderCaptionSidecar.d.ts +1 -1
  259. package/lib/renderCaptionSidecar.mjs.map +1 -1
  260. package/lib/renderPoseKeypointSidecar.d.ts +1 -1
  261. package/lib/renderPoseKeypointSidecar.mjs.map +1 -1
  262. package/lib/renderSequenceAndSee.d.ts +1 -2
  263. package/lib/renderSequenceAndSee.js.map +1 -1
  264. package/lib/renderSequenceAndSee.mjs.map +1 -1
  265. package/lib/renderSequenceVideo.d.ts +1 -3
  266. package/lib/renderSequenceVideo.js.map +1 -1
  267. package/lib/renderSequenceVideo.mjs.map +1 -1
  268. package/lib/renderVideo.d.ts +1 -3
  269. package/lib/renderVideo.js.map +1 -1
  270. package/lib/renderVideo.mjs.map +1 -1
  271. package/lib/scene/AutoMovieFilmBeautyComposition.d.ts +1 -25
  272. package/lib/scene/AutoMoviePlayer.d.ts +1 -2
  273. package/lib/scene/AutoMoviePlayer.js.map +1 -1
  274. package/lib/scene/AutoMoviePlayer.mjs.map +1 -1
  275. package/lib/scene/IApplyAutoMovieSectionPlanesProps.d.ts +1 -1
  276. package/lib/scene/IAutoMovieFilmBeautyLayer.d.ts +1 -12
  277. package/lib/scene/IAutoMovieFormationPoseTake.d.ts +1 -22
  278. package/lib/scene/IAutoMovieFormationViewerObject.d.ts +1 -2
  279. package/lib/scene/IAutoMovieRigLocalTransform.d.ts +1 -15
  280. package/lib/scene/IAutoMovieSpringAxisSettlement.d.ts +2 -2
  281. package/lib/scene/IBakeFormationCycleProps.d.ts +1 -2
  282. package/lib/scene/applyAutoMovieRigLocals.d.ts +1 -2
  283. package/lib/scene/applyAutoMovieRigLocals.js.map +1 -1
  284. package/lib/scene/applyAutoMovieRigLocals.mjs.map +1 -1
  285. package/lib/scene/applyAutoMovieSectionPlanes.mjs.map +1 -1
  286. package/lib/scene/applyFormationCycleCadence.d.ts +1 -1
  287. package/lib/scene/applyFormationCycleCadence.mjs.map +1 -1
  288. package/lib/scene/applyPose.d.ts +1 -2
  289. package/lib/scene/applyPose.js.map +1 -1
  290. package/lib/scene/applyPose.mjs.map +1 -1
  291. package/lib/scene/applyRenderMode.js.map +1 -1
  292. package/lib/scene/applyRenderMode.mjs.map +1 -1
  293. package/lib/scene/applySampledObjectMotion.d.ts +1 -1
  294. package/lib/scene/applySampledObjectMotion.mjs.map +1 -1
  295. package/lib/scene/applySemanticMaskMode.d.ts +1 -1
  296. package/lib/scene/applySemanticMaskMode.js.map +1 -1
  297. package/lib/scene/applySemanticMaskMode.mjs.map +1 -1
  298. package/lib/scene/autoMovieAnalysisRampColor.d.ts +2 -5
  299. package/lib/scene/autoMovieAnalysisRampColor.js.map +1 -1
  300. package/lib/scene/autoMovieAnalysisRampColor.mjs.map +1 -1
  301. package/lib/scene/bakeFormationCycle.d.ts +2 -1
  302. package/lib/scene/bakeFormationCycle.js +3 -2
  303. package/lib/scene/bakeFormationCycle.js.map +1 -1
  304. package/lib/scene/bakeFormationCycle.mjs +3 -2
  305. package/lib/scene/bakeFormationCycle.mjs.map +1 -1
  306. package/lib/scene/buildAutoMovieConstruction.d.ts +2 -5
  307. package/lib/scene/buildAutoMovieConstruction.js.map +1 -1
  308. package/lib/scene/buildAutoMovieConstruction.mjs.map +1 -1
  309. package/lib/scene/buildGeometry.d.ts +1 -1
  310. package/lib/scene/buildGeometry.js.map +1 -1
  311. package/lib/scene/buildGeometry.mjs.map +1 -1
  312. package/lib/scene/buildInstancedEffect.js.map +1 -1
  313. package/lib/scene/buildInstancedEffect.mjs.map +1 -1
  314. package/lib/scene/buildInstancedFormation.js.map +1 -1
  315. package/lib/scene/buildInstancedFormation.mjs.map +1 -1
  316. package/lib/scene/buildSpaceObject.js.map +1 -1
  317. package/lib/scene/buildSpaceObject.mjs.map +1 -1
  318. package/lib/scene/createAutoMoviePhysicalPoseAdapter.d.ts +2 -2
  319. package/lib/scene/createAutoMoviePhysicalPoseAdapter.js.map +1 -1
  320. package/lib/scene/createAutoMoviePhysicalPoseAdapter.mjs.map +1 -1
  321. package/lib/scene/describeFormationTextureSources.d.ts +1 -2
  322. package/lib/scene/describeFormationTextureSources.mjs.map +1 -1
  323. package/lib/scene/formation/index.d.ts +1 -1
  324. package/lib/scene/formationCycleCadence.d.ts +1 -1
  325. package/lib/scene/formationCycleCadence.mjs.map +1 -1
  326. package/lib/scene/human-polygon/AutoMovieHumanPolygon.d.ts +7 -57
  327. package/lib/scene/human-polygon/applyHumanPolygonPose.d.ts +2 -2
  328. package/lib/scene/human-polygon/applyHumanPolygonPose.js.map +1 -1
  329. package/lib/scene/human-polygon/applyHumanPolygonPose.mjs.map +1 -1
  330. package/lib/scene/human-polygon/buildHumanPolygon.d.ts +2 -1
  331. package/lib/scene/human-polygon/buildHumanPolygon.js.map +1 -1
  332. package/lib/scene/human-polygon/buildHumanPolygon.mjs.map +1 -1
  333. package/lib/scene/human-polygon/buildHumanPolygonModule.d.ts +2 -2
  334. package/lib/scene/human-polygon/buildHumanPolygonModule.js.map +1 -1
  335. package/lib/scene/human-polygon/buildHumanPolygonModule.mjs.map +1 -1
  336. package/lib/scene/human-polygon/buildHumanPolygonParts.d.ts +2 -2
  337. package/lib/scene/human-polygon/buildHumanPolygonParts.js.map +1 -1
  338. package/lib/scene/human-polygon/buildHumanPolygonParts.mjs.map +1 -1
  339. package/lib/scene/human-polygon/createAutoMovieHumanPolygonFigure.d.ts +3 -2
  340. package/lib/scene/human-polygon/createAutoMovieHumanPolygonFigure.js.map +1 -1
  341. package/lib/scene/human-polygon/createAutoMovieHumanPolygonFigure.mjs.map +1 -1
  342. package/lib/scene/index.d.ts +1 -1
  343. package/lib/scene/index.js +0 -1
  344. package/lib/scene/index.js.map +1 -1
  345. package/lib/scene/index.mjs +6 -6
  346. package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.d.ts +2 -4
  347. package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.js.map +1 -1
  348. package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.mjs.map +1 -1
  349. package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.d.ts +1 -1
  350. package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.mjs.map +1 -1
  351. package/lib/scene/inspection/IApplyAutoMovieInspectionProps.d.ts +2 -3
  352. package/lib/scene/inspection/IAutoMovieInspectionCamera.d.ts +1 -29
  353. package/lib/scene/inspection/IAutoMovieInspectionHandle.d.ts +3 -6
  354. package/lib/scene/inspection/IAutoMovieInspectionKind.d.ts +1 -16
  355. package/lib/scene/inspection/IAutoMovieInspectionLabel.d.ts +1 -18
  356. package/lib/scene/inspection/IAutoMovieInspectionLegendEntry.d.ts +1 -22
  357. package/lib/scene/inspection/IAutoMovieInspectionMarkSet.d.ts +1 -1
  358. package/lib/scene/inspection/IAutoMovieInspectionMeasured.d.ts +1 -1
  359. package/lib/scene/inspection/IAutoMovieInspectionRequest.d.ts +1 -99
  360. package/lib/scene/inspection/IAutoMovieInspectionTrail.d.ts +1 -18
  361. package/lib/scene/inspection/IAutoMovieInspectionView.d.ts +1 -80
  362. package/lib/scene/inspection/applyAutoMovieInspection.js.map +1 -1
  363. package/lib/scene/inspection/applyAutoMovieInspection.mjs.map +1 -1
  364. package/lib/scene/inspection/applyAutoMovieInspectionSection.d.ts +1 -1
  365. package/lib/scene/inspection/applyAutoMovieInspectionSection.mjs.map +1 -1
  366. package/lib/scene/inspection/applyAutoMovieInspectionShade.d.ts +2 -2
  367. package/lib/scene/inspection/applyAutoMovieInspectionShade.js.map +1 -1
  368. package/lib/scene/inspection/applyAutoMovieInspectionShade.mjs.map +1 -1
  369. package/lib/scene/inspection/buildAutoMovieInspectionMarks.mjs.map +1 -1
  370. package/lib/scene/inspection/chooseAutoMovieInspectionMarks.d.ts +1 -1
  371. package/lib/scene/inspection/chooseAutoMovieInspectionMarks.mjs.map +1 -1
  372. package/lib/scene/inspection/colorAutoMovieInspectionObjects.d.ts +3 -3
  373. package/lib/scene/inspection/colorAutoMovieInspectionObjects.js.map +1 -1
  374. package/lib/scene/inspection/colorAutoMovieInspectionObjects.mjs.map +1 -1
  375. package/lib/scene/inspection/expandAutoMovieInspectionSweep.d.ts +2 -17
  376. package/lib/scene/inspection/expandAutoMovieInspectionSweep.js.map +1 -1
  377. package/lib/scene/inspection/expandAutoMovieInspectionSweep.mjs.map +1 -1
  378. package/lib/scene/inspection/focusAutoMovieInspection.d.ts +2 -3
  379. package/lib/scene/inspection/focusAutoMovieInspection.js.map +1 -1
  380. package/lib/scene/inspection/focusAutoMovieInspection.mjs.map +1 -1
  381. package/lib/scene/inspection/formatAutoMovieInspectionCameraView.d.ts +1 -1
  382. package/lib/scene/inspection/formatAutoMovieInspectionCameraView.js.map +1 -1
  383. package/lib/scene/inspection/formatAutoMovieInspectionCameraView.mjs.map +1 -1
  384. package/lib/scene/inspection/formatAutoMovieInspectionRequest.d.ts +1 -1
  385. package/lib/scene/inspection/formatAutoMovieInspectionRequest.js.map +1 -1
  386. package/lib/scene/inspection/formatAutoMovieInspectionRequest.mjs.map +1 -1
  387. package/lib/scene/inspection/formatAutoMovieInspectionView.d.ts +1 -1
  388. package/lib/scene/inspection/formatAutoMovieInspectionView.js.map +1 -1
  389. package/lib/scene/inspection/formatAutoMovieInspectionView.mjs.map +1 -1
  390. package/lib/scene/inspection/legendAutoMovieInspectionMarks.d.ts +2 -6
  391. package/lib/scene/inspection/legendAutoMovieInspectionMarks.js.map +1 -1
  392. package/lib/scene/inspection/legendAutoMovieInspectionMarks.mjs.map +1 -1
  393. package/lib/scene/inspection/listAutoMovieInspectionKinds.d.ts +2 -9
  394. package/lib/scene/inspection/listAutoMovieInspectionKinds.js.map +1 -1
  395. package/lib/scene/inspection/listAutoMovieInspectionKinds.mjs.map +1 -1
  396. package/lib/scene/inspection/markAutoMovieInspectionTrails.d.ts +1 -2
  397. package/lib/scene/inspection/markAutoMovieInspectionTrails.js.map +1 -1
  398. package/lib/scene/inspection/markAutoMovieInspectionTrails.mjs.map +1 -1
  399. package/lib/scene/inspection/measureAutoMovieInspectionDefects.d.ts +1 -1
  400. package/lib/scene/inspection/measureAutoMovieInspectionDefects.js.map +1 -1
  401. package/lib/scene/inspection/measureAutoMovieInspectionDefects.mjs.map +1 -1
  402. package/lib/scene/inspection/measureAutoMovieInspectionEdges.mjs.map +1 -1
  403. package/lib/scene/inspection/measureAutoMovieInspectionMeshes.d.ts +1 -1
  404. package/lib/scene/inspection/measureAutoMovieInspectionMeshes.mjs.map +1 -1
  405. package/lib/scene/inspection/measureAutoMovieInspectionPaths.d.ts +2 -7
  406. package/lib/scene/inspection/measureAutoMovieInspectionPaths.js.map +1 -1
  407. package/lib/scene/inspection/measureAutoMovieInspectionPaths.mjs.map +1 -1
  408. package/lib/scene/inspection/mergeAutoMovieInspectionLegends.d.ts +1 -1
  409. package/lib/scene/inspection/mergeAutoMovieInspectionLegends.mjs.map +1 -1
  410. package/lib/scene/inspection/parseAutoMovieInspectionRequest.d.ts +1 -1
  411. package/lib/scene/inspection/parseAutoMovieInspectionRequest.js.map +1 -1
  412. package/lib/scene/inspection/parseAutoMovieInspectionRequest.mjs.map +1 -1
  413. package/lib/scene/inspection/parseAutoMovieInspectionView.d.ts +1 -1
  414. package/lib/scene/inspection/parseAutoMovieInspectionView.js.map +1 -1
  415. package/lib/scene/inspection/parseAutoMovieInspectionView.mjs.map +1 -1
  416. package/lib/scene/inspection/placeAutoMovieInspectionLabels.d.ts +2 -6
  417. package/lib/scene/inspection/placeAutoMovieInspectionLabels.js.map +1 -1
  418. package/lib/scene/inspection/placeAutoMovieInspectionLabels.mjs.map +1 -1
  419. package/lib/scene/inspection/planAutoMovieInspectionTrailTimes.d.ts +2 -9
  420. package/lib/scene/inspection/planAutoMovieInspectionTrailTimes.js.map +1 -1
  421. package/lib/scene/inspection/planAutoMovieInspectionTrailTimes.mjs.map +1 -1
  422. package/lib/scene/inspection/resolveAutoMovieInspectionColors.d.ts +2 -18
  423. package/lib/scene/inspection/resolveAutoMovieInspectionColors.js.map +1 -1
  424. package/lib/scene/inspection/resolveAutoMovieInspectionColors.mjs.map +1 -1
  425. package/lib/scene/inspection/resolveAutoMovieInspectionView.d.ts +1 -2
  426. package/lib/scene/inspection/resolveAutoMovieInspectionView.js.map +1 -1
  427. package/lib/scene/inspection/resolveAutoMovieInspectionView.mjs.map +1 -1
  428. package/lib/scene/inspection/sampleAutoMovieInspectionTrails.d.ts +1 -1
  429. package/lib/scene/inspection/sampleAutoMovieInspectionTrails.js.map +1 -1
  430. package/lib/scene/inspection/sampleAutoMovieInspectionTrails.mjs.map +1 -1
  431. package/lib/scene/matchesAutoMovieShadowTextureProfile.d.ts +1 -1
  432. package/lib/scene/matchesAutoMovieShadowTextureProfile.mjs.map +1 -1
  433. package/lib/scene/observeAutoMovieRendererFrame.d.ts +2 -5
  434. package/lib/scene/observeAutoMovieRendererFrame.js.map +1 -1
  435. package/lib/scene/observeAutoMovieRendererFrame.mjs.map +1 -1
  436. package/lib/scene/planAutoMovieShadowTextureTarget.d.ts +1 -1
  437. package/lib/scene/planAutoMovieShadowTextureTarget.mjs.map +1 -1
  438. package/lib/scene/readAutoMovieFilmDisplayTextureResidency.d.ts +2 -6
  439. package/lib/scene/readAutoMovieFilmDisplayTextureResidency.js.map +1 -1
  440. package/lib/scene/readAutoMovieFilmDisplayTextureResidency.mjs.map +1 -1
  441. package/lib/scene/readAutoMovieMaterialTextureSources.d.ts +3 -5
  442. package/lib/scene/readAutoMovieMaterialTextureSources.js.map +1 -1
  443. package/lib/scene/readAutoMovieMaterialTextureSources.mjs.map +1 -1
  444. package/lib/scene/readAutoMovieRenderTextureTarget.d.ts +1 -1
  445. package/lib/scene/readAutoMovieRenderTextureTarget.mjs.map +1 -1
  446. package/lib/scene/readAutoMovieShadowTextureTargets.d.ts +1 -2
  447. package/lib/scene/readAutoMovieShadowTextureTargets.js.map +1 -1
  448. package/lib/scene/readAutoMovieShadowTextureTargets.mjs.map +1 -1
  449. package/lib/scene/readAutoMovieTextureSource.d.ts +1 -1
  450. package/lib/scene/readAutoMovieTextureSource.js.map +1 -1
  451. package/lib/scene/readAutoMovieTextureSource.mjs.map +1 -1
  452. package/lib/scene/readAutoMovieTransmissionTextureTarget.d.ts +1 -1
  453. package/lib/scene/readAutoMovieTransmissionTextureTarget.mjs.map +1 -1
  454. package/lib/scene/resolveAutoMovieFilmBeautyComposition.d.ts +2 -3
  455. package/lib/scene/resolveAutoMovieFilmBeautyComposition.js.map +1 -1
  456. package/lib/scene/resolveAutoMovieFilmBeautyComposition.mjs.map +1 -1
  457. package/lib/scene/semanticMask/IAutoMovieSemanticMaskBinding.d.ts +1 -19
  458. package/lib/scene/semanticMask/attachAutoMovieSemanticMask.d.ts +1 -1
  459. package/lib/scene/semanticMask/attachAutoMovieSemanticMask.mjs.map +1 -1
  460. package/lib/scene/semanticMask/autoMovieSemanticMaskOf.d.ts +1 -1
  461. package/lib/scene/semanticMask/autoMovieSemanticMaskOf.mjs.map +1 -1
  462. package/lib/sliceCaptionSidecar.d.ts +1 -1
  463. package/lib/sliceCaptionSidecar.mjs.map +1 -1
  464. package/package.json +7 -7
  465. package/src/IAutoMovieCaptionEntry.ts +1 -32
  466. package/src/IAutoMovieCaptionSidecar.ts +1 -29
  467. package/src/IAutoMovieCapturedFrame.ts +1 -24
  468. package/src/IAutoMovieGuidePassOutput.ts +1 -27
  469. package/src/IAutoMoviePoseKeypointActor.ts +1 -39
  470. package/src/IAutoMoviePoseKeypointFrame.ts +1 -28
  471. package/src/IAutoMoviePoseKeypointSidecar.ts +1 -25
  472. package/src/IAutoMovieRenderAdapters.ts +1 -39
  473. package/src/IAutoMovieRenderAndSeeRequest.ts +1 -38
  474. package/src/IAutoMovieRenderAndSeeResult.ts +1 -23
  475. package/src/IAutoMovieRenderChunk.ts +1 -62
  476. package/src/IAutoMovieRenderChunkPlan.ts +1 -40
  477. package/src/IAutoMovieRenderPassManifest.ts +1 -25
  478. package/src/IAutoMovieRenderReassembly.ts +1 -28
  479. package/src/IAutoMovieRenderResult.ts +1 -46
  480. package/src/IAutoMovieSequenceRenderAdapters.ts +1 -41
  481. package/src/IAutoMovieSequenceRenderAndSeeRequest.ts +1 -47
  482. package/src/IAutoMovieSequenceRenderAndSeeResult.ts +1 -23
  483. package/src/IAutoMovieSequenceRenderFrame.ts +1 -48
  484. package/src/IAutoMovieSequenceRenderPlan.ts +1 -88
  485. package/src/IAutoMovieSequenceRenderResult.ts +1 -52
  486. package/src/IAutoMovieSequenceRenderShotSpan.ts +1 -46
  487. package/src/IAutoMovieSequenceRenderTransitionSpan.ts +1 -46
  488. package/src/audio/mixAutoMovieAudioPcm.ts +10 -44
  489. package/src/auditAutoMovieRenderObservation.ts +5 -14
  490. package/src/cache/createAutoMovieHttpArtifactStore.ts +1 -1
  491. package/src/caption/IAutoMovieBeatCaption.ts +1 -23
  492. package/src/caption/beatCaptions.ts +1 -1
  493. package/src/caption/inspectAutoMovieCaptionReadabilityWithRuntime.ts +1 -12
  494. package/src/caption/parseAutoMovieCaptionLanguage.ts +1 -13
  495. package/src/capture/AutoMovieCaptureFolder.ts +10 -16
  496. package/src/capture/IAutoMovieCaptureBudget.ts +1 -26
  497. package/src/capture/IAutoMovieCaptureCell.ts +1 -42
  498. package/src/capture/IAutoMovieCaptureComparison.ts +1 -96
  499. package/src/capture/IAutoMovieCaptureDrawing.ts +1 -64
  500. package/src/capture/IAutoMovieCaptureLayout.ts +1 -51
  501. package/src/capture/IAutoMovieCapturePlan.ts +1 -36
  502. package/src/capture/IAutoMovieCapturePlanRequest.ts +1 -117
  503. package/src/capture/IAutoMovieCaptureRecord.ts +1 -174
  504. package/src/capture/IAutoMovieCaptureRequestSource.ts +1 -37
  505. package/src/capture/IAutoMovieCaptureResolution.ts +1 -23
  506. package/src/capture/IAutoMovieCaptureSelection.ts +1 -28
  507. package/src/capture/IAutoMovieCaptureStorage.ts +1 -76
  508. package/src/capture/IAutoMovieCaptureSubject.ts +1 -94
  509. package/src/capture/IAutoMovieCaptureTime.ts +1 -17
  510. package/src/capture/IAutoMovieCaptureWindow.ts +1 -29
  511. package/src/capture/compareAutoMovieCaptureRounds.ts +33 -48
  512. package/src/capture/formatAutoMovieCapturePlanRequest.ts +7 -3
  513. package/src/capture/markAutoMovieCaptureCell.ts +1 -1
  514. package/src/capture/parseAutoMovieCapturePlanRequest.ts +13 -10
  515. package/src/capture/planAutoMovieCapture.ts +20 -21
  516. package/src/capture/planAutoMovieCaptureFrames.ts +9 -28
  517. package/src/capture/planAutoMovieCaptureLayout.ts +8 -21
  518. package/src/capture/planAutoMovieVideoFrames.ts +5 -10
  519. package/src/capture/planAutoMovieVideoSceneCuts.ts +5 -10
  520. package/src/capture/readAutoMovieVideoSceneCuts.ts +5 -7
  521. package/src/capture/resolveAutoMovieCapturePatterns.ts +11 -14
  522. package/src/capture/runAutoMovieCapture.ts +19 -33
  523. package/src/capture/runAutoMovieVideoCapture.ts +13 -32
  524. package/src/capture/scaleAutoMovieCaptureLabels.ts +5 -2
  525. package/src/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.ts +5 -6
  526. package/src/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.ts +17 -27
  527. package/src/delivery/AutoMovieProductionPngRole.ts +1 -18
  528. package/src/delivery/IAutoMovieProductionPngProfile.ts +1 -52
  529. package/src/delivery/IAutoMovieProductionVideoProfile.ts +1 -48
  530. package/src/delivery/assertAutoMovieCaptureClock.ts +7 -7
  531. package/src/delivery/assertProductionPngPicture.ts +8 -13
  532. package/src/delivery/assertProductionVideoProfile.ts +5 -12
  533. package/src/delivery/auditAutoMovieDecodedFrames.ts +17 -56
  534. package/src/delivery/auditAutoMovieEncodedPresentation.ts +3 -8
  535. package/src/delivery/planAutoMovieVideoEncoding.ts +8 -23
  536. package/src/delivery/productionOpusDescription.ts +9 -15
  537. package/src/delivery/resolveProductionPngProfile.ts +9 -17
  538. package/src/delivery/resolveProductionVideoProfile.ts +9 -16
  539. package/src/draw/AutoMovieDrawSession.ts +19 -18
  540. package/src/draw/IAutoMovieDrawCall.ts +1 -34
  541. package/src/draw/IAutoMovieDrawDescription.ts +1 -17
  542. package/src/draw/IAutoMovieDrawFunction.ts +5 -3
  543. package/src/draw/IAutoMovieDrawResult.ts +1 -45
  544. package/src/draw/IAutoMovieDrawScene.ts +10 -2
  545. package/src/draw/decodeAutoMovieDrawPixels.ts +5 -3
  546. package/src/draw/describeAutoMovieDrawScene.ts +18 -11
  547. package/src/draw/index.ts +1 -0
  548. package/src/draw/installAutoMovieDraw.ts +43 -45
  549. package/src/draw/planAutoMovieDrawCall.ts +8 -5
  550. package/src/draw/renderAutoMovieDrawnVideo.ts +6 -9
  551. package/src/draw/replaceAutoMovieDrawInspection.ts +36 -0
  552. package/src/draw/stampAutoMovieDrawLegend.ts +7 -5
  553. package/src/film/AutoMovieOrderedScalar.ts +1 -15
  554. package/src/film/IAutoMovieProductionAudioAssetIdentity.ts +1 -40
  555. package/src/film/IAutoMovieProductionAudioAssetIdentityBase.ts +1 -34
  556. package/src/film/IAutoMovieProductionEncoderIdentity.ts +1 -42
  557. package/src/film/IAutoMovieProductionRenderChunk.ts +1 -47
  558. package/src/film/IAutoMovieProductionRenderJobPlan.ts +1 -73
  559. package/src/film/IAutoMovieProductionRenderRuntimeIdentity.ts +1 -37
  560. package/src/film/IAutoMovieProductionRenderTier.ts +1 -27
  561. package/src/film/equalOrderedScalars.ts +10 -10
  562. package/src/film/normalizeAudioAssets.ts +4 -2
  563. package/src/film/normalizeRenderTier.ts +1 -1
  564. package/src/film/planProductionRenderJob.ts +11 -48
  565. package/src/film/resolveProductionRenderTierFrameFormat.ts +1 -1
  566. package/src/film/validWaveAudioIdentity.ts +3 -3
  567. package/src/picture/AutoMovieRasterSheet.ts +7 -3
  568. package/src/picture/IAutoMovieRasterComparison.ts +1 -33
  569. package/src/picture/IAutoMovieRasterImage.ts +1 -19
  570. package/src/picture/compareAutoMovieRasters.ts +4 -2
  571. package/src/picture/decodeAutoMovieRasterPng.ts +2 -1
  572. package/src/picture/encodeAutoMovieRasterPng.ts +2 -1
  573. package/src/picture/hashAutoMovieRasterImage.ts +1 -1
  574. package/src/picture/stampAutoMovieRasterLabel.ts +5 -2
  575. package/src/planCaptionSidecar.ts +11 -30
  576. package/src/planChunkedSequenceRender.ts +15 -26
  577. package/src/planGuidePassOutputs.ts +10 -16
  578. package/src/planPoseKeypointSidecar.ts +11 -40
  579. package/src/planSequenceRender.ts +11 -32
  580. package/src/planViewerFrameTimes.ts +5 -22
  581. package/src/renderAndSee.ts +5 -2
  582. package/src/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.ts +1 -53
  583. package/src/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.ts +1 -61
  584. package/src/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.ts +1 -29
  585. package/src/renderBudgetPreflight/assessAutoMovieRenderBudget.ts +9 -37
  586. package/src/renderBudgetPreflight/autoMovieRenderBudgetEvidence.ts +11 -15
  587. package/src/renderBudgetPreflight/autoMovieRenderBudgetRefusal.ts +2 -3
  588. package/src/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.ts +4 -3
  589. package/src/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.ts +7 -19
  590. package/src/renderCaptionSidecar.ts +1 -1
  591. package/src/renderPoseKeypointSidecar.ts +1 -1
  592. package/src/renderSequenceAndSee.ts +5 -2
  593. package/src/renderSequenceVideo.ts +6 -4
  594. package/src/renderVideo.ts +5 -3
  595. package/src/scene/AutoMovieFilmBeautyComposition.ts +1 -24
  596. package/src/scene/AutoMoviePlayer.ts +12 -12
  597. package/src/scene/IApplyAutoMovieSectionPlanesProps.ts +1 -1
  598. package/src/scene/IAutoMovieFilmBeautyLayer.ts +1 -12
  599. package/src/scene/IAutoMovieFormationPoseTake.ts +1 -26
  600. package/src/scene/IAutoMovieFormationViewerObject.ts +4 -2
  601. package/src/scene/IAutoMovieRigLocalTransform.ts +1 -16
  602. package/src/scene/IAutoMovieSpringAxisSettlement.ts +2 -2
  603. package/src/scene/IBakeFormationCycleProps.ts +4 -2
  604. package/src/scene/applyAutoMovieRigLocals.ts +4 -2
  605. package/src/scene/applyAutoMovieSectionPlanes.ts +1 -1
  606. package/src/scene/applyFormationCycleCadence.ts +1 -1
  607. package/src/scene/applyPose.ts +2 -5
  608. package/src/scene/applyRenderMode.ts +5 -5
  609. package/src/scene/applySampledObjectMotion.ts +1 -1
  610. package/src/scene/applySemanticMaskMode.ts +1 -1
  611. package/src/scene/autoMovieAnalysisRampColor.ts +7 -5
  612. package/src/scene/bakeFormationCycle.ts +4 -3
  613. package/src/scene/buildAutoMovieConstruction.ts +2 -5
  614. package/src/scene/buildGeometry.ts +6 -9
  615. package/src/scene/buildInstancedEffect.ts +6 -6
  616. package/src/scene/buildInstancedFormation.ts +3 -3
  617. package/src/scene/buildSpaceObject.ts +7 -3
  618. package/src/scene/createAutoMoviePhysicalPoseAdapter.ts +4 -4
  619. package/src/scene/describeFormationTextureSources.ts +2 -2
  620. package/src/scene/formation/index.ts +1 -1
  621. package/src/scene/formationCycleCadence.ts +1 -1
  622. package/src/scene/human-polygon/AutoMovieHumanPolygon.ts +7 -67
  623. package/src/scene/human-polygon/applyHumanPolygonPose.ts +12 -7
  624. package/src/scene/human-polygon/buildHumanPolygon.ts +23 -12
  625. package/src/scene/human-polygon/buildHumanPolygonModule.ts +6 -3
  626. package/src/scene/human-polygon/buildHumanPolygonParts.ts +10 -6
  627. package/src/scene/human-polygon/createAutoMovieHumanPolygonFigure.ts +10 -3
  628. package/src/scene/index.ts +1 -1
  629. package/src/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.ts +3 -1
  630. package/src/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.ts +1 -1
  631. package/src/scene/inspection/IApplyAutoMovieInspectionProps.ts +5 -3
  632. package/src/scene/inspection/IAutoMovieInspectionCamera.ts +1 -38
  633. package/src/scene/inspection/IAutoMovieInspectionHandle.ts +8 -6
  634. package/src/scene/inspection/IAutoMovieInspectionKind.ts +1 -18
  635. package/src/scene/inspection/IAutoMovieInspectionLabel.ts +1 -21
  636. package/src/scene/inspection/IAutoMovieInspectionLegendEntry.ts +1 -24
  637. package/src/scene/inspection/IAutoMovieInspectionMarkSet.ts +1 -1
  638. package/src/scene/inspection/IAutoMovieInspectionMeasured.ts +1 -1
  639. package/src/scene/inspection/IAutoMovieInspectionRequest.ts +1 -115
  640. package/src/scene/inspection/IAutoMovieInspectionTrail.ts +1 -21
  641. package/src/scene/inspection/IAutoMovieInspectionView.ts +1 -92
  642. package/src/scene/inspection/applyAutoMovieInspection.ts +12 -8
  643. package/src/scene/inspection/applyAutoMovieInspectionSection.ts +1 -1
  644. package/src/scene/inspection/applyAutoMovieInspectionShade.ts +2 -2
  645. package/src/scene/inspection/buildAutoMovieInspectionMarks.ts +1 -1
  646. package/src/scene/inspection/chooseAutoMovieInspectionMarks.ts +1 -1
  647. package/src/scene/inspection/colorAutoMovieInspectionObjects.ts +6 -3
  648. package/src/scene/inspection/expandAutoMovieInspectionSweep.ts +8 -15
  649. package/src/scene/inspection/focusAutoMovieInspection.ts +6 -4
  650. package/src/scene/inspection/formatAutoMovieInspectionCameraView.ts +2 -1
  651. package/src/scene/inspection/formatAutoMovieInspectionRequest.ts +6 -3
  652. package/src/scene/inspection/formatAutoMovieInspectionView.ts +4 -3
  653. package/src/scene/inspection/legendAutoMovieInspectionMarks.ts +6 -3
  654. package/src/scene/inspection/listAutoMovieInspectionKinds.ts +7 -10
  655. package/src/scene/inspection/markAutoMovieInspectionTrails.ts +4 -2
  656. package/src/scene/inspection/measureAutoMovieInspectionDefects.ts +5 -5
  657. package/src/scene/inspection/measureAutoMovieInspectionEdges.ts +1 -1
  658. package/src/scene/inspection/measureAutoMovieInspectionMeshes.ts +1 -1
  659. package/src/scene/inspection/measureAutoMovieInspectionPaths.ts +6 -3
  660. package/src/scene/inspection/mergeAutoMovieInspectionLegends.ts +1 -1
  661. package/src/scene/inspection/parseAutoMovieInspectionRequest.ts +10 -7
  662. package/src/scene/inspection/parseAutoMovieInspectionView.ts +6 -4
  663. package/src/scene/inspection/placeAutoMovieInspectionLabels.ts +6 -7
  664. package/src/scene/inspection/planAutoMovieInspectionTrailTimes.ts +4 -11
  665. package/src/scene/inspection/resolveAutoMovieInspectionColors.ts +7 -11
  666. package/src/scene/inspection/resolveAutoMovieInspectionView.ts +5 -3
  667. package/src/scene/inspection/sampleAutoMovieInspectionTrails.ts +1 -1
  668. package/src/scene/matchesAutoMovieShadowTextureProfile.ts +1 -1
  669. package/src/scene/observeAutoMovieRendererFrame.ts +3 -3
  670. package/src/scene/planAutoMovieShadowTextureTarget.ts +1 -1
  671. package/src/scene/readAutoMovieFilmDisplayTextureResidency.ts +3 -12
  672. package/src/scene/readAutoMovieMaterialTextureSources.ts +5 -3
  673. package/src/scene/readAutoMovieRenderTextureTarget.ts +1 -1
  674. package/src/scene/readAutoMovieShadowTextureTargets.ts +5 -5
  675. package/src/scene/readAutoMovieTextureSource.ts +4 -2
  676. package/src/scene/readAutoMovieTransmissionTextureTarget.ts +1 -1
  677. package/src/scene/resolveAutoMovieFilmBeautyComposition.ts +6 -4
  678. package/src/scene/semanticMask/IAutoMovieSemanticMaskBinding.ts +1 -24
  679. package/src/scene/semanticMask/attachAutoMovieSemanticMask.ts +1 -1
  680. package/src/scene/semanticMask/autoMovieSemanticMaskOf.ts +1 -1
  681. package/src/sliceCaptionSidecar.ts +2 -2
@@ -41,13 +41,13 @@ const autoMovieViewerNamedViewpoints_js_1 = require("../scene/subjectViewpoint/a
41
41
  /**
42
42
  * Describe a created subject as a capture plans against it, from the scene as `create` left it: no second is sought, because a subject need not hold every second, such as a case that samples only its own instants.
43
43
  *
44
- * Named instants are the subject's own, copied. Views are the subject's own names, then the inspection's named viewpoints. Drawables are the inspection paths of the drawn objects, one world box per distinct path, the union of the boxes of every object sharing it; an object with an empty box is left out. Mark kinds are those the subject supplies at second 0, then `trail`, `trail/now`, `edge` and every `defect/<kind>`, the kinds the inspection draws from its own sampling and measurement; a subject whose kinds appear only later in its run lists them only at second 0's, which is a stated limit.
44
+ * Named instants are the subject's own, copied. Views are the subject's own names, then the inspection's named viewpoints. Drawables are the inspection paths of the drawn objects, one world box per distinct path, the union of the boxes of every object sharing it; an object with an empty box is left out. Mark kinds are the subject's declared `markKinds` and those it supplies at second 0, then `trail`, `trail/now`, `edge` and every `defect/<kind>`, the kinds the inspection draws from its own sampling and measurement. Declaring a later kind admits its capture without seeking through the film or inventing a marker at zero; its geometry still comes from `marks` at the drawn second.
45
45
  *
46
- * @evidence contracts/development/common.md#meaningful-documentation States where each member comes from, the order of names and kinds, the union rule and the limit on kinds.
46
+ * @evidence contracts/development/common.md#meaningful-documentation States where each member comes from, the order of names and kinds, the union rule and how declared later kinds differ from actual marks.
47
47
  * @evidence contracts/development/implementation.md#principled-implementation Paths come from the inspection's own path listing and boxes from three.js's `Box3.setFromObject` on world matrices brought up to date, so a sweep groups by the boxes the inspection draws.
48
48
  * @evidence contracts/development/implementation.md#clear-and-simple-structure Views, drawables, kinds, then one literal.
49
49
  * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Measured kinds are read from the inspection's palette, not restated.
50
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the drawn objects' vertices for the boxes and in the subject's marks at second 0.
50
+ * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the drawn objects' vertices for the boxes and in declared kinds and marks at second 0; no timeline sampling is added.
51
51
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Done once per page.
52
52
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returns plain records; the boxes are dropped.
53
53
  */
@@ -89,7 +89,13 @@ function describeAutoMovieDrawScene(name, scene) {
89
89
  min: { x: box.min.x, y: box.min.y, z: box.min.z },
90
90
  max: { x: box.max.x, y: box.max.y, z: box.max.z },
91
91
  })),
92
- marks: [...new Set([...supplied, ...measured])],
92
+ marks: [
93
+ ...new Set([
94
+ ...(scene.markKinds ?? []),
95
+ ...supplied,
96
+ ...measured,
97
+ ]),
98
+ ],
93
99
  ...(scene.instants === undefined
94
100
  ? {}
95
101
  : {
@@ -1 +1 @@
1
- {"version":3,"file":"describeAutoMovieDrawScene.js","sourceRoot":"","sources":["../../src/draw/describeAutoMovieDrawScene.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,MAAY,KAAK,kCAAc;AAG/B,2GAAqG;AAErG,yGAAmG;AAEnG,mHAA6G;AAG7G;;;;;;;;;;;;GAYG;AACH,oCACE,IAAY,EACZ,KAA0B;IAE1B,2CAA2C;IAC3C,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACpC,MAAM,KAAK,GAA4B,IAAI,GAAG,EAAE,CAAC;IACjD,MAAM,OAAO,GAA+B,IAAA,8DAA4B,EACtE,KAAK,CAAC,KAAK,CACZ,CAAC;IACF,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,MAAM,GAAG,GAAe,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACrE,IAAI,GAAG,CAAC,OAAO,EAAE;YAAE,SAAS;QAC5B,MAAM,KAAK,GAA2B,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC5D,IAAI,KAAK,KAAK,SAAS;YAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;;YAC/C,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxB,CAAC;IAED,kEAAkE;IAClE,MAAM,QAAQ,GAAa,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CACrD,CAAC,IAAoB,EAAU,EAAE,CAAC,IAAI,CAAC,IAAI,CAC5C,CAAC;IACF,MAAM,QAAQ,GAAa;QACzB,OAAO;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C;gBAC1B,GAAG,QAAQ;gBACX,GAAG,QAAQ;aACZ,CAAC;SACH;QACD,GAAG,CAAC,KAAK,CAAC,QAAQ,KAAK,SAAS;YAC9B,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC;gBACE,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,CAC1B,CAAC,OAGA,EAA4B,EAAE,CAAC,CAAC;oBAC/B,OAAO,EAAE,OAAO,CAAC,OAAO;oBACxB,KAAK,EAAE,OAAO,CAAC,KAAK;iBACrB,CAAC,CACH;aACF,CAAC;KACP,CAAC;AACJ,CAAC"}
@@ -6,13 +6,13 @@ import * as THREE from "three";
6
6
  /**
7
7
  * Describe a created subject as a capture plans against it, from the scene as `create` left it: no second is sought, because a subject need not hold every second, such as a case that samples only its own instants.
8
8
  *
9
- * Named instants are the subject's own, copied. Views are the subject's own names, then the inspection's named viewpoints. Drawables are the inspection paths of the drawn objects, one world box per distinct path, the union of the boxes of every object sharing it; an object with an empty box is left out. Mark kinds are those the subject supplies at second 0, then `trail`, `trail/now`, `edge` and every `defect/<kind>`, the kinds the inspection draws from its own sampling and measurement; a subject whose kinds appear only later in its run lists them only at second 0's, which is a stated limit.
9
+ * Named instants are the subject's own, copied. Views are the subject's own names, then the inspection's named viewpoints. Drawables are the inspection paths of the drawn objects, one world box per distinct path, the union of the boxes of every object sharing it; an object with an empty box is left out. Mark kinds are the subject's declared `markKinds` and those it supplies at second 0, then `trail`, `trail/now`, `edge` and every `defect/<kind>`, the kinds the inspection draws from its own sampling and measurement. Declaring a later kind admits its capture without seeking through the film or inventing a marker at zero; its geometry still comes from `marks` at the drawn second.
10
10
  *
11
- * @evidence contracts/development/common.md#meaningful-documentation States where each member comes from, the order of names and kinds, the union rule and the limit on kinds.
11
+ * @evidence contracts/development/common.md#meaningful-documentation States where each member comes from, the order of names and kinds, the union rule and how declared later kinds differ from actual marks.
12
12
  * @evidence contracts/development/implementation.md#principled-implementation Paths come from the inspection's own path listing and boxes from three.js's `Box3.setFromObject` on world matrices brought up to date, so a sweep groups by the boxes the inspection draws.
13
13
  * @evidence contracts/development/implementation.md#clear-and-simple-structure Views, drawables, kinds, then one literal.
14
14
  * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Measured kinds are read from the inspection's palette, not restated.
15
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the drawn objects' vertices for the boxes and in the subject's marks at second 0.
15
+ * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the drawn objects' vertices for the boxes and in declared kinds and marks at second 0; no timeline sampling is added.
16
16
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Done once per page.
17
17
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returns plain records; the boxes are dropped.
18
18
  */
@@ -54,7 +54,11 @@ function describeAutoMovieDrawScene(name, scene) {
54
54
  z: box.max.z
55
55
  }
56
56
  })),
57
- marks: [.../* @__PURE__ */ new Set([...supplied, ...measured])],
57
+ marks: [.../* @__PURE__ */ new Set([
58
+ ...scene.markKinds ?? [],
59
+ ...supplied,
60
+ ...measured
61
+ ])],
58
62
  ...scene.instants === void 0 ? {} : { instants: scene.instants.map((instant) => ({
59
63
  seconds: instant.seconds,
60
64
  label: instant.label
@@ -1 +1 @@
1
- {"version":3,"file":"describeAutoMovieDrawScene.mjs","names":[],"sources":["../../src/draw/describeAutoMovieDrawScene.ts"],"sourcesContent":["import type { IAutoMovieMark } from \"@automovie/engine\";\nimport * as THREE from \"three\";\n\nimport type { IAutoMovieCaptureSubject } from \"../capture/IAutoMovieCaptureSubject.js\";\nimport { AUTO_MOVIE_INSPECTION_PALETTE } from \"../scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.js\";\nimport type { IAutoMovieInspectionPath } from \"../scene/inspection/IAutoMovieInspectionPath.js\";\nimport { listAutoMovieInspectionPaths } from \"../scene/inspection/listAutoMovieInspectionPaths.js\";\nimport type { IAutoMovieViewerViewpoint } from \"../scene/subjectViewpoint/IAutoMovieViewerViewpoint.js\";\nimport { autoMovieViewerNamedViewpoints } from \"../scene/subjectViewpoint/autoMovieViewerNamedViewpoints.js\";\nimport type { IAutoMovieDrawScene } from \"./IAutoMovieDrawScene.js\";\n\n/**\n * Describe a created subject as a capture plans against it, from the scene as `create` left it: no second is sought, because a subject need not hold every second, such as a case that samples only its own instants.\n *\n * Named instants are the subject's own, copied. Views are the subject's own names, then the inspection's named viewpoints. Drawables are the inspection paths of the drawn objects, one world box per distinct path, the union of the boxes of every object sharing it; an object with an empty box is left out. Mark kinds are those the subject supplies at second 0, then `trail`, `trail/now`, `edge` and every `defect/<kind>`, the kinds the inspection draws from its own sampling and measurement; a subject whose kinds appear only later in its run lists them only at second 0's, which is a stated limit.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States where each member comes from, the order of names and kinds, the union rule and the limit on kinds.\n * @evidence contracts/development/implementation.md#principled-implementation Paths come from the inspection's own path listing and boxes from three.js's `Box3.setFromObject` on world matrices brought up to date, so a sweep groups by the boxes the inspection draws.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Views, drawables, kinds, then one literal.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Measured kinds are read from the inspection's palette, not restated.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the drawn objects' vertices for the boxes and in the subject's marks at second 0.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Done once per page.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returns plain records; the boxes are dropped.\n */\nexport function describeAutoMovieDrawScene(\n name: string,\n scene: IAutoMovieDrawScene,\n): IAutoMovieCaptureSubject {\n // Boxes per distinct path, in world space.\n scene.scene.updateMatrixWorld(true);\n const boxes: Map<string, THREE.Box3> = new Map();\n const entries: IAutoMovieInspectionPath[] = listAutoMovieInspectionPaths(\n scene.scene,\n );\n for (const entry of entries) {\n const box: THREE.Box3 = new THREE.Box3().setFromObject(entry.object);\n if (box.isEmpty()) continue;\n const known: THREE.Box3 | undefined = boxes.get(entry.path);\n if (known === undefined) boxes.set(entry.path, box);\n else known.union(box);\n }\n\n // Kinds the subject supplies, then those the inspection measures.\n const supplied: string[] = (scene.marks?.(0) ?? []).map(\n (mark: IAutoMovieMark): string => mark.kind,\n );\n const measured: string[] = [\n \"trail\",\n \"trail/now\",\n \"edge\",\n ...Object.keys(AUTO_MOVIE_INSPECTION_PALETTE.defect).map(\n (kind: string): string => `defect/${kind}`,\n ),\n ];\n\n return {\n name,\n durationSeconds: scene.durationSeconds,\n fps: scene.fps,\n width: scene.width,\n height: scene.height,\n views: [\n ...Object.keys(scene.views ?? {}),\n ...autoMovieViewerNamedViewpoints().map(\n (viewpoint: IAutoMovieViewerViewpoint): string => viewpoint.id,\n ),\n ],\n drawables: [...boxes].map(\n ([path, box]: [\n string,\n THREE.Box3,\n ]): IAutoMovieCaptureSubject.IDrawable => ({\n path,\n min: { x: box.min.x, y: box.min.y, z: box.min.z },\n max: { x: box.max.x, y: box.max.y, z: box.max.z },\n }),\n ),\n marks: [...new Set<string>([...supplied, ...measured])],\n ...(scene.instants === undefined\n ? {}\n : {\n instants: scene.instants.map(\n (instant: {\n seconds: number;\n label: string;\n }): IAutoMovieCaptureSubject.IInstant => ({\n seconds: instant.seconds,\n label: instant.label,\n }),\n ),\n }),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAwBA,SAAgB,2BACd,MACA,OAC0B;CAE1B,MAAM,MAAM,kBAAkB,IAAI;CAClC,MAAM,wBAAiC,IAAI,IAAI;CAC/C,MAAM,UAAsC,6BAC1C,MAAM,KACR;CACA,KAAK,MAAM,SAAS,SAAS;EAC3B,MAAM,MAAkB,IAAI,MAAM,KAAK,CAAC,CAAC,cAAc,MAAM,MAAM;EACnE,IAAI,IAAI,QAAQ,GAAG;EACnB,MAAM,QAAgC,MAAM,IAAI,MAAM,IAAI;EAC1D,IAAI,UAAU,KAAA,GAAW,MAAM,IAAI,MAAM,MAAM,GAAG;OAC7C,MAAM,MAAM,GAAG;CACtB;CAGA,MAAM,YAAsB,MAAM,QAAQ,CAAC,KAAK,CAAC,EAAA,CAAG,KACjD,SAAiC,KAAK,IACzC;CACA,MAAM,WAAqB;EACzB;EACA;EACA;EACA,GAAG,OAAO,KAAK,8BAA8B,MAAM,CAAC,CAAC,KAClD,SAAyB,UAAU,MACtC;CACF;CAEA,OAAO;EACL;EACA,iBAAiB,MAAM;EACvB,KAAK,MAAM;EACX,OAAO,MAAM;EACb,QAAQ,MAAM;EACd,OAAO,CACL,GAAG,OAAO,KAAK,MAAM,SAAS,CAAC,CAAC,GAChC,GAAG,+BAA+B,CAAC,CAAC,KACjC,cAAiD,UAAU,EAC9D,CACF;EACA,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,KACnB,CAAC,MAAM,UAGmC;GACzC;GACA,KAAK;IAAE,GAAG,IAAI,IAAI;IAAG,GAAG,IAAI,IAAI;IAAG,GAAG,IAAI,IAAI;GAAE;GAChD,KAAK;IAAE,GAAG,IAAI,IAAI;IAAG,GAAG,IAAI,IAAI;IAAG,GAAG,IAAI,IAAI;GAAE;EAClD,EACF;EACA,OAAO,CAAC,mBAAG,IAAI,IAAY,CAAC,GAAG,UAAU,GAAG,QAAQ,CAAC,CAAC;EACtD,GAAI,MAAM,aAAa,KAAA,IACnB,CAAC,IACD,EACE,UAAU,MAAM,SAAS,KACtB,aAGyC;GACxC,SAAS,QAAQ;GACjB,OAAO,QAAQ;EACjB,EACF,EACF;CACN;AACF"}
1
+ {"version":3,"file":"describeAutoMovieDrawScene.mjs","names":[],"sources":["../../src/draw/describeAutoMovieDrawScene.ts"],"sourcesContent":["import type {\n IAutoMovieCaptureInstant,\n IAutoMovieCaptureSubject,\n IAutoMovieInspectionDrawable,\n IAutoMovieMark,\n} from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport { AUTO_MOVIE_INSPECTION_PALETTE } from \"../scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.js\";\nimport type { IAutoMovieInspectionPath } from \"../scene/inspection/IAutoMovieInspectionPath.js\";\nimport { listAutoMovieInspectionPaths } from \"../scene/inspection/listAutoMovieInspectionPaths.js\";\nimport type { IAutoMovieViewerViewpoint } from \"../scene/subjectViewpoint/IAutoMovieViewerViewpoint.js\";\nimport { autoMovieViewerNamedViewpoints } from \"../scene/subjectViewpoint/autoMovieViewerNamedViewpoints.js\";\nimport type { IAutoMovieDrawScene } from \"./IAutoMovieDrawScene.js\";\n\n/**\n * Describe a created subject as a capture plans against it, from the scene as `create` left it: no second is sought, because a subject need not hold every second, such as a case that samples only its own instants.\n *\n * Named instants are the subject's own, copied. Views are the subject's own names, then the inspection's named viewpoints. Drawables are the inspection paths of the drawn objects, one world box per distinct path, the union of the boxes of every object sharing it; an object with an empty box is left out. Mark kinds are the subject's declared `markKinds` and those it supplies at second 0, then `trail`, `trail/now`, `edge` and every `defect/<kind>`, the kinds the inspection draws from its own sampling and measurement. Declaring a later kind admits its capture without seeking through the film or inventing a marker at zero; its geometry still comes from `marks` at the drawn second.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States where each member comes from, the order of names and kinds, the union rule and how declared later kinds differ from actual marks.\n * @evidence contracts/development/implementation.md#principled-implementation Paths come from the inspection's own path listing and boxes from three.js's `Box3.setFromObject` on world matrices brought up to date, so a sweep groups by the boxes the inspection draws.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Views, drawables, kinds, then one literal.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Measured kinds are read from the inspection's palette, not restated.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the drawn objects' vertices for the boxes and in declared kinds and marks at second 0; no timeline sampling is added.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Done once per page.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returns plain records; the boxes are dropped.\n */\nexport function describeAutoMovieDrawScene(\n name: string,\n scene: IAutoMovieDrawScene,\n): IAutoMovieCaptureSubject {\n // Boxes per distinct path, in world space.\n scene.scene.updateMatrixWorld(true);\n const boxes: Map<string, THREE.Box3> = new Map();\n const entries: IAutoMovieInspectionPath[] = listAutoMovieInspectionPaths(\n scene.scene,\n );\n for (const entry of entries) {\n const box: THREE.Box3 = new THREE.Box3().setFromObject(entry.object);\n if (box.isEmpty()) continue;\n const known: THREE.Box3 | undefined = boxes.get(entry.path);\n if (known === undefined) boxes.set(entry.path, box);\n else known.union(box);\n }\n\n // Kinds the subject supplies, then those the inspection measures.\n const supplied: string[] = (scene.marks?.(0) ?? []).map(\n (mark: IAutoMovieMark): string => mark.kind,\n );\n const measured: string[] = [\n \"trail\",\n \"trail/now\",\n \"edge\",\n ...Object.keys(AUTO_MOVIE_INSPECTION_PALETTE.defect).map(\n (kind: string): string => `defect/${kind}`,\n ),\n ];\n\n return {\n name,\n durationSeconds: scene.durationSeconds,\n fps: scene.fps,\n width: scene.width,\n height: scene.height,\n views: [\n ...Object.keys(scene.views ?? {}),\n ...autoMovieViewerNamedViewpoints().map(\n (viewpoint: IAutoMovieViewerViewpoint): string => viewpoint.id,\n ),\n ],\n drawables: [...boxes].map(\n ([path, box]: [string, THREE.Box3]): IAutoMovieInspectionDrawable => ({\n path,\n min: { x: box.min.x, y: box.min.y, z: box.min.z },\n max: { x: box.max.x, y: box.max.y, z: box.max.z },\n }),\n ),\n marks: [\n ...new Set<string>([\n ...(scene.markKinds ?? []),\n ...supplied,\n ...measured,\n ]),\n ],\n ...(scene.instants === undefined\n ? {}\n : {\n instants: scene.instants.map(\n (instant: {\n seconds: number;\n label: string;\n }): IAutoMovieCaptureInstant => ({\n seconds: instant.seconds,\n label: instant.label,\n }),\n ),\n }),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AA4BA,SAAgB,2BACd,MACA,OAC0B;CAE1B,MAAM,MAAM,kBAAkB,IAAI;CAClC,MAAM,wBAAiC,IAAI,IAAI;CAC/C,MAAM,UAAsC,6BAC1C,MAAM,KACR;CACA,KAAK,MAAM,SAAS,SAAS;EAC3B,MAAM,MAAkB,IAAI,MAAM,KAAK,CAAC,CAAC,cAAc,MAAM,MAAM;EACnE,IAAI,IAAI,QAAQ,GAAG;EACnB,MAAM,QAAgC,MAAM,IAAI,MAAM,IAAI;EAC1D,IAAI,UAAU,KAAA,GAAW,MAAM,IAAI,MAAM,MAAM,GAAG;OAC7C,MAAM,MAAM,GAAG;CACtB;CAGA,MAAM,YAAsB,MAAM,QAAQ,CAAC,KAAK,CAAC,EAAA,CAAG,KACjD,SAAiC,KAAK,IACzC;CACA,MAAM,WAAqB;EACzB;EACA;EACA;EACA,GAAG,OAAO,KAAK,8BAA8B,MAAM,CAAC,CAAC,KAClD,SAAyB,UAAU,MACtC;CACF;CAEA,OAAO;EACL;EACA,iBAAiB,MAAM;EACvB,KAAK,MAAM;EACX,OAAO,MAAM;EACb,QAAQ,MAAM;EACd,OAAO,CACL,GAAG,OAAO,KAAK,MAAM,SAAS,CAAC,CAAC,GAChC,GAAG,+BAA+B,CAAC,CAAC,KACjC,cAAiD,UAAU,EAC9D,CACF;EACA,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,KACnB,CAAC,MAAM,UAA8D;GACpE;GACA,KAAK;IAAE,GAAG,IAAI,IAAI;IAAG,GAAG,IAAI,IAAI;IAAG,GAAG,IAAI,IAAI;GAAE;GAChD,KAAK;IAAE,GAAG,IAAI,IAAI;IAAG,GAAG,IAAI,IAAI;IAAG,GAAG,IAAI,IAAI;GAAE;EAClD,EACF;EACA,OAAO,CACL,mBAAG,IAAI,IAAY;GACjB,GAAI,MAAM,aAAa,CAAC;GACxB,GAAG;GACH,GAAG;EACL,CAAC,CACH;EACA,GAAI,MAAM,aAAa,KAAA,IACnB,CAAC,IACD,EACE,UAAU,MAAM,SAAS,KACtB,aAGgC;GAC/B,SAAS,QAAQ;GACjB,OAAO,QAAQ;EACjB,EACF,EACF;CACN;AACF"}
@@ -15,5 +15,6 @@ export * from "./IAutoMovieDrawSubject.js";
15
15
  export * from "./installAutoMovieDraw.js";
16
16
  export * from "./planAutoMovieDrawCall.js";
17
17
  export * from "./renderAutoMovieDrawnVideo.js";
18
+ export * from "./replaceAutoMovieDrawInspection.js";
18
19
  export * from "./selectAutoMovieDrawSubject.js";
19
20
  export * from "./stampAutoMovieDrawLegend.js";
package/lib/draw/index.js CHANGED
@@ -31,6 +31,7 @@ __exportStar(require("./IAutoMovieDrawSubject.js"), exports);
31
31
  __exportStar(require("./installAutoMovieDraw.js"), exports);
32
32
  __exportStar(require("./planAutoMovieDrawCall.js"), exports);
33
33
  __exportStar(require("./renderAutoMovieDrawnVideo.js"), exports);
34
+ __exportStar(require("./replaceAutoMovieDrawInspection.js"), exports);
34
35
  __exportStar(require("./selectAutoMovieDrawSubject.js"), exports);
35
36
  __exportStar(require("./stampAutoMovieDrawLegend.js"), exports);
36
37
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/draw/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,4DAA0C;AAC1C,6DAA2C;AAC3C,iEAA+C;AAC/C,kEAAgD;AAChD,iEAA+C;AAC/C,0DAAwC;AACxC,iEAA+C;AAC/C,8DAA4C;AAC5C,0DAAwC;AACxC,2DAAyC;AACzC,4DAA0C;AAC1C,2DAAyC;AACzC,6DAA2C;AAC3C,4DAA0C;AAC1C,6DAA2C;AAC3C,iEAA+C;AAC/C,kEAAgD;AAChD,gEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/draw/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,4DAA0C;AAC1C,6DAA2C;AAC3C,iEAA+C;AAC/C,kEAAgD;AAChD,iEAA+C;AAC/C,0DAAwC;AACxC,iEAA+C;AAC/C,8DAA4C;AAC5C,0DAAwC;AACxC,2DAAyC;AACzC,4DAA0C;AAC1C,2DAAyC;AACzC,6DAA2C;AAC3C,4DAA0C;AAC1C,6DAA2C;AAC3C,iEAA+C;AAC/C,sEAAoD;AACpD,kEAAgD;AAChD,gEAA8C"}
@@ -6,6 +6,7 @@ import { encodeAutoMovieDrawPixels } from "./encodeAutoMovieDrawPixels.mjs";
6
6
  import { installAutoMovieDraw } from "./installAutoMovieDraw.mjs";
7
7
  import { planAutoMovieDrawCall } from "./planAutoMovieDrawCall.mjs";
8
8
  import { renderAutoMovieDrawnVideo } from "./renderAutoMovieDrawnVideo.mjs";
9
+ import { replaceAutoMovieDrawInspection } from "./replaceAutoMovieDrawInspection.mjs";
9
10
  import { selectAutoMovieDrawSubject } from "./selectAutoMovieDrawSubject.mjs";
10
11
  import { stampAutoMovieDrawLegend } from "./stampAutoMovieDrawLegend.mjs";
11
- export { AUTO_MOVIE_DRAW_GLOBALS, AutoMovieDrawSession, decodeAutoMovieDrawPixels, describeAutoMovieDrawScene, encodeAutoMovieDrawPixels, installAutoMovieDraw, planAutoMovieDrawCall, renderAutoMovieDrawnVideo, selectAutoMovieDrawSubject, stampAutoMovieDrawLegend };
12
+ export { AUTO_MOVIE_DRAW_GLOBALS, AutoMovieDrawSession, decodeAutoMovieDrawPixels, describeAutoMovieDrawScene, encodeAutoMovieDrawPixels, installAutoMovieDraw, planAutoMovieDrawCall, renderAutoMovieDrawnVideo, replaceAutoMovieDrawInspection, selectAutoMovieDrawSubject, stampAutoMovieDrawLegend };
@@ -4,9 +4,9 @@ import type { AutoMovieDrawSubjects } from "./AutoMovieDrawSubjects.js";
4
4
  *
5
5
  * The page's script calls it once with its module's `subjects`. The subject is created on the first call, with one WebGL renderer on a canvas that is never attached to the document, without antialiasing. A draw then:
6
6
  *
7
- * 1. applies the call's inspection to the scene, or keeps the one applied when the request is the same, restoring the previous one first;
8
- * 2. for a fitted view, frames it on the union of what the inspection leaves drawn, or its focus, over the call's `frame` seconds, measured once per view and selection;
9
- * 3. for each `trail` pattern of the request, samples the matched objects over `planAutoMovieInspectionTrailTimes` with `sampleAutoMovieInspectionTrails`, then seeks the call's second and waits for the subject to report ready, and brings the inspection to it with the subject's marks of that second and `markAutoMovieInspectionTrails` of the samples; every seek is awaited, the sampler's and the drawn second's, so a subject that becomes ready only after an await is never read or drawn at another second;
7
+ * 1. restores the previous inspection before placement, so a subject may replace its objects during a seek;
8
+ * 2. for a fitted view, places and inspects each framing second and frames the union of what the current inspection leaves drawn, or its focus, measured once per view and selection;
9
+ * 3. for each `trail` pattern of the request, samples the matched objects over `planAutoMovieInspectionTrailTimes` with `sampleAutoMovieInspectionTrails`, then seeks the call's second, awaits readiness and applies a fresh inspection to the resulting objects with their current marks and sampled trails; no seek occurs between this application and drawing;
10
10
  * 4. draws through the camera `resolveAutoMovieInspectionView` gives, at the call's raster, or for the `beauty` shade at twice each side with mark lines twice as wide;
11
11
  * 5. reads the drawn pixels back, flips them to rows from the top and averages a supersampled picture down, places the request's labels at the label scale, copies the inspection's legend of the marks drawn, and resolves every pattern of the request and view by `resolveAutoMovieCapturePatterns` against the scene's object paths and the selected mark paths, so the record names what each matched.
12
12
  *
@@ -20,10 +20,10 @@ import type { AutoMovieDrawSubjects } from "./AutoMovieDrawSubjects.js";
20
20
  *
21
21
  * @evidence contracts/development/common.md#meaningful-documentation States who calls it, when the subject and renderer are made, every step of a draw in order, why the canvas is read instead of a render target, and the supersampling rule.
22
22
  * @evidence contracts/development/implementation.md#principled-implementation WebGL's `readPixels` on the default framebuffer, read before the task ends, returns what the page shows; the inspection, the view grammar and the camera resolution are the inspection core's, so a still and the page draw the same scene through the same code. Framing on all the run's seconds keeps one camera per view, as `.agents/skills/visual-debugging/capture.md` asks for a view a later round compares.
23
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One loader for the subject and renderer, one applier keyed by the request, one placer that seeks and gathers a second's marks with its trails, one bounds cache keyed by view, selection and trails, and one draw that composes them; describing, pixel encoding and pattern resolution are their own modules.
23
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One loader owns the subject/renderer, one placer seeks and gathers marks/trails, one inspection lifecycle restores before placement and binds current objects, and one bounds cache is keyed by view/selection/trails. Describing, pixel encoding and pattern resolution retain their owners.
24
24
  * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A subject that is not ready is awaited, never drawn half placed; a view or request the inspection refuses throws to the host, which records the cell as not drawn.
25
- * @evidence contracts/development/implementation.md#efficient-algorithms A draw costs one seek, one inspection update, a trail's seeks over its window when asked, one render, one readback linear in the picture's pixels and one walk of the scene's paths for the resolution; a new request adds one inspection apply, and a new fitted view one seek and update per framing second.
26
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The subject, the renderer, the applied inspection while its request text is unchanged, and each view's framing box while its view text, selection and seconds are unchanged, are reused across draws.
25
+ * @evidence contracts/development/implementation.md#efficient-algorithms A draw places the actual second and applies inspection to its current objects, then renders and reads back linearly in pixels. A new fitted view additionally places and inspects each framing second; trails add their requested samples. Each necessary inspection includes its mesh/triangle measurements rather than silently measuring removed objects.
26
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work The subject, renderer and framing boxes keyed by view/selection/seconds are shared across draws. Inspection handles are recreated after placement because seek may replace geometry; unchanged request text proves no object identity or measurement equivalence.
27
27
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The page holds one subject, one renderer, one applied inspection and one box per framed view for its life; leaving the page restores the inspection and disposes the subject and renderer.
28
28
  */
29
29
  export declare function installAutoMovieDraw(subjects: AutoMovieDrawSubjects, target?: Record<string, unknown>): void;
@@ -36,8 +36,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.installAutoMovieDraw = installAutoMovieDraw;
37
37
  const THREE = __importStar(require("three"));
38
38
  const resolveAutoMovieCapturePatterns_js_1 = require("../capture/resolveAutoMovieCapturePatterns.js");
39
- const applyAutoMovieInspection_js_1 = require("../scene/inspection/applyAutoMovieInspection.js");
40
- const formatAutoMovieInspectionRequest_js_1 = require("../scene/inspection/formatAutoMovieInspectionRequest.js");
41
39
  const listAutoMovieInspectionPaths_js_1 = require("../scene/inspection/listAutoMovieInspectionPaths.js");
42
40
  const markAutoMovieInspectionTrails_js_1 = require("../scene/inspection/markAutoMovieInspectionTrails.js");
43
41
  const parseAutoMovieInspectionView_js_1 = require("../scene/inspection/parseAutoMovieInspectionView.js");
@@ -47,6 +45,7 @@ const sampleAutoMovieInspectionTrails_js_1 = require("../scene/inspection/sample
47
45
  const AUTO_MOVIE_DRAW_GLOBALS_js_1 = require("./AUTO_MOVIE_DRAW_GLOBALS.js");
48
46
  const describeAutoMovieDrawScene_js_1 = require("./describeAutoMovieDrawScene.js");
49
47
  const encodeAutoMovieDrawPixels_js_1 = require("./encodeAutoMovieDrawPixels.js");
48
+ const replaceAutoMovieDrawInspection_js_1 = require("./replaceAutoMovieDrawInspection.js");
50
49
  const selectAutoMovieDrawSubject_js_1 = require("./selectAutoMovieDrawSubject.js");
51
50
  /**
52
51
  * Side of the block the beauty pass is drawn at and averaged down from, so its edges are antialiased by area: two, the supersampling the motion harness drew its stills at.
@@ -57,9 +56,9 @@ const SUPERSAMPLE = 2;
57
56
  *
58
57
  * The page's script calls it once with its module's `subjects`. The subject is created on the first call, with one WebGL renderer on a canvas that is never attached to the document, without antialiasing. A draw then:
59
58
  *
60
- * 1. applies the call's inspection to the scene, or keeps the one applied when the request is the same, restoring the previous one first;
61
- * 2. for a fitted view, frames it on the union of what the inspection leaves drawn, or its focus, over the call's `frame` seconds, measured once per view and selection;
62
- * 3. for each `trail` pattern of the request, samples the matched objects over `planAutoMovieInspectionTrailTimes` with `sampleAutoMovieInspectionTrails`, then seeks the call's second and waits for the subject to report ready, and brings the inspection to it with the subject's marks of that second and `markAutoMovieInspectionTrails` of the samples; every seek is awaited, the sampler's and the drawn second's, so a subject that becomes ready only after an await is never read or drawn at another second;
59
+ * 1. restores the previous inspection before placement, so a subject may replace its objects during a seek;
60
+ * 2. for a fitted view, places and inspects each framing second and frames the union of what the current inspection leaves drawn, or its focus, measured once per view and selection;
61
+ * 3. for each `trail` pattern of the request, samples the matched objects over `planAutoMovieInspectionTrailTimes` with `sampleAutoMovieInspectionTrails`, then seeks the call's second, awaits readiness and applies a fresh inspection to the resulting objects with their current marks and sampled trails; no seek occurs between this application and drawing;
63
62
  * 4. draws through the camera `resolveAutoMovieInspectionView` gives, at the call's raster, or for the `beauty` shade at twice each side with mark lines twice as wide;
64
63
  * 5. reads the drawn pixels back, flips them to rows from the top and averages a supersampled picture down, places the request's labels at the label scale, copies the inspection's legend of the marks drawn, and resolves every pattern of the request and view by `resolveAutoMovieCapturePatterns` against the scene's object paths and the selected mark paths, so the record names what each matched.
65
64
  *
@@ -73,10 +72,10 @@ const SUPERSAMPLE = 2;
73
72
  *
74
73
  * @evidence contracts/development/common.md#meaningful-documentation States who calls it, when the subject and renderer are made, every step of a draw in order, why the canvas is read instead of a render target, and the supersampling rule.
75
74
  * @evidence contracts/development/implementation.md#principled-implementation WebGL's `readPixels` on the default framebuffer, read before the task ends, returns what the page shows; the inspection, the view grammar and the camera resolution are the inspection core's, so a still and the page draw the same scene through the same code. Framing on all the run's seconds keeps one camera per view, as `.agents/skills/visual-debugging/capture.md` asks for a view a later round compares.
76
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One loader for the subject and renderer, one applier keyed by the request, one placer that seeks and gathers a second's marks with its trails, one bounds cache keyed by view, selection and trails, and one draw that composes them; describing, pixel encoding and pattern resolution are their own modules.
75
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One loader owns the subject/renderer, one placer seeks and gathers marks/trails, one inspection lifecycle restores before placement and binds current objects, and one bounds cache is keyed by view/selection/trails. Describing, pixel encoding and pattern resolution retain their owners.
77
76
  * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A subject that is not ready is awaited, never drawn half placed; a view or request the inspection refuses throws to the host, which records the cell as not drawn.
78
- * @evidence contracts/development/implementation.md#efficient-algorithms A draw costs one seek, one inspection update, a trail's seeks over its window when asked, one render, one readback linear in the picture's pixels and one walk of the scene's paths for the resolution; a new request adds one inspection apply, and a new fitted view one seek and update per framing second.
79
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The subject, the renderer, the applied inspection while its request text is unchanged, and each view's framing box while its view text, selection and seconds are unchanged, are reused across draws.
77
+ * @evidence contracts/development/implementation.md#efficient-algorithms A draw places the actual second and applies inspection to its current objects, then renders and reads back linearly in pixels. A new fitted view additionally places and inspects each framing second; trails add their requested samples. Each necessary inspection includes its mesh/triangle measurements rather than silently measuring removed objects.
78
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work The subject, renderer and framing boxes keyed by view/selection/seconds are shared across draws. Inspection handles are recreated after placement because seek may replace geometry; unchanged request text proves no object identity or measurement equivalence.
80
79
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The page holds one subject, one renderer, one applied inspection and one box per framed view for its life; leaving the page restores the inspection and disposes the subject and renderer.
81
80
  */
82
81
  function installAutoMovieDraw(subjects, target = globalThis) {
@@ -119,27 +118,24 @@ function installAutoMovieDraw(subjects, target = globalThis) {
119
118
  ...(0, markAutoMovieInspectionTrails_js_1.markAutoMovieInspectionTrails)(trails, seconds),
120
119
  ];
121
120
  };
122
- // The applied inspection, kept while its request is unchanged.
121
+ // The current inspection ends before any placement can replace its objects.
123
122
  let applied = null;
124
123
  const inspect = async (loaded, request, seconds) => {
125
- const key = JSON.stringify((0, formatAutoMovieInspectionRequest_js_1.formatAutoMovieInspectionRequest)(request));
126
- if (applied !== null && applied.key === key)
127
- return applied.handle;
128
- applied?.handle.restore();
124
+ const previous = applied?.handle ?? null;
129
125
  applied = null;
130
- const marks = await place(loaded, request, seconds);
131
- const handle = (0, applyAutoMovieInspection_js_1.applyAutoMovieInspection)({
126
+ const handle = await (0, replaceAutoMovieDrawInspection_js_1.replaceAutoMovieDrawInspection)({
127
+ previous,
132
128
  scene: loaded.scene.scene,
133
129
  request,
134
130
  renderer: loaded.renderer,
135
- marks,
131
+ place: () => place(loaded, request, seconds),
136
132
  });
137
- applied = { key, handle };
133
+ applied = { handle };
138
134
  return handle;
139
135
  };
140
136
  // Framing boxes, one per view text, selection and span of seconds.
141
137
  const framings = new Map();
142
- const frame = async (loaded, handle, call, view) => {
138
+ const frame = async (loaded, call, view) => {
143
139
  const key = JSON.stringify([
144
140
  call.view,
145
141
  call.request.parts,
@@ -155,7 +151,7 @@ function installAutoMovieDraw(subjects, target = globalThis) {
155
151
  return framings.get(key);
156
152
  let union = null;
157
153
  for (const seconds of call.frame) {
158
- handle.update(await place(loaded, call.request, seconds));
154
+ const handle = await inspect(loaded, call.request, seconds);
159
155
  union = unite(union, handle.bounds(view.focus));
160
156
  }
161
157
  framings.set(key, union);
@@ -174,18 +170,17 @@ function installAutoMovieDraw(subjects, target = globalThis) {
174
170
  draw: async (call) => {
175
171
  const loaded = await load();
176
172
  const { scene, renderer } = loaded;
177
- // 1. The inspection, its marks drawn the stated width in output pixels.
173
+ // The supersampled surface keeps marks at the requested output-pixel width.
178
174
  const factor = call.request.shade === "beauty" ? SUPERSAMPLE : 1;
179
- const handle = await inspect(loaded, { ...call.request, stroke: call.request.stroke * factor }, call.seconds);
180
175
  // 2. A fitted view's framing over the call's seconds.
181
176
  const view = (0, parseAutoMovieInspectionView_js_1.parseAutoMovieInspectionView)(call.view);
182
177
  const fitted = view.type === "named" &&
183
178
  !(scene.views !== undefined && Object.hasOwn(scene.views, view.name));
184
179
  const bounds = fitted && view.type === "named"
185
- ? await frame(loaded, handle, call, view)
180
+ ? await frame(loaded, call, view)
186
181
  : null;
187
182
  // 3. The second itself, once the subject is ready.
188
- handle.update(await place(loaded, call.request, call.seconds));
183
+ const handle = await inspect(loaded, { ...call.request, stroke: call.request.stroke * factor }, call.seconds);
189
184
  // 4. Draw through the resolved camera at the drawn raster.
190
185
  const width = call.width * factor;
191
186
  const height = call.height * factor;
@@ -1 +1 @@
1
- {"version":3,"file":"installAutoMovieDraw.js","sourceRoot":"","sources":["../../src/draw/installAutoMovieDraw.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,MAAY,KAAK,kCAAc;AAE/B,sGAAgG;AAShG,iGAA2F;AAC3F,iHAA2G;AAC3G,yGAAmG;AACnG,2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mjs";
2
- import { applyAutoMovieInspection } from "../scene/inspection/applyAutoMovieInspection.mjs";
3
- import { formatAutoMovieInspectionRequest } from "../scene/inspection/formatAutoMovieInspectionRequest.mjs";
4
2
  import { listAutoMovieInspectionPaths } from "../scene/inspection/listAutoMovieInspectionPaths.mjs";
5
3
  import { markAutoMovieInspectionTrails } from "../scene/inspection/markAutoMovieInspectionTrails.mjs";
6
4
  import { parseAutoMovieInspectionView } from "../scene/inspection/parseAutoMovieInspectionView.mjs";
@@ -10,6 +8,7 @@ import { sampleAutoMovieInspectionTrails } from "../scene/inspection/sampleAutoM
10
8
  import { AUTO_MOVIE_DRAW_GLOBALS } from "./AUTO_MOVIE_DRAW_GLOBALS.mjs";
11
9
  import { describeAutoMovieDrawScene } from "./describeAutoMovieDrawScene.mjs";
12
10
  import { encodeAutoMovieDrawPixels } from "./encodeAutoMovieDrawPixels.mjs";
11
+ import { replaceAutoMovieDrawInspection } from "./replaceAutoMovieDrawInspection.mjs";
13
12
  import { selectAutoMovieDrawSubject } from "./selectAutoMovieDrawSubject.mjs";
14
13
  import * as THREE from "three";
15
14
  // src/draw/installAutoMovieDraw.ts
@@ -22,9 +21,9 @@ const SUPERSAMPLE = 2;
22
21
  *
23
22
  * The page's script calls it once with its module's `subjects`. The subject is created on the first call, with one WebGL renderer on a canvas that is never attached to the document, without antialiasing. A draw then:
24
23
  *
25
- * 1. applies the call's inspection to the scene, or keeps the one applied when the request is the same, restoring the previous one first;
26
- * 2. for a fitted view, frames it on the union of what the inspection leaves drawn, or its focus, over the call's `frame` seconds, measured once per view and selection;
27
- * 3. for each `trail` pattern of the request, samples the matched objects over `planAutoMovieInspectionTrailTimes` with `sampleAutoMovieInspectionTrails`, then seeks the call's second and waits for the subject to report ready, and brings the inspection to it with the subject's marks of that second and `markAutoMovieInspectionTrails` of the samples; every seek is awaited, the sampler's and the drawn second's, so a subject that becomes ready only after an await is never read or drawn at another second;
24
+ * 1. restores the previous inspection before placement, so a subject may replace its objects during a seek;
25
+ * 2. for a fitted view, places and inspects each framing second and frames the union of what the current inspection leaves drawn, or its focus, measured once per view and selection;
26
+ * 3. for each `trail` pattern of the request, samples the matched objects over `planAutoMovieInspectionTrailTimes` with `sampleAutoMovieInspectionTrails`, then seeks the call's second, awaits readiness and applies a fresh inspection to the resulting objects with their current marks and sampled trails; no seek occurs between this application and drawing;
28
27
  * 4. draws through the camera `resolveAutoMovieInspectionView` gives, at the call's raster, or for the `beauty` shade at twice each side with mark lines twice as wide;
29
28
  * 5. reads the drawn pixels back, flips them to rows from the top and averages a supersampled picture down, places the request's labels at the label scale, copies the inspection's legend of the marks drawn, and resolves every pattern of the request and view by `resolveAutoMovieCapturePatterns` against the scene's object paths and the selected mark paths, so the record names what each matched.
30
29
  *
@@ -38,10 +37,10 @@ const SUPERSAMPLE = 2;
38
37
  *
39
38
  * @evidence contracts/development/common.md#meaningful-documentation States who calls it, when the subject and renderer are made, every step of a draw in order, why the canvas is read instead of a render target, and the supersampling rule.
40
39
  * @evidence contracts/development/implementation.md#principled-implementation WebGL's `readPixels` on the default framebuffer, read before the task ends, returns what the page shows; the inspection, the view grammar and the camera resolution are the inspection core's, so a still and the page draw the same scene through the same code. Framing on all the run's seconds keeps one camera per view, as `.agents/skills/visual-debugging/capture.md` asks for a view a later round compares.
41
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One loader for the subject and renderer, one applier keyed by the request, one placer that seeks and gathers a second's marks with its trails, one bounds cache keyed by view, selection and trails, and one draw that composes them; describing, pixel encoding and pattern resolution are their own modules.
40
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One loader owns the subject/renderer, one placer seeks and gathers marks/trails, one inspection lifecycle restores before placement and binds current objects, and one bounds cache is keyed by view/selection/trails. Describing, pixel encoding and pattern resolution retain their owners.
42
41
  * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A subject that is not ready is awaited, never drawn half placed; a view or request the inspection refuses throws to the host, which records the cell as not drawn.
43
- * @evidence contracts/development/implementation.md#efficient-algorithms A draw costs one seek, one inspection update, a trail's seeks over its window when asked, one render, one readback linear in the picture's pixels and one walk of the scene's paths for the resolution; a new request adds one inspection apply, and a new fitted view one seek and update per framing second.
44
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The subject, the renderer, the applied inspection while its request text is unchanged, and each view's framing box while its view text, selection and seconds are unchanged, are reused across draws.
42
+ * @evidence contracts/development/implementation.md#efficient-algorithms A draw places the actual second and applies inspection to its current objects, then renders and reads back linearly in pixels. A new fitted view additionally places and inspects each framing second; trails add their requested samples. Each necessary inspection includes its mesh/triangle measurements rather than silently measuring removed objects.
43
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work The subject, renderer and framing boxes keyed by view/selection/seconds are shared across draws. Inspection handles are recreated after placement because seek may replace geometry; unchanged request text proves no object identity or measurement equivalence.
45
44
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The page holds one subject, one renderer, one applied inspection and one box per framed view for its life; leaving the page restores the inspection and disposes the subject and renderer.
46
45
  */
47
46
  function installAutoMovieDraw(subjects, target = globalThis) {
@@ -87,25 +86,20 @@ function installAutoMovieDraw(subjects, target = globalThis) {
87
86
  };
88
87
  let applied = null;
89
88
  const inspect = async (loaded, request, seconds) => {
90
- const key = JSON.stringify(formatAutoMovieInspectionRequest(request));
91
- if (applied !== null && applied.key === key) return applied.handle;
92
- applied?.handle.restore();
89
+ const previous = applied?.handle ?? null;
93
90
  applied = null;
94
- const marks = await place(loaded, request, seconds);
95
- const handle = applyAutoMovieInspection({
91
+ const handle = await replaceAutoMovieDrawInspection({
92
+ previous,
96
93
  scene: loaded.scene.scene,
97
94
  request,
98
95
  renderer: loaded.renderer,
99
- marks
96
+ place: () => place(loaded, request, seconds)
100
97
  });
101
- applied = {
102
- key,
103
- handle
104
- };
98
+ applied = { handle };
105
99
  return handle;
106
100
  };
107
101
  const framings = /* @__PURE__ */ new Map();
108
- const frame = async (loaded, handle, call, view) => {
102
+ const frame = async (loaded, call, view) => {
109
103
  const key = JSON.stringify([
110
104
  call.view,
111
105
  call.request.parts,
@@ -120,7 +114,7 @@ function installAutoMovieDraw(subjects, target = globalThis) {
120
114
  if (framings.has(key)) return framings.get(key);
121
115
  let union = null;
122
116
  for (const seconds of call.frame) {
123
- handle.update(await place(loaded, call.request, seconds));
117
+ const handle = await inspect(loaded, call.request, seconds);
124
118
  union = unite(union, handle.bounds(view.focus));
125
119
  }
126
120
  framings.set(key, union);
@@ -140,13 +134,12 @@ function installAutoMovieDraw(subjects, target = globalThis) {
140
134
  const loaded = await load();
141
135
  const { scene, renderer } = loaded;
142
136
  const factor = call.request.shade === "beauty" ? SUPERSAMPLE : 1;
137
+ const view = parseAutoMovieInspectionView(call.view);
138
+ const bounds = view.type === "named" && !(scene.views !== void 0 && Object.hasOwn(scene.views, view.name)) && view.type === "named" ? await frame(loaded, call, view) : null;
143
139
  const handle = await inspect(loaded, {
144
140
  ...call.request,
145
141
  stroke: call.request.stroke * factor
146
142
  }, call.seconds);
147
- const view = parseAutoMovieInspectionView(call.view);
148
- const bounds = view.type === "named" && !(scene.views !== void 0 && Object.hasOwn(scene.views, view.name)) && view.type === "named" ? await frame(loaded, handle, call, view) : null;
149
- handle.update(await place(loaded, call.request, call.seconds));
150
143
  const width = call.width * factor;
151
144
  const height = call.height * factor;
152
145
  if (scene.camera.aspect !== call.width / call.height) {
@@ -1 +1 @@
1
- {"version":3,"file":"installAutoMovieDraw.mjs","names":[],"sources":["../../src/draw/installAutoMovieDraw.ts"],"sourcesContent":["import type { IAutoMovieMark } from \"@automovie/engine\";\nimport * as THREE from \"three\";\n\nimport { resolveAutoMovieCapturePatterns } from \"../capture/resolveAutoMovieCapturePatterns.js\";\nimport type { IAutoMovieInspectionCamera } from \"../scene/inspection/IAutoMovieInspectionCamera.js\";\nimport type { IAutoMovieInspectionHandle } from \"../scene/inspection/IAutoMovieInspectionHandle.js\";\nimport type { IAutoMovieInspectionLabel } from \"../scene/inspection/IAutoMovieInspectionLabel.js\";\nimport type { IAutoMovieInspectionLegendEntry } from \"../scene/inspection/IAutoMovieInspectionLegendEntry.js\";\nimport type { IAutoMovieInspectionPath } from \"../scene/inspection/IAutoMovieInspectionPath.js\";\nimport type { IAutoMovieInspectionRequest } from \"../scene/inspection/IAutoMovieInspectionRequest.js\";\nimport type { IAutoMovieInspectionTrail } from \"../scene/inspection/IAutoMovieInspectionTrail.js\";\nimport type { IAutoMovieInspectionView } from \"../scene/inspection/IAutoMovieInspectionView.js\";\nimport { applyAutoMovieInspection } from \"../scene/inspection/applyAutoMovieInspection.js\";\nimport { formatAutoMovieInspectionRequest } from \"../scene/inspection/formatAutoMovieInspectionRequest.js\";\nimport { listAutoMovieInspectionPaths } from \"../scene/inspection/listAutoMovieInspectionPaths.js\";\nimport { markAutoMovieInspectionTrails } from \"../scene/inspection/markAutoMovieInspectionTrails.js\";\nimport { parseAutoMovieInspectionView } from \"../scene/inspection/parseAutoMovieInspectionView.js\";\nimport { planAutoMovieInspectionTrailTimes } from \"../scene/inspection/planAutoMovieInspectionTrailTimes.js\";\nimport { resolveAutoMovieInspectionView } from \"../scene/inspection/resolveAutoMovieInspectionView.js\";\nimport { sampleAutoMovieInspectionTrails } from \"../scene/inspection/sampleAutoMovieInspectionTrails.js\";\nimport type { IAutoMovieViewerSubjectBounds } from \"../scene/subjectViewpoint/IAutoMovieViewerSubjectBounds.js\";\nimport { AUTO_MOVIE_DRAW_GLOBALS } from \"./AUTO_MOVIE_DRAW_GLOBALS.js\";\nimport type { AutoMovieDrawSubjects } from \"./AutoMovieDrawSubjects.js\";\nimport type { IAutoMovieDrawCall } from \"./IAutoMovieDrawCall.js\";\nimport type { IAutoMovieDrawDescription } from \"./IAutoMovieDrawDescription.js\";\nimport type { IAutoMovieDrawFunction } from \"./IAutoMovieDrawFunction.js\";\nimport type { IAutoMovieDrawProps } from \"./IAutoMovieDrawProps.js\";\nimport type { IAutoMovieDrawResult } from \"./IAutoMovieDrawResult.js\";\nimport type { IAutoMovieDrawScene } from \"./IAutoMovieDrawScene.js\";\nimport type { IAutoMovieDrawSubject } from \"./IAutoMovieDrawSubject.js\";\nimport { describeAutoMovieDrawScene } from \"./describeAutoMovieDrawScene.js\";\nimport { encodeAutoMovieDrawPixels } from \"./encodeAutoMovieDrawPixels.js\";\nimport { selectAutoMovieDrawSubject } from \"./selectAutoMovieDrawSubject.js\";\n\n/**\n * Side of the block the beauty pass is drawn at and averaged down from, so its edges are antialiased by area: two, the supersampling the motion harness drew its stills at.\n */\nconst SUPERSAMPLE: number = 2;\n\n/**\n * Install the draw-only function on a page: read the props the host injected, and answer `describe` and `draw` for the subject they name, drawing offscreen with no interface.\n *\n * The page's script calls it once with its module's `subjects`. The subject is created on the first call, with one WebGL renderer on a canvas that is never attached to the document, without antialiasing. A draw then:\n *\n * 1. applies the call's inspection to the scene, or keeps the one applied when the request is the same, restoring the previous one first;\n * 2. for a fitted view, frames it on the union of what the inspection leaves drawn, or its focus, over the call's `frame` seconds, measured once per view and selection;\n * 3. for each `trail` pattern of the request, samples the matched objects over `planAutoMovieInspectionTrailTimes` with `sampleAutoMovieInspectionTrails`, then seeks the call's second and waits for the subject to report ready, and brings the inspection to it with the subject's marks of that second and `markAutoMovieInspectionTrails` of the samples; every seek is awaited, the sampler's and the drawn second's, so a subject that becomes ready only after an await is never read or drawn at another second;\n * 4. draws through the camera `resolveAutoMovieInspectionView` gives, at the call's raster, or for the `beauty` shade at twice each side with mark lines twice as wide;\n * 5. reads the drawn pixels back, flips them to rows from the top and averages a supersampled picture down, places the request's labels at the label scale, copies the inspection's legend of the marks drawn, and resolves every pattern of the request and view by `resolveAutoMovieCapturePatterns` against the scene's object paths and the selected mark paths, so the record names what each matched.\n *\n * It draws to the renderer's own canvas and reads it back in the same task, so colour conversion and tone mapping are the ones the interactive page applies to its canvas; a render target would skip both. The film camera's aspect is set to the picture's, as the page sets it to its canvas.\n *\n * ```ts\n * import { installAutoMovieDraw } from \"@automovie/render\";\n * import { subjects } from \"./subjects\";\n * installAutoMovieDraw(subjects);\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation States who calls it, when the subject and renderer are made, every step of a draw in order, why the canvas is read instead of a render target, and the supersampling rule.\n * @evidence contracts/development/implementation.md#principled-implementation WebGL's `readPixels` on the default framebuffer, read before the task ends, returns what the page shows; the inspection, the view grammar and the camera resolution are the inspection core's, so a still and the page draw the same scene through the same code. Framing on all the run's seconds keeps one camera per view, as `.agents/skills/visual-debugging/capture.md` asks for a view a later round compares.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One loader for the subject and renderer, one applier keyed by the request, one placer that seeks and gathers a second's marks with its trails, one bounds cache keyed by view, selection and trails, and one draw that composes them; describing, pixel encoding and pattern resolution are their own modules.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A subject that is not ready is awaited, never drawn half placed; a view or request the inspection refuses throws to the host, which records the cell as not drawn.\n * @evidence contracts/development/implementation.md#efficient-algorithms A draw costs one seek, one inspection update, a trail's seeks over its window when asked, one render, one readback linear in the picture's pixels and one walk of the scene's paths for the resolution; a new request adds one inspection apply, and a new fitted view one seek and update per framing second.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work The subject, the renderer, the applied inspection while its request text is unchanged, and each view's framing box while its view text, selection and seconds are unchanged, are reused across draws.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The page holds one subject, one renderer, one applied inspection and one box per framed view for its life; leaving the page restores the inspection and disposes the subject and renderer.\n */\nexport function installAutoMovieDraw(\n subjects: AutoMovieDrawSubjects,\n target: Record<string, unknown> = globalThis as unknown as Record<\n string,\n unknown\n >,\n): void {\n const injected: IAutoMovieDrawProps = (target[\n AUTO_MOVIE_DRAW_GLOBALS.props\n ] as IAutoMovieDrawProps | undefined) ?? { subject: null, props: null };\n const offered: Readonly<Record<string, IAutoMovieDrawSubject>> = subjects(\n injected.props,\n );\n\n // The subject and the renderer, made once on the first call.\n let loading: Promise<ILoaded> | null = null;\n const load: () => Promise<ILoaded> = (): Promise<ILoaded> =>\n (loading ??= (async (): Promise<ILoaded> => {\n const name: string = selectAutoMovieDrawSubject(\n Object.keys(offered),\n injected.subject,\n );\n const scene: IAutoMovieDrawScene = await offered[name]!.create();\n const renderer: THREE.WebGLRenderer = new THREE.WebGLRenderer({\n antialias: false,\n alpha: false,\n preserveDrawingBuffer: false,\n });\n renderer.setPixelRatio(1);\n return { name, scene, renderer };\n })());\n\n // The subject placed at a second, with its own marks and the trails the request asks for there.\n const place: (\n loaded: ILoaded,\n request: IAutoMovieInspectionRequest,\n seconds: number,\n ) => Promise<IAutoMovieMark[]> = async (\n loaded: ILoaded,\n request: IAutoMovieInspectionRequest,\n seconds: number,\n ): Promise<IAutoMovieMark[]> => {\n const { scene } = loaded;\n const trails: IAutoMovieInspectionTrail[] = [];\n if (request.trail.length !== 0) {\n const times: number[] = planAutoMovieInspectionTrailTimes({\n request,\n seconds,\n durationSeconds: scene.durationSeconds,\n });\n for (const pattern of request.trail)\n trails.push(\n ...(await sampleAutoMovieInspectionTrails({\n scene: scene.scene,\n pattern,\n times,\n seek: (at: number): Promise<void> => scene.seek(at),\n })),\n );\n }\n await scene.seek(seconds);\n return [\n ...(scene.marks?.(seconds) ?? []),\n ...markAutoMovieInspectionTrails(trails, seconds),\n ];\n };\n\n // The applied inspection, kept while its request is unchanged.\n let applied: { key: string; handle: IAutoMovieInspectionHandle } | null =\n null;\n const inspect: (\n loaded: ILoaded,\n request: IAutoMovieInspectionRequest,\n seconds: number,\n ) => Promise<IAutoMovieInspectionHandle> = async (\n loaded: ILoaded,\n request: IAutoMovieInspectionRequest,\n seconds: number,\n ): Promise<IAutoMovieInspectionHandle> => {\n const key: string = JSON.stringify(\n formatAutoMovieInspectionRequest(request),\n );\n if (applied !== null && applied.key === key) return applied.handle;\n applied?.handle.restore();\n applied = null;\n const marks: IAutoMovieMark[] = await place(loaded, request, seconds);\n const handle: IAutoMovieInspectionHandle = applyAutoMovieInspection({\n scene: loaded.scene.scene,\n request,\n renderer: loaded.renderer,\n marks,\n });\n applied = { key, handle };\n return handle;\n };\n\n // Framing boxes, one per view text, selection and span of seconds.\n const framings: Map<string, IAutoMovieViewerSubjectBounds | null> = new Map();\n const frame: (\n loaded: ILoaded,\n handle: IAutoMovieInspectionHandle,\n call: IAutoMovieDrawCall,\n view: IAutoMovieInspectionView.INamed,\n ) => Promise<IAutoMovieViewerSubjectBounds | null> = async (\n loaded: ILoaded,\n handle: IAutoMovieInspectionHandle,\n call: IAutoMovieDrawCall,\n view: IAutoMovieInspectionView.INamed,\n ): Promise<IAutoMovieViewerSubjectBounds | null> => {\n const key: string = JSON.stringify([\n call.view,\n call.request.parts,\n call.request.hide,\n call.request.surface,\n call.request.marks,\n call.request.trail,\n call.request.reach,\n call.request.ticks,\n call.frame,\n ]);\n if (framings.has(key)) return framings.get(key)!;\n let union: IAutoMovieViewerSubjectBounds | null = null;\n for (const seconds of call.frame) {\n handle.update(await place(loaded, call.request, seconds));\n union = unite(union, handle.bounds(view.focus));\n }\n framings.set(key, union);\n return union;\n };\n\n const draw: IAutoMovieDrawFunction = {\n describe: async (): Promise<IAutoMovieDrawDescription> => {\n const loaded: ILoaded = await load();\n const context: WebGLRenderingContext | WebGL2RenderingContext =\n loaded.renderer.getContext();\n const debug: WEBGL_debug_renderer_info | null = context.getExtension(\n \"WEBGL_debug_renderer_info\",\n );\n return {\n subject: describeAutoMovieDrawScene(loaded.name, loaded.scene),\n renderer: String(\n context.getParameter(\n debug === null ? context.RENDERER : debug.UNMASKED_RENDERER_WEBGL,\n ),\n ),\n };\n },\n draw: async (call: IAutoMovieDrawCall): Promise<IAutoMovieDrawResult> => {\n const loaded: ILoaded = await load();\n const { scene, renderer } = loaded;\n\n // 1. The inspection, its marks drawn the stated width in output pixels.\n const factor: number = call.request.shade === \"beauty\" ? SUPERSAMPLE : 1;\n const handle: IAutoMovieInspectionHandle = await inspect(\n loaded,\n { ...call.request, stroke: call.request.stroke * factor },\n call.seconds,\n );\n\n // 2. A fitted view's framing over the call's seconds.\n const view: IAutoMovieInspectionView = parseAutoMovieInspectionView(\n call.view,\n );\n const fitted: boolean =\n view.type === \"named\" &&\n !(scene.views !== undefined && Object.hasOwn(scene.views, view.name));\n const bounds: IAutoMovieViewerSubjectBounds | null =\n fitted && view.type === \"named\"\n ? await frame(loaded, handle, call, view)\n : null;\n\n // 3. The second itself, once the subject is ready.\n handle.update(await place(loaded, call.request, call.seconds));\n\n // 4. Draw through the resolved camera at the drawn raster.\n const width: number = call.width * factor;\n const height: number = call.height * factor;\n if (scene.camera.aspect !== call.width / call.height) {\n scene.camera.aspect = call.width / call.height;\n scene.camera.updateProjectionMatrix();\n }\n const resolved: {\n camera: THREE.PerspectiveCamera | THREE.OrthographicCamera;\n record: IAutoMovieInspectionCamera;\n } = resolveAutoMovieInspectionView({\n view,\n text: call.view,\n bounds,\n camera: scene.camera,\n ...(scene.views === undefined ? {} : { views: scene.views }),\n seconds: call.seconds,\n width: call.width,\n height: call.height,\n });\n renderer.setSize(width, height, false);\n handle.resize(width, height);\n renderer.render(scene.scene, resolved.camera);\n\n // 5. Read back before the task ends, then the labels at the output raster.\n const context: WebGLRenderingContext | WebGL2RenderingContext =\n renderer.getContext();\n const bytes: Uint8Array = new Uint8Array(width * height * 4);\n context.readPixels(\n 0,\n 0,\n width,\n height,\n context.RGBA,\n context.UNSIGNED_BYTE,\n bytes,\n );\n const labels: IAutoMovieInspectionLabel[] = handle.labels(\n resolved.camera,\n call.width,\n call.height,\n call.scale,\n ).labels;\n return {\n pixels: encodeAutoMovieDrawPixels(bytes, width, height, factor),\n width: call.width,\n height: call.height,\n labels: labels.map(\n (\n label: IAutoMovieInspectionLabel,\n ): IAutoMovieDrawResult[\"labels\"][number] => ({\n text: label.text,\n x: label.x,\n y: label.y,\n }),\n ),\n legend: handle.legend.map(\n (\n entry: IAutoMovieInspectionLegendEntry,\n ): IAutoMovieInspectionLegendEntry => ({ ...entry }),\n ),\n camera: resolved.record,\n resolved: resolveAutoMovieCapturePatterns({\n paths: [\n ...listAutoMovieInspectionPaths(scene.scene).map(\n (entry: IAutoMovieInspectionPath): string => entry.path,\n ),\n ...handle.selected,\n ],\n request: call.request,\n view: call.view,\n }),\n };\n },\n };\n target[AUTO_MOVIE_DRAW_GLOBALS.draw] = draw;\n\n // Leaving the page releases what it holds.\n const listen: unknown = target[\"addEventListener\"];\n if (typeof listen === \"function\")\n listen.call(\n target,\n \"pagehide\",\n (): void => {\n applied?.handle.restore();\n void loading?.then((loaded: ILoaded): void => {\n loaded.scene.dispose();\n loaded.renderer.dispose();\n });\n },\n { once: true },\n );\n}\n\n/** The created subject and the page's renderer. */\ninterface ILoaded {\n /** The subject's name. */\n name: string;\n\n /** The created subject. */\n scene: IAutoMovieDrawScene;\n\n /** The renderer, on a canvas never attached to the document. */\n renderer: THREE.WebGLRenderer;\n}\n\n/** The smallest box holding two boxes, either of which may be absent. */\nfunction unite(\n a: IAutoMovieViewerSubjectBounds | null,\n b: IAutoMovieViewerSubjectBounds | null,\n): IAutoMovieViewerSubjectBounds | null {\n if (a === null || b === null) return a ?? b;\n return {\n min: {\n x: Math.min(a.min.x, b.min.x),\n y: Math.min(a.min.y, b.min.y),\n z: Math.min(a.min.z, b.min.z),\n },\n max: {\n x: Math.max(a.max.x, b.max.x),\n y: Math.max(a.max.y, b.max.y),\n z: Math.max(a.max.z, b.max.z),\n },\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAqCA,MAAM,cAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6B5B,SAAgB,qBACd,UACA,SAAkC,YAI5B;CACN,MAAM,WAAiC,OACrC,wBAAwB,UACe;EAAE,SAAS;EAAM,OAAO;CAAK;CACtE,MAAM,UAA2D,SAC/D,SAAS,KACX;CAGA,IAAI,UAAmC;CACvC,MAAM,aACH,aAAa,YAA8B;EAC1C,MAAM,OAAe,2BACnB,OAAO,KAAK,OAAO,GACnB,SAAS,OACX;EACA,MAAM,QAA6B,MAAM,QAAQ,KAAK,CAAE,OAAO;EAC/D,MAAM,WAAgC,IAAI,MAAM,cAAc;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Q;EACxB,SAAc,MAAM,WAA0B;GAC5C,OAAO,MAAM,QAAQ;GACrB,OAAO,SAAS,QAAQ;EAC1B,CAAC;CACH,GACA,EAAE,MAAM,KAAK,CACf;AACJ;;AAeA,SAAS,MACP,GACA,GACsC;CACtC,IAAI,MAAM,QAAQ,MAAM,MAAM,OAAO,KAAK;CAC1C,OAAO;EACL,KAAK;GACH,GAAG,KAAK,IAAI,EAAE,IAAI,GAAG,EAAE,IAAI,CAAC;GAC5B,GAAG,KAAK,IAAI,EAAE,IAAI,GAAG,EAAE,IAAI,CAAC;GAC5B,GAAG,KAAK,IAAI,EAAE,IAAI,GAAG,EAAE,IAAI,CAAC;EAC9B;EACA,KAAK;GACH,GAAG,KAAK,IAAI,EAAE,IAAI,GAAG,EAAE,IAAI,CAAC;GAC5B,GAAG,KAAK,IAAI,EAAE,IAAI,GAAG,EAAE,IAAI,CAAC;GAC5B,GAAG,KAAK,IAAI,EAAE,IAAI,GAAG,EAAE,IAAI,CAAC;EAC9B;CACF;AACF"}
1
+ {"version":3,"file":"installAutoMovieDraw.mjs","names":[],"sources":["../../src/draw/installAutoMovieDraw.ts"],"sourcesContent":["import type {\n IAutoMovieDrawCall,\n IAutoMovieDrawDescription,\n IAutoMovieDrawResult,\n IAutoMovieInspectionCamera,\n IAutoMovieInspectionLabel,\n IAutoMovieInspectionLegendEntry,\n IAutoMovieInspectionRequest,\n IAutoMovieInspectionTrail,\n IAutoMovieInspectionView,\n IAutoMovieMark,\n} from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport { resolveAutoMovieCapturePatterns } from \"../capture/resolveAutoMovieCapturePatterns.js\";\nimport type { IAutoMovieInspectionHandle } from \"../scene/inspection/IAutoMovieInspectionHandle.js\";\nimport type { IAutoMovieInspectionPath } from \"../scene/inspection/IAutoMovieInspectionPath.js\";\nimport { listAutoMovieInspectionPaths } from \"../scene/inspection/listAutoMovieInspectionPaths.js\";\nimport { markAutoMovieInspectionTrails } from \"../scene/inspection/markAutoMovieInspectionTrails.js\";\nimport { parseAutoMovieInspectionView } from \"../scene/inspection/parseAutoMovieInspectionView.js\";\nimport { planAutoMovieInspectionTrailTimes } from \"../scene/inspection/planAutoMovieInspectionTrailTimes.js\";\nimport { resolveAutoMovieInspectionView } from \"../scene/inspection/resolveAutoMovieInspectionView.js\";\nimport { sampleAutoMovieInspectionTrails } from \"../scene/inspection/sampleAutoMovieInspectionTrails.js\";\nimport type { IAutoMovieViewerSubjectBounds } from \"../scene/subjectViewpoint/IAutoMovieViewerSubjectBounds.js\";\nimport { AUTO_MOVIE_DRAW_GLOBALS } from \"./AUTO_MOVIE_DRAW_GLOBALS.js\";\nimport type { AutoMovieDrawSubjects } from \"./AutoMovieDrawSubjects.js\";\nimport type { IAutoMovieDrawFunction } from \"./IAutoMovieDrawFunction.js\";\nimport type { IAutoMovieDrawProps } from \"./IAutoMovieDrawProps.js\";\nimport type { IAutoMovieDrawScene } from \"./IAutoMovieDrawScene.js\";\nimport type { IAutoMovieDrawSubject } from \"./IAutoMovieDrawSubject.js\";\nimport { describeAutoMovieDrawScene } from \"./describeAutoMovieDrawScene.js\";\nimport { encodeAutoMovieDrawPixels } from \"./encodeAutoMovieDrawPixels.js\";\nimport { replaceAutoMovieDrawInspection } from \"./replaceAutoMovieDrawInspection.js\";\nimport { selectAutoMovieDrawSubject } from \"./selectAutoMovieDrawSubject.js\";\n\n/**\n * Side of the block the beauty pass is drawn at and averaged down from, so its edges are antialiased by area: two, the supersampling the motion harness drew its stills at.\n */\nconst SUPERSAMPLE: number = 2;\n\n/**\n * Install the draw-only function on a page: read the props the host injected, and answer `describe` and `draw` for the subject they name, drawing offscreen with no interface.\n *\n * The page's script calls it once with its module's `subjects`. The subject is created on the first call, with one WebGL renderer on a canvas that is never attached to the document, without antialiasing. A draw then:\n *\n * 1. restores the previous inspection before placement, so a subject may replace its objects during a seek;\n * 2. for a fitted view, places and inspects each framing second and frames the union of what the current inspection leaves drawn, or its focus, measured once per view and selection;\n * 3. for each `trail` pattern of the request, samples the matched objects over `planAutoMovieInspectionTrailTimes` with `sampleAutoMovieInspectionTrails`, then seeks the call's second, awaits readiness and applies a fresh inspection to the resulting objects with their current marks and sampled trails; no seek occurs between this application and drawing;\n * 4. draws through the camera `resolveAutoMovieInspectionView` gives, at the call's raster, or for the `beauty` shade at twice each side with mark lines twice as wide;\n * 5. reads the drawn pixels back, flips them to rows from the top and averages a supersampled picture down, places the request's labels at the label scale, copies the inspection's legend of the marks drawn, and resolves every pattern of the request and view by `resolveAutoMovieCapturePatterns` against the scene's object paths and the selected mark paths, so the record names what each matched.\n *\n * It draws to the renderer's own canvas and reads it back in the same task, so colour conversion and tone mapping are the ones the interactive page applies to its canvas; a render target would skip both. The film camera's aspect is set to the picture's, as the page sets it to its canvas.\n *\n * ```ts\n * import { installAutoMovieDraw } from \"@automovie/render\";\n * import { subjects } from \"./subjects\";\n * installAutoMovieDraw(subjects);\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation States who calls it, when the subject and renderer are made, every step of a draw in order, why the canvas is read instead of a render target, and the supersampling rule.\n * @evidence contracts/development/implementation.md#principled-implementation WebGL's `readPixels` on the default framebuffer, read before the task ends, returns what the page shows; the inspection, the view grammar and the camera resolution are the inspection core's, so a still and the page draw the same scene through the same code. Framing on all the run's seconds keeps one camera per view, as `.agents/skills/visual-debugging/capture.md` asks for a view a later round compares.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One loader owns the subject/renderer, one placer seeks and gathers marks/trails, one inspection lifecycle restores before placement and binds current objects, and one bounds cache is keyed by view/selection/trails. Describing, pixel encoding and pattern resolution retain their owners.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A subject that is not ready is awaited, never drawn half placed; a view or request the inspection refuses throws to the host, which records the cell as not drawn.\n * @evidence contracts/development/implementation.md#efficient-algorithms A draw places the actual second and applies inspection to its current objects, then renders and reads back linearly in pixels. A new fitted view additionally places and inspects each framing second; trails add their requested samples. Each necessary inspection includes its mesh/triangle measurements rather than silently measuring removed objects.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work The subject, renderer and framing boxes keyed by view/selection/seconds are shared across draws. Inspection handles are recreated after placement because seek may replace geometry; unchanged request text proves no object identity or measurement equivalence.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The page holds one subject, one renderer, one applied inspection and one box per framed view for its life; leaving the page restores the inspection and disposes the subject and renderer.\n */\nexport function installAutoMovieDraw(\n subjects: AutoMovieDrawSubjects,\n target: Record<string, unknown> = globalThis as unknown as Record<\n string,\n unknown\n >,\n): void {\n const injected: IAutoMovieDrawProps = (target[\n AUTO_MOVIE_DRAW_GLOBALS.props\n ] as IAutoMovieDrawProps | undefined) ?? { subject: null, props: null };\n const offered: Readonly<Record<string, IAutoMovieDrawSubject>> = subjects(\n injected.props,\n );\n\n // The subject and the renderer, made once on the first call.\n let loading: Promise<ILoaded> | null = null;\n const load: () => Promise<ILoaded> = (): Promise<ILoaded> =>\n (loading ??= (async (): Promise<ILoaded> => {\n const name: string = selectAutoMovieDrawSubject(\n Object.keys(offered),\n injected.subject,\n );\n const scene: IAutoMovieDrawScene = await offered[name]!.create();\n const renderer: THREE.WebGLRenderer = new THREE.WebGLRenderer({\n antialias: false,\n alpha: false,\n preserveDrawingBuffer: false,\n });\n renderer.setPixelRatio(1);\n return { name, scene, renderer };\n })());\n\n // The subject placed at a second, with its own marks and the trails the request asks for there.\n const place: (\n loaded: ILoaded,\n request: IAutoMovieInspectionRequest,\n seconds: number,\n ) => Promise<IAutoMovieMark[]> = async (\n loaded: ILoaded,\n request: IAutoMovieInspectionRequest,\n seconds: number,\n ): Promise<IAutoMovieMark[]> => {\n const { scene } = loaded;\n const trails: IAutoMovieInspectionTrail[] = [];\n if (request.trail.length !== 0) {\n const times: number[] = planAutoMovieInspectionTrailTimes({\n request,\n seconds,\n durationSeconds: scene.durationSeconds,\n });\n for (const pattern of request.trail)\n trails.push(\n ...(await sampleAutoMovieInspectionTrails({\n scene: scene.scene,\n pattern,\n times,\n seek: (at: number): Promise<void> => scene.seek(at),\n })),\n );\n }\n await scene.seek(seconds);\n return [\n ...(scene.marks?.(seconds) ?? []),\n ...markAutoMovieInspectionTrails(trails, seconds),\n ];\n };\n\n // The current inspection ends before any placement can replace its objects.\n let applied: { handle: IAutoMovieInspectionHandle } | null = null;\n const inspect: (\n loaded: ILoaded,\n request: IAutoMovieInspectionRequest,\n seconds: number,\n ) => Promise<IAutoMovieInspectionHandle> = async (\n loaded: ILoaded,\n request: IAutoMovieInspectionRequest,\n seconds: number,\n ): Promise<IAutoMovieInspectionHandle> => {\n const previous: IAutoMovieInspectionHandle | null = applied?.handle ?? null;\n applied = null;\n const handle: IAutoMovieInspectionHandle =\n await replaceAutoMovieDrawInspection({\n previous,\n scene: loaded.scene.scene,\n request,\n renderer: loaded.renderer,\n place: (): Promise<IAutoMovieMark[]> => place(loaded, request, seconds),\n });\n applied = { handle };\n return handle;\n };\n\n // Framing boxes, one per view text, selection and span of seconds.\n const framings: Map<string, IAutoMovieViewerSubjectBounds | null> = new Map();\n const frame: (\n loaded: ILoaded,\n call: IAutoMovieDrawCall,\n view: IAutoMovieInspectionView.INamed,\n ) => Promise<IAutoMovieViewerSubjectBounds | null> = async (\n loaded: ILoaded,\n call: IAutoMovieDrawCall,\n view: IAutoMovieInspectionView.INamed,\n ): Promise<IAutoMovieViewerSubjectBounds | null> => {\n const key: string = JSON.stringify([\n call.view,\n call.request.parts,\n call.request.hide,\n call.request.surface,\n call.request.marks,\n call.request.trail,\n call.request.reach,\n call.request.ticks,\n call.frame,\n ]);\n if (framings.has(key)) return framings.get(key)!;\n let union: IAutoMovieViewerSubjectBounds | null = null;\n for (const seconds of call.frame) {\n const handle: IAutoMovieInspectionHandle = await inspect(\n loaded,\n call.request,\n seconds,\n );\n union = unite(union, handle.bounds(view.focus));\n }\n framings.set(key, union);\n return union;\n };\n\n const draw: IAutoMovieDrawFunction = {\n describe: async (): Promise<IAutoMovieDrawDescription> => {\n const loaded: ILoaded = await load();\n const context: WebGLRenderingContext | WebGL2RenderingContext =\n loaded.renderer.getContext();\n const debug: WEBGL_debug_renderer_info | null = context.getExtension(\n \"WEBGL_debug_renderer_info\",\n );\n return {\n subject: describeAutoMovieDrawScene(loaded.name, loaded.scene),\n renderer: String(\n context.getParameter(\n debug === null ? context.RENDERER : debug.UNMASKED_RENDERER_WEBGL,\n ),\n ),\n };\n },\n draw: async (call: IAutoMovieDrawCall): Promise<IAutoMovieDrawResult> => {\n const loaded: ILoaded = await load();\n const { scene, renderer } = loaded;\n\n // The supersampled surface keeps marks at the requested output-pixel width.\n const factor: number = call.request.shade === \"beauty\" ? SUPERSAMPLE : 1;\n\n // 2. A fitted view's framing over the call's seconds.\n const view: IAutoMovieInspectionView = parseAutoMovieInspectionView(\n call.view,\n );\n const fitted: boolean =\n view.type === \"named\" &&\n !(scene.views !== undefined && Object.hasOwn(scene.views, view.name));\n const bounds: IAutoMovieViewerSubjectBounds | null =\n fitted && view.type === \"named\"\n ? await frame(loaded, call, view)\n : null;\n\n // 3. The second itself, once the subject is ready.\n const handle: IAutoMovieInspectionHandle = await inspect(\n loaded,\n { ...call.request, stroke: call.request.stroke * factor },\n call.seconds,\n );\n\n // 4. Draw through the resolved camera at the drawn raster.\n const width: number = call.width * factor;\n const height: number = call.height * factor;\n if (scene.camera.aspect !== call.width / call.height) {\n scene.camera.aspect = call.width / call.height;\n scene.camera.updateProjectionMatrix();\n }\n const resolved: {\n camera: THREE.PerspectiveCamera | THREE.OrthographicCamera;\n record: IAutoMovieInspectionCamera;\n } = resolveAutoMovieInspectionView({\n view,\n text: call.view,\n bounds,\n camera: scene.camera,\n ...(scene.views === undefined ? {} : { views: scene.views }),\n seconds: call.seconds,\n width: call.width,\n height: call.height,\n });\n renderer.setSize(width, height, false);\n handle.resize(width, height);\n renderer.render(scene.scene, resolved.camera);\n\n // 5. Read back before the task ends, then the labels at the output raster.\n const context: WebGLRenderingContext | WebGL2RenderingContext =\n renderer.getContext();\n const bytes: Uint8Array = new Uint8Array(width * height * 4);\n context.readPixels(\n 0,\n 0,\n width,\n height,\n context.RGBA,\n context.UNSIGNED_BYTE,\n bytes,\n );\n const labels: IAutoMovieInspectionLabel[] = handle.labels(\n resolved.camera,\n call.width,\n call.height,\n call.scale,\n ).labels;\n return {\n pixels: encodeAutoMovieDrawPixels(bytes, width, height, factor),\n width: call.width,\n height: call.height,\n labels: labels.map(\n (\n label: IAutoMovieInspectionLabel,\n ): IAutoMovieDrawResult[\"labels\"][number] => ({\n text: label.text,\n x: label.x,\n y: label.y,\n }),\n ),\n legend: handle.legend.map(\n (\n entry: IAutoMovieInspectionLegendEntry,\n ): IAutoMovieInspectionLegendEntry => ({ ...entry }),\n ),\n camera: resolved.record,\n resolved: resolveAutoMovieCapturePatterns({\n paths: [\n ...listAutoMovieInspectionPaths(scene.scene).map(\n (entry: IAutoMovieInspectionPath): string => entry.path,\n ),\n ...handle.selected,\n ],\n request: call.request,\n view: call.view,\n }),\n };\n },\n };\n target[AUTO_MOVIE_DRAW_GLOBALS.draw] = draw;\n\n // Leaving the page releases what it holds.\n const listen: unknown = target[\"addEventListener\"];\n if (typeof listen === \"function\")\n listen.call(\n target,\n \"pagehide\",\n (): void => {\n applied?.handle.restore();\n void loading?.then((loaded: ILoaded): void => {\n loaded.scene.dispose();\n loaded.renderer.dispose();\n });\n },\n { once: true },\n );\n}\n\n/** The created subject and the page's renderer. */\ninterface ILoaded {\n /** The subject's name. */\n name: string;\n\n /** The created subject. */\n scene: IAutoMovieDrawScene;\n\n /** The renderer, on a canvas never attached to the document. */\n renderer: THREE.WebGLRenderer;\n}\n\n/** The smallest box holding two boxes, either of which may be absent. */\nfunction unite(\n a: IAutoMovieViewerSubjectBounds | null,\n b: IAutoMovieViewerSubjectBounds | null,\n): IAutoMovieViewerSubjectBounds | null {\n if (a === null || b === null) return a ?? b;\n return {\n min: {\n x: Math.min(a.min.x, b.min.x),\n y: Math.min(a.min.y, b.min.y),\n z: Math.min(a.min.z, b.min.z),\n },\n max: {\n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;IACjB,UAAU,gCAAgC;KACxC,OAAO,CACL,GAAG,6BAA6B,MAAM,KAAK,CAAC,CAAC,KAC1C,UAA4C,MAAM,IACrD,GACA,GAAG,OAAO,QACZ;KACA,SAAS,KAAK;KACd,MAAM,KAAK;IACb,CAAC;GACH;EACF;CACF;CACA,OAAO,wBAAwB,QAAQ;CAGvC,MAAM,SAAkB,OAAO;CAC/B,IAAI,OAAO,WAAW,YACpB,OAAO,KACL,QACA,kBACY;EACV,SAAS,OAAO,QAAQ;EACxB,SAAc,MAAM,WAA0B;GAC5C,OAAO,MAAM,QAAQ;GACrB,OAAO,SAAS,QAAQ;EAC1B,CAAC;CACH,GACA,EAAE,MAAM,KAAK,CACf;AACJ;;AAeA,SAAS,MACP,GACA,GACsC;CACtC,IAAI,MAAM,QAAQ,MAAM,MAAM,OAAO,KAAK;CAC1C,OAAO;EACL,KAAK;GACH,GAAG,KAAK,IAAI,EAAE,IAAI,GAAG,EAAE,IAAI,CAAC;GAC5B,GAAG,KAAK,IAAI,EAAE,IAAI,GAAG,EAAE,IAAI,CAAC;GAC5B,GAAG,KAAK,IAAI,EAAE,IAAI,GAAG,EAAE,IAAI,CAAC;EAC9B;EACA,KAAK;GACH,GAAG,KAAK,IAAI,EAAE,IAAI,GAAG,EAAE,IAAI,CAAC;GAC5B,GAAG,KAAK,IAAI,EAAE,IAAI,GAAG,EAAE,IAAI,CAAC;GAC5B,GAAG,KAAK,IAAI,EAAE,IAAI,GAAG,EAAE,IAAI,CAAC;EAC9B;CACF;AACF"}
@@ -1,6 +1,4 @@
1
- import type { IAutoMovieCaptureCell } from "../capture/IAutoMovieCaptureCell.js";
2
- import type { IAutoMovieCapturePlan } from "../capture/IAutoMovieCapturePlan.js";
3
- import type { IAutoMovieDrawCall } from "./IAutoMovieDrawCall.js";
1
+ import type { IAutoMovieCaptureCell, IAutoMovieCapturePlan, IAutoMovieDrawCall } from "@automovie/interface";
4
2
  /**
5
3
  * Turn one planned capture cell into the call a draw page answers: the cell's second, view and inspection request as given, the subject's raster, the framing span, and the label scale the capture run stamps at.
6
4
  *