@automovie/viewer 0.0.0-stage → 0.1.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 (1295) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +54 -2
  3. package/lib/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.d.ts +4 -0
  4. package/lib/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.js +5 -0
  5. package/lib/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.js.map +1 -0
  6. package/lib/AutoMovieDisplayCompositor.d.ts +105 -0
  7. package/lib/AutoMovieDisplayCompositor.js +342 -0
  8. package/lib/AutoMovieDisplayCompositor.js.map +1 -0
  9. package/lib/AutoMovieDissolveCompositorState.d.ts +4 -0
  10. package/lib/AutoMovieDissolveCompositorState.js +3 -0
  11. package/lib/AutoMovieDissolveCompositorState.js.map +1 -0
  12. package/lib/AutoMovieEnvironmentTextureOwnership.d.ts +52 -0
  13. package/lib/AutoMovieEnvironmentTextureOwnership.js +187 -0
  14. package/lib/AutoMovieEnvironmentTextureOwnership.js.map +1 -0
  15. package/lib/AutoMovieFadeCompositorState.d.ts +4 -0
  16. package/lib/AutoMovieFadeCompositorState.js +3 -0
  17. package/lib/AutoMovieFadeCompositorState.js.map +1 -0
  18. package/lib/AutoMovieFilmBeautyComposition.d.ts +25 -0
  19. package/lib/AutoMovieFilmBeautyComposition.js +2 -0
  20. package/lib/AutoMovieFilmBeautyComposition.js.map +1 -0
  21. package/lib/AutoMovieGeometryPhysicalVertices.d.ts +48 -0
  22. package/lib/AutoMovieGeometryPhysicalVertices.js +134 -0
  23. package/lib/AutoMovieGeometryPhysicalVertices.js.map +1 -0
  24. package/lib/AutoMoviePlayer.d.ts +99 -0
  25. package/lib/AutoMoviePlayer.js +192 -0
  26. package/lib/AutoMoviePlayer.js.map +1 -0
  27. package/lib/AutoMovieRenderModeMesh.d.ts +13 -0
  28. package/lib/AutoMovieRenderModeMesh.js +2 -0
  29. package/lib/AutoMovieRenderModeMesh.js.map +1 -0
  30. package/lib/AutoMovieResourceRetirementScope.d.ts +108 -0
  31. package/lib/AutoMovieResourceRetirementScope.js +169 -0
  32. package/lib/AutoMovieResourceRetirementScope.js.map +1 -0
  33. package/lib/AutoMovieSkinBlend.d.ts +83 -0
  34. package/lib/AutoMovieSkinBlend.js +195 -0
  35. package/lib/AutoMovieSkinBlend.js.map +1 -0
  36. package/lib/AutoMovieSkinPose.d.ts +119 -0
  37. package/lib/AutoMovieSkinPose.js +365 -0
  38. package/lib/AutoMovieSkinPose.js.map +1 -0
  39. package/lib/AutoMovieSkinnedMesh.d.ts +182 -0
  40. package/lib/AutoMovieSkinnedMesh.js +246 -0
  41. package/lib/AutoMovieSkinnedMesh.js.map +1 -0
  42. package/lib/AutoMovieTextureCache.d.ts +178 -0
  43. package/lib/AutoMovieTextureCache.js +321 -0
  44. package/lib/AutoMovieTextureCache.js.map +1 -0
  45. package/lib/AutoMovieTextureCacheAllocationAuthority.d.ts +217 -0
  46. package/lib/AutoMovieTextureCacheAllocationAuthority.js +417 -0
  47. package/lib/AutoMovieTextureCacheAllocationAuthority.js.map +1 -0
  48. package/lib/DEPTH_NORMALIZATION_RANGE.d.ts +4 -0
  49. package/lib/DEPTH_NORMALIZATION_RANGE.js +5 -0
  50. package/lib/DEPTH_NORMALIZATION_RANGE.js.map +1 -0
  51. package/lib/EDGE_SHELL_NAME.d.ts +2 -0
  52. package/lib/EDGE_SHELL_NAME.js +3 -0
  53. package/lib/EDGE_SHELL_NAME.js.map +1 -0
  54. package/lib/EDGE_WIDTH.d.ts +4 -0
  55. package/lib/EDGE_WIDTH.js +5 -0
  56. package/lib/EDGE_WIDTH.js.map +1 -0
  57. package/lib/IApplyAutoMovieSectionPlanesProps.d.ts +28 -0
  58. package/lib/IApplyAutoMovieSectionPlanesProps.js +2 -0
  59. package/lib/IApplyAutoMovieSectionPlanesProps.js.map +1 -0
  60. package/lib/IAutoMovieAnalysisOverlayObject.d.ts +52 -0
  61. package/lib/IAutoMovieAnalysisOverlayObject.js +2 -0
  62. package/lib/IAutoMovieAnalysisOverlayObject.js.map +1 -0
  63. package/lib/IAutoMovieBuiltPropArticulation.d.ts +34 -0
  64. package/lib/IAutoMovieBuiltPropArticulation.js +2 -0
  65. package/lib/IAutoMovieBuiltPropArticulation.js.map +1 -0
  66. package/lib/IAutoMovieEffectViewerObject.d.ts +28 -0
  67. package/lib/IAutoMovieEffectViewerObject.js +2 -0
  68. package/lib/IAutoMovieEffectViewerObject.js.map +1 -0
  69. package/lib/IAutoMovieEffectViewerStats.d.ts +18 -0
  70. package/lib/IAutoMovieEffectViewerStats.js +2 -0
  71. package/lib/IAutoMovieEffectViewerStats.js.map +1 -0
  72. package/lib/IAutoMovieExpressionTarget.d.ts +22 -0
  73. package/lib/IAutoMovieExpressionTarget.js +2 -0
  74. package/lib/IAutoMovieExpressionTarget.js.map +1 -0
  75. package/lib/IAutoMovieFilmBeautyLayer.d.ts +12 -0
  76. package/lib/IAutoMovieFilmBeautyLayer.js +2 -0
  77. package/lib/IAutoMovieFilmBeautyLayer.js.map +1 -0
  78. package/lib/IAutoMovieFluidSprayObject.d.ts +50 -0
  79. package/lib/IAutoMovieFluidSprayObject.js +2 -0
  80. package/lib/IAutoMovieFluidSprayObject.js.map +1 -0
  81. package/lib/IAutoMovieFluidSurfaceObject.d.ts +38 -0
  82. package/lib/IAutoMovieFluidSurfaceObject.js +2 -0
  83. package/lib/IAutoMovieFluidSurfaceObject.js.map +1 -0
  84. package/lib/IAutoMovieFormationCadence.d.ts +17 -0
  85. package/lib/IAutoMovieFormationCadence.js +2 -0
  86. package/lib/IAutoMovieFormationCadence.js.map +1 -0
  87. package/lib/IAutoMovieFormationCycle.d.ts +38 -0
  88. package/lib/IAutoMovieFormationCycle.js +2 -0
  89. package/lib/IAutoMovieFormationCycle.js.map +1 -0
  90. package/lib/IAutoMovieFormationCycleTake.d.ts +47 -0
  91. package/lib/IAutoMovieFormationCycleTake.js +2 -0
  92. package/lib/IAutoMovieFormationCycleTake.js.map +1 -0
  93. package/lib/IAutoMovieFormationCycleUniforms.d.ts +21 -0
  94. package/lib/IAutoMovieFormationCycleUniforms.js +2 -0
  95. package/lib/IAutoMovieFormationCycleUniforms.js.map +1 -0
  96. package/lib/IAutoMovieFormationViewerObject.d.ts +62 -0
  97. package/lib/IAutoMovieFormationViewerObject.js +2 -0
  98. package/lib/IAutoMovieFormationViewerObject.js.map +1 -0
  99. package/lib/IAutoMovieFormationViewerStats.d.ts +34 -0
  100. package/lib/IAutoMovieFormationViewerStats.js +2 -0
  101. package/lib/IAutoMovieFormationViewerStats.js.map +1 -0
  102. package/lib/IAutoMovieImportedModelOptions.d.ts +44 -0
  103. package/lib/IAutoMovieImportedModelOptions.js +2 -0
  104. package/lib/IAutoMovieImportedModelOptions.js.map +1 -0
  105. package/lib/IAutoMovieInstanceSetViewerObject.d.ts +42 -0
  106. package/lib/IAutoMovieInstanceSetViewerObject.js +2 -0
  107. package/lib/IAutoMovieInstanceSetViewerObject.js.map +1 -0
  108. package/lib/IAutoMovieInstanceSetViewerStats.d.ts +17 -0
  109. package/lib/IAutoMovieInstanceSetViewerStats.js +2 -0
  110. package/lib/IAutoMovieInstanceSetViewerStats.js.map +1 -0
  111. package/lib/IAutoMovieInstancedGeometry.d.ts +24 -0
  112. package/lib/IAutoMovieInstancedGeometry.js +2 -0
  113. package/lib/IAutoMovieInstancedGeometry.js.map +1 -0
  114. package/lib/IAutoMovieInstancedModelRepresentation.d.ts +16 -0
  115. package/lib/IAutoMovieInstancedModelRepresentation.js +2 -0
  116. package/lib/IAutoMovieInstancedModelRepresentation.js.map +1 -0
  117. package/lib/IAutoMovieMaterialLibrary.d.ts +42 -0
  118. package/lib/IAutoMovieMaterialLibrary.js +2 -0
  119. package/lib/IAutoMovieMaterialLibrary.js.map +1 -0
  120. package/lib/IAutoMovieModelObject.d.ts +51 -0
  121. package/lib/IAutoMovieModelObject.js +2 -0
  122. package/lib/IAutoMovieModelObject.js.map +1 -0
  123. package/lib/IAutoMoviePlantingObject.d.ts +33 -0
  124. package/lib/IAutoMoviePlantingObject.js +2 -0
  125. package/lib/IAutoMoviePlantingObject.js.map +1 -0
  126. package/lib/IAutoMovieRenderModeHandle.d.ts +44 -0
  127. package/lib/IAutoMovieRenderModeHandle.js +2 -0
  128. package/lib/IAutoMovieRenderModeHandle.js.map +1 -0
  129. package/lib/IAutoMovieRendererEnvironmentHandle.d.ts +22 -0
  130. package/lib/IAutoMovieRendererEnvironmentHandle.js +2 -0
  131. package/lib/IAutoMovieRendererEnvironmentHandle.js.map +1 -0
  132. package/lib/IAutoMovieRigLocalTransform.d.ts +15 -0
  133. package/lib/IAutoMovieRigLocalTransform.js +2 -0
  134. package/lib/IAutoMovieRigLocalTransform.js.map +1 -0
  135. package/lib/IAutoMovieSceneObject.d.ts +26 -0
  136. package/lib/IAutoMovieSceneObject.js +2 -0
  137. package/lib/IAutoMovieSceneObject.js.map +1 -0
  138. package/lib/IAutoMovieSectionRenderer.d.ts +17 -0
  139. package/lib/IAutoMovieSectionRenderer.js +2 -0
  140. package/lib/IAutoMovieSectionRenderer.js.map +1 -0
  141. package/lib/IAutoMovieShadowTextureHost.d.ts +17 -0
  142. package/lib/IAutoMovieShadowTextureHost.js +2 -0
  143. package/lib/IAutoMovieShadowTextureHost.js.map +1 -0
  144. package/lib/IAutoMovieSoftBodyObject.d.ts +43 -0
  145. package/lib/IAutoMovieSoftBodyObject.js +2 -0
  146. package/lib/IAutoMovieSoftBodyObject.js.map +1 -0
  147. package/lib/IAutoMovieSpringAxisSettlement.d.ts +19 -0
  148. package/lib/IAutoMovieSpringAxisSettlement.js +2 -0
  149. package/lib/IAutoMovieSpringAxisSettlement.js.map +1 -0
  150. package/lib/IAutoMovieSpringConfig.d.ts +22 -0
  151. package/lib/IAutoMovieSpringConfig.js +2 -0
  152. package/lib/IAutoMovieSpringConfig.js.map +1 -0
  153. package/lib/IAutoMovieTextureLoader.d.ts +13 -0
  154. package/lib/IAutoMovieTextureLoader.js +2 -0
  155. package/lib/IAutoMovieTextureLoader.js.map +1 -0
  156. package/lib/IAutoMovieTextureResolver.d.ts +16 -0
  157. package/lib/IAutoMovieTextureResolver.js +2 -0
  158. package/lib/IAutoMovieTextureResolver.js.map +1 -0
  159. package/lib/IAutoMovieViewerCameraDepthPrecisionReport.d.ts +30 -0
  160. package/lib/IAutoMovieViewerCameraDepthPrecisionReport.js +2 -0
  161. package/lib/IAutoMovieViewerCameraDepthPrecisionReport.js.map +1 -0
  162. package/lib/IAutoMovieViewerCompletedFrame.d.ts +51 -0
  163. package/lib/IAutoMovieViewerCompletedFrame.js +2 -0
  164. package/lib/IAutoMovieViewerCompletedFrame.js.map +1 -0
  165. package/lib/IAutoMovieViewerDisplayMetadata.d.ts +22 -0
  166. package/lib/IAutoMovieViewerDisplayMetadata.js +2 -0
  167. package/lib/IAutoMovieViewerDisplayMetadata.js.map +1 -0
  168. package/lib/IAutoMovieViewerFrame.d.ts +19 -0
  169. package/lib/IAutoMovieViewerFrame.js +2 -0
  170. package/lib/IAutoMovieViewerFrame.js.map +1 -0
  171. package/lib/IAutoMovieViewerHandle.d.ts +42 -0
  172. package/lib/IAutoMovieViewerHandle.js +2 -0
  173. package/lib/IAutoMovieViewerHandle.js.map +1 -0
  174. package/lib/IAutoMovieViewerSnapshot.d.ts +18 -0
  175. package/lib/IAutoMovieViewerSnapshot.js +2 -0
  176. package/lib/IAutoMovieViewerSnapshot.js.map +1 -0
  177. package/lib/IAutoMovieViewerSnapshotOptions.d.ts +14 -0
  178. package/lib/IAutoMovieViewerSnapshotOptions.js +2 -0
  179. package/lib/IAutoMovieViewerSnapshotOptions.js.map +1 -0
  180. package/lib/IAutoMovieViewerSnapshotRenderer.d.ts +32 -0
  181. package/lib/IAutoMovieViewerSnapshotRenderer.js +2 -0
  182. package/lib/IAutoMovieViewerSnapshotRenderer.js.map +1 -0
  183. package/lib/IBakeFormationCycleProps.d.ts +31 -0
  184. package/lib/IBakeFormationCycleProps.js +2 -0
  185. package/lib/IBakeFormationCycleProps.js.map +1 -0
  186. package/lib/IBuildAutoMovieMaterialLibraryProps.d.ts +30 -0
  187. package/lib/IBuildAutoMovieMaterialLibraryProps.js +2 -0
  188. package/lib/IBuildAutoMovieMaterialLibraryProps.js.map +1 -0
  189. package/lib/IBuildInstancedFormationProps.d.ts +34 -0
  190. package/lib/IBuildInstancedFormationProps.js +2 -0
  191. package/lib/IBuildInstancedFormationProps.js.map +1 -0
  192. package/lib/IBuildInstancedInstanceSetProps.d.ts +29 -0
  193. package/lib/IBuildInstancedInstanceSetProps.js +2 -0
  194. package/lib/IBuildInstancedInstanceSetProps.js.map +1 -0
  195. package/lib/IBuildPlantingObjectProps.d.ts +22 -0
  196. package/lib/IBuildPlantingObjectProps.js +2 -0
  197. package/lib/IBuildPlantingObjectProps.js.map +1 -0
  198. package/lib/IBuildPropArticulationProps.d.ts +30 -0
  199. package/lib/IBuildPropArticulationProps.js +2 -0
  200. package/lib/IBuildPropArticulationProps.js.map +1 -0
  201. package/lib/IBuildSoftBodyObjectProps.d.ts +18 -0
  202. package/lib/IBuildSoftBodyObjectProps.js +2 -0
  203. package/lib/IBuildSoftBodyObjectProps.js.map +1 -0
  204. package/lib/IChunkObject.d.ts +32 -0
  205. package/lib/IChunkObject.js +2 -0
  206. package/lib/IChunkObject.js.map +1 -0
  207. package/lib/IFormationTierRepresentation.d.ts +17 -0
  208. package/lib/IFormationTierRepresentation.js +2 -0
  209. package/lib/IFormationTierRepresentation.js.map +1 -0
  210. package/lib/IMaterialShaderPatch.d.ts +28 -0
  211. package/lib/IMaterialShaderPatch.js +2 -0
  212. package/lib/IMaterialShaderPatch.js.map +1 -0
  213. package/lib/IMountViewerOptions.d.ts +61 -0
  214. package/lib/IMountViewerOptions.js +2 -0
  215. package/lib/IMountViewerOptions.js.map +1 -0
  216. package/lib/ISlotException.d.ts +26 -0
  217. package/lib/ISlotException.js +2 -0
  218. package/lib/ISlotException.js.map +1 -0
  219. package/lib/IViewerCameraStateSnapshot.d.ts +49 -0
  220. package/lib/IViewerCameraStateSnapshot.js +2 -0
  221. package/lib/IViewerCameraStateSnapshot.js.map +1 -0
  222. package/lib/POSE_OVERLAY_NAME.d.ts +2 -0
  223. package/lib/POSE_OVERLAY_NAME.js +3 -0
  224. package/lib/POSE_OVERLAY_NAME.js.map +1 -0
  225. package/lib/SPACE_GROUP_NAME.d.ts +12 -0
  226. package/lib/SPACE_GROUP_NAME.js +13 -0
  227. package/lib/SPACE_GROUP_NAME.js.map +1 -0
  228. package/lib/addMaterialShaderPatch.d.ts +21 -0
  229. package/lib/addMaterialShaderPatch.js +31 -0
  230. package/lib/addMaterialShaderPatch.js.map +1 -0
  231. package/lib/analysisOverlay.d.ts +3 -0
  232. package/lib/analysisOverlay.js +3 -0
  233. package/lib/analysisOverlay.js.map +1 -0
  234. package/lib/applyAutoMovieDeliveryCrop.d.ts +22 -0
  235. package/lib/applyAutoMovieDeliveryCrop.js +34 -0
  236. package/lib/applyAutoMovieDeliveryCrop.js.map +1 -0
  237. package/lib/applyAutoMovieRigLocals.d.ts +27 -0
  238. package/lib/applyAutoMovieRigLocals.js +89 -0
  239. package/lib/applyAutoMovieRigLocals.js.map +1 -0
  240. package/lib/applyAutoMovieSectionPlanes.d.ts +24 -0
  241. package/lib/applyAutoMovieSectionPlanes.js +42 -0
  242. package/lib/applyAutoMovieSectionPlanes.js.map +1 -0
  243. package/lib/applyAutoMovieShadowParticipation.d.ts +42 -0
  244. package/lib/applyAutoMovieShadowParticipation.js +62 -0
  245. package/lib/applyAutoMovieShadowParticipation.js.map +1 -0
  246. package/lib/applyCaptureCanvasSize.d.ts +12 -0
  247. package/lib/applyCaptureCanvasSize.js +21 -0
  248. package/lib/applyCaptureCanvasSize.js.map +1 -0
  249. package/lib/applyDepthMode.d.ts +20 -0
  250. package/lib/applyDepthMode.js +81 -0
  251. package/lib/applyDepthMode.js.map +1 -0
  252. package/lib/applyEdgeMode.d.ts +20 -0
  253. package/lib/applyEdgeMode.js +114 -0
  254. package/lib/applyEdgeMode.js.map +1 -0
  255. package/lib/applyExpression.d.ts +20 -0
  256. package/lib/applyExpression.js +138 -0
  257. package/lib/applyExpression.js.map +1 -0
  258. package/lib/applyFormationCycleCadence.d.ts +20 -0
  259. package/lib/applyFormationCycleCadence.js +26 -0
  260. package/lib/applyFormationCycleCadence.js.map +1 -0
  261. package/lib/applyFormationCycleMaterial.d.ts +31 -0
  262. package/lib/applyFormationCycleMaterial.js +100 -0
  263. package/lib/applyFormationCycleMaterial.js.map +1 -0
  264. package/lib/applyLightMotion.d.ts +38 -0
  265. package/lib/applyLightMotion.js +46 -0
  266. package/lib/applyLightMotion.js.map +1 -0
  267. package/lib/applyLightState.d.ts +38 -0
  268. package/lib/applyLightState.js +57 -0
  269. package/lib/applyLightState.js.map +1 -0
  270. package/lib/applyMaskMode.d.ts +20 -0
  271. package/lib/applyMaskMode.js +90 -0
  272. package/lib/applyMaskMode.js.map +1 -0
  273. package/lib/applyMaterialShaderPatches.d.ts +22 -0
  274. package/lib/applyMaterialShaderPatches.js +24 -0
  275. package/lib/applyMaterialShaderPatches.js.map +1 -0
  276. package/lib/applyObjectMotion.d.ts +30 -0
  277. package/lib/applyObjectMotion.js +33 -0
  278. package/lib/applyObjectMotion.js.map +1 -0
  279. package/lib/applyObjectMotions.d.ts +14 -0
  280. package/lib/applyObjectMotions.js +17 -0
  281. package/lib/applyObjectMotions.js.map +1 -0
  282. package/lib/applyPose.d.ts +40 -0
  283. package/lib/applyPose.js +85 -0
  284. package/lib/applyPose.js.map +1 -0
  285. package/lib/applyPoseMode.d.ts +20 -0
  286. package/lib/applyPoseMode.js +80 -0
  287. package/lib/applyPoseMode.js.map +1 -0
  288. package/lib/applyRenderMode.d.ts +48 -0
  289. package/lib/applyRenderMode.js +191 -0
  290. package/lib/applyRenderMode.js.map +1 -0
  291. package/lib/applyRendererEnvironment.d.ts +25 -0
  292. package/lib/applyRendererEnvironment.js +107 -0
  293. package/lib/applyRendererEnvironment.js.map +1 -0
  294. package/lib/applySampledObjectMotion.d.ts +16 -0
  295. package/lib/applySampledObjectMotion.js +71 -0
  296. package/lib/applySampledObjectMotion.js.map +1 -0
  297. package/lib/applySceneEnvironment.d.ts +16 -0
  298. package/lib/applySceneEnvironment.js +47 -0
  299. package/lib/applySceneEnvironment.js.map +1 -0
  300. package/lib/applySceneFog.d.ts +34 -0
  301. package/lib/applySceneFog.js +42 -0
  302. package/lib/applySceneFog.js.map +1 -0
  303. package/lib/applySemanticMaskMode.d.ts +22 -0
  304. package/lib/applySemanticMaskMode.js +37 -0
  305. package/lib/applySemanticMaskMode.js.map +1 -0
  306. package/lib/applyTransform.d.ts +16 -0
  307. package/lib/applyTransform.js +19 -0
  308. package/lib/applyTransform.js.map +1 -0
  309. package/lib/assertAutoMovieSceneShadowProfile.d.ts +19 -0
  310. package/lib/assertAutoMovieSceneShadowProfile.js +30 -0
  311. package/lib/assertAutoMovieSceneShadowProfile.js.map +1 -0
  312. package/lib/assertAutoMovieViewerCameraDepthPrecision.d.ts +18 -0
  313. package/lib/assertAutoMovieViewerCameraDepthPrecision.js +27 -0
  314. package/lib/assertAutoMovieViewerCameraDepthPrecision.js.map +1 -0
  315. package/lib/audio/IAutoMovieAudioCue.d.ts +26 -0
  316. package/lib/audio/IAutoMovieAudioCue.js +2 -0
  317. package/lib/audio/IAutoMovieAudioCue.js.map +1 -0
  318. package/lib/audio/index.d.ts +3 -0
  319. package/lib/audio/index.js +3 -0
  320. package/lib/audio/index.js.map +1 -0
  321. package/lib/audio/planAutoMovieAudioPlayback.d.ts +51 -0
  322. package/lib/audio/planAutoMovieAudioPlayback.js +49 -0
  323. package/lib/audio/planAutoMovieAudioPlayback.js.map +1 -0
  324. package/lib/audio/playAutoMovieAudioCues.d.ts +23 -0
  325. package/lib/audio/playAutoMovieAudioCues.js +58 -0
  326. package/lib/audio/playAutoMovieAudioCues.js.map +1 -0
  327. package/lib/autoMovieAnalysisRampColor.d.ts +22 -0
  328. package/lib/autoMovieAnalysisRampColor.js +27 -0
  329. package/lib/autoMovieAnalysisRampColor.js.map +1 -0
  330. package/lib/bakeFormationCycle.d.ts +31 -0
  331. package/lib/bakeFormationCycle.js +101 -0
  332. package/lib/bakeFormationCycle.js.map +1 -0
  333. package/lib/bindFormationTierCycle.d.ts +18 -0
  334. package/lib/bindFormationTierCycle.js +32 -0
  335. package/lib/bindFormationTierCycle.js.map +1 -0
  336. package/lib/buildAnalysisOverlayObject.d.ts +38 -0
  337. package/lib/buildAnalysisOverlayObject.js +97 -0
  338. package/lib/buildAnalysisOverlayObject.js.map +1 -0
  339. package/lib/buildAutoMovieConstruction.d.ts +27 -0
  340. package/lib/buildAutoMovieConstruction.js +74 -0
  341. package/lib/buildAutoMovieConstruction.js.map +1 -0
  342. package/lib/buildAutoMovieMaterialLibrary.d.ts +30 -0
  343. package/lib/buildAutoMovieMaterialLibrary.js +92 -0
  344. package/lib/buildAutoMovieMaterialLibrary.js.map +1 -0
  345. package/lib/buildFluidSprayObject.d.ts +22 -0
  346. package/lib/buildFluidSprayObject.js +67 -0
  347. package/lib/buildFluidSprayObject.js.map +1 -0
  348. package/lib/buildFluidSurfaceObject.d.ts +23 -0
  349. package/lib/buildFluidSurfaceObject.js +74 -0
  350. package/lib/buildFluidSurfaceObject.js.map +1 -0
  351. package/lib/buildGeometry.d.ts +20 -0
  352. package/lib/buildGeometry.js +89 -0
  353. package/lib/buildGeometry.js.map +1 -0
  354. package/lib/buildInstancedEffect.d.ts +18 -0
  355. package/lib/buildInstancedEffect.js +103 -0
  356. package/lib/buildInstancedEffect.js.map +1 -0
  357. package/lib/buildInstancedFormation.d.ts +23 -0
  358. package/lib/buildInstancedFormation.js +340 -0
  359. package/lib/buildInstancedFormation.js.map +1 -0
  360. package/lib/buildInstancedInstanceSet.d.ts +29 -0
  361. package/lib/buildInstancedInstanceSet.js +321 -0
  362. package/lib/buildInstancedInstanceSet.js.map +1 -0
  363. package/lib/buildLight.d.ts +31 -0
  364. package/lib/buildLight.js +105 -0
  365. package/lib/buildLight.js.map +1 -0
  366. package/lib/buildMaterial.d.ts +22 -0
  367. package/lib/buildMaterial.js +98 -0
  368. package/lib/buildMaterial.js.map +1 -0
  369. package/lib/buildModel.d.ts +63 -0
  370. package/lib/buildModel.js +243 -0
  371. package/lib/buildModel.js.map +1 -0
  372. package/lib/buildPlantingObject.d.ts +22 -0
  373. package/lib/buildPlantingObject.js +155 -0
  374. package/lib/buildPlantingObject.js.map +1 -0
  375. package/lib/buildPropArticulation.d.ts +55 -0
  376. package/lib/buildPropArticulation.js +130 -0
  377. package/lib/buildPropArticulation.js.map +1 -0
  378. package/lib/buildScene.d.ts +44 -0
  379. package/lib/buildScene.js +102 -0
  380. package/lib/buildScene.js.map +1 -0
  381. package/lib/buildSoftBodyObject.d.ts +14 -0
  382. package/lib/buildSoftBodyObject.js +148 -0
  383. package/lib/buildSoftBodyObject.js.map +1 -0
  384. package/lib/buildSpace.d.ts +2 -0
  385. package/lib/buildSpace.js +3 -0
  386. package/lib/buildSpace.js.map +1 -0
  387. package/lib/buildSpaceObject.d.ts +43 -0
  388. package/lib/buildSpaceObject.js +71 -0
  389. package/lib/buildSpaceObject.js.map +1 -0
  390. package/lib/cameraDepthPrecision.d.ts +3 -0
  391. package/lib/cameraDepthPrecision.js +3 -0
  392. package/lib/cameraDepthPrecision.js.map +1 -0
  393. package/lib/captureAutoMovieFramebufferRestore.d.ts +18 -0
  394. package/lib/captureAutoMovieFramebufferRestore.js +70 -0
  395. package/lib/captureAutoMovieFramebufferRestore.js.map +1 -0
  396. package/lib/captureAutoMovieMetricFrame.d.ts +27 -0
  397. package/lib/captureAutoMovieMetricFrame.js +93 -0
  398. package/lib/captureAutoMovieMetricFrame.js.map +1 -0
  399. package/lib/captureSize.d.ts +1 -0
  400. package/lib/captureSize.js +2 -0
  401. package/lib/captureSize.js.map +1 -0
  402. package/lib/captureViewerSnapshot.d.ts +16 -0
  403. package/lib/captureViewerSnapshot.js +22 -0
  404. package/lib/captureViewerSnapshot.js.map +1 -0
  405. package/lib/collectAutoMovieOwnedResources.d.ts +29 -0
  406. package/lib/collectAutoMovieOwnedResources.js +56 -0
  407. package/lib/collectAutoMovieOwnedResources.js.map +1 -0
  408. package/lib/collectAutoMovieRenderModeMeshes.d.ts +14 -0
  409. package/lib/collectAutoMovieRenderModeMeshes.js +21 -0
  410. package/lib/collectAutoMovieRenderModeMeshes.js.map +1 -0
  411. package/lib/constructAutoMovieOwnedResources.d.ts +24 -0
  412. package/lib/constructAutoMovieOwnedResources.js +35 -0
  413. package/lib/constructAutoMovieOwnedResources.js.map +1 -0
  414. package/lib/createAutoMovieClosedSphereGeometry.d.ts +25 -0
  415. package/lib/createAutoMovieClosedSphereGeometry.js +80 -0
  416. package/lib/createAutoMovieClosedSphereGeometry.js.map +1 -0
  417. package/lib/createAutoMovieMetricOrthographicCamera.d.ts +28 -0
  418. package/lib/createAutoMovieMetricOrthographicCamera.js +61 -0
  419. package/lib/createAutoMovieMetricOrthographicCamera.js.map +1 -0
  420. package/lib/createAutoMoviePerformanceOverlay.d.ts +36 -0
  421. package/lib/createAutoMoviePerformanceOverlay.js +132 -0
  422. package/lib/createAutoMoviePerformanceOverlay.js.map +1 -0
  423. package/lib/createAutoMoviePhysicalPoseAdapter.d.ts +14 -0
  424. package/lib/createAutoMoviePhysicalPoseAdapter.js +89 -0
  425. package/lib/createAutoMoviePhysicalPoseAdapter.js.map +1 -0
  426. package/lib/createAutoMovieResourceRetirement.d.ts +25 -0
  427. package/lib/createAutoMovieResourceRetirement.js +16 -0
  428. package/lib/createAutoMovieResourceRetirement.js.map +1 -0
  429. package/lib/createAutoMovieSurfaceAppearance.d.ts +30 -0
  430. package/lib/createAutoMovieSurfaceAppearance.js +180 -0
  431. package/lib/createAutoMovieSurfaceAppearance.js.map +1 -0
  432. package/lib/createAutoMovieSurfaceVertexAdapter.d.ts +17 -0
  433. package/lib/createAutoMovieSurfaceVertexAdapter.js +49 -0
  434. package/lib/createAutoMovieSurfaceVertexAdapter.js.map +1 -0
  435. package/lib/createFormationCycleShadowMaterials.d.ts +29 -0
  436. package/lib/createFormationCycleShadowMaterials.js +56 -0
  437. package/lib/createFormationCycleShadowMaterials.js.map +1 -0
  438. package/lib/createFormationRepresentations.d.ts +17 -0
  439. package/lib/createFormationRepresentations.js +53 -0
  440. package/lib/createFormationRepresentations.js.map +1 -0
  441. package/lib/createImportedModelObject.d.ts +14 -0
  442. package/lib/createImportedModelObject.js +50 -0
  443. package/lib/createImportedModelObject.js.map +1 -0
  444. package/lib/createViewerCameraState.d.ts +21 -0
  445. package/lib/createViewerCameraState.js +213 -0
  446. package/lib/createViewerCameraState.js.map +1 -0
  447. package/lib/createViewerDisplayClock.d.ts +20 -0
  448. package/lib/createViewerDisplayClock.js +44 -0
  449. package/lib/createViewerDisplayClock.js.map +1 -0
  450. package/lib/createViewerDisplayPublication.d.ts +28 -0
  451. package/lib/createViewerDisplayPublication.js +56 -0
  452. package/lib/createViewerDisplayPublication.js.map +1 -0
  453. package/lib/createViewerDisplaySave.d.ts +33 -0
  454. package/lib/createViewerDisplaySave.js +150 -0
  455. package/lib/createViewerDisplaySave.js.map +1 -0
  456. package/lib/createViewerFrameControl.d.ts +36 -0
  457. package/lib/createViewerFrameControl.js +109 -0
  458. package/lib/createViewerFrameControl.js.map +1 -0
  459. package/lib/createViewerViewportResize.d.ts +16 -0
  460. package/lib/createViewerViewportResize.js +42 -0
  461. package/lib/createViewerViewportResize.js.map +1 -0
  462. package/lib/decodeAutoMovieImage.d.ts +16 -0
  463. package/lib/decodeAutoMovieImage.js +119 -0
  464. package/lib/decodeAutoMovieImage.js.map +1 -0
  465. package/lib/defaultMaterial.d.ts +14 -0
  466. package/lib/defaultMaterial.js +19 -0
  467. package/lib/defaultMaterial.js.map +1 -0
  468. package/lib/deliveryCrop.d.ts +2 -0
  469. package/lib/deliveryCrop.js +3 -0
  470. package/lib/deliveryCrop.js.map +1 -0
  471. package/lib/describeFormationTextureSources.d.ts +20 -0
  472. package/lib/describeFormationTextureSources.js +31 -0
  473. package/lib/describeFormationTextureSources.js.map +1 -0
  474. package/lib/detailNormalShading/DETAIL_NORMAL_TARGET.d.ts +5 -0
  475. package/lib/detailNormalShading/DETAIL_NORMAL_TARGET.js +6 -0
  476. package/lib/detailNormalShading/DETAIL_NORMAL_TARGET.js.map +1 -0
  477. package/lib/detailNormalShading/applyDetailNormal.d.ts +18 -0
  478. package/lib/detailNormalShading/applyDetailNormal.js +24 -0
  479. package/lib/detailNormalShading/applyDetailNormal.js.map +1 -0
  480. package/lib/detailNormalShading/createDetailNormalShaderPatch.d.ts +21 -0
  481. package/lib/detailNormalShading/createDetailNormalShaderPatch.js +35 -0
  482. package/lib/detailNormalShading/createDetailNormalShaderPatch.js.map +1 -0
  483. package/lib/detailNormalShading/detailNormalFragment.d.ts +14 -0
  484. package/lib/detailNormalShading/detailNormalFragment.js +18 -0
  485. package/lib/detailNormalShading/detailNormalFragment.js.map +1 -0
  486. package/lib/detailNormalShading/detailNormalVertex.d.ts +13 -0
  487. package/lib/detailNormalShading/detailNormalVertex.js +16 -0
  488. package/lib/detailNormalShading/detailNormalVertex.js.map +1 -0
  489. package/lib/detailNormalShading/index.d.ts +6 -0
  490. package/lib/detailNormalShading/index.js +7 -0
  491. package/lib/detailNormalShading/index.js.map +1 -0
  492. package/lib/detailNormalShading/spliceTangentNormal.d.ts +15 -0
  493. package/lib/detailNormalShading/spliceTangentNormal.js +25 -0
  494. package/lib/detailNormalShading/spliceTangentNormal.js.map +1 -0
  495. package/lib/disposeCrossDissolve.d.ts +15 -0
  496. package/lib/disposeCrossDissolve.js +22 -0
  497. package/lib/disposeCrossDissolve.js.map +1 -0
  498. package/lib/disposeFadeToBlack.d.ts +15 -0
  499. package/lib/disposeFadeToBlack.js +22 -0
  500. package/lib/disposeFadeToBlack.js.map +1 -0
  501. package/lib/disposeFormationRepresentations.d.ts +15 -0
  502. package/lib/disposeFormationRepresentations.js +37 -0
  503. package/lib/disposeFormationRepresentations.js.map +1 -0
  504. package/lib/dualQuaternionSkinning/applyDualQuaternionSkinning.d.ts +16 -0
  505. package/lib/dualQuaternionSkinning/applyDualQuaternionSkinning.js +20 -0
  506. package/lib/dualQuaternionSkinning/applyDualQuaternionSkinning.js.map +1 -0
  507. package/lib/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.d.ts +15 -0
  508. package/lib/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.js +21 -0
  509. package/lib/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.js.map +1 -0
  510. package/lib/dualQuaternionSkinning/dualQuaternionSkinningOf.d.ts +16 -0
  511. package/lib/dualQuaternionSkinning/dualQuaternionSkinningOf.js +16 -0
  512. package/lib/dualQuaternionSkinning/dualQuaternionSkinningOf.js.map +1 -0
  513. package/lib/dualQuaternionSkinning/dualQuaternionSkinningVertex.d.ts +30 -0
  514. package/lib/dualQuaternionSkinning/dualQuaternionSkinningVertex.js +132 -0
  515. package/lib/dualQuaternionSkinning/dualQuaternionSkinningVertex.js.map +1 -0
  516. package/lib/dualQuaternionSkinning/index.d.ts +4 -0
  517. package/lib/dualQuaternionSkinning/index.js +5 -0
  518. package/lib/dualQuaternionSkinning/index.js.map +1 -0
  519. package/lib/effect.d.ts +4 -0
  520. package/lib/effect.js +3 -0
  521. package/lib/effect.js.map +1 -0
  522. package/lib/evaluateAutoMovieViewerCameraDepthPrecision.d.ts +29 -0
  523. package/lib/evaluateAutoMovieViewerCameraDepthPrecision.js +71 -0
  524. package/lib/evaluateAutoMovieViewerCameraDepthPrecision.js.map +1 -0
  525. package/lib/flattenInstancedModel.d.ts +29 -0
  526. package/lib/flattenInstancedModel.js +91 -0
  527. package/lib/flattenInstancedModel.js.map +1 -0
  528. package/lib/flattenInstancedObject.d.ts +18 -0
  529. package/lib/flattenInstancedObject.js +25 -0
  530. package/lib/flattenInstancedObject.js.map +1 -0
  531. package/lib/flattenRigidParts.d.ts +19 -0
  532. package/lib/flattenRigidParts.js +91 -0
  533. package/lib/flattenRigidParts.js.map +1 -0
  534. package/lib/fluidSurface.d.ts +4 -0
  535. package/lib/fluidSurface.js +3 -0
  536. package/lib/fluidSurface.js.map +1 -0
  537. package/lib/formation/index.d.ts +12 -0
  538. package/lib/formation/index.js +10 -0
  539. package/lib/formation/index.js.map +1 -0
  540. package/lib/formationCycle/index.d.ts +17 -0
  541. package/lib/formationCycle/index.js +18 -0
  542. package/lib/formationCycle/index.js.map +1 -0
  543. package/lib/formationCycleCadence.d.ts +32 -0
  544. package/lib/formationCycleCadence.js +46 -0
  545. package/lib/formationCycleCadence.js.map +1 -0
  546. package/lib/formationCycleGait.d.ts +22 -0
  547. package/lib/formationCycleGait.js +23 -0
  548. package/lib/formationCycleGait.js.map +1 -0
  549. package/lib/formationCycleOf.d.ts +16 -0
  550. package/lib/formationCycleOf.js +15 -0
  551. package/lib/formationCycleOf.js.map +1 -0
  552. package/lib/formationCyclePosition.d.ts +21 -0
  553. package/lib/formationCyclePosition.js +26 -0
  554. package/lib/formationCyclePosition.js.map +1 -0
  555. package/lib/formationCycleStride.d.ts +26 -0
  556. package/lib/formationCycleStride.js +49 -0
  557. package/lib/formationCycleStride.js.map +1 -0
  558. package/lib/formationGeometry/index.d.ts +5 -0
  559. package/lib/formationGeometry/index.js +6 -0
  560. package/lib/formationGeometry/index.js.map +1 -0
  561. package/lib/formationSpacingOffset.d.ts +32 -0
  562. package/lib/formationSpacingOffset.js +45 -0
  563. package/lib/formationSpacingOffset.js.map +1 -0
  564. package/lib/guardAutoMovieRenderModeRetirement.d.ts +18 -0
  565. package/lib/guardAutoMovieRenderModeRetirement.js +60 -0
  566. package/lib/guardAutoMovieRenderModeRetirement.js.map +1 -0
  567. package/lib/guardAutoMovieSceneShadowRetirement.d.ts +17 -0
  568. package/lib/guardAutoMovieSceneShadowRetirement.js +35 -0
  569. package/lib/guardAutoMovieSceneShadowRetirement.js.map +1 -0
  570. package/lib/human-polygon/AutoMovieHumanCartoon.d.ts +78 -0
  571. package/lib/human-polygon/AutoMovieHumanCartoon.js +2 -0
  572. package/lib/human-polygon/AutoMovieHumanCartoon.js.map +1 -0
  573. package/lib/human-polygon/AutoMovieHumanPolygon.d.ts +137 -0
  574. package/lib/human-polygon/AutoMovieHumanPolygon.js +2 -0
  575. package/lib/human-polygon/AutoMovieHumanPolygon.js.map +1 -0
  576. package/lib/human-polygon/applyHumanPolygonPose.d.ts +16 -0
  577. package/lib/human-polygon/applyHumanPolygonPose.js +46 -0
  578. package/lib/human-polygon/applyHumanPolygonPose.js.map +1 -0
  579. package/lib/human-polygon/buildHumanCartoonFace.d.ts +43 -0
  580. package/lib/human-polygon/buildHumanCartoonFace.js +319 -0
  581. package/lib/human-polygon/buildHumanCartoonFace.js.map +1 -0
  582. package/lib/human-polygon/buildHumanPolygon.d.ts +38 -0
  583. package/lib/human-polygon/buildHumanPolygon.js +265 -0
  584. package/lib/human-polygon/buildHumanPolygon.js.map +1 -0
  585. package/lib/human-polygon/buildHumanPolygonModule.d.ts +71 -0
  586. package/lib/human-polygon/buildHumanPolygonModule.js +206 -0
  587. package/lib/human-polygon/buildHumanPolygonModule.js.map +1 -0
  588. package/lib/human-polygon/buildHumanPolygonParts.d.ts +21 -0
  589. package/lib/human-polygon/buildHumanPolygonParts.js +140 -0
  590. package/lib/human-polygon/buildHumanPolygonParts.js.map +1 -0
  591. package/lib/human-polygon/createAutoMovieHumanPolygonFigure.d.ts +60 -0
  592. package/lib/human-polygon/createAutoMovieHumanPolygonFigure.js +67 -0
  593. package/lib/human-polygon/createAutoMovieHumanPolygonFigure.js.map +1 -0
  594. package/lib/human-polygon/createHumanPolygonPalette.d.ts +62 -0
  595. package/lib/human-polygon/createHumanPolygonPalette.js +131 -0
  596. package/lib/human-polygon/createHumanPolygonPalette.js.map +1 -0
  597. package/lib/human-polygon/humanPolygonSections.d.ts +49 -0
  598. package/lib/human-polygon/humanPolygonSections.js +63 -0
  599. package/lib/human-polygon/humanPolygonSections.js.map +1 -0
  600. package/lib/human-polygon/humanPolygonTopology.d.ts +62 -0
  601. package/lib/human-polygon/humanPolygonTopology.js +111 -0
  602. package/lib/human-polygon/humanPolygonTopology.js.map +1 -0
  603. package/lib/human-polygon/index.d.ts +5 -0
  604. package/lib/human-polygon/index.js +4 -0
  605. package/lib/human-polygon/index.js.map +1 -0
  606. package/lib/human-polygon/mountHumanCartoonFace.d.ts +14 -0
  607. package/lib/human-polygon/mountHumanCartoonFace.js +70 -0
  608. package/lib/human-polygon/mountHumanCartoonFace.js.map +1 -0
  609. package/lib/importedModel/index.d.ts +4 -0
  610. package/lib/importedModel/index.js +5 -0
  611. package/lib/importedModel/index.js.map +1 -0
  612. package/lib/index.d.ts +140 -0
  613. package/lib/index.js +141 -0
  614. package/lib/index.js.map +1 -0
  615. package/lib/instanceSet/index.d.ts +6 -0
  616. package/lib/instanceSet/index.js +7 -0
  617. package/lib/instanceSet/index.js.map +1 -0
  618. package/lib/instancedModelParts.d.ts +15 -0
  619. package/lib/instancedModelParts.js +22 -0
  620. package/lib/instancedModelParts.js.map +1 -0
  621. package/lib/invalidateAutoMovieSceneShadowPrograms.d.ts +13 -0
  622. package/lib/invalidateAutoMovieSceneShadowPrograms.js +27 -0
  623. package/lib/invalidateAutoMovieSceneShadowPrograms.js.map +1 -0
  624. package/lib/invalidateAutoMovieSkinnedPose.d.ts +22 -0
  625. package/lib/invalidateAutoMovieSkinnedPose.js +31 -0
  626. package/lib/invalidateAutoMovieSkinnedPose.js.map +1 -0
  627. package/lib/mapImportedHumanoidBones.d.ts +16 -0
  628. package/lib/mapImportedHumanoidBones.js +57 -0
  629. package/lib/mapImportedHumanoidBones.js.map +1 -0
  630. package/lib/maskColor.d.ts +13 -0
  631. package/lib/maskColor.js +14 -0
  632. package/lib/maskColor.js.map +1 -0
  633. package/lib/matchesAutoMovieShadowTextureProfile.d.ts +13 -0
  634. package/lib/matchesAutoMovieShadowTextureProfile.js +21 -0
  635. package/lib/matchesAutoMovieShadowTextureProfile.js.map +1 -0
  636. package/lib/materialOverlayShading/IMaterialOverlayShading.d.ts +29 -0
  637. package/lib/materialOverlayShading/IMaterialOverlayShading.js +2 -0
  638. package/lib/materialOverlayShading/IMaterialOverlayShading.js.map +1 -0
  639. package/lib/materialOverlayShading/IMaterialOverlayShape.d.ts +16 -0
  640. package/lib/materialOverlayShading/IMaterialOverlayShape.js +2 -0
  641. package/lib/materialOverlayShading/IMaterialOverlayShape.js.map +1 -0
  642. package/lib/materialOverlayShading/applyMaterialOverlays.d.ts +16 -0
  643. package/lib/materialOverlayShading/applyMaterialOverlays.js +66 -0
  644. package/lib/materialOverlayShading/applyMaterialOverlays.js.map +1 -0
  645. package/lib/materialOverlayShading/getOverlayFlatNormal.d.ts +13 -0
  646. package/lib/materialOverlayShading/getOverlayFlatNormal.js +24 -0
  647. package/lib/materialOverlayShading/getOverlayFlatNormal.js.map +1 -0
  648. package/lib/materialOverlayShading/index.d.ts +6 -0
  649. package/lib/materialOverlayShading/index.js +4 -0
  650. package/lib/materialOverlayShading/index.js.map +1 -0
  651. package/lib/materialOverlayShading/materialOverlayFragment.d.ts +13 -0
  652. package/lib/materialOverlayShading/materialOverlayFragment.js +50 -0
  653. package/lib/materialOverlayShading/materialOverlayFragment.js.map +1 -0
  654. package/lib/materialOverlayShading/materialOverlayVertex.d.ts +13 -0
  655. package/lib/materialOverlayShading/materialOverlayVertex.js +27 -0
  656. package/lib/materialOverlayShading/materialOverlayVertex.js.map +1 -0
  657. package/lib/materialTextureBindings.d.ts +13 -0
  658. package/lib/materialTextureBindings.js +26 -0
  659. package/lib/materialTextureBindings.js.map +1 -0
  660. package/lib/morphTargetDriversOf.d.ts +17 -0
  661. package/lib/morphTargetDriversOf.js +16 -0
  662. package/lib/morphTargetDriversOf.js.map +1 -0
  663. package/lib/motion-overlay/applyAutoMovieGhost.d.ts +25 -0
  664. package/lib/motion-overlay/applyAutoMovieGhost.js +42 -0
  665. package/lib/motion-overlay/applyAutoMovieGhost.js.map +1 -0
  666. package/lib/motion-overlay/createAutoMovieDriftMarkers.d.ts +27 -0
  667. package/lib/motion-overlay/createAutoMovieDriftMarkers.js +47 -0
  668. package/lib/motion-overlay/createAutoMovieDriftMarkers.js.map +1 -0
  669. package/lib/motion-overlay/createAutoMovieTargetMarker.d.ts +24 -0
  670. package/lib/motion-overlay/createAutoMovieTargetMarker.js +51 -0
  671. package/lib/motion-overlay/createAutoMovieTargetMarker.js.map +1 -0
  672. package/lib/motion-overlay/createAutoMovieTrail.d.ts +23 -0
  673. package/lib/motion-overlay/createAutoMovieTrail.js +35 -0
  674. package/lib/motion-overlay/createAutoMovieTrail.js.map +1 -0
  675. package/lib/motion-overlay/index.d.ts +4 -0
  676. package/lib/motion-overlay/index.js +5 -0
  677. package/lib/motion-overlay/index.js.map +1 -0
  678. package/lib/mountViewer.d.ts +20 -0
  679. package/lib/mountViewer.js +179 -0
  680. package/lib/mountViewer.js.map +1 -0
  681. package/lib/objectTransform.d.ts +14 -0
  682. package/lib/objectTransform.js +28 -0
  683. package/lib/objectTransform.js.map +1 -0
  684. package/lib/observeAutoMovieRendererFrame.d.ts +21 -0
  685. package/lib/observeAutoMovieRendererFrame.js +40 -0
  686. package/lib/observeAutoMovieRendererFrame.js.map +1 -0
  687. package/lib/overrideAutoMovieRenderModeMaterials.d.ts +17 -0
  688. package/lib/overrideAutoMovieRenderModeMaterials.js +61 -0
  689. package/lib/overrideAutoMovieRenderModeMaterials.js.map +1 -0
  690. package/lib/planAutoMovieShadowTextureTarget.d.ts +14 -0
  691. package/lib/planAutoMovieShadowTextureTarget.js +33 -0
  692. package/lib/planAutoMovieShadowTextureTarget.js.map +1 -0
  693. package/lib/propArticulation/index.d.ts +4 -0
  694. package/lib/propArticulation/index.js +5 -0
  695. package/lib/propArticulation/index.js.map +1 -0
  696. package/lib/publishViewerCompletedFrame.d.ts +18 -0
  697. package/lib/publishViewerCompletedFrame.js +19 -0
  698. package/lib/publishViewerCompletedFrame.js.map +1 -0
  699. package/lib/raster/AutoMovieRasterLighting.d.ts +43 -0
  700. package/lib/raster/AutoMovieRasterLighting.js +179 -0
  701. package/lib/raster/AutoMovieRasterLighting.js.map +1 -0
  702. package/lib/raster/AutoMovieRasterSheet.d.ts +68 -0
  703. package/lib/raster/AutoMovieRasterSheet.js +141 -0
  704. package/lib/raster/AutoMovieRasterSheet.js.map +1 -0
  705. package/lib/raster/AutoMovieRasterTarget.d.ts +87 -0
  706. package/lib/raster/AutoMovieRasterTarget.js +227 -0
  707. package/lib/raster/AutoMovieRasterTarget.js.map +1 -0
  708. package/lib/raster/IAutoMovieSceneRaster.d.ts +52 -0
  709. package/lib/raster/IAutoMovieSceneRaster.js +2 -0
  710. package/lib/raster/IAutoMovieSceneRaster.js.map +1 -0
  711. package/lib/raster/IRasterizeAutoMovieSceneProps.d.ts +28 -0
  712. package/lib/raster/IRasterizeAutoMovieSceneProps.js +2 -0
  713. package/lib/raster/IRasterizeAutoMovieSceneProps.js.map +1 -0
  714. package/lib/raster/encodeAutoMovieRasterPng.d.ts +17 -0
  715. package/lib/raster/encodeAutoMovieRasterPng.js +71 -0
  716. package/lib/raster/encodeAutoMovieRasterPng.js.map +1 -0
  717. package/lib/raster/index.d.ts +8 -0
  718. package/lib/raster/index.js +9 -0
  719. package/lib/raster/index.js.map +1 -0
  720. package/lib/raster/rasterizeAutoMovieScene.d.ts +33 -0
  721. package/lib/raster/rasterizeAutoMovieScene.js +409 -0
  722. package/lib/raster/rasterizeAutoMovieScene.js.map +1 -0
  723. package/lib/raster/stampAutoMovieRasterLabel.d.ts +19 -0
  724. package/lib/raster/stampAutoMovieRasterLabel.js +88 -0
  725. package/lib/raster/stampAutoMovieRasterLabel.js.map +1 -0
  726. package/lib/readAutoMovieCubeShadowDepth.d.ts +13 -0
  727. package/lib/readAutoMovieCubeShadowDepth.js +37 -0
  728. package/lib/readAutoMovieCubeShadowDepth.js.map +1 -0
  729. package/lib/readAutoMovieDeliveryCrop.d.ts +20 -0
  730. package/lib/readAutoMovieDeliveryCrop.js +36 -0
  731. package/lib/readAutoMovieDeliveryCrop.js.map +1 -0
  732. package/lib/readAutoMovieDisplayDestinationEncoding.d.ts +13 -0
  733. package/lib/readAutoMovieDisplayDestinationEncoding.js +52 -0
  734. package/lib/readAutoMovieDisplayDestinationEncoding.js.map +1 -0
  735. package/lib/readAutoMovieEnvironmentColorSpace.d.ts +13 -0
  736. package/lib/readAutoMovieEnvironmentColorSpace.js +18 -0
  737. package/lib/readAutoMovieEnvironmentColorSpace.js.map +1 -0
  738. package/lib/readAutoMovieFilmDisplayTextureResidency.d.ts +20 -0
  739. package/lib/readAutoMovieFilmDisplayTextureResidency.js +29 -0
  740. package/lib/readAutoMovieFilmDisplayTextureResidency.js.map +1 -0
  741. package/lib/readAutoMovieMaterialTextureSources.d.ts +23 -0
  742. package/lib/readAutoMovieMaterialTextureSources.js +94 -0
  743. package/lib/readAutoMovieMaterialTextureSources.js.map +1 -0
  744. package/lib/readAutoMovieRenderTextureTarget.d.ts +14 -0
  745. package/lib/readAutoMovieRenderTextureTarget.js +52 -0
  746. package/lib/readAutoMovieRenderTextureTarget.js.map +1 -0
  747. package/lib/readAutoMovieShadowLightSource.d.ts +14 -0
  748. package/lib/readAutoMovieShadowLightSource.js +23 -0
  749. package/lib/readAutoMovieShadowLightSource.js.map +1 -0
  750. package/lib/readAutoMovieShadowTextureTargets.d.ts +16 -0
  751. package/lib/readAutoMovieShadowTextureTargets.js +65 -0
  752. package/lib/readAutoMovieShadowTextureTargets.js.map +1 -0
  753. package/lib/readAutoMovieTextureSource.d.ts +20 -0
  754. package/lib/readAutoMovieTextureSource.js +214 -0
  755. package/lib/readAutoMovieTextureSource.js.map +1 -0
  756. package/lib/readAutoMovieTextureUploadFormat.d.ts +13 -0
  757. package/lib/readAutoMovieTextureUploadFormat.js +43 -0
  758. package/lib/readAutoMovieTextureUploadFormat.js.map +1 -0
  759. package/lib/readAutoMovieTransmissionTextureTarget.d.ts +19 -0
  760. package/lib/readAutoMovieTransmissionTextureTarget.js +42 -0
  761. package/lib/readAutoMovieTransmissionTextureTarget.js.map +1 -0
  762. package/lib/redrawViewerCompletedFrame.d.ts +28 -0
  763. package/lib/redrawViewerCompletedFrame.js +35 -0
  764. package/lib/redrawViewerCompletedFrame.js.map +1 -0
  765. package/lib/regenerateFormationSlot.d.ts +15 -0
  766. package/lib/regenerateFormationSlot.js +16 -0
  767. package/lib/regenerateFormationSlot.js.map +1 -0
  768. package/lib/regenerateInstanceSlot.d.ts +17 -0
  769. package/lib/regenerateInstanceSlot.js +18 -0
  770. package/lib/regenerateInstanceSlot.js.map +1 -0
  771. package/lib/releaseMountedViewer.d.ts +13 -0
  772. package/lib/releaseMountedViewer.js +24 -0
  773. package/lib/releaseMountedViewer.js.map +1 -0
  774. package/lib/releaseViewerRenderer.d.ts +13 -0
  775. package/lib/releaseViewerRenderer.js +26 -0
  776. package/lib/releaseViewerRenderer.js.map +1 -0
  777. package/lib/reliefWeightShading/RELIEF_WEIGHT_TARGET.d.ts +5 -0
  778. package/lib/reliefWeightShading/RELIEF_WEIGHT_TARGET.js +6 -0
  779. package/lib/reliefWeightShading/RELIEF_WEIGHT_TARGET.js.map +1 -0
  780. package/lib/reliefWeightShading/applyReliefWeights.d.ts +13 -0
  781. package/lib/reliefWeightShading/applyReliefWeights.js +17 -0
  782. package/lib/reliefWeightShading/applyReliefWeights.js.map +1 -0
  783. package/lib/reliefWeightShading/createReliefWeightShaderPatch.d.ts +18 -0
  784. package/lib/reliefWeightShading/createReliefWeightShaderPatch.js +21 -0
  785. package/lib/reliefWeightShading/createReliefWeightShaderPatch.js.map +1 -0
  786. package/lib/reliefWeightShading/index.d.ts +5 -0
  787. package/lib/reliefWeightShading/index.js +6 -0
  788. package/lib/reliefWeightShading/index.js.map +1 -0
  789. package/lib/reliefWeightShading/reliefWeightFragment.d.ts +12 -0
  790. package/lib/reliefWeightShading/reliefWeightFragment.js +24 -0
  791. package/lib/reliefWeightShading/reliefWeightFragment.js.map +1 -0
  792. package/lib/reliefWeightShading/reliefWeightVertex.d.ts +12 -0
  793. package/lib/reliefWeightShading/reliefWeightVertex.js +15 -0
  794. package/lib/reliefWeightShading/reliefWeightVertex.js.map +1 -0
  795. package/lib/renderAutoMovieFilmFrame.d.ts +22 -0
  796. package/lib/renderAutoMovieFilmFrame.js +33 -0
  797. package/lib/renderAutoMovieFilmFrame.js.map +1 -0
  798. package/lib/renderAutoMovieScenePass.d.ts +14 -0
  799. package/lib/renderAutoMovieScenePass.js +103 -0
  800. package/lib/renderAutoMovieScenePass.js.map +1 -0
  801. package/lib/renderCrossDissolve.d.ts +13 -0
  802. package/lib/renderCrossDissolve.js +26 -0
  803. package/lib/renderCrossDissolve.js.map +1 -0
  804. package/lib/renderCrossDissolveFrames.d.ts +15 -0
  805. package/lib/renderCrossDissolveFrames.js +30 -0
  806. package/lib/renderCrossDissolveFrames.js.map +1 -0
  807. package/lib/renderFadeToBlackFrame.d.ts +13 -0
  808. package/lib/renderFadeToBlackFrame.js +28 -0
  809. package/lib/renderFadeToBlackFrame.js.map +1 -0
  810. package/lib/reportAutoMovieResourceRetirement.d.ts +14 -0
  811. package/lib/reportAutoMovieResourceRetirement.js +47 -0
  812. package/lib/reportAutoMovieResourceRetirement.js.map +1 -0
  813. package/lib/resetAutoMovieSceneShadowTargets.d.ts +15 -0
  814. package/lib/resetAutoMovieSceneShadowTargets.js +83 -0
  815. package/lib/resetAutoMovieSceneShadowTargets.js.map +1 -0
  816. package/lib/resolveAutoMovieFilmBeautyComposition.d.ts +16 -0
  817. package/lib/resolveAutoMovieFilmBeautyComposition.js +31 -0
  818. package/lib/resolveAutoMovieFilmBeautyComposition.js.map +1 -0
  819. package/lib/resolveAutoMovieMaterialTexture.d.ts +17 -0
  820. package/lib/resolveAutoMovieMaterialTexture.js +77 -0
  821. package/lib/resolveAutoMovieMaterialTexture.js.map +1 -0
  822. package/lib/restoreAutoMovieRenderModeOnce.d.ts +12 -0
  823. package/lib/restoreAutoMovieRenderModeOnce.js +31 -0
  824. package/lib/restoreAutoMovieRenderModeOnce.js.map +1 -0
  825. package/lib/restoreAutoMovieRenderModeState.d.ts +15 -0
  826. package/lib/restoreAutoMovieRenderModeState.js +49 -0
  827. package/lib/restoreAutoMovieRenderModeState.js.map +1 -0
  828. package/lib/retireAutoMovieCubeShadowDepth.d.ts +13 -0
  829. package/lib/retireAutoMovieCubeShadowDepth.js +28 -0
  830. package/lib/retireAutoMovieCubeShadowDepth.js.map +1 -0
  831. package/lib/sampleFormationCycleMatrix.d.ts +15 -0
  832. package/lib/sampleFormationCycleMatrix.js +27 -0
  833. package/lib/sampleFormationCycleMatrix.js.map +1 -0
  834. package/lib/semanticMask/IAutoMovieSemanticMaskBinding.d.ts +19 -0
  835. package/lib/semanticMask/IAutoMovieSemanticMaskBinding.js +2 -0
  836. package/lib/semanticMask/IAutoMovieSemanticMaskBinding.js.map +1 -0
  837. package/lib/semanticMask/IAutoMovieSemanticMaskHandle.d.ts +42 -0
  838. package/lib/semanticMask/IAutoMovieSemanticMaskHandle.js +2 -0
  839. package/lib/semanticMask/IAutoMovieSemanticMaskHandle.js.map +1 -0
  840. package/lib/semanticMask/SCENE_MASK_KEY.d.ts +6 -0
  841. package/lib/semanticMask/SCENE_MASK_KEY.js +7 -0
  842. package/lib/semanticMask/SCENE_MASK_KEY.js.map +1 -0
  843. package/lib/semanticMask/applyAutoMovieSemanticMask.d.ts +34 -0
  844. package/lib/semanticMask/applyAutoMovieSemanticMask.js +177 -0
  845. package/lib/semanticMask/applyAutoMovieSemanticMask.js.map +1 -0
  846. package/lib/semanticMask/attachAutoMovieSemanticMask.d.ts +16 -0
  847. package/lib/semanticMask/attachAutoMovieSemanticMask.js +18 -0
  848. package/lib/semanticMask/attachAutoMovieSemanticMask.js.map +1 -0
  849. package/lib/semanticMask/auditAutoMovieSemanticMaskScene.d.ts +21 -0
  850. package/lib/semanticMask/auditAutoMovieSemanticMaskScene.js +27 -0
  851. package/lib/semanticMask/auditAutoMovieSemanticMaskScene.js.map +1 -0
  852. package/lib/semanticMask/autoMovieSemanticMaskOf.d.ts +14 -0
  853. package/lib/semanticMask/autoMovieSemanticMaskOf.js +14 -0
  854. package/lib/semanticMask/autoMovieSemanticMaskOf.js.map +1 -0
  855. package/lib/semanticMask/index.d.ts +7 -0
  856. package/lib/semanticMask/index.js +7 -0
  857. package/lib/semanticMask/index.js.map +1 -0
  858. package/lib/semanticMask/maskRoots.d.ts +23 -0
  859. package/lib/semanticMask/maskRoots.js +33 -0
  860. package/lib/semanticMask/maskRoots.js.map +1 -0
  861. package/lib/semanticMask/nearest.d.ts +14 -0
  862. package/lib/semanticMask/nearest.js +22 -0
  863. package/lib/semanticMask/nearest.js.map +1 -0
  864. package/lib/semanticMask/unresolvedOf.d.ts +14 -0
  865. package/lib/semanticMask/unresolvedOf.js +21 -0
  866. package/lib/semanticMask/unresolvedOf.js.map +1 -0
  867. package/lib/slotMatrix.d.ts +17 -0
  868. package/lib/slotMatrix.js +15 -0
  869. package/lib/slotMatrix.js.map +1 -0
  870. package/lib/subjectViewpoint/AutoMovieViewerSubjectKind.d.ts +9 -0
  871. package/lib/subjectViewpoint/AutoMovieViewerSubjectKind.js +2 -0
  872. package/lib/subjectViewpoint/AutoMovieViewerSubjectKind.js.map +1 -0
  873. package/lib/subjectViewpoint/IAutoMovieViewerSubject.d.ts +25 -0
  874. package/lib/subjectViewpoint/IAutoMovieViewerSubject.js +2 -0
  875. package/lib/subjectViewpoint/IAutoMovieViewerSubject.js.map +1 -0
  876. package/lib/subjectViewpoint/IAutoMovieViewerSubjectBounds.d.ts +26 -0
  877. package/lib/subjectViewpoint/IAutoMovieViewerSubjectBounds.js +2 -0
  878. package/lib/subjectViewpoint/IAutoMovieViewerSubjectBounds.js.map +1 -0
  879. package/lib/subjectViewpoint/IAutoMovieViewerSubjectLens.d.ts +20 -0
  880. package/lib/subjectViewpoint/IAutoMovieViewerSubjectLens.js +2 -0
  881. package/lib/subjectViewpoint/IAutoMovieViewerSubjectLens.js.map +1 -0
  882. package/lib/subjectViewpoint/IAutoMovieViewerSubjectPose.d.ts +39 -0
  883. package/lib/subjectViewpoint/IAutoMovieViewerSubjectPose.js +2 -0
  884. package/lib/subjectViewpoint/IAutoMovieViewerSubjectPose.js.map +1 -0
  885. package/lib/subjectViewpoint/IAutoMovieViewerSubjectView.d.ts +37 -0
  886. package/lib/subjectViewpoint/IAutoMovieViewerSubjectView.js +2 -0
  887. package/lib/subjectViewpoint/IAutoMovieViewerSubjectView.js.map +1 -0
  888. package/lib/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.d.ts +55 -0
  889. package/lib/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.js +2 -0
  890. package/lib/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.js.map +1 -0
  891. package/lib/subjectViewpoint/IAutoMovieViewerTurntableOptions.d.ts +22 -0
  892. package/lib/subjectViewpoint/IAutoMovieViewerTurntableOptions.js +2 -0
  893. package/lib/subjectViewpoint/IAutoMovieViewerTurntableOptions.js.map +1 -0
  894. package/lib/subjectViewpoint/IAutoMovieViewerViewpoint.d.ts +28 -0
  895. package/lib/subjectViewpoint/IAutoMovieViewerViewpoint.js +2 -0
  896. package/lib/subjectViewpoint/IAutoMovieViewerViewpoint.js.map +1 -0
  897. package/lib/subjectViewpoint/applyAutoMovieViewerSubjectPose.d.ts +14 -0
  898. package/lib/subjectViewpoint/applyAutoMovieViewerSubjectPose.js +25 -0
  899. package/lib/subjectViewpoint/applyAutoMovieViewerSubjectPose.js.map +1 -0
  900. package/lib/subjectViewpoint/autoMovieViewerPoseFromHeading.d.ts +24 -0
  901. package/lib/subjectViewpoint/autoMovieViewerPoseFromHeading.js +33 -0
  902. package/lib/subjectViewpoint/autoMovieViewerPoseFromHeading.js.map +1 -0
  903. package/lib/subjectViewpoint/autoMovieViewerSubjectKey.d.ts +13 -0
  904. package/lib/subjectViewpoint/autoMovieViewerSubjectKey.js +17 -0
  905. package/lib/subjectViewpoint/autoMovieViewerSubjectKey.js.map +1 -0
  906. package/lib/subjectViewpoint/autoMovieViewerTurntableViewpoints.d.ts +14 -0
  907. package/lib/subjectViewpoint/autoMovieViewerTurntableViewpoints.js +41 -0
  908. package/lib/subjectViewpoint/autoMovieViewerTurntableViewpoints.js.map +1 -0
  909. package/lib/subjectViewpoint/captureAutoMovieViewerSubjectView.d.ts +14 -0
  910. package/lib/subjectViewpoint/captureAutoMovieViewerSubjectView.js +25 -0
  911. package/lib/subjectViewpoint/captureAutoMovieViewerSubjectView.js.map +1 -0
  912. package/lib/subjectViewpoint/frameAutoMovieViewerSubject.d.ts +16 -0
  913. package/lib/subjectViewpoint/frameAutoMovieViewerSubject.js +57 -0
  914. package/lib/subjectViewpoint/frameAutoMovieViewerSubject.js.map +1 -0
  915. package/lib/subjectViewpoint/index.d.ts +16 -0
  916. package/lib/subjectViewpoint/index.js +17 -0
  917. package/lib/subjectViewpoint/index.js.map +1 -0
  918. package/lib/subjectViewpoint/parseAutoMovieViewerSubjectKey.d.ts +13 -0
  919. package/lib/subjectViewpoint/parseAutoMovieViewerSubjectKey.js +49 -0
  920. package/lib/subjectViewpoint/parseAutoMovieViewerSubjectKey.js.map +1 -0
  921. package/lib/subsurfaceShading/SUBSURFACE_TARGET.d.ts +2 -0
  922. package/lib/subsurfaceShading/SUBSURFACE_TARGET.js +3 -0
  923. package/lib/subsurfaceShading/SUBSURFACE_TARGET.js.map +1 -0
  924. package/lib/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.d.ts +5 -0
  925. package/lib/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.js +3 -0
  926. package/lib/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.js.map +1 -0
  927. package/lib/subsurfaceShading/applySubsurfaceShading.d.ts +17 -0
  928. package/lib/subsurfaceShading/applySubsurfaceShading.js +34 -0
  929. package/lib/subsurfaceShading/applySubsurfaceShading.js.map +1 -0
  930. package/lib/subsurfaceShading/getSubsurfaceTexture.d.ts +13 -0
  931. package/lib/subsurfaceShading/getSubsurfaceTexture.js +36 -0
  932. package/lib/subsurfaceShading/getSubsurfaceTexture.js.map +1 -0
  933. package/lib/subsurfaceShading/index.d.ts +6 -0
  934. package/lib/subsurfaceShading/index.js +7 -0
  935. package/lib/subsurfaceShading/index.js.map +1 -0
  936. package/lib/subsurfaceShading/subsurfaceFragment.d.ts +12 -0
  937. package/lib/subsurfaceShading/subsurfaceFragment.js +26 -0
  938. package/lib/subsurfaceShading/subsurfaceFragment.js.map +1 -0
  939. package/lib/subsurfaceShading/subsurfacePhysicalChunk.d.ts +12 -0
  940. package/lib/subsurfaceShading/subsurfacePhysicalChunk.js +34 -0
  941. package/lib/subsurfaceShading/subsurfacePhysicalChunk.js.map +1 -0
  942. package/lib/subsurfaceShading/subsurfaceTable.d.ts +12 -0
  943. package/lib/subsurfaceShading/subsurfaceTable.js +45 -0
  944. package/lib/subsurfaceShading/subsurfaceTable.js.map +1 -0
  945. package/lib/textureBindingAsset.d.ts +13 -0
  946. package/lib/textureBindingAsset.js +15 -0
  947. package/lib/textureBindingAsset.js.map +1 -0
  948. package/lib/transport/AutoMovieViewerTransport.d.ts +216 -0
  949. package/lib/transport/AutoMovieViewerTransport.js +243 -0
  950. package/lib/transport/AutoMovieViewerTransport.js.map +1 -0
  951. package/lib/transport/configureAutoMovieReviewControls.d.ts +27 -0
  952. package/lib/transport/configureAutoMovieReviewControls.js +35 -0
  953. package/lib/transport/configureAutoMovieReviewControls.js.map +1 -0
  954. package/lib/transport/index.d.ts +5 -0
  955. package/lib/transport/index.js +6 -0
  956. package/lib/transport/index.js.map +1 -0
  957. package/lib/transport/mountAutoMovieTransportControls.d.ts +64 -0
  958. package/lib/transport/mountAutoMovieTransportControls.js +124 -0
  959. package/lib/transport/mountAutoMovieTransportControls.js.map +1 -0
  960. package/lib/transport/parseAutoMovieInspectionView.d.ts +20 -0
  961. package/lib/transport/parseAutoMovieInspectionView.js +29 -0
  962. package/lib/transport/parseAutoMovieInspectionView.js.map +1 -0
  963. package/lib/transport/readAutoMovieReviewInterval.d.ts +23 -0
  964. package/lib/transport/readAutoMovieReviewInterval.js +39 -0
  965. package/lib/transport/readAutoMovieReviewInterval.js.map +1 -0
  966. package/lib/updateAutoMovieComparisonCamera.d.ts +27 -0
  967. package/lib/updateAutoMovieComparisonCamera.js +79 -0
  968. package/lib/updateAutoMovieComparisonCamera.js.map +1 -0
  969. package/lib/vector.d.ts +17 -0
  970. package/lib/vector.js +16 -0
  971. package/lib/vector.js.map +1 -0
  972. package/package.json +51 -3
  973. package/src/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.ts +4 -0
  974. package/src/AutoMovieDisplayCompositor.ts +379 -0
  975. package/src/AutoMovieDissolveCompositorState.ts +9 -0
  976. package/src/AutoMovieEnvironmentTextureOwnership.ts +262 -0
  977. package/src/AutoMovieFadeCompositorState.ts +9 -0
  978. package/src/AutoMovieFilmBeautyComposition.ts +24 -0
  979. package/src/AutoMovieGeometryPhysicalVertices.ts +187 -0
  980. package/src/AutoMoviePlayer.ts +281 -0
  981. package/src/AutoMovieRenderModeMesh.ts +14 -0
  982. package/src/AutoMovieResourceRetirementScope.ts +203 -0
  983. package/src/AutoMovieSkinBlend.ts +251 -0
  984. package/src/AutoMovieSkinPose.ts +453 -0
  985. package/src/AutoMovieSkinnedMesh.ts +333 -0
  986. package/src/AutoMovieTextureCache.ts +389 -0
  987. package/src/AutoMovieTextureCacheAllocationAuthority.ts +516 -0
  988. package/src/DEPTH_NORMALIZATION_RANGE.ts +4 -0
  989. package/src/EDGE_SHELL_NAME.ts +2 -0
  990. package/src/EDGE_WIDTH.ts +4 -0
  991. package/src/IApplyAutoMovieSectionPlanesProps.ts +32 -0
  992. package/src/IAutoMovieAnalysisOverlayObject.ts +53 -0
  993. package/src/IAutoMovieBuiltPropArticulation.ts +36 -0
  994. package/src/IAutoMovieEffectViewerObject.ts +32 -0
  995. package/src/IAutoMovieEffectViewerStats.ts +21 -0
  996. package/src/IAutoMovieExpressionTarget.ts +22 -0
  997. package/src/IAutoMovieFilmBeautyLayer.ts +12 -0
  998. package/src/IAutoMovieFluidSprayObject.ts +54 -0
  999. package/src/IAutoMovieFluidSurfaceObject.ts +41 -0
  1000. package/src/IAutoMovieFormationCadence.ts +20 -0
  1001. package/src/IAutoMovieFormationCycle.ts +44 -0
  1002. package/src/IAutoMovieFormationCycleTake.ts +52 -0
  1003. package/src/IAutoMovieFormationCycleUniforms.ts +26 -0
  1004. package/src/IAutoMovieFormationViewerObject.ts +74 -0
  1005. package/src/IAutoMovieFormationViewerStats.ts +38 -0
  1006. package/src/IAutoMovieImportedModelOptions.ts +51 -0
  1007. package/src/IAutoMovieInstanceSetViewerObject.ts +47 -0
  1008. package/src/IAutoMovieInstanceSetViewerStats.ts +20 -0
  1009. package/src/IAutoMovieInstancedGeometry.ts +26 -0
  1010. package/src/IAutoMovieInstancedModelRepresentation.ts +20 -0
  1011. package/src/IAutoMovieMaterialLibrary.ts +44 -0
  1012. package/src/IAutoMovieModelObject.ts +61 -0
  1013. package/src/IAutoMoviePlantingObject.ts +39 -0
  1014. package/src/IAutoMovieRenderModeHandle.ts +47 -0
  1015. package/src/IAutoMovieRendererEnvironmentHandle.ts +22 -0
  1016. package/src/IAutoMovieRigLocalTransform.ts +16 -0
  1017. package/src/IAutoMovieSceneObject.ts +29 -0
  1018. package/src/IAutoMovieSectionRenderer.ts +17 -0
  1019. package/src/IAutoMovieShadowTextureHost.ts +19 -0
  1020. package/src/IAutoMovieSoftBodyObject.ts +49 -0
  1021. package/src/IAutoMovieSpringAxisSettlement.ts +21 -0
  1022. package/src/IAutoMovieSpringConfig.ts +25 -0
  1023. package/src/IAutoMovieTextureLoader.ts +14 -0
  1024. package/src/IAutoMovieTextureResolver.ts +19 -0
  1025. package/src/IAutoMovieViewerCameraDepthPrecisionReport.ts +45 -0
  1026. package/src/IAutoMovieViewerCompletedFrame.ts +62 -0
  1027. package/src/IAutoMovieViewerDisplayMetadata.ts +26 -0
  1028. package/src/IAutoMovieViewerFrame.ts +26 -0
  1029. package/src/IAutoMovieViewerHandle.ts +45 -0
  1030. package/src/IAutoMovieViewerSnapshot.ts +21 -0
  1031. package/src/IAutoMovieViewerSnapshotOptions.ts +15 -0
  1032. package/src/IAutoMovieViewerSnapshotRenderer.ts +36 -0
  1033. package/src/IBakeFormationCycleProps.ts +36 -0
  1034. package/src/IBuildAutoMovieMaterialLibraryProps.ts +34 -0
  1035. package/src/IBuildInstancedFormationProps.ts +45 -0
  1036. package/src/IBuildInstancedInstanceSetProps.ts +36 -0
  1037. package/src/IBuildPlantingObjectProps.ts +30 -0
  1038. package/src/IBuildPropArticulationProps.ts +35 -0
  1039. package/src/IBuildSoftBodyObjectProps.ts +24 -0
  1040. package/src/IChunkObject.ts +42 -0
  1041. package/src/IFormationTierRepresentation.ts +18 -0
  1042. package/src/IMaterialShaderPatch.ts +30 -0
  1043. package/src/IMountViewerOptions.ts +69 -0
  1044. package/src/ISlotException.ts +31 -0
  1045. package/src/IViewerCameraStateSnapshot.ts +60 -0
  1046. package/src/POSE_OVERLAY_NAME.ts +2 -0
  1047. package/src/SPACE_GROUP_NAME.ts +12 -0
  1048. package/src/addMaterialShaderPatch.ts +42 -0
  1049. package/src/analysisOverlay.ts +3 -0
  1050. package/src/applyAutoMovieDeliveryCrop.ts +51 -0
  1051. package/src/applyAutoMovieRigLocals.ts +111 -0
  1052. package/src/applyAutoMovieSectionPlanes.ts +73 -0
  1053. package/src/applyAutoMovieShadowParticipation.ts +69 -0
  1054. package/src/applyCaptureCanvasSize.ts +30 -0
  1055. package/src/applyDepthMode.ts +101 -0
  1056. package/src/applyEdgeMode.ts +153 -0
  1057. package/src/applyExpression.ts +203 -0
  1058. package/src/applyFormationCycleCadence.ts +39 -0
  1059. package/src/applyFormationCycleMaterial.ts +121 -0
  1060. package/src/applyLightMotion.ts +58 -0
  1061. package/src/applyLightState.ts +61 -0
  1062. package/src/applyMaskMode.ts +130 -0
  1063. package/src/applyMaterialShaderPatches.ts +28 -0
  1064. package/src/applyObjectMotion.ts +44 -0
  1065. package/src/applyObjectMotions.ts +28 -0
  1066. package/src/applyPose.ts +127 -0
  1067. package/src/applyPoseMode.ts +115 -0
  1068. package/src/applyRenderMode.ts +248 -0
  1069. package/src/applyRendererEnvironment.ts +141 -0
  1070. package/src/applySampledObjectMotion.ts +79 -0
  1071. package/src/applySceneEnvironment.ts +72 -0
  1072. package/src/applySceneFog.ts +49 -0
  1073. package/src/applySemanticMaskMode.ts +50 -0
  1074. package/src/applyTransform.ts +24 -0
  1075. package/src/assertAutoMovieSceneShadowProfile.ts +45 -0
  1076. package/src/assertAutoMovieViewerCameraDepthPrecision.ts +35 -0
  1077. package/src/audio/IAutoMovieAudioCue.ts +32 -0
  1078. package/src/audio/index.ts +3 -0
  1079. package/src/audio/planAutoMovieAudioPlayback.ts +87 -0
  1080. package/src/audio/playAutoMovieAudioCues.ts +76 -0
  1081. package/src/autoMovieAnalysisRampColor.ts +30 -0
  1082. package/src/bakeFormationCycle.ts +221 -0
  1083. package/src/bindFormationTierCycle.ts +62 -0
  1084. package/src/buildAnalysisOverlayObject.ts +163 -0
  1085. package/src/buildAutoMovieConstruction.ts +114 -0
  1086. package/src/buildAutoMovieMaterialLibrary.ts +150 -0
  1087. package/src/buildFluidSprayObject.ts +96 -0
  1088. package/src/buildFluidSurfaceObject.ts +127 -0
  1089. package/src/buildGeometry.ts +149 -0
  1090. package/src/buildInstancedEffect.ts +152 -0
  1091. package/src/buildInstancedFormation.ts +599 -0
  1092. package/src/buildInstancedInstanceSet.ts +637 -0
  1093. package/src/buildLight.ts +129 -0
  1094. package/src/buildMaterial.ts +215 -0
  1095. package/src/buildModel.ts +333 -0
  1096. package/src/buildPlantingObject.ts +234 -0
  1097. package/src/buildPropArticulation.ts +181 -0
  1098. package/src/buildScene.ts +136 -0
  1099. package/src/buildSoftBodyObject.ts +191 -0
  1100. package/src/buildSpace.ts +2 -0
  1101. package/src/buildSpaceObject.ts +100 -0
  1102. package/src/cameraDepthPrecision.ts +3 -0
  1103. package/src/captureAutoMovieFramebufferRestore.ts +84 -0
  1104. package/src/captureAutoMovieMetricFrame.ts +111 -0
  1105. package/src/captureSize.ts +1 -0
  1106. package/src/captureViewerSnapshot.ts +37 -0
  1107. package/src/collectAutoMovieOwnedResources.ts +73 -0
  1108. package/src/collectAutoMovieRenderModeMeshes.ts +32 -0
  1109. package/src/constructAutoMovieOwnedResources.ts +47 -0
  1110. package/src/createAutoMovieClosedSphereGeometry.ts +113 -0
  1111. package/src/createAutoMovieMetricOrthographicCamera.ts +95 -0
  1112. package/src/createAutoMoviePerformanceOverlay.ts +239 -0
  1113. package/src/createAutoMoviePhysicalPoseAdapter.ts +125 -0
  1114. package/src/createAutoMovieResourceRetirement.ts +59 -0
  1115. package/src/createAutoMovieSurfaceAppearance.ts +260 -0
  1116. package/src/createAutoMovieSurfaceVertexAdapter.ts +66 -0
  1117. package/src/createFormationCycleShadowMaterials.ts +111 -0
  1118. package/src/createFormationRepresentations.ts +101 -0
  1119. package/src/createImportedModelObject.ts +67 -0
  1120. package/src/createViewerCameraState.ts +291 -0
  1121. package/src/createViewerDisplayClock.ts +48 -0
  1122. package/src/createViewerDisplayPublication.ts +59 -0
  1123. package/src/createViewerDisplaySave.ts +224 -0
  1124. package/src/createViewerFrameControl.ts +130 -0
  1125. package/src/createViewerViewportResize.ts +58 -0
  1126. package/src/decodeAutoMovieImage.ts +152 -0
  1127. package/src/defaultMaterial.ts +21 -0
  1128. package/src/deliveryCrop.ts +2 -0
  1129. package/src/describeFormationTextureSources.ts +54 -0
  1130. package/src/detailNormalShading/DETAIL_NORMAL_TARGET.ts +5 -0
  1131. package/src/detailNormalShading/applyDetailNormal.ts +42 -0
  1132. package/src/detailNormalShading/createDetailNormalShaderPatch.ts +71 -0
  1133. package/src/detailNormalShading/detailNormalFragment.ts +27 -0
  1134. package/src/detailNormalShading/detailNormalVertex.ts +24 -0
  1135. package/src/detailNormalShading/index.ts +6 -0
  1136. package/src/detailNormalShading/spliceTangentNormal.ts +39 -0
  1137. package/src/disposeCrossDissolve.ts +25 -0
  1138. package/src/disposeFadeToBlack.ts +25 -0
  1139. package/src/disposeFormationRepresentations.ts +59 -0
  1140. package/src/dualQuaternionSkinning/applyDualQuaternionSkinning.ts +24 -0
  1141. package/src/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.ts +23 -0
  1142. package/src/dualQuaternionSkinning/dualQuaternionSkinningOf.ts +19 -0
  1143. package/src/dualQuaternionSkinning/dualQuaternionSkinningVertex.ts +146 -0
  1144. package/src/dualQuaternionSkinning/index.ts +4 -0
  1145. package/src/effect.ts +4 -0
  1146. package/src/evaluateAutoMovieViewerCameraDepthPrecision.ts +114 -0
  1147. package/src/flattenInstancedModel.ts +127 -0
  1148. package/src/flattenInstancedObject.ts +33 -0
  1149. package/src/flattenRigidParts.ts +174 -0
  1150. package/src/fluidSurface.ts +4 -0
  1151. package/src/formation/index.ts +22 -0
  1152. package/src/formationCycle/index.ts +17 -0
  1153. package/src/formationCycleCadence.ts +55 -0
  1154. package/src/formationCycleGait.ts +27 -0
  1155. package/src/formationCycleOf.ts +25 -0
  1156. package/src/formationCyclePosition.ts +34 -0
  1157. package/src/formationCycleStride.ts +57 -0
  1158. package/src/formationGeometry/index.ts +5 -0
  1159. package/src/formationSpacingOffset.ts +65 -0
  1160. package/src/guardAutoMovieRenderModeRetirement.ts +66 -0
  1161. package/src/guardAutoMovieSceneShadowRetirement.ts +50 -0
  1162. package/src/human-polygon/AutoMovieHumanCartoon.ts +109 -0
  1163. package/src/human-polygon/AutoMovieHumanPolygon.ts +160 -0
  1164. package/src/human-polygon/applyHumanPolygonPose.ts +59 -0
  1165. package/src/human-polygon/buildHumanCartoonFace.ts +466 -0
  1166. package/src/human-polygon/buildHumanPolygon.ts +347 -0
  1167. package/src/human-polygon/buildHumanPolygonModule.ts +300 -0
  1168. package/src/human-polygon/buildHumanPolygonParts.ts +254 -0
  1169. package/src/human-polygon/createAutoMovieHumanPolygonFigure.ts +120 -0
  1170. package/src/human-polygon/createHumanPolygonPalette.ts +169 -0
  1171. package/src/human-polygon/humanPolygonSections.ts +70 -0
  1172. package/src/human-polygon/humanPolygonTopology.ts +147 -0
  1173. package/src/human-polygon/index.ts +5 -0
  1174. package/src/human-polygon/mountHumanCartoonFace.ts +92 -0
  1175. package/src/importedModel/index.ts +4 -0
  1176. package/src/index.ts +140 -0
  1177. package/src/instanceSet/index.ts +6 -0
  1178. package/src/instancedModelParts.ts +25 -0
  1179. package/src/invalidateAutoMovieSceneShadowPrograms.ts +28 -0
  1180. package/src/invalidateAutoMovieSkinnedPose.ts +31 -0
  1181. package/src/mapImportedHumanoidBones.ts +73 -0
  1182. package/src/maskColor.ts +17 -0
  1183. package/src/matchesAutoMovieShadowTextureProfile.ts +34 -0
  1184. package/src/materialOverlayShading/IMaterialOverlayShading.ts +32 -0
  1185. package/src/materialOverlayShading/IMaterialOverlayShape.ts +18 -0
  1186. package/src/materialOverlayShading/applyMaterialOverlays.ts +88 -0
  1187. package/src/materialOverlayShading/getOverlayFlatNormal.ts +25 -0
  1188. package/src/materialOverlayShading/index.ts +6 -0
  1189. package/src/materialOverlayShading/materialOverlayFragment.ts +85 -0
  1190. package/src/materialOverlayShading/materialOverlayVertex.ts +50 -0
  1191. package/src/materialTextureBindings.ts +44 -0
  1192. package/src/morphTargetDriversOf.ts +25 -0
  1193. package/src/motion-overlay/applyAutoMovieGhost.ts +46 -0
  1194. package/src/motion-overlay/createAutoMovieDriftMarkers.ts +59 -0
  1195. package/src/motion-overlay/createAutoMovieTargetMarker.ts +62 -0
  1196. package/src/motion-overlay/createAutoMovieTrail.ts +44 -0
  1197. package/src/motion-overlay/index.ts +4 -0
  1198. package/src/mountViewer.ts +248 -0
  1199. package/src/objectTransform.ts +42 -0
  1200. package/src/observeAutoMovieRendererFrame.ts +47 -0
  1201. package/src/overrideAutoMovieRenderModeMaterials.ts +87 -0
  1202. package/src/planAutoMovieShadowTextureTarget.ts +55 -0
  1203. package/src/propArticulation/index.ts +4 -0
  1204. package/src/publishViewerCompletedFrame.ts +31 -0
  1205. package/src/raster/AutoMovieRasterLighting.ts +221 -0
  1206. package/src/raster/AutoMovieRasterSheet.ts +175 -0
  1207. package/src/raster/AutoMovieRasterTarget.ts +282 -0
  1208. package/src/raster/IAutoMovieSceneRaster.ts +62 -0
  1209. package/src/raster/IRasterizeAutoMovieSceneProps.ts +34 -0
  1210. package/src/raster/encodeAutoMovieRasterPng.ts +77 -0
  1211. package/src/raster/index.ts +8 -0
  1212. package/src/raster/rasterizeAutoMovieScene.ts +594 -0
  1213. package/src/raster/stampAutoMovieRasterLabel.ts +120 -0
  1214. package/src/readAutoMovieCubeShadowDepth.ts +57 -0
  1215. package/src/readAutoMovieDeliveryCrop.ts +41 -0
  1216. package/src/readAutoMovieDisplayDestinationEncoding.ts +98 -0
  1217. package/src/readAutoMovieEnvironmentColorSpace.ts +20 -0
  1218. package/src/readAutoMovieFilmDisplayTextureResidency.ts +52 -0
  1219. package/src/readAutoMovieMaterialTextureSources.ts +154 -0
  1220. package/src/readAutoMovieRenderTextureTarget.ts +70 -0
  1221. package/src/readAutoMovieShadowLightSource.ts +40 -0
  1222. package/src/readAutoMovieShadowTextureTargets.ts +123 -0
  1223. package/src/readAutoMovieTextureSource.ts +262 -0
  1224. package/src/readAutoMovieTextureUploadFormat.ts +45 -0
  1225. package/src/readAutoMovieTransmissionTextureTarget.ts +57 -0
  1226. package/src/redrawViewerCompletedFrame.ts +67 -0
  1227. package/src/regenerateFormationSlot.ts +26 -0
  1228. package/src/regenerateInstanceSlot.ts +28 -0
  1229. package/src/releaseMountedViewer.ts +35 -0
  1230. package/src/releaseViewerRenderer.ts +31 -0
  1231. package/src/reliefWeightShading/RELIEF_WEIGHT_TARGET.ts +5 -0
  1232. package/src/reliefWeightShading/applyReliefWeights.ts +21 -0
  1233. package/src/reliefWeightShading/createReliefWeightShaderPatch.ts +50 -0
  1234. package/src/reliefWeightShading/index.ts +5 -0
  1235. package/src/reliefWeightShading/reliefWeightFragment.ts +40 -0
  1236. package/src/reliefWeightShading/reliefWeightVertex.ts +23 -0
  1237. package/src/renderAutoMovieFilmFrame.ts +63 -0
  1238. package/src/renderAutoMovieScenePass.ts +121 -0
  1239. package/src/renderCrossDissolve.ts +50 -0
  1240. package/src/renderCrossDissolveFrames.ts +41 -0
  1241. package/src/renderFadeToBlackFrame.ts +37 -0
  1242. package/src/reportAutoMovieResourceRetirement.ts +48 -0
  1243. package/src/resetAutoMovieSceneShadowTargets.ts +106 -0
  1244. package/src/resolveAutoMovieFilmBeautyComposition.ts +52 -0
  1245. package/src/resolveAutoMovieMaterialTexture.ts +113 -0
  1246. package/src/restoreAutoMovieRenderModeOnce.ts +30 -0
  1247. package/src/restoreAutoMovieRenderModeState.ts +71 -0
  1248. package/src/retireAutoMovieCubeShadowDepth.ts +33 -0
  1249. package/src/sampleFormationCycleMatrix.ts +70 -0
  1250. package/src/semanticMask/IAutoMovieSemanticMaskBinding.ts +24 -0
  1251. package/src/semanticMask/IAutoMovieSemanticMaskHandle.ts +45 -0
  1252. package/src/semanticMask/SCENE_MASK_KEY.ts +6 -0
  1253. package/src/semanticMask/applyAutoMovieSemanticMask.ts +262 -0
  1254. package/src/semanticMask/attachAutoMovieSemanticMask.ts +27 -0
  1255. package/src/semanticMask/auditAutoMovieSemanticMaskScene.ts +50 -0
  1256. package/src/semanticMask/autoMovieSemanticMaskOf.ts +24 -0
  1257. package/src/semanticMask/index.ts +7 -0
  1258. package/src/semanticMask/maskRoots.ts +67 -0
  1259. package/src/semanticMask/nearest.ts +29 -0
  1260. package/src/semanticMask/unresolvedOf.ts +34 -0
  1261. package/src/slotMatrix.ts +38 -0
  1262. package/src/subjectViewpoint/AutoMovieViewerSubjectKind.ts +23 -0
  1263. package/src/subjectViewpoint/IAutoMovieViewerSubject.ts +28 -0
  1264. package/src/subjectViewpoint/IAutoMovieViewerSubjectBounds.ts +19 -0
  1265. package/src/subjectViewpoint/IAutoMovieViewerSubjectLens.ts +21 -0
  1266. package/src/subjectViewpoint/IAutoMovieViewerSubjectPose.ts +36 -0
  1267. package/src/subjectViewpoint/IAutoMovieViewerSubjectView.ts +42 -0
  1268. package/src/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.ts +67 -0
  1269. package/src/subjectViewpoint/IAutoMovieViewerTurntableOptions.ts +24 -0
  1270. package/src/subjectViewpoint/IAutoMovieViewerViewpoint.ts +31 -0
  1271. package/src/subjectViewpoint/applyAutoMovieViewerSubjectPose.ts +31 -0
  1272. package/src/subjectViewpoint/autoMovieViewerPoseFromHeading.ts +43 -0
  1273. package/src/subjectViewpoint/autoMovieViewerSubjectKey.ts +20 -0
  1274. package/src/subjectViewpoint/autoMovieViewerTurntableViewpoints.ts +54 -0
  1275. package/src/subjectViewpoint/captureAutoMovieViewerSubjectView.ts +34 -0
  1276. package/src/subjectViewpoint/frameAutoMovieViewerSubject.ts +77 -0
  1277. package/src/subjectViewpoint/index.ts +16 -0
  1278. package/src/subjectViewpoint/parseAutoMovieViewerSubjectKey.ts +59 -0
  1279. package/src/subsurfaceShading/SUBSURFACE_TARGET.ts +3 -0
  1280. package/src/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.ts +2 -0
  1281. package/src/subsurfaceShading/applySubsurfaceShading.ts +38 -0
  1282. package/src/subsurfaceShading/getSubsurfaceTexture.ts +46 -0
  1283. package/src/subsurfaceShading/index.ts +6 -0
  1284. package/src/subsurfaceShading/subsurfaceFragment.ts +30 -0
  1285. package/src/subsurfaceShading/subsurfacePhysicalChunk.ts +43 -0
  1286. package/src/subsurfaceShading/subsurfaceTable.ts +47 -0
  1287. package/src/textureBindingAsset.ts +16 -0
  1288. package/src/transport/AutoMovieViewerTransport.ts +356 -0
  1289. package/src/transport/configureAutoMovieReviewControls.ts +44 -0
  1290. package/src/transport/index.ts +5 -0
  1291. package/src/transport/mountAutoMovieTransportControls.ts +254 -0
  1292. package/src/transport/parseAutoMovieInspectionView.ts +35 -0
  1293. package/src/transport/readAutoMovieReviewInterval.ts +45 -0
  1294. package/src/updateAutoMovieComparisonCamera.ts +92 -0
  1295. package/src/vector.ts +20 -0
@@ -0,0 +1,132 @@
1
+ /**
2
+ * Replace a vertex shader's linear blend skinning with dual quaternion
3
+ * skinning, the formula `skinAutoMovieMesh` evaluates in the engine.
4
+ *
5
+ * Three's bone matrix for joint `j` is `G P_j R_j^-1`, with `G` the model's
6
+ * world placement at draw time, and its attached bind gives
7
+ * `bindMatrixInverse = (G T)^-1` for the part transform `T`. The shader
8
+ * therefore blends `K_j = bindMatrixInverse * boneMatrix_j * bindMatrix =
9
+ * T^-1 P_j R_j^-1 T`, which cancels `G` and stays rigid for a rigid or
10
+ * uniformly scaled `T`. Each `K_j` becomes a unit dual quaternion through
11
+ * Shepperd's matrix-to-quaternion method; the four are aligned to the hemisphere
12
+ * of the largest weight (the lowest slot on a tie), summed by weight, divided by
13
+ * the length of the rotation part and applied to the morphed position. Normals
14
+ * and tangents turn by the blended rotation alone. The result is already in the
15
+ * part's frame, so no `bindMatrixInverse` follows.
16
+ *
17
+ * The blend is computed once after `skinbase_vertex` and read by the normal and
18
+ * position chunks, so depth and distance shaders, which skip the normal chunk,
19
+ * still skin their positions. A shader missing the skinning parameter, base or
20
+ * position chunk is refused rather than left on linear skinning.
21
+ *
22
+ * @evidence contracts/development/implementation.md#principled-implementation Dual quaternion skinning (Kavan et al. 2008) over joint transforms conjugated by Three's attached bind matrices, which cancels the world placement exactly; rigidity premises a uniform part scale, which model admission enforces, and Shepperd's branches keep the matrix-to-quaternion division away from zero.
23
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Source transformation only: three chunk replacements plus helper functions beside Three's skinning parameters, while registration and program keys stay with the patch owner.
24
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Missing required chunks throw instead of silently drawing linear skinning; the skinning normal chunk is optional only because depth shaders legitimately omit it.
25
+ * @evidence contracts/development/common.md#meaningful-documentation States the matrix identity that cancels the placement, the blend, the pivot rule, the frame of the result, the shared blend across chunks and the refusal.
26
+ * @evidence contracts/development/implementation.md#efficient-algorithms A fixed number of string replacements over S shader bytes; on the GPU each skinned vertex does eight 4x4 products and four matrix-to-quaternion conversions, constant per vertex.
27
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work The blended dual quaternion is computed once per vertex and shared by the normal, tangent and position chunks; identical source text lets the material's stable key reuse one program.
28
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only strings are created and returned; no uniform, texture or program is acquired.
29
+ */
30
+ export const dualQuaternionSkinningVertex = (vertexShader) => {
31
+ for (const marker of REQUIRED)
32
+ if (!vertexShader.includes(marker))
33
+ throw new Error(`Dual quaternion skinning needs the ${marker} chunk in the vertex shader.`);
34
+ return vertexShader
35
+ .replace("#include <skinning_pars_vertex>", `#include <skinning_pars_vertex>\n${PARS}`)
36
+ .replace("#include <skinbase_vertex>", `#include <skinbase_vertex>\n${BASE}`)
37
+ .replace("#include <skinnormal_vertex>", NORMAL)
38
+ .replace("#include <skinning_vertex>", POSITION);
39
+ };
40
+ const REQUIRED = [
41
+ "#include <skinning_pars_vertex>",
42
+ "#include <skinbase_vertex>",
43
+ "#include <skinning_vertex>",
44
+ ];
45
+ const PARS = /* glsl */ `
46
+ #ifdef USE_SKINNING
47
+
48
+ vec4 automovieRotationQuaternion( const in mat3 m ) {
49
+ float trace = m[ 0 ][ 0 ] + m[ 1 ][ 1 ] + m[ 2 ][ 2 ];
50
+ if ( trace > 0.0 ) {
51
+ float s = 0.5 / sqrt( trace + 1.0 );
52
+ return vec4( ( m[ 1 ][ 2 ] - m[ 2 ][ 1 ] ) * s, ( m[ 2 ][ 0 ] - m[ 0 ][ 2 ] ) * s, ( m[ 0 ][ 1 ] - m[ 1 ][ 0 ] ) * s, 0.25 / s );
53
+ }
54
+ if ( m[ 0 ][ 0 ] > m[ 1 ][ 1 ] && m[ 0 ][ 0 ] > m[ 2 ][ 2 ] ) {
55
+ float s = 2.0 * sqrt( 1.0 + m[ 0 ][ 0 ] - m[ 1 ][ 1 ] - m[ 2 ][ 2 ] );
56
+ return vec4( 0.25 * s, ( m[ 1 ][ 0 ] + m[ 0 ][ 1 ] ) / s, ( m[ 2 ][ 0 ] + m[ 0 ][ 2 ] ) / s, ( m[ 1 ][ 2 ] - m[ 2 ][ 1 ] ) / s );
57
+ }
58
+ if ( m[ 1 ][ 1 ] > m[ 2 ][ 2 ] ) {
59
+ float s = 2.0 * sqrt( 1.0 + m[ 1 ][ 1 ] - m[ 0 ][ 0 ] - m[ 2 ][ 2 ] );
60
+ return vec4( ( m[ 1 ][ 0 ] + m[ 0 ][ 1 ] ) / s, 0.25 * s, ( m[ 2 ][ 1 ] + m[ 1 ][ 2 ] ) / s, ( m[ 2 ][ 0 ] - m[ 0 ][ 2 ] ) / s );
61
+ }
62
+ float s = 2.0 * sqrt( 1.0 + m[ 2 ][ 2 ] - m[ 0 ][ 0 ] - m[ 1 ][ 1 ] );
63
+ return vec4( ( m[ 2 ][ 0 ] + m[ 0 ][ 2 ] ) / s, ( m[ 2 ][ 1 ] + m[ 1 ][ 2 ] ) / s, 0.25 * s, ( m[ 0 ][ 1 ] - m[ 1 ][ 0 ] ) / s );
64
+ }
65
+
66
+ vec4 automovieQuaternionProduct( const in vec4 a, const in vec4 b ) {
67
+ return vec4( a.w * b.xyz + b.w * a.xyz + cross( a.xyz, b.xyz ), a.w * b.w - dot( a.xyz, b.xyz ) );
68
+ }
69
+
70
+ void automovieJointDualQuaternion( const in mat4 bone, out vec4 rotation, out vec4 dual ) {
71
+ mat4 joint = bindMatrixInverse * bone * bindMatrix;
72
+ rotation = automovieRotationQuaternion( mat3( joint ) );
73
+ dual = 0.5 * automovieQuaternionProduct( vec4( joint[ 3 ].xyz, 0.0 ), rotation );
74
+ }
75
+
76
+ void automovieBlendDualQuaternion( const in mat4 bx, const in mat4 by, const in mat4 bz, const in mat4 bw, const in vec4 weights, out vec4 blendRotation, out vec4 blendDual ) {
77
+ vec4 rx; vec4 dx; automovieJointDualQuaternion( bx, rx, dx );
78
+ vec4 ry; vec4 dy; automovieJointDualQuaternion( by, ry, dy );
79
+ vec4 rz; vec4 dz; automovieJointDualQuaternion( bz, rz, dz );
80
+ vec4 rw; vec4 dw; automovieJointDualQuaternion( bw, rw, dw );
81
+ vec4 pivot = rx;
82
+ float best = weights.x;
83
+ if ( weights.y > best ) { best = weights.y; pivot = ry; }
84
+ if ( weights.z > best ) { best = weights.z; pivot = rz; }
85
+ if ( weights.w > best ) { best = weights.w; pivot = rw; }
86
+ float wx = dot( rx, pivot ) < 0.0 ? - weights.x : weights.x;
87
+ float wy = dot( ry, pivot ) < 0.0 ? - weights.y : weights.y;
88
+ float wz = dot( rz, pivot ) < 0.0 ? - weights.z : weights.z;
89
+ float ww = dot( rw, pivot ) < 0.0 ? - weights.w : weights.w;
90
+ blendRotation = wx * rx + wy * ry + wz * rz + ww * rw;
91
+ blendDual = wx * dx + wy * dy + wz * dz + ww * dw;
92
+ float norm = length( blendRotation );
93
+ blendRotation /= norm;
94
+ blendDual /= norm;
95
+ }
96
+
97
+ vec3 automovieRotate( const in vec4 q, const in vec3 v ) {
98
+ return v + 2.0 * cross( q.xyz, cross( q.xyz, v ) + q.w * v );
99
+ }
100
+
101
+ #endif
102
+ `;
103
+ const BASE = /* glsl */ `
104
+ #ifdef USE_SKINNING
105
+
106
+ vec4 automovieSkinRotation;
107
+ vec4 automovieSkinDual;
108
+ automovieBlendDualQuaternion( boneMatX, boneMatY, boneMatZ, boneMatW, skinWeight, automovieSkinRotation, automovieSkinDual );
109
+
110
+ #endif
111
+ `;
112
+ const NORMAL = /* glsl */ `
113
+ #ifdef USE_SKINNING
114
+
115
+ objectNormal = automovieRotate( automovieSkinRotation, objectNormal );
116
+
117
+ #ifdef USE_TANGENT
118
+
119
+ objectTangent = automovieRotate( automovieSkinRotation, objectTangent );
120
+
121
+ #endif
122
+
123
+ #endif
124
+ `;
125
+ const POSITION = /* glsl */ `
126
+ #ifdef USE_SKINNING
127
+
128
+ transformed = automovieRotate( automovieSkinRotation, transformed ) + 2.0 * ( automovieSkinRotation.w * automovieSkinDual.xyz - automovieSkinDual.w * automovieSkinRotation.xyz + cross( automovieSkinRotation.xyz, automovieSkinDual.xyz ) );
129
+
130
+ #endif
131
+ `;
132
+ //# sourceMappingURL=dualQuaternionSkinningVertex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dualQuaternionSkinningVertex.js","sourceRoot":"","sources":["../../src/dualQuaternionSkinning/dualQuaternionSkinningVertex.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAqC,CAC5E,YAAoB,EACZ,EAAE;IACV,KAAK,MAAM,MAAM,IAAI,QAAQ;QAC3B,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC;YAChC,MAAM,IAAI,KAAK,CACb,sCAAsC,MAAM,8BAA8B,CAC3E,CAAC;IACN,OAAO,YAAY;SAChB,OAAO,CACN,iCAAiC,EACjC,oCAAoC,IAAI,EAAE,CAC3C;SACA,OAAO,CACN,4BAA4B,EAC5B,+BAA+B,IAAI,EAAE,CACtC;SACA,OAAO,CAAC,8BAA8B,EAAE,MAAM,CAAC;SAC/C,OAAO,CAAC,4BAA4B,EAAE,QAAQ,CAAC,CAAC;AACrD,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAsB;IAClC,iCAAiC;IACjC,4BAA4B;IAC5B,4BAA4B;CAC7B,CAAC;AAEF,MAAM,IAAI,GAAW,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyD/B,CAAC;AAEF,MAAM,IAAI,GAAW,UAAU,CAAC;;;;;;;;CAQ/B,CAAC;AAEF,MAAM,MAAM,GAAW,UAAU,CAAC;;;;;;;;;;;;CAYjC,CAAC;AAEF,MAAM,QAAQ,GAAW,UAAU,CAAC;;;;;;CAMnC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./applyDualQuaternionSkinning.js";
2
+ export * from "./createDualQuaternionSkinningShaderPatch.js";
3
+ export * from "./dualQuaternionSkinningOf.js";
4
+ export * from "./dualQuaternionSkinningVertex.js";
@@ -0,0 +1,5 @@
1
+ export * from "./applyDualQuaternionSkinning.js";
2
+ export * from "./createDualQuaternionSkinningShaderPatch.js";
3
+ export * from "./dualQuaternionSkinningOf.js";
4
+ export * from "./dualQuaternionSkinningVertex.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dualQuaternionSkinning/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export type { IAutoMovieEffectViewerStats } from "./IAutoMovieEffectViewerStats.js";
2
+ export type { IAutoMovieEffectViewerObject } from "./IAutoMovieEffectViewerObject.js";
3
+ export { buildInstancedEffect } from "./buildInstancedEffect.js";
4
+ export { sampleCompiledEffect } from "@automovie/engine";
package/lib/effect.js ADDED
@@ -0,0 +1,3 @@
1
+ export { buildInstancedEffect } from "./buildInstancedEffect.js";
2
+ export { sampleCompiledEffect } from "@automovie/engine";
3
+ //# sourceMappingURL=effect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"effect.js","sourceRoot":"","sources":["../src/effect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { IAutoMovieCamera } from "@automovie/interface";
2
+ import type * as THREE from "three";
3
+ import type { IAutoMovieViewerCameraDepthPrecisionReport } from "./IAutoMovieViewerCameraDepthPrecisionReport.js";
4
+ /**
5
+ * Observe the currently bound draw framebuffer and compare it with one
6
+ * resolved camera.
7
+ *
8
+ * The engine's metric is conservative at `minimumDepthBits`; a standard viewer
9
+ * with at least that many actual bits can only provide equal or finer adjacent
10
+ * steps. Logarithmic and reversed projection are refused because they implement
11
+ * a different metric rather than silently appearing as extra capability.
12
+ *
13
+ * This compares near/far properties and the currently bound framebuffer's bits,
14
+ * not the camera matrix contents, shader depth writes or measured surface error.
15
+ * The caller must have installed the declared standard projection before use.
16
+ *
17
+ * @evidence contracts/development/implementation.md#principled-implementation Queries WebGL DEPTH_BITS on the current draw target and accepts integer capability at least the declared fixed-point minimum only with exact near/far parity and standard renderer mode; validates finite positive source distances/budget, but does not re-evaluate the engine's maximum-step bound or inspect a stale/custom projection matrix.
18
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Returns one portable report with ordered refusal statuses; framebuffer observation and admission stay together, while the throwing wrapper only renders that result as a caller error.
19
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses actual WebGL state and renderer capabilities with no host-name whitelist or fallback 24-bit value; unavailable bits remain null and nonstandard projection is refused rather than compensated.
20
+ * @evidence contracts/development/common.md#meaningful-documentation Documents the current draw-target query, standard fixed-point comparison, nonstandard modes and the distinction between property/capability parity and measured scene/projection correctness.
21
+ * @evidence contracts/development/implementation.md#efficient-algorithms Performs one WebGL capability query plus fixed-count scalar checks and report construction; CPU space is constant, though getParameter may synchronize with the driver and is intended as a capability gate rather than per-pixel work.
22
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Shares the report with the assertion wrapper; no cache is retained because framebuffer binding, capabilities and camera clips jointly determine the observation and may change between requests.
23
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows renderer/context/camera for one synchronous query and returns scalars; no framebuffer ownership, GPU allocation, retained browser handle or running task is acquired.
24
+ */
25
+ export declare const evaluateAutoMovieViewerCameraDepthPrecision: (props: {
26
+ renderer: THREE.WebGLRenderer;
27
+ source: Pick<IAutoMovieCamera, "id" | "near" | "far" | "depthPrecision">;
28
+ realized: THREE.PerspectiveCamera;
29
+ }) => IAutoMovieViewerCameraDepthPrecisionReport;
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Observe the currently bound draw framebuffer and compare it with one
3
+ * resolved camera.
4
+ *
5
+ * The engine's metric is conservative at `minimumDepthBits`; a standard viewer
6
+ * with at least that many actual bits can only provide equal or finer adjacent
7
+ * steps. Logarithmic and reversed projection are refused because they implement
8
+ * a different metric rather than silently appearing as extra capability.
9
+ *
10
+ * This compares near/far properties and the currently bound framebuffer's bits,
11
+ * not the camera matrix contents, shader depth writes or measured surface error.
12
+ * The caller must have installed the declared standard projection before use.
13
+ *
14
+ * @evidence contracts/development/implementation.md#principled-implementation Queries WebGL DEPTH_BITS on the current draw target and accepts integer capability at least the declared fixed-point minimum only with exact near/far parity and standard renderer mode; validates finite positive source distances/budget, but does not re-evaluate the engine's maximum-step bound or inspect a stale/custom projection matrix.
15
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Returns one portable report with ordered refusal statuses; framebuffer observation and admission stay together, while the throwing wrapper only renders that result as a caller error.
16
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses actual WebGL state and renderer capabilities with no host-name whitelist or fallback 24-bit value; unavailable bits remain null and nonstandard projection is refused rather than compensated.
17
+ * @evidence contracts/development/common.md#meaningful-documentation Documents the current draw-target query, standard fixed-point comparison, nonstandard modes and the distinction between property/capability parity and measured scene/projection correctness.
18
+ * @evidence contracts/development/implementation.md#efficient-algorithms Performs one WebGL capability query plus fixed-count scalar checks and report construction; CPU space is constant, though getParameter may synchronize with the driver and is intended as a capability gate rather than per-pixel work.
19
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Shares the report with the assertion wrapper; no cache is retained because framebuffer binding, capabilities and camera clips jointly determine the observation and may change between requests.
20
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows renderer/context/camera for one synchronous query and returns scalars; no framebuffer ownership, GPU allocation, retained browser handle or running task is acquired.
21
+ */
22
+ export const evaluateAutoMovieViewerCameraDepthPrecision = (props) => {
23
+ const logarithmic = props.renderer.capabilities.logarithmicDepthBuffer;
24
+ const reversed = props.renderer.capabilities.reversedDepthBuffer;
25
+ const projection = logarithmic
26
+ ? reversed
27
+ ? "logarithmic-reversed"
28
+ : "logarithmic"
29
+ : reversed
30
+ ? "reversed"
31
+ : "standard";
32
+ const context = props.renderer.getContext();
33
+ const observed = context.getParameter(context.DEPTH_BITS);
34
+ const observedDepthBits = typeof observed === "number" && Number.isFinite(observed) ? observed : null;
35
+ const base = {
36
+ camera: props.source.id,
37
+ sourceNear: finiteOrNull(props.source.near),
38
+ sourceFar: finiteOrNull(props.source.far),
39
+ realizedNear: finiteOrNull(props.realized.near),
40
+ realizedFar: finiteOrNull(props.realized.far),
41
+ minimumDepthBits: finiteOrNull(props.source.depthPrecision.minimumDepthBits),
42
+ observedDepthBits,
43
+ projection,
44
+ };
45
+ const levels = 2 ** props.source.depthPrecision.minimumDepthBits - 1;
46
+ if (props.source.id.trim().length === 0 ||
47
+ !Number.isFinite(props.source.near) ||
48
+ props.source.near <= 0 ||
49
+ !Number.isFinite(props.source.far) ||
50
+ props.source.far <= props.source.near ||
51
+ !Number.isSafeInteger(props.source.depthPrecision.minimumDepthBits) ||
52
+ props.source.depthPrecision.minimumDepthBits <= 0 ||
53
+ !Number.isSafeInteger(levels) ||
54
+ !Number.isFinite(props.source.depthPrecision.maximumStepMeters) ||
55
+ props.source.depthPrecision.maximumStepMeters <= 0)
56
+ return { ...base, status: "invalid-source", passed: false };
57
+ if (props.realized.near !== props.source.near ||
58
+ props.realized.far !== props.source.far)
59
+ return { ...base, status: "projection-mismatch", passed: false };
60
+ if (projection !== "standard")
61
+ return { ...base, status: "nonstandard-projection", passed: false };
62
+ if (observedDepthBits === null ||
63
+ !Number.isSafeInteger(observedDepthBits) ||
64
+ observedDepthBits < 0)
65
+ return { ...base, status: "invalid-capability", passed: false };
66
+ if (observedDepthBits < props.source.depthPrecision.minimumDepthBits)
67
+ return { ...base, status: "insufficient-capability", passed: false };
68
+ return { ...base, status: "satisfied", passed: true };
69
+ };
70
+ const finiteOrNull = (value) => (Number.isFinite(value) ? value : null);
71
+ //# sourceMappingURL=evaluateAutoMovieViewerCameraDepthPrecision.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evaluateAutoMovieViewerCameraDepthPrecision.js","sourceRoot":"","sources":["../src/evaluateAutoMovieViewerCameraDepthPrecision.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,29 @@
1
+ import type { IAutoMovieModel } from "@automovie/interface";
2
+ import type { IAutoMovieInstancedModelRepresentation } from "./IAutoMovieInstancedModelRepresentation.js";
3
+ import type { IBakeFormationCycleProps } from "./IBakeFormationCycleProps.js";
4
+ /**
5
+ * Flatten one runtime model for a chunked instancing consumer.
6
+ *
7
+ * buildModel creates this entry's materials; the returned representation hands
8
+ * them to the consumer along with the owned merged geometry. Lower-level
9
+ * flattening retains those objects rather than allocating a second material.
10
+ *
11
+ * The merge produces one geometry per LOD tier with a group and retained material for each source part, so one chunk can require several renderer submissions. Every vertex also carries a Float32 rigid-part index for the cycle shader, costing four bytes per vertex of shared geometry rather than per member; actual submission counts belong to renderer observation.
12
+ *
13
+ * Passing `bake` additionally bakes the model's whole repertoire
14
+ * ({@link bakeFormationCycle}); a model that declares no gait, or carries no
15
+ * skeleton to move, returns a null cycle and renders exactly as before.
16
+ * The generated model's original geometries/skeletons are temporary extraction
17
+ * inputs and retire after successful merge/bake; materials and emitted tables
18
+ * transfer to the returned representation. Refusal independently rolls back
19
+ * all acquisitions that this child completed before its parent receives a result.
20
+ *
21
+ * @evidence contracts/development/implementation.md#principled-implementation Builds the declared model, captures rigid world-rest part order, merges buffers before optional canonical gait bake and returns matching part/cycle identity; admitted rigid source and valid rest matrices are premises, and no skeleton/gait or unrequested bake produces null rather than synthetic motion.
22
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Owns the generated-source-to-resident representation transaction; lower rigid flattening borrows materials, while this owner transfers those generated materials and retires temporary source geometries/skeletons without another material clone.
23
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses actual model/gaits and canonical geometry-before-bake order with no source-id exception or replaced native methods; failed children release their own unreturned work instead of shifting hidden leaks to the parent runtime.
24
+ * @evidence contracts/development/common.md#meaningful-documentation Gives source/generated material ownership, affine part indexing, optional bake/null semantics and temporary/source versus transferred geometry/table lifetime.
25
+ * @evidence contracts/development/implementation.md#efficient-algorithms Adds source-resource snapshot and temporary identity collection around model build, V-vertex rigid merge and G*S*P bake work; peak storage includes generated and flattened geometry plus temporary clones/tables, not anonymous formation-member buffers.
26
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Transfers generated source material objects directly and reuses canonical build/flatten/bake routines; separate prototype requests remain independent mutable owner transactions, while the parent shares a returned tier across chunks.
27
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources This child owns generated source geometry/material/skeleton resources and any completed merged geometry until success; refusal independently retires them and later bake refusal rolls its own take textures back. Success retires temporary source geometry/skeletons and transfers merged geometry/material/tables; temporary-release failure retires all otherwise transferable resources before refusing.
28
+ */
29
+ export declare const flattenInstancedModel: (model: IAutoMovieModel, owner?: string, bake?: Pick<IBakeFormationCycleProps, "samples">) => IAutoMovieInstancedModelRepresentation;
@@ -0,0 +1,91 @@
1
+ import * as THREE from "three";
2
+ import { bakeFormationCycle } from "./bakeFormationCycle.js";
3
+ import { buildModel } from "./buildModel.js";
4
+ import { collectAutoMovieOwnedResources } from "./collectAutoMovieOwnedResources.js";
5
+ import { flattenRigidParts } from "./flattenRigidParts.js";
6
+ import { instancedModelParts } from "./instancedModelParts.js";
7
+ import { reportAutoMovieResourceRetirement } from "./reportAutoMovieResourceRetirement.js";
8
+ /**
9
+ * Flatten one runtime model for a chunked instancing consumer.
10
+ *
11
+ * buildModel creates this entry's materials; the returned representation hands
12
+ * them to the consumer along with the owned merged geometry. Lower-level
13
+ * flattening retains those objects rather than allocating a second material.
14
+ *
15
+ * The merge produces one geometry per LOD tier with a group and retained material for each source part, so one chunk can require several renderer submissions. Every vertex also carries a Float32 rigid-part index for the cycle shader, costing four bytes per vertex of shared geometry rather than per member; actual submission counts belong to renderer observation.
16
+ *
17
+ * Passing `bake` additionally bakes the model's whole repertoire
18
+ * ({@link bakeFormationCycle}); a model that declares no gait, or carries no
19
+ * skeleton to move, returns a null cycle and renders exactly as before.
20
+ * The generated model's original geometries/skeletons are temporary extraction
21
+ * inputs and retire after successful merge/bake; materials and emitted tables
22
+ * transfer to the returned representation. Refusal independently rolls back
23
+ * all acquisitions that this child completed before its parent receives a result.
24
+ *
25
+ * @evidence contracts/development/implementation.md#principled-implementation Builds the declared model, captures rigid world-rest part order, merges buffers before optional canonical gait bake and returns matching part/cycle identity; admitted rigid source and valid rest matrices are premises, and no skeleton/gait or unrequested bake produces null rather than synthetic motion.
26
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Owns the generated-source-to-resident representation transaction; lower rigid flattening borrows materials, while this owner transfers those generated materials and retires temporary source geometries/skeletons without another material clone.
27
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses actual model/gaits and canonical geometry-before-bake order with no source-id exception or replaced native methods; failed children release their own unreturned work instead of shifting hidden leaks to the parent runtime.
28
+ * @evidence contracts/development/common.md#meaningful-documentation Gives source/generated material ownership, affine part indexing, optional bake/null semantics and temporary/source versus transferred geometry/table lifetime.
29
+ * @evidence contracts/development/implementation.md#efficient-algorithms Adds source-resource snapshot and temporary identity collection around model build, V-vertex rigid merge and G*S*P bake work; peak storage includes generated and flattened geometry plus temporary clones/tables, not anonymous formation-member buffers.
30
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Transfers generated source material objects directly and reuses canonical build/flatten/bake routines; separate prototype requests remain independent mutable owner transactions, while the parent shares a returned tier across chunks.
31
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources This child owns generated source geometry/material/skeleton resources and any completed merged geometry until success; refusal independently retires them and later bake refusal rolls its own take textures back. Success retires temporary source geometry/skeletons and transfers merged geometry/material/tables; temporary-release failure retires all otherwise transferable resources before refusing.
32
+ */
33
+ export const flattenInstancedModel = (model, owner = `Instanced runtime model "${model.id}"`, bake) => {
34
+ const built = buildModel(model);
35
+ const sourceResources = collectAutoMovieOwnedResources(built.object);
36
+ const temporary = new Set();
37
+ built.object.traverse((object) => {
38
+ if (!(object instanceof THREE.Mesh))
39
+ return;
40
+ temporary.add(object.geometry);
41
+ if (object instanceof THREE.SkinnedMesh)
42
+ temporary.add(object.skeleton);
43
+ });
44
+ let representation;
45
+ let cycle = null;
46
+ try {
47
+ built.object.updateMatrixWorld(true);
48
+ const parts = instancedModelParts(built.object);
49
+ representation = flattenRigidParts(parts, owner);
50
+ // Geometry first, then the bake: baking poses the built object, and the
51
+ // flattened vertices above are the rest-space ones the bake's matrices are
52
+ // measured against.
53
+ cycle =
54
+ bake === undefined
55
+ ? null
56
+ : bakeFormationCycle({
57
+ model,
58
+ built,
59
+ parts,
60
+ samples: bake.samples,
61
+ });
62
+ }
63
+ catch (error) {
64
+ // The source collection already holds the skinned meshes' skeletons.
65
+ reportAutoMovieResourceRetirement([
66
+ ...sourceResources.map((resource) => () => resource.dispose()),
67
+ ...(representation === undefined
68
+ ? []
69
+ : [() => representation.geometry.dispose()]),
70
+ ], { error });
71
+ throw error;
72
+ }
73
+ try {
74
+ reportAutoMovieResourceRetirement([...temporary].map((resource) => () => resource.dispose()));
75
+ }
76
+ catch (error) {
77
+ const transferred = new Set([
78
+ representation.geometry,
79
+ ...representation.materials,
80
+ ...(cycle === null
81
+ ? []
82
+ : [...cycle.takes.values()].map((take) => take.texture)),
83
+ ]);
84
+ reportAutoMovieResourceRetirement([
85
+ ...[...transferred].map((resource) => () => resource.dispose()),
86
+ ], { error });
87
+ throw error;
88
+ }
89
+ return { ...representation, cycle };
90
+ };
91
+ //# sourceMappingURL=flattenInstancedModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flattenInstancedModel.js","sourceRoot":"","sources":["../src/flattenInstancedModel.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,18 @@
1
+ import type { IAutoMovieInstancedModelRepresentation } from "./IAutoMovieInstancedModelRepresentation.js";
2
+ import type { IAutoMovieModelObject } from "./IAutoMovieModelObject.js";
3
+ /**
4
+ * Flatten one already-loaded rigid generated or imported model prototype.
5
+ *
6
+ * The merged geometry is owned by the returned representation. Its material
7
+ * objects remain borrowed from the supplied model and retain the host's
8
+ * lifetime; flattening neither clones nor disposes those materials.
9
+ *
10
+ * @evidence contracts/development/implementation.md#principled-implementation Updates the actual loaded root's world matrices and applies the canonical rigid part-order/merge path, returning null cycle because an adopted loaded appearance supplies no generated gait bake; rigid/no-skin/no-morph/single-material and valid world transforms are premises.
11
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Owns only the loaded-root adaptation to the same static instanced representation shape, while loader/source lifetime and generated-model bake remain separate owners.
12
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Loaded and generated rigid parts use one merge/normalization rule, with no file-name exceptions or guessed gait/skeleton; source objects/materials are never cloned merely to fabricate ownership.
13
+ * @evidence contracts/development/common.md#meaningful-documentation States owned merged geometry, borrowed original materials, no source disposal and static null cycle meaning.
14
+ * @evidence contracts/development/implementation.md#efficient-algorithms Updates the loaded graph and collects P parts before the canonical O(V+indices) clone/transform/merge; retained result has one merged geometry and P borrowed material references, with no member-population dimension.
15
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses already-decoded loaded buffers/materials as source inputs and canonical rigid flattening; world transforms/buffers can mutate, so a filename or root identity alone cannot key immutable merged output.
16
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Lower merge owns and retires intermediate clones on success/refusal; this adapter transfers one completed merged geometry to the instance owner and borrows loaded graph/materials, acquiring no worker, texture decoder or native task.
17
+ */
18
+ export declare const flattenInstancedObject: (built: IAutoMovieModelObject, owner?: string) => IAutoMovieInstancedModelRepresentation<null>;
@@ -0,0 +1,25 @@
1
+ import { flattenRigidParts } from "./flattenRigidParts.js";
2
+ import { instancedModelParts } from "./instancedModelParts.js";
3
+ /**
4
+ * Flatten one already-loaded rigid generated or imported model prototype.
5
+ *
6
+ * The merged geometry is owned by the returned representation. Its material
7
+ * objects remain borrowed from the supplied model and retain the host's
8
+ * lifetime; flattening neither clones nor disposes those materials.
9
+ *
10
+ * @evidence contracts/development/implementation.md#principled-implementation Updates the actual loaded root's world matrices and applies the canonical rigid part-order/merge path, returning null cycle because an adopted loaded appearance supplies no generated gait bake; rigid/no-skin/no-morph/single-material and valid world transforms are premises.
11
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Owns only the loaded-root adaptation to the same static instanced representation shape, while loader/source lifetime and generated-model bake remain separate owners.
12
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Loaded and generated rigid parts use one merge/normalization rule, with no file-name exceptions or guessed gait/skeleton; source objects/materials are never cloned merely to fabricate ownership.
13
+ * @evidence contracts/development/common.md#meaningful-documentation States owned merged geometry, borrowed original materials, no source disposal and static null cycle meaning.
14
+ * @evidence contracts/development/implementation.md#efficient-algorithms Updates the loaded graph and collects P parts before the canonical O(V+indices) clone/transform/merge; retained result has one merged geometry and P borrowed material references, with no member-population dimension.
15
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses already-decoded loaded buffers/materials as source inputs and canonical rigid flattening; world transforms/buffers can mutate, so a filename or root identity alone cannot key immutable merged output.
16
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Lower merge owns and retires intermediate clones on success/refusal; this adapter transfers one completed merged geometry to the instance owner and borrows loaded graph/materials, acquiring no worker, texture decoder or native task.
17
+ */
18
+ export const flattenInstancedObject = (built, owner = "Loaded instanced runtime model") => {
19
+ built.object.updateMatrixWorld(true);
20
+ return {
21
+ ...flattenRigidParts(instancedModelParts(built.object), owner),
22
+ cycle: null,
23
+ };
24
+ };
25
+ //# sourceMappingURL=flattenInstancedObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flattenInstancedObject.js","sourceRoot":"","sources":["../src/flattenInstancedObject.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAGiB,CAClD,KAA4B,EAC5B,KAAK,GAAW,gCAAgC,EACF,EAAE;IAChD,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO;QACL,GAAG,iBAAiB,CAAC,mBAAmB,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC;QAC9D,KAAK,EAAE,IAAI;KACZ,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import * as THREE from "three";
2
+ import type { IAutoMovieInstancedGeometry } from "./IAutoMovieInstancedGeometry.js";
3
+ /**
4
+ * Clone rigid parts into world-rest geometry in their shared traversal order.
5
+ * Reject skin, morph and multi-material sources before merging; normalize
6
+ * mixed colour and relief presence on the owned clones while retaining the
7
+ * original material objects. No source buffers or materials are mutated.
8
+ * Intermediate clones retire after the merge or any refusal; a cleanup refusal
9
+ * also retires the untransferred merged geometry and preserves all causes.
10
+ *
11
+ * @evidence contracts/development/implementation.md#principled-implementation Uses native clone/applyMatrix4 to realize rigid world-rest geometry, adds traversal-index part identity and merges indexed attribute-compatible buffers with native groups; skin/morph/multi-material input refuses, color layout normalizes to Float32 RGB(A) and missing color/relief channels use neutral one. Invertible admitted transforms and compatible remaining attributes are premises.
12
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Owns rigid buffer normalization/merge only and borrows original materials, leaving generated model acquisition and optional gait bake to their own owner; owned temporary clones never become persistent per-member geometry.
13
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Every actual source part follows the same native transform and attribute rules; neutral color/alpha/relief values are multiplication identities, not fixture colors, and unsupported deformation is refused rather than drawn at rest under a generic wrapper.
14
+ * @evidence contracts/development/common.md#meaningful-documentation States source immutability, rigid-only admission, ordered part indices, mixed-color/relief normalization, borrowed materials and intermediate/failure retirement boundaries.
15
+ * @evidence contracts/development/implementation.md#efficient-algorithms Clones/transforms all V source vertices, scans color attributes and fills only normalized channels, then merges V vertices/indices once; O(V+indices) dominant buffer work with peak temporary source-clone plus merged arrays and O(P) part/material references.
16
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses actual source material objects and one canonical merge rather than creating per-member materials; normalization reuses native transformed attributes, while mutable source matrices/buffers preclude an unkeyed cross-call cache.
17
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Registers clones before transform/attribute edits and independently disposes all intermediates on success/refusal; if intermediate retirement fails, the untransferred merged geometry also retires. Success transfers exactly one merged geometry and borrowed material references, never disposing caller-owned source geometry/materials.
18
+ */
19
+ export declare const flattenRigidParts: (parts: readonly THREE.Mesh[], owner: string) => IAutoMovieInstancedGeometry;
@@ -0,0 +1,91 @@
1
+ import * as THREE from "three";
2
+ import { mergeGeometries } from "three/examples/jsm/utils/BufferGeometryUtils.js";
3
+ import { reportAutoMovieResourceRetirement } from "./reportAutoMovieResourceRetirement.js";
4
+ /**
5
+ * Clone rigid parts into world-rest geometry in their shared traversal order.
6
+ * Reject skin, morph and multi-material sources before merging; normalize
7
+ * mixed colour and relief presence on the owned clones while retaining the
8
+ * original material objects. No source buffers or materials are mutated.
9
+ * Intermediate clones retire after the merge or any refusal; a cleanup refusal
10
+ * also retires the untransferred merged geometry and preserves all causes.
11
+ *
12
+ * @evidence contracts/development/implementation.md#principled-implementation Uses native clone/applyMatrix4 to realize rigid world-rest geometry, adds traversal-index part identity and merges indexed attribute-compatible buffers with native groups; skin/morph/multi-material input refuses, color layout normalizes to Float32 RGB(A) and missing color/relief channels use neutral one. Invertible admitted transforms and compatible remaining attributes are premises.
13
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Owns rigid buffer normalization/merge only and borrows original materials, leaving generated model acquisition and optional gait bake to their own owner; owned temporary clones never become persistent per-member geometry.
14
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Every actual source part follows the same native transform and attribute rules; neutral color/alpha/relief values are multiplication identities, not fixture colors, and unsupported deformation is refused rather than drawn at rest under a generic wrapper.
15
+ * @evidence contracts/development/common.md#meaningful-documentation States source immutability, rigid-only admission, ordered part indices, mixed-color/relief normalization, borrowed materials and intermediate/failure retirement boundaries.
16
+ * @evidence contracts/development/implementation.md#efficient-algorithms Clones/transforms all V source vertices, scans color attributes and fills only normalized channels, then merges V vertices/indices once; O(V+indices) dominant buffer work with peak temporary source-clone plus merged arrays and O(P) part/material references.
17
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses actual source material objects and one canonical merge rather than creating per-member materials; normalization reuses native transformed attributes, while mutable source matrices/buffers preclude an unkeyed cross-call cache.
18
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Registers clones before transform/attribute edits and independently disposes all intermediates on success/refusal; if intermediate retirement fails, the untransferred merged geometry also retires. Success transfers exactly one merged geometry and borrowed material references, never disposing caller-owned source geometry/materials.
19
+ */
20
+ export const flattenRigidParts = (parts, owner) => {
21
+ const geometries = [];
22
+ const materials = [];
23
+ let merged;
24
+ try {
25
+ parts.forEach((mesh, index) => {
26
+ if (mesh instanceof THREE.SkinnedMesh)
27
+ throw new Error(`${owner} has a skinned source mesh.`);
28
+ if (Object.values(mesh.geometry.morphAttributes).some((attributes) => attributes.length > 0))
29
+ throw new Error(`${owner} has morph-target source geometry.`);
30
+ if (Array.isArray(mesh.material))
31
+ throw new Error(`${owner} has a multi-material source mesh.`);
32
+ const flattened = mesh.geometry.clone();
33
+ geometries.push(flattened);
34
+ flattened.applyMatrix4(mesh.matrixWorld);
35
+ flattened.setAttribute("automoviePart", new THREE.Float32BufferAttribute(new Float32Array(flattened.getAttribute("position").count).fill(index), 1));
36
+ materials.push(mesh.material);
37
+ });
38
+ // Mixed colour presence has a defined identity, unlike a missing UV layout.
39
+ // Normalize imported integer/interleaved RGB(A) to one Float32 layout and
40
+ // fill bare vertices (and RGB alpha) with one. Only owned clones are changed.
41
+ let colorSize = 0;
42
+ for (const geometry of geometries) {
43
+ const color = geometry.getAttribute("color");
44
+ if (color === undefined)
45
+ continue;
46
+ if ((color.itemSize !== 3 && color.itemSize !== 4) ||
47
+ color.count !== geometry.getAttribute("position").count)
48
+ throw new Error(`${owner} needs one RGB or RGBA colour per vertex.`);
49
+ colorSize = Math.max(colorSize, color.itemSize);
50
+ }
51
+ if (colorSize !== 0)
52
+ for (const geometry of geometries) {
53
+ const color = geometry.getAttribute("color");
54
+ const count = geometry.getAttribute("position").count;
55
+ const values = new Float32Array(count * colorSize).fill(1);
56
+ if (color !== undefined)
57
+ for (let vertex = 0; vertex < count; ++vertex)
58
+ for (let channel = 0; channel < color.itemSize; ++channel)
59
+ values[vertex * colorSize + channel] = color.getComponent(vertex, channel);
60
+ geometry.setAttribute("color", new THREE.Float32BufferAttribute(values, colorSize));
61
+ }
62
+ // relief weights likewise: a bare vertex's is one, its material not reading it
63
+ if (geometries.some((geometry) => geometry.hasAttribute("reliefWeight")))
64
+ for (const geometry of geometries)
65
+ if (!geometry.hasAttribute("reliefWeight"))
66
+ geometry.setAttribute("reliefWeight", new THREE.Float32BufferAttribute(new Float32Array(geometry.getAttribute("position").count).fill(1), 1));
67
+ const geometry = mergeGeometries(geometries, true);
68
+ if (geometry !== null)
69
+ merged = geometry;
70
+ if (geometry === null || materials.length === 0)
71
+ throw new Error(`${owner} cannot be flattened for instancing.`);
72
+ }
73
+ catch (error) {
74
+ reportAutoMovieResourceRetirement([
75
+ ...geometries.map((geometry) => () => geometry.dispose()),
76
+ ...(merged === undefined ? [] : [() => merged.dispose()]),
77
+ ], { error });
78
+ throw error;
79
+ }
80
+ try {
81
+ reportAutoMovieResourceRetirement(geometries.map((geometry) => () => geometry.dispose()));
82
+ }
83
+ catch (error) {
84
+ reportAutoMovieResourceRetirement([() => merged.dispose()], {
85
+ error,
86
+ });
87
+ throw error;
88
+ }
89
+ return { geometry: merged, materials };
90
+ };
91
+ //# sourceMappingURL=flattenRigidParts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flattenRigidParts.js","sourceRoot":"","sources":["../src/flattenRigidParts.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,4 @@
1
+ export type { IAutoMovieFluidSurfaceObject } from "./IAutoMovieFluidSurfaceObject.js";
2
+ export type { IAutoMovieFluidSprayObject } from "./IAutoMovieFluidSprayObject.js";
3
+ export { buildFluidSurfaceObject } from "./buildFluidSurfaceObject.js";
4
+ export { buildFluidSprayObject } from "./buildFluidSprayObject.js";
@@ -0,0 +1,3 @@
1
+ export { buildFluidSurfaceObject } from "./buildFluidSurfaceObject.js";
2
+ export { buildFluidSprayObject } from "./buildFluidSprayObject.js";
3
+ //# sourceMappingURL=fluidSurface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fluidSurface.js","sourceRoot":"","sources":["../src/fluidSurface.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC"}