@automovie/viewer 0.0.0-stage → 0.0.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.
- package/LICENSE +21 -0
- package/README.md +54 -2
- package/lib/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.d.ts +4 -0
- package/lib/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.js +5 -0
- package/lib/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.js.map +1 -0
- package/lib/AutoMovieDisplayCompositor.d.ts +105 -0
- package/lib/AutoMovieDisplayCompositor.js +342 -0
- package/lib/AutoMovieDisplayCompositor.js.map +1 -0
- package/lib/AutoMovieDissolveCompositorState.d.ts +4 -0
- package/lib/AutoMovieDissolveCompositorState.js +3 -0
- package/lib/AutoMovieDissolveCompositorState.js.map +1 -0
- package/lib/AutoMovieEnvironmentTextureOwnership.d.ts +52 -0
- package/lib/AutoMovieEnvironmentTextureOwnership.js +187 -0
- package/lib/AutoMovieEnvironmentTextureOwnership.js.map +1 -0
- package/lib/AutoMovieFadeCompositorState.d.ts +4 -0
- package/lib/AutoMovieFadeCompositorState.js +3 -0
- package/lib/AutoMovieFadeCompositorState.js.map +1 -0
- package/lib/AutoMovieFilmBeautyComposition.d.ts +25 -0
- package/lib/AutoMovieFilmBeautyComposition.js +2 -0
- package/lib/AutoMovieFilmBeautyComposition.js.map +1 -0
- package/lib/AutoMovieGeometryPhysicalVertices.d.ts +48 -0
- package/lib/AutoMovieGeometryPhysicalVertices.js +134 -0
- package/lib/AutoMovieGeometryPhysicalVertices.js.map +1 -0
- package/lib/AutoMoviePlayer.d.ts +99 -0
- package/lib/AutoMoviePlayer.js +192 -0
- package/lib/AutoMoviePlayer.js.map +1 -0
- package/lib/AutoMovieRenderModeMesh.d.ts +13 -0
- package/lib/AutoMovieRenderModeMesh.js +2 -0
- package/lib/AutoMovieRenderModeMesh.js.map +1 -0
- package/lib/AutoMovieResourceRetirementScope.d.ts +108 -0
- package/lib/AutoMovieResourceRetirementScope.js +169 -0
- package/lib/AutoMovieResourceRetirementScope.js.map +1 -0
- package/lib/AutoMovieSkinBlend.d.ts +83 -0
- package/lib/AutoMovieSkinBlend.js +195 -0
- package/lib/AutoMovieSkinBlend.js.map +1 -0
- package/lib/AutoMovieSkinPose.d.ts +119 -0
- package/lib/AutoMovieSkinPose.js +365 -0
- package/lib/AutoMovieSkinPose.js.map +1 -0
- package/lib/AutoMovieSkinnedMesh.d.ts +182 -0
- package/lib/AutoMovieSkinnedMesh.js +246 -0
- package/lib/AutoMovieSkinnedMesh.js.map +1 -0
- package/lib/AutoMovieTextureCache.d.ts +178 -0
- package/lib/AutoMovieTextureCache.js +321 -0
- package/lib/AutoMovieTextureCache.js.map +1 -0
- package/lib/AutoMovieTextureCacheAllocationAuthority.d.ts +217 -0
- package/lib/AutoMovieTextureCacheAllocationAuthority.js +417 -0
- package/lib/AutoMovieTextureCacheAllocationAuthority.js.map +1 -0
- package/lib/DEPTH_NORMALIZATION_RANGE.d.ts +4 -0
- package/lib/DEPTH_NORMALIZATION_RANGE.js +5 -0
- package/lib/DEPTH_NORMALIZATION_RANGE.js.map +1 -0
- package/lib/EDGE_SHELL_NAME.d.ts +2 -0
- package/lib/EDGE_SHELL_NAME.js +3 -0
- package/lib/EDGE_SHELL_NAME.js.map +1 -0
- package/lib/EDGE_WIDTH.d.ts +4 -0
- package/lib/EDGE_WIDTH.js +5 -0
- package/lib/EDGE_WIDTH.js.map +1 -0
- package/lib/IApplyAutoMovieSectionPlanesProps.d.ts +28 -0
- package/lib/IApplyAutoMovieSectionPlanesProps.js +2 -0
- package/lib/IApplyAutoMovieSectionPlanesProps.js.map +1 -0
- package/lib/IAutoMovieAnalysisOverlayObject.d.ts +52 -0
- package/lib/IAutoMovieAnalysisOverlayObject.js +2 -0
- package/lib/IAutoMovieAnalysisOverlayObject.js.map +1 -0
- package/lib/IAutoMovieBuiltPropArticulation.d.ts +34 -0
- package/lib/IAutoMovieBuiltPropArticulation.js +2 -0
- package/lib/IAutoMovieBuiltPropArticulation.js.map +1 -0
- package/lib/IAutoMovieEffectViewerObject.d.ts +28 -0
- package/lib/IAutoMovieEffectViewerObject.js +2 -0
- package/lib/IAutoMovieEffectViewerObject.js.map +1 -0
- package/lib/IAutoMovieEffectViewerStats.d.ts +18 -0
- package/lib/IAutoMovieEffectViewerStats.js +2 -0
- package/lib/IAutoMovieEffectViewerStats.js.map +1 -0
- package/lib/IAutoMovieExpressionTarget.d.ts +22 -0
- package/lib/IAutoMovieExpressionTarget.js +2 -0
- package/lib/IAutoMovieExpressionTarget.js.map +1 -0
- package/lib/IAutoMovieFilmBeautyLayer.d.ts +12 -0
- package/lib/IAutoMovieFilmBeautyLayer.js +2 -0
- package/lib/IAutoMovieFilmBeautyLayer.js.map +1 -0
- package/lib/IAutoMovieFluidSprayObject.d.ts +50 -0
- package/lib/IAutoMovieFluidSprayObject.js +2 -0
- package/lib/IAutoMovieFluidSprayObject.js.map +1 -0
- package/lib/IAutoMovieFluidSurfaceObject.d.ts +38 -0
- package/lib/IAutoMovieFluidSurfaceObject.js +2 -0
- package/lib/IAutoMovieFluidSurfaceObject.js.map +1 -0
- package/lib/IAutoMovieFormationCadence.d.ts +17 -0
- package/lib/IAutoMovieFormationCadence.js +2 -0
- package/lib/IAutoMovieFormationCadence.js.map +1 -0
- package/lib/IAutoMovieFormationCycle.d.ts +38 -0
- package/lib/IAutoMovieFormationCycle.js +2 -0
- package/lib/IAutoMovieFormationCycle.js.map +1 -0
- package/lib/IAutoMovieFormationCycleTake.d.ts +47 -0
- package/lib/IAutoMovieFormationCycleTake.js +2 -0
- package/lib/IAutoMovieFormationCycleTake.js.map +1 -0
- package/lib/IAutoMovieFormationCycleUniforms.d.ts +21 -0
- package/lib/IAutoMovieFormationCycleUniforms.js +2 -0
- package/lib/IAutoMovieFormationCycleUniforms.js.map +1 -0
- package/lib/IAutoMovieFormationViewerObject.d.ts +62 -0
- package/lib/IAutoMovieFormationViewerObject.js +2 -0
- package/lib/IAutoMovieFormationViewerObject.js.map +1 -0
- package/lib/IAutoMovieFormationViewerStats.d.ts +34 -0
- package/lib/IAutoMovieFormationViewerStats.js +2 -0
- package/lib/IAutoMovieFormationViewerStats.js.map +1 -0
- package/lib/IAutoMovieImportedModelOptions.d.ts +44 -0
- package/lib/IAutoMovieImportedModelOptions.js +2 -0
- package/lib/IAutoMovieImportedModelOptions.js.map +1 -0
- package/lib/IAutoMovieInstanceSetViewerObject.d.ts +42 -0
- package/lib/IAutoMovieInstanceSetViewerObject.js +2 -0
- package/lib/IAutoMovieInstanceSetViewerObject.js.map +1 -0
- package/lib/IAutoMovieInstanceSetViewerStats.d.ts +17 -0
- package/lib/IAutoMovieInstanceSetViewerStats.js +2 -0
- package/lib/IAutoMovieInstanceSetViewerStats.js.map +1 -0
- package/lib/IAutoMovieInstancedGeometry.d.ts +24 -0
- package/lib/IAutoMovieInstancedGeometry.js +2 -0
- package/lib/IAutoMovieInstancedGeometry.js.map +1 -0
- package/lib/IAutoMovieInstancedModelRepresentation.d.ts +16 -0
- package/lib/IAutoMovieInstancedModelRepresentation.js +2 -0
- package/lib/IAutoMovieInstancedModelRepresentation.js.map +1 -0
- package/lib/IAutoMovieMaterialLibrary.d.ts +42 -0
- package/lib/IAutoMovieMaterialLibrary.js +2 -0
- package/lib/IAutoMovieMaterialLibrary.js.map +1 -0
- package/lib/IAutoMovieModelObject.d.ts +51 -0
- package/lib/IAutoMovieModelObject.js +2 -0
- package/lib/IAutoMovieModelObject.js.map +1 -0
- package/lib/IAutoMoviePlantingObject.d.ts +33 -0
- package/lib/IAutoMoviePlantingObject.js +2 -0
- package/lib/IAutoMoviePlantingObject.js.map +1 -0
- package/lib/IAutoMovieRenderModeHandle.d.ts +44 -0
- package/lib/IAutoMovieRenderModeHandle.js +2 -0
- package/lib/IAutoMovieRenderModeHandle.js.map +1 -0
- package/lib/IAutoMovieRendererEnvironmentHandle.d.ts +22 -0
- package/lib/IAutoMovieRendererEnvironmentHandle.js +2 -0
- package/lib/IAutoMovieRendererEnvironmentHandle.js.map +1 -0
- package/lib/IAutoMovieRigLocalTransform.d.ts +15 -0
- package/lib/IAutoMovieRigLocalTransform.js +2 -0
- package/lib/IAutoMovieRigLocalTransform.js.map +1 -0
- package/lib/IAutoMovieSceneObject.d.ts +26 -0
- package/lib/IAutoMovieSceneObject.js +2 -0
- package/lib/IAutoMovieSceneObject.js.map +1 -0
- package/lib/IAutoMovieSectionRenderer.d.ts +17 -0
- package/lib/IAutoMovieSectionRenderer.js +2 -0
- package/lib/IAutoMovieSectionRenderer.js.map +1 -0
- package/lib/IAutoMovieShadowTextureHost.d.ts +17 -0
- package/lib/IAutoMovieShadowTextureHost.js +2 -0
- package/lib/IAutoMovieShadowTextureHost.js.map +1 -0
- package/lib/IAutoMovieSoftBodyObject.d.ts +43 -0
- package/lib/IAutoMovieSoftBodyObject.js +2 -0
- package/lib/IAutoMovieSoftBodyObject.js.map +1 -0
- package/lib/IAutoMovieSpringAxisSettlement.d.ts +19 -0
- package/lib/IAutoMovieSpringAxisSettlement.js +2 -0
- package/lib/IAutoMovieSpringAxisSettlement.js.map +1 -0
- package/lib/IAutoMovieSpringConfig.d.ts +22 -0
- package/lib/IAutoMovieSpringConfig.js +2 -0
- package/lib/IAutoMovieSpringConfig.js.map +1 -0
- package/lib/IAutoMovieTextureLoader.d.ts +13 -0
- package/lib/IAutoMovieTextureLoader.js +2 -0
- package/lib/IAutoMovieTextureLoader.js.map +1 -0
- package/lib/IAutoMovieTextureResolver.d.ts +16 -0
- package/lib/IAutoMovieTextureResolver.js +2 -0
- package/lib/IAutoMovieTextureResolver.js.map +1 -0
- package/lib/IAutoMovieViewerCameraDepthPrecisionReport.d.ts +30 -0
- package/lib/IAutoMovieViewerCameraDepthPrecisionReport.js +2 -0
- package/lib/IAutoMovieViewerCameraDepthPrecisionReport.js.map +1 -0
- package/lib/IAutoMovieViewerCompletedFrame.d.ts +51 -0
- package/lib/IAutoMovieViewerCompletedFrame.js +2 -0
- package/lib/IAutoMovieViewerCompletedFrame.js.map +1 -0
- package/lib/IAutoMovieViewerDisplayMetadata.d.ts +22 -0
- package/lib/IAutoMovieViewerDisplayMetadata.js +2 -0
- package/lib/IAutoMovieViewerDisplayMetadata.js.map +1 -0
- package/lib/IAutoMovieViewerFrame.d.ts +19 -0
- package/lib/IAutoMovieViewerFrame.js +2 -0
- package/lib/IAutoMovieViewerFrame.js.map +1 -0
- package/lib/IAutoMovieViewerHandle.d.ts +42 -0
- package/lib/IAutoMovieViewerHandle.js +2 -0
- package/lib/IAutoMovieViewerHandle.js.map +1 -0
- package/lib/IAutoMovieViewerSnapshot.d.ts +18 -0
- package/lib/IAutoMovieViewerSnapshot.js +2 -0
- package/lib/IAutoMovieViewerSnapshot.js.map +1 -0
- package/lib/IAutoMovieViewerSnapshotOptions.d.ts +14 -0
- package/lib/IAutoMovieViewerSnapshotOptions.js +2 -0
- package/lib/IAutoMovieViewerSnapshotOptions.js.map +1 -0
- package/lib/IAutoMovieViewerSnapshotRenderer.d.ts +32 -0
- package/lib/IAutoMovieViewerSnapshotRenderer.js +2 -0
- package/lib/IAutoMovieViewerSnapshotRenderer.js.map +1 -0
- package/lib/IBakeFormationCycleProps.d.ts +31 -0
- package/lib/IBakeFormationCycleProps.js +2 -0
- package/lib/IBakeFormationCycleProps.js.map +1 -0
- package/lib/IBuildAutoMovieMaterialLibraryProps.d.ts +30 -0
- package/lib/IBuildAutoMovieMaterialLibraryProps.js +2 -0
- package/lib/IBuildAutoMovieMaterialLibraryProps.js.map +1 -0
- package/lib/IBuildInstancedFormationProps.d.ts +34 -0
- package/lib/IBuildInstancedFormationProps.js +2 -0
- package/lib/IBuildInstancedFormationProps.js.map +1 -0
- package/lib/IBuildInstancedInstanceSetProps.d.ts +29 -0
- package/lib/IBuildInstancedInstanceSetProps.js +2 -0
- package/lib/IBuildInstancedInstanceSetProps.js.map +1 -0
- package/lib/IBuildPlantingObjectProps.d.ts +22 -0
- package/lib/IBuildPlantingObjectProps.js +2 -0
- package/lib/IBuildPlantingObjectProps.js.map +1 -0
- package/lib/IBuildPropArticulationProps.d.ts +30 -0
- package/lib/IBuildPropArticulationProps.js +2 -0
- package/lib/IBuildPropArticulationProps.js.map +1 -0
- package/lib/IBuildSoftBodyObjectProps.d.ts +18 -0
- package/lib/IBuildSoftBodyObjectProps.js +2 -0
- package/lib/IBuildSoftBodyObjectProps.js.map +1 -0
- package/lib/IChunkObject.d.ts +32 -0
- package/lib/IChunkObject.js +2 -0
- package/lib/IChunkObject.js.map +1 -0
- package/lib/IFormationTierRepresentation.d.ts +17 -0
- package/lib/IFormationTierRepresentation.js +2 -0
- package/lib/IFormationTierRepresentation.js.map +1 -0
- package/lib/IMaterialShaderPatch.d.ts +28 -0
- package/lib/IMaterialShaderPatch.js +2 -0
- package/lib/IMaterialShaderPatch.js.map +1 -0
- package/lib/IMountViewerOptions.d.ts +61 -0
- package/lib/IMountViewerOptions.js +2 -0
- package/lib/IMountViewerOptions.js.map +1 -0
- package/lib/ISlotException.d.ts +26 -0
- package/lib/ISlotException.js +2 -0
- package/lib/ISlotException.js.map +1 -0
- package/lib/IViewerCameraStateSnapshot.d.ts +49 -0
- package/lib/IViewerCameraStateSnapshot.js +2 -0
- package/lib/IViewerCameraStateSnapshot.js.map +1 -0
- package/lib/POSE_OVERLAY_NAME.d.ts +2 -0
- package/lib/POSE_OVERLAY_NAME.js +3 -0
- package/lib/POSE_OVERLAY_NAME.js.map +1 -0
- package/lib/SPACE_GROUP_NAME.d.ts +12 -0
- package/lib/SPACE_GROUP_NAME.js +13 -0
- package/lib/SPACE_GROUP_NAME.js.map +1 -0
- package/lib/addMaterialShaderPatch.d.ts +21 -0
- package/lib/addMaterialShaderPatch.js +31 -0
- package/lib/addMaterialShaderPatch.js.map +1 -0
- package/lib/analysisOverlay.d.ts +3 -0
- package/lib/analysisOverlay.js +3 -0
- package/lib/analysisOverlay.js.map +1 -0
- package/lib/applyAutoMovieDeliveryCrop.d.ts +22 -0
- package/lib/applyAutoMovieDeliveryCrop.js +34 -0
- package/lib/applyAutoMovieDeliveryCrop.js.map +1 -0
- package/lib/applyAutoMovieRigLocals.d.ts +27 -0
- package/lib/applyAutoMovieRigLocals.js +89 -0
- package/lib/applyAutoMovieRigLocals.js.map +1 -0
- package/lib/applyAutoMovieSectionPlanes.d.ts +24 -0
- package/lib/applyAutoMovieSectionPlanes.js +42 -0
- package/lib/applyAutoMovieSectionPlanes.js.map +1 -0
- package/lib/applyAutoMovieShadowParticipation.d.ts +42 -0
- package/lib/applyAutoMovieShadowParticipation.js +62 -0
- package/lib/applyAutoMovieShadowParticipation.js.map +1 -0
- package/lib/applyCaptureCanvasSize.d.ts +12 -0
- package/lib/applyCaptureCanvasSize.js +21 -0
- package/lib/applyCaptureCanvasSize.js.map +1 -0
- package/lib/applyDepthMode.d.ts +20 -0
- package/lib/applyDepthMode.js +81 -0
- package/lib/applyDepthMode.js.map +1 -0
- package/lib/applyEdgeMode.d.ts +20 -0
- package/lib/applyEdgeMode.js +114 -0
- package/lib/applyEdgeMode.js.map +1 -0
- package/lib/applyExpression.d.ts +20 -0
- package/lib/applyExpression.js +138 -0
- package/lib/applyExpression.js.map +1 -0
- package/lib/applyFormationCycleCadence.d.ts +20 -0
- package/lib/applyFormationCycleCadence.js +26 -0
- package/lib/applyFormationCycleCadence.js.map +1 -0
- package/lib/applyFormationCycleMaterial.d.ts +31 -0
- package/lib/applyFormationCycleMaterial.js +100 -0
- package/lib/applyFormationCycleMaterial.js.map +1 -0
- package/lib/applyLightMotion.d.ts +38 -0
- package/lib/applyLightMotion.js +46 -0
- package/lib/applyLightMotion.js.map +1 -0
- package/lib/applyLightState.d.ts +38 -0
- package/lib/applyLightState.js +57 -0
- package/lib/applyLightState.js.map +1 -0
- package/lib/applyMaskMode.d.ts +20 -0
- package/lib/applyMaskMode.js +90 -0
- package/lib/applyMaskMode.js.map +1 -0
- package/lib/applyMaterialShaderPatches.d.ts +22 -0
- package/lib/applyMaterialShaderPatches.js +24 -0
- package/lib/applyMaterialShaderPatches.js.map +1 -0
- package/lib/applyObjectMotion.d.ts +30 -0
- package/lib/applyObjectMotion.js +33 -0
- package/lib/applyObjectMotion.js.map +1 -0
- package/lib/applyObjectMotions.d.ts +14 -0
- package/lib/applyObjectMotions.js +17 -0
- package/lib/applyObjectMotions.js.map +1 -0
- package/lib/applyPose.d.ts +40 -0
- package/lib/applyPose.js +85 -0
- package/lib/applyPose.js.map +1 -0
- package/lib/applyPoseMode.d.ts +20 -0
- package/lib/applyPoseMode.js +80 -0
- package/lib/applyPoseMode.js.map +1 -0
- package/lib/applyRenderMode.d.ts +48 -0
- package/lib/applyRenderMode.js +191 -0
- package/lib/applyRenderMode.js.map +1 -0
- package/lib/applyRendererEnvironment.d.ts +25 -0
- package/lib/applyRendererEnvironment.js +107 -0
- package/lib/applyRendererEnvironment.js.map +1 -0
- package/lib/applySampledObjectMotion.d.ts +16 -0
- package/lib/applySampledObjectMotion.js +71 -0
- package/lib/applySampledObjectMotion.js.map +1 -0
- package/lib/applySceneEnvironment.d.ts +16 -0
- package/lib/applySceneEnvironment.js +47 -0
- package/lib/applySceneEnvironment.js.map +1 -0
- package/lib/applySceneFog.d.ts +34 -0
- package/lib/applySceneFog.js +42 -0
- package/lib/applySceneFog.js.map +1 -0
- package/lib/applySemanticMaskMode.d.ts +22 -0
- package/lib/applySemanticMaskMode.js +37 -0
- package/lib/applySemanticMaskMode.js.map +1 -0
- package/lib/applyTransform.d.ts +16 -0
- package/lib/applyTransform.js +19 -0
- package/lib/applyTransform.js.map +1 -0
- package/lib/assertAutoMovieSceneShadowProfile.d.ts +19 -0
- package/lib/assertAutoMovieSceneShadowProfile.js +30 -0
- package/lib/assertAutoMovieSceneShadowProfile.js.map +1 -0
- package/lib/assertAutoMovieViewerCameraDepthPrecision.d.ts +18 -0
- package/lib/assertAutoMovieViewerCameraDepthPrecision.js +27 -0
- package/lib/assertAutoMovieViewerCameraDepthPrecision.js.map +1 -0
- package/lib/audio/IAutoMovieAudioCue.d.ts +26 -0
- package/lib/audio/IAutoMovieAudioCue.js +2 -0
- package/lib/audio/IAutoMovieAudioCue.js.map +1 -0
- package/lib/audio/index.d.ts +3 -0
- package/lib/audio/index.js +3 -0
- package/lib/audio/index.js.map +1 -0
- package/lib/audio/planAutoMovieAudioPlayback.d.ts +51 -0
- package/lib/audio/planAutoMovieAudioPlayback.js +49 -0
- package/lib/audio/planAutoMovieAudioPlayback.js.map +1 -0
- package/lib/audio/playAutoMovieAudioCues.d.ts +23 -0
- package/lib/audio/playAutoMovieAudioCues.js +58 -0
- package/lib/audio/playAutoMovieAudioCues.js.map +1 -0
- package/lib/autoMovieAnalysisRampColor.d.ts +22 -0
- package/lib/autoMovieAnalysisRampColor.js +27 -0
- package/lib/autoMovieAnalysisRampColor.js.map +1 -0
- package/lib/bakeFormationCycle.d.ts +31 -0
- package/lib/bakeFormationCycle.js +101 -0
- package/lib/bakeFormationCycle.js.map +1 -0
- package/lib/bindFormationTierCycle.d.ts +18 -0
- package/lib/bindFormationTierCycle.js +32 -0
- package/lib/bindFormationTierCycle.js.map +1 -0
- package/lib/buildAnalysisOverlayObject.d.ts +38 -0
- package/lib/buildAnalysisOverlayObject.js +97 -0
- package/lib/buildAnalysisOverlayObject.js.map +1 -0
- package/lib/buildAutoMovieConstruction.d.ts +27 -0
- package/lib/buildAutoMovieConstruction.js +74 -0
- package/lib/buildAutoMovieConstruction.js.map +1 -0
- package/lib/buildAutoMovieMaterialLibrary.d.ts +30 -0
- package/lib/buildAutoMovieMaterialLibrary.js +92 -0
- package/lib/buildAutoMovieMaterialLibrary.js.map +1 -0
- package/lib/buildFluidSprayObject.d.ts +22 -0
- package/lib/buildFluidSprayObject.js +67 -0
- package/lib/buildFluidSprayObject.js.map +1 -0
- package/lib/buildFluidSurfaceObject.d.ts +23 -0
- package/lib/buildFluidSurfaceObject.js +74 -0
- package/lib/buildFluidSurfaceObject.js.map +1 -0
- package/lib/buildGeometry.d.ts +20 -0
- package/lib/buildGeometry.js +89 -0
- package/lib/buildGeometry.js.map +1 -0
- package/lib/buildInstancedEffect.d.ts +18 -0
- package/lib/buildInstancedEffect.js +103 -0
- package/lib/buildInstancedEffect.js.map +1 -0
- package/lib/buildInstancedFormation.d.ts +23 -0
- package/lib/buildInstancedFormation.js +340 -0
- package/lib/buildInstancedFormation.js.map +1 -0
- package/lib/buildInstancedInstanceSet.d.ts +29 -0
- package/lib/buildInstancedInstanceSet.js +321 -0
- package/lib/buildInstancedInstanceSet.js.map +1 -0
- package/lib/buildLight.d.ts +31 -0
- package/lib/buildLight.js +105 -0
- package/lib/buildLight.js.map +1 -0
- package/lib/buildMaterial.d.ts +22 -0
- package/lib/buildMaterial.js +98 -0
- package/lib/buildMaterial.js.map +1 -0
- package/lib/buildModel.d.ts +63 -0
- package/lib/buildModel.js +243 -0
- package/lib/buildModel.js.map +1 -0
- package/lib/buildPlantingObject.d.ts +22 -0
- package/lib/buildPlantingObject.js +155 -0
- package/lib/buildPlantingObject.js.map +1 -0
- package/lib/buildPropArticulation.d.ts +55 -0
- package/lib/buildPropArticulation.js +130 -0
- package/lib/buildPropArticulation.js.map +1 -0
- package/lib/buildScene.d.ts +44 -0
- package/lib/buildScene.js +102 -0
- package/lib/buildScene.js.map +1 -0
- package/lib/buildSoftBodyObject.d.ts +14 -0
- package/lib/buildSoftBodyObject.js +148 -0
- package/lib/buildSoftBodyObject.js.map +1 -0
- package/lib/buildSpace.d.ts +2 -0
- package/lib/buildSpace.js +3 -0
- package/lib/buildSpace.js.map +1 -0
- package/lib/buildSpaceObject.d.ts +43 -0
- package/lib/buildSpaceObject.js +71 -0
- package/lib/buildSpaceObject.js.map +1 -0
- package/lib/cameraDepthPrecision.d.ts +3 -0
- package/lib/cameraDepthPrecision.js +3 -0
- package/lib/cameraDepthPrecision.js.map +1 -0
- package/lib/captureAutoMovieFramebufferRestore.d.ts +18 -0
- package/lib/captureAutoMovieFramebufferRestore.js +70 -0
- package/lib/captureAutoMovieFramebufferRestore.js.map +1 -0
- package/lib/captureAutoMovieMetricFrame.d.ts +27 -0
- package/lib/captureAutoMovieMetricFrame.js +93 -0
- package/lib/captureAutoMovieMetricFrame.js.map +1 -0
- package/lib/captureSize.d.ts +1 -0
- package/lib/captureSize.js +2 -0
- package/lib/captureSize.js.map +1 -0
- package/lib/captureViewerSnapshot.d.ts +16 -0
- package/lib/captureViewerSnapshot.js +22 -0
- package/lib/captureViewerSnapshot.js.map +1 -0
- package/lib/collectAutoMovieOwnedResources.d.ts +29 -0
- package/lib/collectAutoMovieOwnedResources.js +56 -0
- package/lib/collectAutoMovieOwnedResources.js.map +1 -0
- package/lib/collectAutoMovieRenderModeMeshes.d.ts +14 -0
- package/lib/collectAutoMovieRenderModeMeshes.js +21 -0
- package/lib/collectAutoMovieRenderModeMeshes.js.map +1 -0
- package/lib/constructAutoMovieOwnedResources.d.ts +24 -0
- package/lib/constructAutoMovieOwnedResources.js +35 -0
- package/lib/constructAutoMovieOwnedResources.js.map +1 -0
- package/lib/createAutoMovieClosedSphereGeometry.d.ts +25 -0
- package/lib/createAutoMovieClosedSphereGeometry.js +80 -0
- package/lib/createAutoMovieClosedSphereGeometry.js.map +1 -0
- package/lib/createAutoMovieMetricOrthographicCamera.d.ts +28 -0
- package/lib/createAutoMovieMetricOrthographicCamera.js +61 -0
- package/lib/createAutoMovieMetricOrthographicCamera.js.map +1 -0
- package/lib/createAutoMoviePerformanceOverlay.d.ts +36 -0
- package/lib/createAutoMoviePerformanceOverlay.js +132 -0
- package/lib/createAutoMoviePerformanceOverlay.js.map +1 -0
- package/lib/createAutoMoviePhysicalPoseAdapter.d.ts +14 -0
- package/lib/createAutoMoviePhysicalPoseAdapter.js +89 -0
- package/lib/createAutoMoviePhysicalPoseAdapter.js.map +1 -0
- package/lib/createAutoMovieResourceRetirement.d.ts +25 -0
- package/lib/createAutoMovieResourceRetirement.js +16 -0
- package/lib/createAutoMovieResourceRetirement.js.map +1 -0
- package/lib/createAutoMovieSurfaceAppearance.d.ts +30 -0
- package/lib/createAutoMovieSurfaceAppearance.js +180 -0
- package/lib/createAutoMovieSurfaceAppearance.js.map +1 -0
- package/lib/createAutoMovieSurfaceVertexAdapter.d.ts +17 -0
- package/lib/createAutoMovieSurfaceVertexAdapter.js +49 -0
- package/lib/createAutoMovieSurfaceVertexAdapter.js.map +1 -0
- package/lib/createFormationCycleShadowMaterials.d.ts +29 -0
- package/lib/createFormationCycleShadowMaterials.js +56 -0
- package/lib/createFormationCycleShadowMaterials.js.map +1 -0
- package/lib/createFormationRepresentations.d.ts +17 -0
- package/lib/createFormationRepresentations.js +53 -0
- package/lib/createFormationRepresentations.js.map +1 -0
- package/lib/createImportedModelObject.d.ts +14 -0
- package/lib/createImportedModelObject.js +50 -0
- package/lib/createImportedModelObject.js.map +1 -0
- package/lib/createViewerCameraState.d.ts +21 -0
- package/lib/createViewerCameraState.js +213 -0
- package/lib/createViewerCameraState.js.map +1 -0
- package/lib/createViewerDisplayClock.d.ts +20 -0
- package/lib/createViewerDisplayClock.js +44 -0
- package/lib/createViewerDisplayClock.js.map +1 -0
- package/lib/createViewerDisplayPublication.d.ts +28 -0
- package/lib/createViewerDisplayPublication.js +56 -0
- package/lib/createViewerDisplayPublication.js.map +1 -0
- package/lib/createViewerDisplaySave.d.ts +33 -0
- package/lib/createViewerDisplaySave.js +150 -0
- package/lib/createViewerDisplaySave.js.map +1 -0
- package/lib/createViewerFrameControl.d.ts +36 -0
- package/lib/createViewerFrameControl.js +109 -0
- package/lib/createViewerFrameControl.js.map +1 -0
- package/lib/createViewerViewportResize.d.ts +16 -0
- package/lib/createViewerViewportResize.js +42 -0
- package/lib/createViewerViewportResize.js.map +1 -0
- package/lib/decodeAutoMovieImage.d.ts +16 -0
- package/lib/decodeAutoMovieImage.js +119 -0
- package/lib/decodeAutoMovieImage.js.map +1 -0
- package/lib/defaultMaterial.d.ts +14 -0
- package/lib/defaultMaterial.js +19 -0
- package/lib/defaultMaterial.js.map +1 -0
- package/lib/deliveryCrop.d.ts +2 -0
- package/lib/deliveryCrop.js +3 -0
- package/lib/deliveryCrop.js.map +1 -0
- package/lib/describeFormationTextureSources.d.ts +20 -0
- package/lib/describeFormationTextureSources.js +31 -0
- package/lib/describeFormationTextureSources.js.map +1 -0
- package/lib/detailNormalShading/DETAIL_NORMAL_TARGET.d.ts +5 -0
- package/lib/detailNormalShading/DETAIL_NORMAL_TARGET.js +6 -0
- package/lib/detailNormalShading/DETAIL_NORMAL_TARGET.js.map +1 -0
- package/lib/detailNormalShading/applyDetailNormal.d.ts +18 -0
- package/lib/detailNormalShading/applyDetailNormal.js +24 -0
- package/lib/detailNormalShading/applyDetailNormal.js.map +1 -0
- package/lib/detailNormalShading/createDetailNormalShaderPatch.d.ts +21 -0
- package/lib/detailNormalShading/createDetailNormalShaderPatch.js +35 -0
- package/lib/detailNormalShading/createDetailNormalShaderPatch.js.map +1 -0
- package/lib/detailNormalShading/detailNormalFragment.d.ts +14 -0
- package/lib/detailNormalShading/detailNormalFragment.js +18 -0
- package/lib/detailNormalShading/detailNormalFragment.js.map +1 -0
- package/lib/detailNormalShading/detailNormalVertex.d.ts +13 -0
- package/lib/detailNormalShading/detailNormalVertex.js +16 -0
- package/lib/detailNormalShading/detailNormalVertex.js.map +1 -0
- package/lib/detailNormalShading/index.d.ts +6 -0
- package/lib/detailNormalShading/index.js +7 -0
- package/lib/detailNormalShading/index.js.map +1 -0
- package/lib/detailNormalShading/spliceTangentNormal.d.ts +15 -0
- package/lib/detailNormalShading/spliceTangentNormal.js +25 -0
- package/lib/detailNormalShading/spliceTangentNormal.js.map +1 -0
- package/lib/disposeCrossDissolve.d.ts +15 -0
- package/lib/disposeCrossDissolve.js +22 -0
- package/lib/disposeCrossDissolve.js.map +1 -0
- package/lib/disposeFadeToBlack.d.ts +15 -0
- package/lib/disposeFadeToBlack.js +22 -0
- package/lib/disposeFadeToBlack.js.map +1 -0
- package/lib/disposeFormationRepresentations.d.ts +15 -0
- package/lib/disposeFormationRepresentations.js +37 -0
- package/lib/disposeFormationRepresentations.js.map +1 -0
- package/lib/dualQuaternionSkinning/applyDualQuaternionSkinning.d.ts +16 -0
- package/lib/dualQuaternionSkinning/applyDualQuaternionSkinning.js +20 -0
- package/lib/dualQuaternionSkinning/applyDualQuaternionSkinning.js.map +1 -0
- package/lib/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.d.ts +15 -0
- package/lib/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.js +21 -0
- package/lib/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.js.map +1 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningOf.d.ts +16 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningOf.js +16 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningOf.js.map +1 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningVertex.d.ts +30 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningVertex.js +132 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningVertex.js.map +1 -0
- package/lib/dualQuaternionSkinning/index.d.ts +4 -0
- package/lib/dualQuaternionSkinning/index.js +5 -0
- package/lib/dualQuaternionSkinning/index.js.map +1 -0
- package/lib/effect.d.ts +4 -0
- package/lib/effect.js +3 -0
- package/lib/effect.js.map +1 -0
- package/lib/evaluateAutoMovieViewerCameraDepthPrecision.d.ts +29 -0
- package/lib/evaluateAutoMovieViewerCameraDepthPrecision.js +71 -0
- package/lib/evaluateAutoMovieViewerCameraDepthPrecision.js.map +1 -0
- package/lib/flattenInstancedModel.d.ts +29 -0
- package/lib/flattenInstancedModel.js +91 -0
- package/lib/flattenInstancedModel.js.map +1 -0
- package/lib/flattenInstancedObject.d.ts +18 -0
- package/lib/flattenInstancedObject.js +25 -0
- package/lib/flattenInstancedObject.js.map +1 -0
- package/lib/flattenRigidParts.d.ts +19 -0
- package/lib/flattenRigidParts.js +91 -0
- package/lib/flattenRigidParts.js.map +1 -0
- package/lib/fluidSurface.d.ts +4 -0
- package/lib/fluidSurface.js +3 -0
- package/lib/fluidSurface.js.map +1 -0
- package/lib/formation/index.d.ts +12 -0
- package/lib/formation/index.js +10 -0
- package/lib/formation/index.js.map +1 -0
- package/lib/formationCycle/index.d.ts +17 -0
- package/lib/formationCycle/index.js +18 -0
- package/lib/formationCycle/index.js.map +1 -0
- package/lib/formationCycleCadence.d.ts +32 -0
- package/lib/formationCycleCadence.js +46 -0
- package/lib/formationCycleCadence.js.map +1 -0
- package/lib/formationCycleGait.d.ts +22 -0
- package/lib/formationCycleGait.js +23 -0
- package/lib/formationCycleGait.js.map +1 -0
- package/lib/formationCycleOf.d.ts +16 -0
- package/lib/formationCycleOf.js +15 -0
- package/lib/formationCycleOf.js.map +1 -0
- package/lib/formationCyclePosition.d.ts +21 -0
- package/lib/formationCyclePosition.js +26 -0
- package/lib/formationCyclePosition.js.map +1 -0
- package/lib/formationCycleStride.d.ts +26 -0
- package/lib/formationCycleStride.js +49 -0
- package/lib/formationCycleStride.js.map +1 -0
- package/lib/formationGeometry/index.d.ts +5 -0
- package/lib/formationGeometry/index.js +6 -0
- package/lib/formationGeometry/index.js.map +1 -0
- package/lib/formationSpacingOffset.d.ts +32 -0
- package/lib/formationSpacingOffset.js +45 -0
- package/lib/formationSpacingOffset.js.map +1 -0
- package/lib/guardAutoMovieRenderModeRetirement.d.ts +18 -0
- package/lib/guardAutoMovieRenderModeRetirement.js +60 -0
- package/lib/guardAutoMovieRenderModeRetirement.js.map +1 -0
- package/lib/guardAutoMovieSceneShadowRetirement.d.ts +17 -0
- package/lib/guardAutoMovieSceneShadowRetirement.js +35 -0
- package/lib/guardAutoMovieSceneShadowRetirement.js.map +1 -0
- package/lib/human-polygon/AutoMovieHumanCartoon.d.ts +78 -0
- package/lib/human-polygon/AutoMovieHumanCartoon.js +2 -0
- package/lib/human-polygon/AutoMovieHumanCartoon.js.map +1 -0
- package/lib/human-polygon/AutoMovieHumanPolygon.d.ts +137 -0
- package/lib/human-polygon/AutoMovieHumanPolygon.js +2 -0
- package/lib/human-polygon/AutoMovieHumanPolygon.js.map +1 -0
- package/lib/human-polygon/applyHumanPolygonPose.d.ts +16 -0
- package/lib/human-polygon/applyHumanPolygonPose.js +46 -0
- package/lib/human-polygon/applyHumanPolygonPose.js.map +1 -0
- package/lib/human-polygon/buildHumanCartoonFace.d.ts +43 -0
- package/lib/human-polygon/buildHumanCartoonFace.js +319 -0
- package/lib/human-polygon/buildHumanCartoonFace.js.map +1 -0
- package/lib/human-polygon/buildHumanPolygon.d.ts +38 -0
- package/lib/human-polygon/buildHumanPolygon.js +265 -0
- package/lib/human-polygon/buildHumanPolygon.js.map +1 -0
- package/lib/human-polygon/buildHumanPolygonModule.d.ts +71 -0
- package/lib/human-polygon/buildHumanPolygonModule.js +206 -0
- package/lib/human-polygon/buildHumanPolygonModule.js.map +1 -0
- package/lib/human-polygon/buildHumanPolygonParts.d.ts +21 -0
- package/lib/human-polygon/buildHumanPolygonParts.js +140 -0
- package/lib/human-polygon/buildHumanPolygonParts.js.map +1 -0
- package/lib/human-polygon/createAutoMovieHumanPolygonFigure.d.ts +60 -0
- package/lib/human-polygon/createAutoMovieHumanPolygonFigure.js +67 -0
- package/lib/human-polygon/createAutoMovieHumanPolygonFigure.js.map +1 -0
- package/lib/human-polygon/createHumanPolygonPalette.d.ts +62 -0
- package/lib/human-polygon/createHumanPolygonPalette.js +131 -0
- package/lib/human-polygon/createHumanPolygonPalette.js.map +1 -0
- package/lib/human-polygon/humanPolygonSections.d.ts +49 -0
- package/lib/human-polygon/humanPolygonSections.js +63 -0
- package/lib/human-polygon/humanPolygonSections.js.map +1 -0
- package/lib/human-polygon/humanPolygonTopology.d.ts +62 -0
- package/lib/human-polygon/humanPolygonTopology.js +111 -0
- package/lib/human-polygon/humanPolygonTopology.js.map +1 -0
- package/lib/human-polygon/index.d.ts +5 -0
- package/lib/human-polygon/index.js +4 -0
- package/lib/human-polygon/index.js.map +1 -0
- package/lib/human-polygon/mountHumanCartoonFace.d.ts +14 -0
- package/lib/human-polygon/mountHumanCartoonFace.js +70 -0
- package/lib/human-polygon/mountHumanCartoonFace.js.map +1 -0
- package/lib/importedModel/index.d.ts +4 -0
- package/lib/importedModel/index.js +5 -0
- package/lib/importedModel/index.js.map +1 -0
- package/lib/index.d.ts +139 -0
- package/lib/index.js +140 -0
- package/lib/index.js.map +1 -0
- package/lib/instanceSet/index.d.ts +6 -0
- package/lib/instanceSet/index.js +7 -0
- package/lib/instanceSet/index.js.map +1 -0
- package/lib/instancedModelParts.d.ts +15 -0
- package/lib/instancedModelParts.js +22 -0
- package/lib/instancedModelParts.js.map +1 -0
- package/lib/invalidateAutoMovieSceneShadowPrograms.d.ts +13 -0
- package/lib/invalidateAutoMovieSceneShadowPrograms.js +27 -0
- package/lib/invalidateAutoMovieSceneShadowPrograms.js.map +1 -0
- package/lib/invalidateAutoMovieSkinnedPose.d.ts +22 -0
- package/lib/invalidateAutoMovieSkinnedPose.js +31 -0
- package/lib/invalidateAutoMovieSkinnedPose.js.map +1 -0
- package/lib/mapImportedHumanoidBones.d.ts +16 -0
- package/lib/mapImportedHumanoidBones.js +57 -0
- package/lib/mapImportedHumanoidBones.js.map +1 -0
- package/lib/maskColor.d.ts +13 -0
- package/lib/maskColor.js +14 -0
- package/lib/maskColor.js.map +1 -0
- package/lib/matchesAutoMovieShadowTextureProfile.d.ts +13 -0
- package/lib/matchesAutoMovieShadowTextureProfile.js +21 -0
- package/lib/matchesAutoMovieShadowTextureProfile.js.map +1 -0
- package/lib/materialOverlayShading/IMaterialOverlayShading.d.ts +29 -0
- package/lib/materialOverlayShading/IMaterialOverlayShading.js +2 -0
- package/lib/materialOverlayShading/IMaterialOverlayShading.js.map +1 -0
- package/lib/materialOverlayShading/IMaterialOverlayShape.d.ts +16 -0
- package/lib/materialOverlayShading/IMaterialOverlayShape.js +2 -0
- package/lib/materialOverlayShading/IMaterialOverlayShape.js.map +1 -0
- package/lib/materialOverlayShading/applyMaterialOverlays.d.ts +16 -0
- package/lib/materialOverlayShading/applyMaterialOverlays.js +66 -0
- package/lib/materialOverlayShading/applyMaterialOverlays.js.map +1 -0
- package/lib/materialOverlayShading/getOverlayFlatNormal.d.ts +13 -0
- package/lib/materialOverlayShading/getOverlayFlatNormal.js +24 -0
- package/lib/materialOverlayShading/getOverlayFlatNormal.js.map +1 -0
- package/lib/materialOverlayShading/index.d.ts +6 -0
- package/lib/materialOverlayShading/index.js +4 -0
- package/lib/materialOverlayShading/index.js.map +1 -0
- package/lib/materialOverlayShading/materialOverlayFragment.d.ts +13 -0
- package/lib/materialOverlayShading/materialOverlayFragment.js +50 -0
- package/lib/materialOverlayShading/materialOverlayFragment.js.map +1 -0
- package/lib/materialOverlayShading/materialOverlayVertex.d.ts +13 -0
- package/lib/materialOverlayShading/materialOverlayVertex.js +27 -0
- package/lib/materialOverlayShading/materialOverlayVertex.js.map +1 -0
- package/lib/materialTextureBindings.d.ts +13 -0
- package/lib/materialTextureBindings.js +26 -0
- package/lib/materialTextureBindings.js.map +1 -0
- package/lib/morphTargetDriversOf.d.ts +17 -0
- package/lib/morphTargetDriversOf.js +16 -0
- package/lib/morphTargetDriversOf.js.map +1 -0
- package/lib/motion-overlay/applyAutoMovieGhost.d.ts +25 -0
- package/lib/motion-overlay/applyAutoMovieGhost.js +42 -0
- package/lib/motion-overlay/applyAutoMovieGhost.js.map +1 -0
- package/lib/motion-overlay/createAutoMovieDriftMarkers.d.ts +27 -0
- package/lib/motion-overlay/createAutoMovieDriftMarkers.js +47 -0
- package/lib/motion-overlay/createAutoMovieDriftMarkers.js.map +1 -0
- package/lib/motion-overlay/createAutoMovieTargetMarker.d.ts +24 -0
- package/lib/motion-overlay/createAutoMovieTargetMarker.js +51 -0
- package/lib/motion-overlay/createAutoMovieTargetMarker.js.map +1 -0
- package/lib/motion-overlay/createAutoMovieTrail.d.ts +23 -0
- package/lib/motion-overlay/createAutoMovieTrail.js +35 -0
- package/lib/motion-overlay/createAutoMovieTrail.js.map +1 -0
- package/lib/motion-overlay/index.d.ts +4 -0
- package/lib/motion-overlay/index.js +5 -0
- package/lib/motion-overlay/index.js.map +1 -0
- package/lib/mountViewer.d.ts +20 -0
- package/lib/mountViewer.js +179 -0
- package/lib/mountViewer.js.map +1 -0
- package/lib/objectTransform.d.ts +14 -0
- package/lib/objectTransform.js +28 -0
- package/lib/objectTransform.js.map +1 -0
- package/lib/observeAutoMovieRendererFrame.d.ts +21 -0
- package/lib/observeAutoMovieRendererFrame.js +40 -0
- package/lib/observeAutoMovieRendererFrame.js.map +1 -0
- package/lib/overrideAutoMovieRenderModeMaterials.d.ts +17 -0
- package/lib/overrideAutoMovieRenderModeMaterials.js +61 -0
- package/lib/overrideAutoMovieRenderModeMaterials.js.map +1 -0
- package/lib/planAutoMovieShadowTextureTarget.d.ts +14 -0
- package/lib/planAutoMovieShadowTextureTarget.js +33 -0
- package/lib/planAutoMovieShadowTextureTarget.js.map +1 -0
- package/lib/propArticulation/index.d.ts +4 -0
- package/lib/propArticulation/index.js +5 -0
- package/lib/propArticulation/index.js.map +1 -0
- package/lib/publishViewerCompletedFrame.d.ts +18 -0
- package/lib/publishViewerCompletedFrame.js +19 -0
- package/lib/publishViewerCompletedFrame.js.map +1 -0
- package/lib/readAutoMovieCubeShadowDepth.d.ts +13 -0
- package/lib/readAutoMovieCubeShadowDepth.js +37 -0
- package/lib/readAutoMovieCubeShadowDepth.js.map +1 -0
- package/lib/readAutoMovieDeliveryCrop.d.ts +20 -0
- package/lib/readAutoMovieDeliveryCrop.js +36 -0
- package/lib/readAutoMovieDeliveryCrop.js.map +1 -0
- package/lib/readAutoMovieDisplayDestinationEncoding.d.ts +13 -0
- package/lib/readAutoMovieDisplayDestinationEncoding.js +52 -0
- package/lib/readAutoMovieDisplayDestinationEncoding.js.map +1 -0
- package/lib/readAutoMovieEnvironmentColorSpace.d.ts +13 -0
- package/lib/readAutoMovieEnvironmentColorSpace.js +18 -0
- package/lib/readAutoMovieEnvironmentColorSpace.js.map +1 -0
- package/lib/readAutoMovieFilmDisplayTextureResidency.d.ts +20 -0
- package/lib/readAutoMovieFilmDisplayTextureResidency.js +29 -0
- package/lib/readAutoMovieFilmDisplayTextureResidency.js.map +1 -0
- package/lib/readAutoMovieMaterialTextureSources.d.ts +23 -0
- package/lib/readAutoMovieMaterialTextureSources.js +94 -0
- package/lib/readAutoMovieMaterialTextureSources.js.map +1 -0
- package/lib/readAutoMovieRenderTextureTarget.d.ts +14 -0
- package/lib/readAutoMovieRenderTextureTarget.js +52 -0
- package/lib/readAutoMovieRenderTextureTarget.js.map +1 -0
- package/lib/readAutoMovieShadowLightSource.d.ts +14 -0
- package/lib/readAutoMovieShadowLightSource.js +23 -0
- package/lib/readAutoMovieShadowLightSource.js.map +1 -0
- package/lib/readAutoMovieShadowTextureTargets.d.ts +16 -0
- package/lib/readAutoMovieShadowTextureTargets.js +65 -0
- package/lib/readAutoMovieShadowTextureTargets.js.map +1 -0
- package/lib/readAutoMovieTextureSource.d.ts +20 -0
- package/lib/readAutoMovieTextureSource.js +214 -0
- package/lib/readAutoMovieTextureSource.js.map +1 -0
- package/lib/readAutoMovieTextureUploadFormat.d.ts +13 -0
- package/lib/readAutoMovieTextureUploadFormat.js +43 -0
- package/lib/readAutoMovieTextureUploadFormat.js.map +1 -0
- package/lib/readAutoMovieTransmissionTextureTarget.d.ts +19 -0
- package/lib/readAutoMovieTransmissionTextureTarget.js +42 -0
- package/lib/readAutoMovieTransmissionTextureTarget.js.map +1 -0
- package/lib/redrawViewerCompletedFrame.d.ts +28 -0
- package/lib/redrawViewerCompletedFrame.js +35 -0
- package/lib/redrawViewerCompletedFrame.js.map +1 -0
- package/lib/regenerateFormationSlot.d.ts +15 -0
- package/lib/regenerateFormationSlot.js +16 -0
- package/lib/regenerateFormationSlot.js.map +1 -0
- package/lib/regenerateInstanceSlot.d.ts +17 -0
- package/lib/regenerateInstanceSlot.js +18 -0
- package/lib/regenerateInstanceSlot.js.map +1 -0
- package/lib/releaseMountedViewer.d.ts +13 -0
- package/lib/releaseMountedViewer.js +24 -0
- package/lib/releaseMountedViewer.js.map +1 -0
- package/lib/releaseViewerRenderer.d.ts +13 -0
- package/lib/releaseViewerRenderer.js +26 -0
- package/lib/releaseViewerRenderer.js.map +1 -0
- package/lib/reliefWeightShading/RELIEF_WEIGHT_TARGET.d.ts +5 -0
- package/lib/reliefWeightShading/RELIEF_WEIGHT_TARGET.js +6 -0
- package/lib/reliefWeightShading/RELIEF_WEIGHT_TARGET.js.map +1 -0
- package/lib/reliefWeightShading/applyReliefWeights.d.ts +13 -0
- package/lib/reliefWeightShading/applyReliefWeights.js +17 -0
- package/lib/reliefWeightShading/applyReliefWeights.js.map +1 -0
- package/lib/reliefWeightShading/createReliefWeightShaderPatch.d.ts +18 -0
- package/lib/reliefWeightShading/createReliefWeightShaderPatch.js +21 -0
- package/lib/reliefWeightShading/createReliefWeightShaderPatch.js.map +1 -0
- package/lib/reliefWeightShading/index.d.ts +5 -0
- package/lib/reliefWeightShading/index.js +6 -0
- package/lib/reliefWeightShading/index.js.map +1 -0
- package/lib/reliefWeightShading/reliefWeightFragment.d.ts +12 -0
- package/lib/reliefWeightShading/reliefWeightFragment.js +24 -0
- package/lib/reliefWeightShading/reliefWeightFragment.js.map +1 -0
- package/lib/reliefWeightShading/reliefWeightVertex.d.ts +12 -0
- package/lib/reliefWeightShading/reliefWeightVertex.js +15 -0
- package/lib/reliefWeightShading/reliefWeightVertex.js.map +1 -0
- package/lib/renderAutoMovieFilmFrame.d.ts +22 -0
- package/lib/renderAutoMovieFilmFrame.js +33 -0
- package/lib/renderAutoMovieFilmFrame.js.map +1 -0
- package/lib/renderAutoMovieScenePass.d.ts +14 -0
- package/lib/renderAutoMovieScenePass.js +103 -0
- package/lib/renderAutoMovieScenePass.js.map +1 -0
- package/lib/renderCrossDissolve.d.ts +13 -0
- package/lib/renderCrossDissolve.js +26 -0
- package/lib/renderCrossDissolve.js.map +1 -0
- package/lib/renderCrossDissolveFrames.d.ts +15 -0
- package/lib/renderCrossDissolveFrames.js +30 -0
- package/lib/renderCrossDissolveFrames.js.map +1 -0
- package/lib/renderFadeToBlackFrame.d.ts +13 -0
- package/lib/renderFadeToBlackFrame.js +28 -0
- package/lib/renderFadeToBlackFrame.js.map +1 -0
- package/lib/reportAutoMovieResourceRetirement.d.ts +14 -0
- package/lib/reportAutoMovieResourceRetirement.js +47 -0
- package/lib/reportAutoMovieResourceRetirement.js.map +1 -0
- package/lib/resetAutoMovieSceneShadowTargets.d.ts +15 -0
- package/lib/resetAutoMovieSceneShadowTargets.js +83 -0
- package/lib/resetAutoMovieSceneShadowTargets.js.map +1 -0
- package/lib/resolveAutoMovieFilmBeautyComposition.d.ts +16 -0
- package/lib/resolveAutoMovieFilmBeautyComposition.js +31 -0
- package/lib/resolveAutoMovieFilmBeautyComposition.js.map +1 -0
- package/lib/resolveAutoMovieMaterialTexture.d.ts +17 -0
- package/lib/resolveAutoMovieMaterialTexture.js +77 -0
- package/lib/resolveAutoMovieMaterialTexture.js.map +1 -0
- package/lib/restoreAutoMovieRenderModeOnce.d.ts +12 -0
- package/lib/restoreAutoMovieRenderModeOnce.js +31 -0
- package/lib/restoreAutoMovieRenderModeOnce.js.map +1 -0
- package/lib/restoreAutoMovieRenderModeState.d.ts +15 -0
- package/lib/restoreAutoMovieRenderModeState.js +49 -0
- package/lib/restoreAutoMovieRenderModeState.js.map +1 -0
- package/lib/retireAutoMovieCubeShadowDepth.d.ts +13 -0
- package/lib/retireAutoMovieCubeShadowDepth.js +28 -0
- package/lib/retireAutoMovieCubeShadowDepth.js.map +1 -0
- package/lib/sampleFormationCycleMatrix.d.ts +15 -0
- package/lib/sampleFormationCycleMatrix.js +27 -0
- package/lib/sampleFormationCycleMatrix.js.map +1 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskBinding.d.ts +19 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskBinding.js +2 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskBinding.js.map +1 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskHandle.d.ts +42 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskHandle.js +2 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskHandle.js.map +1 -0
- package/lib/semanticMask/SCENE_MASK_KEY.d.ts +6 -0
- package/lib/semanticMask/SCENE_MASK_KEY.js +7 -0
- package/lib/semanticMask/SCENE_MASK_KEY.js.map +1 -0
- package/lib/semanticMask/applyAutoMovieSemanticMask.d.ts +34 -0
- package/lib/semanticMask/applyAutoMovieSemanticMask.js +177 -0
- package/lib/semanticMask/applyAutoMovieSemanticMask.js.map +1 -0
- package/lib/semanticMask/attachAutoMovieSemanticMask.d.ts +16 -0
- package/lib/semanticMask/attachAutoMovieSemanticMask.js +18 -0
- package/lib/semanticMask/attachAutoMovieSemanticMask.js.map +1 -0
- package/lib/semanticMask/auditAutoMovieSemanticMaskScene.d.ts +21 -0
- package/lib/semanticMask/auditAutoMovieSemanticMaskScene.js +27 -0
- package/lib/semanticMask/auditAutoMovieSemanticMaskScene.js.map +1 -0
- package/lib/semanticMask/autoMovieSemanticMaskOf.d.ts +14 -0
- package/lib/semanticMask/autoMovieSemanticMaskOf.js +14 -0
- package/lib/semanticMask/autoMovieSemanticMaskOf.js.map +1 -0
- package/lib/semanticMask/index.d.ts +7 -0
- package/lib/semanticMask/index.js +7 -0
- package/lib/semanticMask/index.js.map +1 -0
- package/lib/semanticMask/maskRoots.d.ts +23 -0
- package/lib/semanticMask/maskRoots.js +33 -0
- package/lib/semanticMask/maskRoots.js.map +1 -0
- package/lib/semanticMask/nearest.d.ts +14 -0
- package/lib/semanticMask/nearest.js +22 -0
- package/lib/semanticMask/nearest.js.map +1 -0
- package/lib/semanticMask/unresolvedOf.d.ts +14 -0
- package/lib/semanticMask/unresolvedOf.js +21 -0
- package/lib/semanticMask/unresolvedOf.js.map +1 -0
- package/lib/slotMatrix.d.ts +17 -0
- package/lib/slotMatrix.js +15 -0
- package/lib/slotMatrix.js.map +1 -0
- package/lib/subjectViewpoint/AutoMovieViewerSubjectKind.d.ts +9 -0
- package/lib/subjectViewpoint/AutoMovieViewerSubjectKind.js +2 -0
- package/lib/subjectViewpoint/AutoMovieViewerSubjectKind.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubject.d.ts +25 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubject.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubject.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectBounds.d.ts +26 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectBounds.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectBounds.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectLens.d.ts +20 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectLens.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectLens.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectPose.d.ts +39 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectPose.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectPose.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectView.d.ts +37 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectView.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectView.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.d.ts +55 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerTurntableOptions.d.ts +22 -0
- package/lib/subjectViewpoint/IAutoMovieViewerTurntableOptions.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerTurntableOptions.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerViewpoint.d.ts +28 -0
- package/lib/subjectViewpoint/IAutoMovieViewerViewpoint.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerViewpoint.js.map +1 -0
- package/lib/subjectViewpoint/applyAutoMovieViewerSubjectPose.d.ts +14 -0
- package/lib/subjectViewpoint/applyAutoMovieViewerSubjectPose.js +25 -0
- package/lib/subjectViewpoint/applyAutoMovieViewerSubjectPose.js.map +1 -0
- package/lib/subjectViewpoint/autoMovieViewerPoseFromHeading.d.ts +24 -0
- package/lib/subjectViewpoint/autoMovieViewerPoseFromHeading.js +33 -0
- package/lib/subjectViewpoint/autoMovieViewerPoseFromHeading.js.map +1 -0
- package/lib/subjectViewpoint/autoMovieViewerSubjectKey.d.ts +13 -0
- package/lib/subjectViewpoint/autoMovieViewerSubjectKey.js +17 -0
- package/lib/subjectViewpoint/autoMovieViewerSubjectKey.js.map +1 -0
- package/lib/subjectViewpoint/autoMovieViewerTurntableViewpoints.d.ts +14 -0
- package/lib/subjectViewpoint/autoMovieViewerTurntableViewpoints.js +41 -0
- package/lib/subjectViewpoint/autoMovieViewerTurntableViewpoints.js.map +1 -0
- package/lib/subjectViewpoint/captureAutoMovieViewerSubjectView.d.ts +14 -0
- package/lib/subjectViewpoint/captureAutoMovieViewerSubjectView.js +25 -0
- package/lib/subjectViewpoint/captureAutoMovieViewerSubjectView.js.map +1 -0
- package/lib/subjectViewpoint/frameAutoMovieViewerSubject.d.ts +16 -0
- package/lib/subjectViewpoint/frameAutoMovieViewerSubject.js +57 -0
- package/lib/subjectViewpoint/frameAutoMovieViewerSubject.js.map +1 -0
- package/lib/subjectViewpoint/index.d.ts +16 -0
- package/lib/subjectViewpoint/index.js +17 -0
- package/lib/subjectViewpoint/index.js.map +1 -0
- package/lib/subjectViewpoint/parseAutoMovieViewerSubjectKey.d.ts +13 -0
- package/lib/subjectViewpoint/parseAutoMovieViewerSubjectKey.js +49 -0
- package/lib/subjectViewpoint/parseAutoMovieViewerSubjectKey.js.map +1 -0
- package/lib/subsurfaceShading/SUBSURFACE_TARGET.d.ts +2 -0
- package/lib/subsurfaceShading/SUBSURFACE_TARGET.js +3 -0
- package/lib/subsurfaceShading/SUBSURFACE_TARGET.js.map +1 -0
- package/lib/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.d.ts +5 -0
- package/lib/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.js +3 -0
- package/lib/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.js.map +1 -0
- package/lib/subsurfaceShading/applySubsurfaceShading.d.ts +17 -0
- package/lib/subsurfaceShading/applySubsurfaceShading.js +34 -0
- package/lib/subsurfaceShading/applySubsurfaceShading.js.map +1 -0
- package/lib/subsurfaceShading/getSubsurfaceTexture.d.ts +13 -0
- package/lib/subsurfaceShading/getSubsurfaceTexture.js +36 -0
- package/lib/subsurfaceShading/getSubsurfaceTexture.js.map +1 -0
- package/lib/subsurfaceShading/index.d.ts +6 -0
- package/lib/subsurfaceShading/index.js +7 -0
- package/lib/subsurfaceShading/index.js.map +1 -0
- package/lib/subsurfaceShading/subsurfaceFragment.d.ts +12 -0
- package/lib/subsurfaceShading/subsurfaceFragment.js +26 -0
- package/lib/subsurfaceShading/subsurfaceFragment.js.map +1 -0
- package/lib/subsurfaceShading/subsurfacePhysicalChunk.d.ts +12 -0
- package/lib/subsurfaceShading/subsurfacePhysicalChunk.js +34 -0
- package/lib/subsurfaceShading/subsurfacePhysicalChunk.js.map +1 -0
- package/lib/subsurfaceShading/subsurfaceTable.d.ts +12 -0
- package/lib/subsurfaceShading/subsurfaceTable.js +45 -0
- package/lib/subsurfaceShading/subsurfaceTable.js.map +1 -0
- package/lib/textureBindingAsset.d.ts +13 -0
- package/lib/textureBindingAsset.js +15 -0
- package/lib/textureBindingAsset.js.map +1 -0
- package/lib/transport/AutoMovieViewerTransport.d.ts +216 -0
- package/lib/transport/AutoMovieViewerTransport.js +243 -0
- package/lib/transport/AutoMovieViewerTransport.js.map +1 -0
- package/lib/transport/configureAutoMovieReviewControls.d.ts +27 -0
- package/lib/transport/configureAutoMovieReviewControls.js +35 -0
- package/lib/transport/configureAutoMovieReviewControls.js.map +1 -0
- package/lib/transport/index.d.ts +5 -0
- package/lib/transport/index.js +6 -0
- package/lib/transport/index.js.map +1 -0
- package/lib/transport/mountAutoMovieTransportControls.d.ts +64 -0
- package/lib/transport/mountAutoMovieTransportControls.js +124 -0
- package/lib/transport/mountAutoMovieTransportControls.js.map +1 -0
- package/lib/transport/parseAutoMovieInspectionView.d.ts +20 -0
- package/lib/transport/parseAutoMovieInspectionView.js +29 -0
- package/lib/transport/parseAutoMovieInspectionView.js.map +1 -0
- package/lib/transport/readAutoMovieReviewInterval.d.ts +23 -0
- package/lib/transport/readAutoMovieReviewInterval.js +39 -0
- package/lib/transport/readAutoMovieReviewInterval.js.map +1 -0
- package/lib/updateAutoMovieComparisonCamera.d.ts +27 -0
- package/lib/updateAutoMovieComparisonCamera.js +79 -0
- package/lib/updateAutoMovieComparisonCamera.js.map +1 -0
- package/lib/vector.d.ts +17 -0
- package/lib/vector.js +16 -0
- package/lib/vector.js.map +1 -0
- package/package.json +51 -3
- package/src/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.ts +4 -0
- package/src/AutoMovieDisplayCompositor.ts +379 -0
- package/src/AutoMovieDissolveCompositorState.ts +9 -0
- package/src/AutoMovieEnvironmentTextureOwnership.ts +262 -0
- package/src/AutoMovieFadeCompositorState.ts +9 -0
- package/src/AutoMovieFilmBeautyComposition.ts +24 -0
- package/src/AutoMovieGeometryPhysicalVertices.ts +187 -0
- package/src/AutoMoviePlayer.ts +281 -0
- package/src/AutoMovieRenderModeMesh.ts +14 -0
- package/src/AutoMovieResourceRetirementScope.ts +203 -0
- package/src/AutoMovieSkinBlend.ts +251 -0
- package/src/AutoMovieSkinPose.ts +453 -0
- package/src/AutoMovieSkinnedMesh.ts +333 -0
- package/src/AutoMovieTextureCache.ts +389 -0
- package/src/AutoMovieTextureCacheAllocationAuthority.ts +516 -0
- package/src/DEPTH_NORMALIZATION_RANGE.ts +4 -0
- package/src/EDGE_SHELL_NAME.ts +2 -0
- package/src/EDGE_WIDTH.ts +4 -0
- package/src/IApplyAutoMovieSectionPlanesProps.ts +32 -0
- package/src/IAutoMovieAnalysisOverlayObject.ts +53 -0
- package/src/IAutoMovieBuiltPropArticulation.ts +36 -0
- package/src/IAutoMovieEffectViewerObject.ts +32 -0
- package/src/IAutoMovieEffectViewerStats.ts +21 -0
- package/src/IAutoMovieExpressionTarget.ts +22 -0
- package/src/IAutoMovieFilmBeautyLayer.ts +12 -0
- package/src/IAutoMovieFluidSprayObject.ts +54 -0
- package/src/IAutoMovieFluidSurfaceObject.ts +41 -0
- package/src/IAutoMovieFormationCadence.ts +20 -0
- package/src/IAutoMovieFormationCycle.ts +44 -0
- package/src/IAutoMovieFormationCycleTake.ts +52 -0
- package/src/IAutoMovieFormationCycleUniforms.ts +26 -0
- package/src/IAutoMovieFormationViewerObject.ts +74 -0
- package/src/IAutoMovieFormationViewerStats.ts +38 -0
- package/src/IAutoMovieImportedModelOptions.ts +51 -0
- package/src/IAutoMovieInstanceSetViewerObject.ts +47 -0
- package/src/IAutoMovieInstanceSetViewerStats.ts +20 -0
- package/src/IAutoMovieInstancedGeometry.ts +26 -0
- package/src/IAutoMovieInstancedModelRepresentation.ts +20 -0
- package/src/IAutoMovieMaterialLibrary.ts +44 -0
- package/src/IAutoMovieModelObject.ts +61 -0
- package/src/IAutoMoviePlantingObject.ts +39 -0
- package/src/IAutoMovieRenderModeHandle.ts +47 -0
- package/src/IAutoMovieRendererEnvironmentHandle.ts +22 -0
- package/src/IAutoMovieRigLocalTransform.ts +16 -0
- package/src/IAutoMovieSceneObject.ts +29 -0
- package/src/IAutoMovieSectionRenderer.ts +17 -0
- package/src/IAutoMovieShadowTextureHost.ts +19 -0
- package/src/IAutoMovieSoftBodyObject.ts +49 -0
- package/src/IAutoMovieSpringAxisSettlement.ts +21 -0
- package/src/IAutoMovieSpringConfig.ts +25 -0
- package/src/IAutoMovieTextureLoader.ts +14 -0
- package/src/IAutoMovieTextureResolver.ts +19 -0
- package/src/IAutoMovieViewerCameraDepthPrecisionReport.ts +45 -0
- package/src/IAutoMovieViewerCompletedFrame.ts +62 -0
- package/src/IAutoMovieViewerDisplayMetadata.ts +26 -0
- package/src/IAutoMovieViewerFrame.ts +26 -0
- package/src/IAutoMovieViewerHandle.ts +45 -0
- package/src/IAutoMovieViewerSnapshot.ts +21 -0
- package/src/IAutoMovieViewerSnapshotOptions.ts +15 -0
- package/src/IAutoMovieViewerSnapshotRenderer.ts +36 -0
- package/src/IBakeFormationCycleProps.ts +36 -0
- package/src/IBuildAutoMovieMaterialLibraryProps.ts +34 -0
- package/src/IBuildInstancedFormationProps.ts +45 -0
- package/src/IBuildInstancedInstanceSetProps.ts +36 -0
- package/src/IBuildPlantingObjectProps.ts +30 -0
- package/src/IBuildPropArticulationProps.ts +35 -0
- package/src/IBuildSoftBodyObjectProps.ts +24 -0
- package/src/IChunkObject.ts +42 -0
- package/src/IFormationTierRepresentation.ts +18 -0
- package/src/IMaterialShaderPatch.ts +30 -0
- package/src/IMountViewerOptions.ts +69 -0
- package/src/ISlotException.ts +31 -0
- package/src/IViewerCameraStateSnapshot.ts +60 -0
- package/src/POSE_OVERLAY_NAME.ts +2 -0
- package/src/SPACE_GROUP_NAME.ts +12 -0
- package/src/addMaterialShaderPatch.ts +42 -0
- package/src/analysisOverlay.ts +3 -0
- package/src/applyAutoMovieDeliveryCrop.ts +51 -0
- package/src/applyAutoMovieRigLocals.ts +111 -0
- package/src/applyAutoMovieSectionPlanes.ts +73 -0
- package/src/applyAutoMovieShadowParticipation.ts +69 -0
- package/src/applyCaptureCanvasSize.ts +30 -0
- package/src/applyDepthMode.ts +101 -0
- package/src/applyEdgeMode.ts +153 -0
- package/src/applyExpression.ts +203 -0
- package/src/applyFormationCycleCadence.ts +39 -0
- package/src/applyFormationCycleMaterial.ts +121 -0
- package/src/applyLightMotion.ts +58 -0
- package/src/applyLightState.ts +61 -0
- package/src/applyMaskMode.ts +130 -0
- package/src/applyMaterialShaderPatches.ts +28 -0
- package/src/applyObjectMotion.ts +44 -0
- package/src/applyObjectMotions.ts +28 -0
- package/src/applyPose.ts +127 -0
- package/src/applyPoseMode.ts +115 -0
- package/src/applyRenderMode.ts +248 -0
- package/src/applyRendererEnvironment.ts +141 -0
- package/src/applySampledObjectMotion.ts +79 -0
- package/src/applySceneEnvironment.ts +72 -0
- package/src/applySceneFog.ts +49 -0
- package/src/applySemanticMaskMode.ts +50 -0
- package/src/applyTransform.ts +24 -0
- package/src/assertAutoMovieSceneShadowProfile.ts +45 -0
- package/src/assertAutoMovieViewerCameraDepthPrecision.ts +35 -0
- package/src/audio/IAutoMovieAudioCue.ts +32 -0
- package/src/audio/index.ts +3 -0
- package/src/audio/planAutoMovieAudioPlayback.ts +87 -0
- package/src/audio/playAutoMovieAudioCues.ts +76 -0
- package/src/autoMovieAnalysisRampColor.ts +30 -0
- package/src/bakeFormationCycle.ts +221 -0
- package/src/bindFormationTierCycle.ts +62 -0
- package/src/buildAnalysisOverlayObject.ts +163 -0
- package/src/buildAutoMovieConstruction.ts +114 -0
- package/src/buildAutoMovieMaterialLibrary.ts +150 -0
- package/src/buildFluidSprayObject.ts +96 -0
- package/src/buildFluidSurfaceObject.ts +127 -0
- package/src/buildGeometry.ts +149 -0
- package/src/buildInstancedEffect.ts +152 -0
- package/src/buildInstancedFormation.ts +599 -0
- package/src/buildInstancedInstanceSet.ts +637 -0
- package/src/buildLight.ts +129 -0
- package/src/buildMaterial.ts +215 -0
- package/src/buildModel.ts +333 -0
- package/src/buildPlantingObject.ts +234 -0
- package/src/buildPropArticulation.ts +181 -0
- package/src/buildScene.ts +136 -0
- package/src/buildSoftBodyObject.ts +191 -0
- package/src/buildSpace.ts +2 -0
- package/src/buildSpaceObject.ts +100 -0
- package/src/cameraDepthPrecision.ts +3 -0
- package/src/captureAutoMovieFramebufferRestore.ts +84 -0
- package/src/captureAutoMovieMetricFrame.ts +111 -0
- package/src/captureSize.ts +1 -0
- package/src/captureViewerSnapshot.ts +37 -0
- package/src/collectAutoMovieOwnedResources.ts +73 -0
- package/src/collectAutoMovieRenderModeMeshes.ts +32 -0
- package/src/constructAutoMovieOwnedResources.ts +47 -0
- package/src/createAutoMovieClosedSphereGeometry.ts +113 -0
- package/src/createAutoMovieMetricOrthographicCamera.ts +95 -0
- package/src/createAutoMoviePerformanceOverlay.ts +239 -0
- package/src/createAutoMoviePhysicalPoseAdapter.ts +125 -0
- package/src/createAutoMovieResourceRetirement.ts +59 -0
- package/src/createAutoMovieSurfaceAppearance.ts +260 -0
- package/src/createAutoMovieSurfaceVertexAdapter.ts +66 -0
- package/src/createFormationCycleShadowMaterials.ts +111 -0
- package/src/createFormationRepresentations.ts +101 -0
- package/src/createImportedModelObject.ts +67 -0
- package/src/createViewerCameraState.ts +291 -0
- package/src/createViewerDisplayClock.ts +48 -0
- package/src/createViewerDisplayPublication.ts +59 -0
- package/src/createViewerDisplaySave.ts +224 -0
- package/src/createViewerFrameControl.ts +130 -0
- package/src/createViewerViewportResize.ts +58 -0
- package/src/decodeAutoMovieImage.ts +152 -0
- package/src/defaultMaterial.ts +21 -0
- package/src/deliveryCrop.ts +2 -0
- package/src/describeFormationTextureSources.ts +54 -0
- package/src/detailNormalShading/DETAIL_NORMAL_TARGET.ts +5 -0
- package/src/detailNormalShading/applyDetailNormal.ts +42 -0
- package/src/detailNormalShading/createDetailNormalShaderPatch.ts +71 -0
- package/src/detailNormalShading/detailNormalFragment.ts +27 -0
- package/src/detailNormalShading/detailNormalVertex.ts +24 -0
- package/src/detailNormalShading/index.ts +6 -0
- package/src/detailNormalShading/spliceTangentNormal.ts +39 -0
- package/src/disposeCrossDissolve.ts +25 -0
- package/src/disposeFadeToBlack.ts +25 -0
- package/src/disposeFormationRepresentations.ts +59 -0
- package/src/dualQuaternionSkinning/applyDualQuaternionSkinning.ts +24 -0
- package/src/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.ts +23 -0
- package/src/dualQuaternionSkinning/dualQuaternionSkinningOf.ts +19 -0
- package/src/dualQuaternionSkinning/dualQuaternionSkinningVertex.ts +146 -0
- package/src/dualQuaternionSkinning/index.ts +4 -0
- package/src/effect.ts +4 -0
- package/src/evaluateAutoMovieViewerCameraDepthPrecision.ts +114 -0
- package/src/flattenInstancedModel.ts +127 -0
- package/src/flattenInstancedObject.ts +33 -0
- package/src/flattenRigidParts.ts +174 -0
- package/src/fluidSurface.ts +4 -0
- package/src/formation/index.ts +22 -0
- package/src/formationCycle/index.ts +17 -0
- package/src/formationCycleCadence.ts +55 -0
- package/src/formationCycleGait.ts +27 -0
- package/src/formationCycleOf.ts +25 -0
- package/src/formationCyclePosition.ts +34 -0
- package/src/formationCycleStride.ts +57 -0
- package/src/formationGeometry/index.ts +5 -0
- package/src/formationSpacingOffset.ts +65 -0
- package/src/guardAutoMovieRenderModeRetirement.ts +66 -0
- package/src/guardAutoMovieSceneShadowRetirement.ts +50 -0
- package/src/human-polygon/AutoMovieHumanCartoon.ts +109 -0
- package/src/human-polygon/AutoMovieHumanPolygon.ts +160 -0
- package/src/human-polygon/applyHumanPolygonPose.ts +59 -0
- package/src/human-polygon/buildHumanCartoonFace.ts +466 -0
- package/src/human-polygon/buildHumanPolygon.ts +347 -0
- package/src/human-polygon/buildHumanPolygonModule.ts +300 -0
- package/src/human-polygon/buildHumanPolygonParts.ts +254 -0
- package/src/human-polygon/createAutoMovieHumanPolygonFigure.ts +120 -0
- package/src/human-polygon/createHumanPolygonPalette.ts +169 -0
- package/src/human-polygon/humanPolygonSections.ts +70 -0
- package/src/human-polygon/humanPolygonTopology.ts +147 -0
- package/src/human-polygon/index.ts +5 -0
- package/src/human-polygon/mountHumanCartoonFace.ts +92 -0
- package/src/importedModel/index.ts +4 -0
- package/src/index.ts +139 -0
- package/src/instanceSet/index.ts +6 -0
- package/src/instancedModelParts.ts +25 -0
- package/src/invalidateAutoMovieSceneShadowPrograms.ts +28 -0
- package/src/invalidateAutoMovieSkinnedPose.ts +31 -0
- package/src/mapImportedHumanoidBones.ts +73 -0
- package/src/maskColor.ts +17 -0
- package/src/matchesAutoMovieShadowTextureProfile.ts +34 -0
- package/src/materialOverlayShading/IMaterialOverlayShading.ts +32 -0
- package/src/materialOverlayShading/IMaterialOverlayShape.ts +18 -0
- package/src/materialOverlayShading/applyMaterialOverlays.ts +88 -0
- package/src/materialOverlayShading/getOverlayFlatNormal.ts +25 -0
- package/src/materialOverlayShading/index.ts +6 -0
- package/src/materialOverlayShading/materialOverlayFragment.ts +85 -0
- package/src/materialOverlayShading/materialOverlayVertex.ts +50 -0
- package/src/materialTextureBindings.ts +44 -0
- package/src/morphTargetDriversOf.ts +25 -0
- package/src/motion-overlay/applyAutoMovieGhost.ts +46 -0
- package/src/motion-overlay/createAutoMovieDriftMarkers.ts +59 -0
- package/src/motion-overlay/createAutoMovieTargetMarker.ts +62 -0
- package/src/motion-overlay/createAutoMovieTrail.ts +44 -0
- package/src/motion-overlay/index.ts +4 -0
- package/src/mountViewer.ts +248 -0
- package/src/objectTransform.ts +42 -0
- package/src/observeAutoMovieRendererFrame.ts +47 -0
- package/src/overrideAutoMovieRenderModeMaterials.ts +87 -0
- package/src/planAutoMovieShadowTextureTarget.ts +55 -0
- package/src/propArticulation/index.ts +4 -0
- package/src/publishViewerCompletedFrame.ts +31 -0
- package/src/readAutoMovieCubeShadowDepth.ts +57 -0
- package/src/readAutoMovieDeliveryCrop.ts +41 -0
- package/src/readAutoMovieDisplayDestinationEncoding.ts +98 -0
- package/src/readAutoMovieEnvironmentColorSpace.ts +20 -0
- package/src/readAutoMovieFilmDisplayTextureResidency.ts +52 -0
- package/src/readAutoMovieMaterialTextureSources.ts +154 -0
- package/src/readAutoMovieRenderTextureTarget.ts +70 -0
- package/src/readAutoMovieShadowLightSource.ts +40 -0
- package/src/readAutoMovieShadowTextureTargets.ts +123 -0
- package/src/readAutoMovieTextureSource.ts +262 -0
- package/src/readAutoMovieTextureUploadFormat.ts +45 -0
- package/src/readAutoMovieTransmissionTextureTarget.ts +57 -0
- package/src/redrawViewerCompletedFrame.ts +67 -0
- package/src/regenerateFormationSlot.ts +26 -0
- package/src/regenerateInstanceSlot.ts +28 -0
- package/src/releaseMountedViewer.ts +35 -0
- package/src/releaseViewerRenderer.ts +31 -0
- package/src/reliefWeightShading/RELIEF_WEIGHT_TARGET.ts +5 -0
- package/src/reliefWeightShading/applyReliefWeights.ts +21 -0
- package/src/reliefWeightShading/createReliefWeightShaderPatch.ts +50 -0
- package/src/reliefWeightShading/index.ts +5 -0
- package/src/reliefWeightShading/reliefWeightFragment.ts +40 -0
- package/src/reliefWeightShading/reliefWeightVertex.ts +23 -0
- package/src/renderAutoMovieFilmFrame.ts +63 -0
- package/src/renderAutoMovieScenePass.ts +121 -0
- package/src/renderCrossDissolve.ts +50 -0
- package/src/renderCrossDissolveFrames.ts +41 -0
- package/src/renderFadeToBlackFrame.ts +37 -0
- package/src/reportAutoMovieResourceRetirement.ts +48 -0
- package/src/resetAutoMovieSceneShadowTargets.ts +106 -0
- package/src/resolveAutoMovieFilmBeautyComposition.ts +52 -0
- package/src/resolveAutoMovieMaterialTexture.ts +113 -0
- package/src/restoreAutoMovieRenderModeOnce.ts +30 -0
- package/src/restoreAutoMovieRenderModeState.ts +71 -0
- package/src/retireAutoMovieCubeShadowDepth.ts +33 -0
- package/src/sampleFormationCycleMatrix.ts +70 -0
- package/src/semanticMask/IAutoMovieSemanticMaskBinding.ts +24 -0
- package/src/semanticMask/IAutoMovieSemanticMaskHandle.ts +45 -0
- package/src/semanticMask/SCENE_MASK_KEY.ts +6 -0
- package/src/semanticMask/applyAutoMovieSemanticMask.ts +262 -0
- package/src/semanticMask/attachAutoMovieSemanticMask.ts +27 -0
- package/src/semanticMask/auditAutoMovieSemanticMaskScene.ts +50 -0
- package/src/semanticMask/autoMovieSemanticMaskOf.ts +24 -0
- package/src/semanticMask/index.ts +7 -0
- package/src/semanticMask/maskRoots.ts +67 -0
- package/src/semanticMask/nearest.ts +29 -0
- package/src/semanticMask/unresolvedOf.ts +34 -0
- package/src/slotMatrix.ts +38 -0
- package/src/subjectViewpoint/AutoMovieViewerSubjectKind.ts +23 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubject.ts +28 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectBounds.ts +19 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectLens.ts +21 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectPose.ts +36 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectView.ts +42 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.ts +67 -0
- package/src/subjectViewpoint/IAutoMovieViewerTurntableOptions.ts +24 -0
- package/src/subjectViewpoint/IAutoMovieViewerViewpoint.ts +31 -0
- package/src/subjectViewpoint/applyAutoMovieViewerSubjectPose.ts +31 -0
- package/src/subjectViewpoint/autoMovieViewerPoseFromHeading.ts +43 -0
- package/src/subjectViewpoint/autoMovieViewerSubjectKey.ts +20 -0
- package/src/subjectViewpoint/autoMovieViewerTurntableViewpoints.ts +54 -0
- package/src/subjectViewpoint/captureAutoMovieViewerSubjectView.ts +34 -0
- package/src/subjectViewpoint/frameAutoMovieViewerSubject.ts +77 -0
- package/src/subjectViewpoint/index.ts +16 -0
- package/src/subjectViewpoint/parseAutoMovieViewerSubjectKey.ts +59 -0
- package/src/subsurfaceShading/SUBSURFACE_TARGET.ts +3 -0
- package/src/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.ts +2 -0
- package/src/subsurfaceShading/applySubsurfaceShading.ts +38 -0
- package/src/subsurfaceShading/getSubsurfaceTexture.ts +46 -0
- package/src/subsurfaceShading/index.ts +6 -0
- package/src/subsurfaceShading/subsurfaceFragment.ts +30 -0
- package/src/subsurfaceShading/subsurfacePhysicalChunk.ts +43 -0
- package/src/subsurfaceShading/subsurfaceTable.ts +47 -0
- package/src/textureBindingAsset.ts +16 -0
- package/src/transport/AutoMovieViewerTransport.ts +356 -0
- package/src/transport/configureAutoMovieReviewControls.ts +44 -0
- package/src/transport/index.ts +5 -0
- package/src/transport/mountAutoMovieTransportControls.ts +254 -0
- package/src/transport/parseAutoMovieInspectionView.ts +35 -0
- package/src/transport/readAutoMovieReviewInterval.ts +45 -0
- package/src/updateAutoMovieComparisonCamera.ts +92 -0
- package/src/vector.ts +20 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
/**
|
|
3
|
+
* Transfer detached, auto-updating Perspective/Orthographic cameras through
|
|
4
|
+
* their public native lens/transform API, including film and view offsets.
|
|
5
|
+
* Parented, manual-matrix and custom-projection cameras are explicitly refused:
|
|
6
|
+
* another owner must transfer those relationships rather than guess them.
|
|
7
|
+
* All unknown state is validated before the original camera is mutated.
|
|
8
|
+
*
|
|
9
|
+
* @evidence contracts/development/implementation.md#principled-implementation Captures native detached auto-updating lens/TRS/view state and admits unknown input on a temporary camera clone, requiring finite dimensions, nondegenerate transforms and exact native projection parity before copy; custom/manual/parented cameras refuse, while non-unit quaternions are not normalized and only resulting finite invertibility is tested.
|
|
10
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Keeps capture and restore with the same native camera/lens owner, preserving view offsets/film settings instead of applying an unexplained raw matrix snapshot; a named transfer record describes existing fields without another projection solver.
|
|
11
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses actual native projection recomputation and exact parity rather than fixture lens defaults, patched matrix methods or tolerance-based acceptance of an unsupported custom projection.
|
|
12
|
+
* @evidence contracts/development/common.md#meaningful-documentation States detached/auto-updating supported classes, refused custom state and admission-before-mutation; the transfer record's field docs give vector/matrix conventions, layer mask and lens/view units.
|
|
13
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Each capture/restore reads fixed-size lens/vector/matrix state and one temporary camera clone, constant adapter work/storage; camera.clone is recursive by native default, so a camera with children may additionally clone its child subtree despite parentless admission.
|
|
14
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Capture/restore share native lens semantics and one borrowed camera identity; mutable lens/pose/view input requires new snapshots/candidate validation, with no cached custom projection or alternate math.
|
|
15
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned closures retain the borrowed camera and each capture transfers copied scalar/array/view state; temporary clones acquire no GPU handle themselves but may retain cloned child references until unreachable. The original camera/children remain host-owned and no task starts.
|
|
16
|
+
*/
|
|
17
|
+
export function createViewerCameraState(camera) {
|
|
18
|
+
const supported = () => {
|
|
19
|
+
if (!(camera instanceof THREE.PerspectiveCamera ||
|
|
20
|
+
camera instanceof THREE.OrthographicCamera) ||
|
|
21
|
+
camera.parent !== null ||
|
|
22
|
+
!camera.matrixAutoUpdate ||
|
|
23
|
+
!camera.matrixWorldAutoUpdate)
|
|
24
|
+
throw new Error("Camera transfer requires a detached auto-updating Perspective/Orthographic camera.");
|
|
25
|
+
return camera;
|
|
26
|
+
};
|
|
27
|
+
const capture = () => {
|
|
28
|
+
const owned = supported();
|
|
29
|
+
const natural = owned.clone();
|
|
30
|
+
natural.updateProjectionMatrix();
|
|
31
|
+
if (!natural.projectionMatrix.elements.every((value, index) => value === owned.projectionMatrix.elements[index]))
|
|
32
|
+
throw new Error("A custom projection requires its original projection owner.");
|
|
33
|
+
return {
|
|
34
|
+
type: owned.type,
|
|
35
|
+
position: owned.position.toArray(),
|
|
36
|
+
quaternion: owned.quaternion.toArray(),
|
|
37
|
+
scale: owned.scale.toArray(),
|
|
38
|
+
up: owned.up.toArray(),
|
|
39
|
+
layers: owned.layers.mask,
|
|
40
|
+
projection: owned.projectionMatrix.toArray(),
|
|
41
|
+
view: owned.view === null ? null : { ...owned.view },
|
|
42
|
+
lens: owned instanceof THREE.PerspectiveCamera
|
|
43
|
+
? {
|
|
44
|
+
kind: "perspective",
|
|
45
|
+
fov: owned.fov,
|
|
46
|
+
aspect: owned.aspect,
|
|
47
|
+
near: owned.near,
|
|
48
|
+
far: owned.far,
|
|
49
|
+
zoom: owned.zoom,
|
|
50
|
+
filmGauge: owned.filmGauge,
|
|
51
|
+
filmOffset: owned.filmOffset,
|
|
52
|
+
focus: owned.focus,
|
|
53
|
+
}
|
|
54
|
+
: {
|
|
55
|
+
kind: "orthographic",
|
|
56
|
+
left: owned.left,
|
|
57
|
+
right: owned.right,
|
|
58
|
+
top: owned.top,
|
|
59
|
+
bottom: owned.bottom,
|
|
60
|
+
near: owned.near,
|
|
61
|
+
far: owned.far,
|
|
62
|
+
zoom: owned.zoom,
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const restore = (state) => {
|
|
67
|
+
const owned = supported();
|
|
68
|
+
if (state === null ||
|
|
69
|
+
typeof state !== "object" ||
|
|
70
|
+
Reflect.get(state, "type") !== owned.type)
|
|
71
|
+
throw new Error("Camera transfer changed camera type.");
|
|
72
|
+
const read = (name, length) => {
|
|
73
|
+
const value = Reflect.get(state, name);
|
|
74
|
+
if (!Array.isArray(value) ||
|
|
75
|
+
value.length !== length ||
|
|
76
|
+
!value.every((part) => typeof part === "number" && Number.isFinite(part)))
|
|
77
|
+
throw new Error("Camera transfer has no finite " + name + ".");
|
|
78
|
+
return value;
|
|
79
|
+
};
|
|
80
|
+
const position = read("position", 3), quaternion = read("quaternion", 4);
|
|
81
|
+
const scale = read("scale", 3), up = read("up", 3), projection = read("projection", 16);
|
|
82
|
+
const determinant = new THREE.Matrix4()
|
|
83
|
+
.fromArray(projection)
|
|
84
|
+
.determinant();
|
|
85
|
+
if (!(Math.hypot(...quaternion) > 0) ||
|
|
86
|
+
!(Math.hypot(...up) > 0) ||
|
|
87
|
+
scale.some((value) => value === 0) ||
|
|
88
|
+
determinant === 0 ||
|
|
89
|
+
!Number.isFinite(determinant))
|
|
90
|
+
throw new Error("Camera transfer has a degenerate pose/projection.");
|
|
91
|
+
const layers = Reflect.get(state, "layers");
|
|
92
|
+
if (typeof layers !== "number" ||
|
|
93
|
+
!Number.isInteger(layers) ||
|
|
94
|
+
layers < -2147483648 ||
|
|
95
|
+
layers > 4294967295)
|
|
96
|
+
throw new Error("Camera transfer has no valid layer mask.");
|
|
97
|
+
const lens = Reflect.get(state, "lens");
|
|
98
|
+
if (lens === null || typeof lens !== "object")
|
|
99
|
+
throw new Error("Camera transfer has no lens.");
|
|
100
|
+
const number = (name) => {
|
|
101
|
+
const value = Reflect.get(lens, name);
|
|
102
|
+
if (typeof value !== "number" || !Number.isFinite(value))
|
|
103
|
+
throw new Error("Camera transfer has no finite " + name + ".");
|
|
104
|
+
return value;
|
|
105
|
+
};
|
|
106
|
+
const candidate = owned.clone();
|
|
107
|
+
if (candidate instanceof THREE.PerspectiveCamera) {
|
|
108
|
+
if (Reflect.get(lens, "kind") !== "perspective")
|
|
109
|
+
throw new Error("Camera transfer changed projection type.");
|
|
110
|
+
const [fov, aspect, near, far, zoom, filmGauge, filmOffset, focus,] = [
|
|
111
|
+
"fov",
|
|
112
|
+
"aspect",
|
|
113
|
+
"near",
|
|
114
|
+
"far",
|
|
115
|
+
"zoom",
|
|
116
|
+
"filmGauge",
|
|
117
|
+
"filmOffset",
|
|
118
|
+
"focus",
|
|
119
|
+
].map(number);
|
|
120
|
+
if (!(fov > 0 &&
|
|
121
|
+
fov < 180 &&
|
|
122
|
+
aspect > 0 &&
|
|
123
|
+
near > 0 &&
|
|
124
|
+
far > near &&
|
|
125
|
+
zoom > 0 &&
|
|
126
|
+
filmGauge > 0 &&
|
|
127
|
+
focus > 0))
|
|
128
|
+
throw new Error("Camera transfer lens is invalid.");
|
|
129
|
+
Object.assign(candidate, {
|
|
130
|
+
fov,
|
|
131
|
+
aspect,
|
|
132
|
+
near,
|
|
133
|
+
far,
|
|
134
|
+
zoom,
|
|
135
|
+
filmGauge,
|
|
136
|
+
filmOffset,
|
|
137
|
+
focus,
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
if (Reflect.get(lens, "kind") !== "orthographic")
|
|
142
|
+
throw new Error("Camera transfer changed projection type.");
|
|
143
|
+
const [left, right, top, bottom, near, far, zoom] = [
|
|
144
|
+
"left",
|
|
145
|
+
"right",
|
|
146
|
+
"top",
|
|
147
|
+
"bottom",
|
|
148
|
+
"near",
|
|
149
|
+
"far",
|
|
150
|
+
"zoom",
|
|
151
|
+
].map(number);
|
|
152
|
+
if (!(right > left && top > bottom && near >= 0 && far > near && zoom > 0))
|
|
153
|
+
throw new Error("Camera transfer lens is invalid.");
|
|
154
|
+
Object.assign(candidate, { left, right, top, bottom, near, far, zoom });
|
|
155
|
+
}
|
|
156
|
+
const view = Reflect.get(state, "view");
|
|
157
|
+
if (view !== null) {
|
|
158
|
+
if (typeof view !== "object")
|
|
159
|
+
throw new Error("Camera transfer has no view offset.");
|
|
160
|
+
const enabled = Reflect.get(view, "enabled");
|
|
161
|
+
const values = [
|
|
162
|
+
"fullWidth",
|
|
163
|
+
"fullHeight",
|
|
164
|
+
"offsetX",
|
|
165
|
+
"offsetY",
|
|
166
|
+
"width",
|
|
167
|
+
"height",
|
|
168
|
+
].map((key) => {
|
|
169
|
+
const value = Reflect.get(view, key);
|
|
170
|
+
if (typeof value !== "number" || !Number.isFinite(value))
|
|
171
|
+
throw new Error("Camera transfer has no finite view " + key + ".");
|
|
172
|
+
return value;
|
|
173
|
+
});
|
|
174
|
+
const [fullWidth, fullHeight, offsetX, offsetY, width, height] = values;
|
|
175
|
+
if (typeof enabled !== "boolean" ||
|
|
176
|
+
!(fullWidth > 0 && fullHeight > 0 && width > 0 && height > 0))
|
|
177
|
+
throw new Error("Camera transfer view dimensions are invalid.");
|
|
178
|
+
candidate.setViewOffset(fullWidth, fullHeight, offsetX, offsetY, width, height);
|
|
179
|
+
candidate.view.enabled = enabled;
|
|
180
|
+
}
|
|
181
|
+
else
|
|
182
|
+
candidate.view = null;
|
|
183
|
+
// setViewOffset also writes Perspective.aspect. A later native resize may
|
|
184
|
+
// legitimately have changed that lens while preserving the crop window.
|
|
185
|
+
if (candidate instanceof THREE.PerspectiveCamera)
|
|
186
|
+
candidate.aspect = number("aspect");
|
|
187
|
+
candidate.updateProjectionMatrix();
|
|
188
|
+
if (!candidate.projectionMatrix.elements.every((value, index) => value === projection[index]))
|
|
189
|
+
throw new Error("The projection does not match the transferred native lens.");
|
|
190
|
+
candidate.position.fromArray(position);
|
|
191
|
+
candidate.quaternion.fromArray(quaternion);
|
|
192
|
+
candidate.scale.fromArray(scale);
|
|
193
|
+
candidate.up.fromArray(up);
|
|
194
|
+
candidate.layers.mask = layers;
|
|
195
|
+
candidate.updateMatrixWorld(true);
|
|
196
|
+
const worldDeterminant = candidate.matrixWorld.determinant();
|
|
197
|
+
if (!candidate.matrixWorld.elements.every(Number.isFinite) ||
|
|
198
|
+
worldDeterminant === 0 ||
|
|
199
|
+
!Number.isFinite(worldDeterminant))
|
|
200
|
+
throw new Error("The transferred camera world transform is degenerate.");
|
|
201
|
+
if (owned instanceof THREE.PerspectiveCamera &&
|
|
202
|
+
candidate instanceof THREE.PerspectiveCamera)
|
|
203
|
+
owned.copy(candidate, false);
|
|
204
|
+
else if (owned instanceof THREE.OrthographicCamera &&
|
|
205
|
+
candidate instanceof THREE.OrthographicCamera)
|
|
206
|
+
owned.copy(candidate, false);
|
|
207
|
+
else
|
|
208
|
+
throw new Error("The validated camera projection changed type.");
|
|
209
|
+
owned.updateMatrixWorld(true);
|
|
210
|
+
};
|
|
211
|
+
return { capture, restore };
|
|
212
|
+
}
|
|
213
|
+
//# sourceMappingURL=createViewerCameraState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createViewerCameraState.js","sourceRoot":"","sources":["../src/createViewerCameraState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,uBAAuB,CAAC,MAAoB;IAI1D,MAAM,SAAS,GAEgB,GAEF,EAAE;QAC7B,IACE,CAAC,CACC,MAAM,YAAY,KAAK,CAAC,iBAAiB;YACzC,MAAM,YAAY,KAAK,CAAC,kBAAkB,CAC3C;YACD,MAAM,CAAC,MAAM,KAAK,IAAI;YACtB,CAAC,MAAM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,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QACvC,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAC3C,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACjC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;QAC3B,SAAS,CAAC,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC;QAC/B,SAAS,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAClC,MAAM,gBAAgB,GAAW,SAAS,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC;QACrE,IACE,CAAC,SAAS,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC;YACtD,gBAAgB,KAAK,CAAC;YACtB,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC;YAElC,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;QAC3E,IACE,KAAK,YAAY,KAAK,CAAC,iBAAiB;YACxC,SAAS,YAAY,KAAK,CAAC,iBAAiB;YAE5C,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;aAC1B,IACH,KAAK,YAAY,KAAK,CAAC,kBAAkB;YACzC,SAAS,YAAY,KAAK,CAAC,kBAAkB;YAE7C,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;;YAC1B,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;QACtE,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC,CAAC;IACF,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keep requested draw time separate from the last completed display clock.
|
|
3
|
+
* A completion inherits its synchronous producer's time; an out-of-loop guide
|
|
4
|
+
* redraw preserves the displayed time unless its producer supplies a new one.
|
|
5
|
+
* Nested redraws restore the enclosing request after completion or refusal.
|
|
6
|
+
* Seconds must be finite and nonnegative before clock state changes.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/development/implementation.md#principled-implementation Separates a validated synchronous producing-time scope from last completed time; completion prefers explicit seconds, then nested producer time, then prior display, and finally restores the enclosing producer clock even after refusal. Async work must complete with explicit time because run's scope is synchronous.
|
|
9
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Keeps two scalar clock states and one admission rule instead of tying requested seek to displayed completion or advancing an accumulator each frame.
|
|
10
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No fixture seek time or dropped-frame estimate advances the display; negative/nonfinite requests refuse before mutation and failed producers do not overwrite the enclosing request state.
|
|
11
|
+
* @evidence contracts/development/common.md#meaningful-documentation Gives requested-versus-completed time, nested scope restoration, finite nonnegative seconds and out-of-loop completion precedence.
|
|
12
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Fixed-count scalar validation/assignment per request/completion, constant retained storage plus the actual synchronous call-stack depth of nested producers.
|
|
13
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses last completed time for out-of-loop redraws without a new authoritative timestamp; effectful producer callbacks are still invoked rather than skipped because their requested seconds match.
|
|
14
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds only displayed/producing scalars, borrows each synchronous callback for its invocation and starts no timer, worker or render task; no cancellation/resource handle is acquired.
|
|
15
|
+
*/
|
|
16
|
+
export declare function createViewerDisplayClock(): {
|
|
17
|
+
current: () => number;
|
|
18
|
+
run: (seconds: number, produce: () => void) => void;
|
|
19
|
+
complete: (seconds?: number) => number;
|
|
20
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keep requested draw time separate from the last completed display clock.
|
|
3
|
+
* A completion inherits its synchronous producer's time; an out-of-loop guide
|
|
4
|
+
* redraw preserves the displayed time unless its producer supplies a new one.
|
|
5
|
+
* Nested redraws restore the enclosing request after completion or refusal.
|
|
6
|
+
* Seconds must be finite and nonnegative before clock state changes.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/development/implementation.md#principled-implementation Separates a validated synchronous producing-time scope from last completed time; completion prefers explicit seconds, then nested producer time, then prior display, and finally restores the enclosing producer clock even after refusal. Async work must complete with explicit time because run's scope is synchronous.
|
|
9
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Keeps two scalar clock states and one admission rule instead of tying requested seek to displayed completion or advancing an accumulator each frame.
|
|
10
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No fixture seek time or dropped-frame estimate advances the display; negative/nonfinite requests refuse before mutation and failed producers do not overwrite the enclosing request state.
|
|
11
|
+
* @evidence contracts/development/common.md#meaningful-documentation Gives requested-versus-completed time, nested scope restoration, finite nonnegative seconds and out-of-loop completion precedence.
|
|
12
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Fixed-count scalar validation/assignment per request/completion, constant retained storage plus the actual synchronous call-stack depth of nested producers.
|
|
13
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses last completed time for out-of-loop redraws without a new authoritative timestamp; effectful producer callbacks are still invoked rather than skipped because their requested seconds match.
|
|
14
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds only displayed/producing scalars, borrows each synchronous callback for its invocation and starts no timer, worker or render task; no cancellation/resource handle is acquired.
|
|
15
|
+
*/
|
|
16
|
+
export function createViewerDisplayClock() {
|
|
17
|
+
let displayed = 0;
|
|
18
|
+
let producing;
|
|
19
|
+
const validate = (seconds) => {
|
|
20
|
+
if (!Number.isFinite(seconds) || seconds < 0)
|
|
21
|
+
throw new Error("A completed display clock requires finite nonnegative seconds.");
|
|
22
|
+
};
|
|
23
|
+
return {
|
|
24
|
+
current: () => displayed,
|
|
25
|
+
run: (seconds, produce) => {
|
|
26
|
+
validate(seconds);
|
|
27
|
+
const previous = producing;
|
|
28
|
+
producing = seconds;
|
|
29
|
+
try {
|
|
30
|
+
produce();
|
|
31
|
+
}
|
|
32
|
+
finally {
|
|
33
|
+
producing = previous;
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
complete: (seconds) => {
|
|
37
|
+
const next = seconds ?? producing ?? displayed;
|
|
38
|
+
validate(next);
|
|
39
|
+
displayed = next;
|
|
40
|
+
return displayed;
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=createViewerDisplayClock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createViewerDisplayClock.js","sourceRoot":"","sources":["../src/createViewerDisplayClock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,wBAAwB;IAKtC,IAAI,SAAS,GAAW,CAAC,CAAC;IAC1B,IAAI,SAA6B,CAAC;IAClC,MAAM,QAAQ,GAA8B,CAAC,OAAe,EAAQ,EAAE;QACpE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,OAAO,GAAG,CAAC;YAC1C,MAAM,IAAI,KAAK,CACb,gEAAgE,CACjE,CAAC;IACN,CAAC,CAAC;IACF,OAAO;QACL,OAAO,EAAE,GAAW,EAAE,CAAC,SAAS;QAChC,GAAG,EAAE,CAAC,OAAe,EAAE,OAAmB,EAAQ,EAAE;YAClD,QAAQ,CAAC,OAAO,CAAC,CAAC;YAClB,MAAM,QAAQ,GAAuB,SAAS,CAAC;YAC/C,SAAS,GAAG,OAAO,CAAC;YACpB,IAAI,CAAC;gBACH,OAAO,EAAE,CAAC;YACZ,CAAC;oBAAS,CAAC;gBACT,SAAS,GAAG,QAAQ,CAAC;YACvB,CAAC;QACH,CAAC;QACD,QAAQ,EAAE,CAAC,OAAgB,EAAU,EAAE;YACrC,MAAM,IAAI,GAAW,OAAO,IAAI,SAAS,IAAI,SAAS,CAAC;YACvD,QAAQ,CAAC,IAAI,CAAC,CAAC;YACf,SAAS,GAAG,IAAI,CAAC;YACjB,OAAO,SAAS,CAAC;QACnB,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stage an original completed snapshot without publishing its generation.
|
|
3
|
+
* The caller's copy port owns one latest bitmap and leaves it intact on a
|
|
4
|
+
* refused copy. Commit admits that prepared snapshot, or copies a direct
|
|
5
|
+
* active display; only then may the start port encode/upload it. Disposal
|
|
6
|
+
* releases the caller's pending bitmap and forbids further publication.
|
|
7
|
+
* The active query reports lifecycle availability, including uncommitted
|
|
8
|
+
* staging; it does not assert an admitted display or completed filesystem IO.
|
|
9
|
+
*
|
|
10
|
+
* @evidence contracts/development/implementation.md#principled-implementation Separates successful original bitmap copy from admitted session/generation and subsequent start; failed copy leaves prior identity/preparation intact, while disposal closes authority before releasing pending work. Caller supplies valid identity and transactional copy behavior; start failure occurs after identity commit and is not rolled back.
|
|
11
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One small publication state machine owns preparation/commit/change authority while caller ports own actual pixels, encoding/upload and pending bitmap release.
|
|
12
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Admission is actual copy success rather than a quiet watcher or fixture generation; closed/precommit branches follow lifecycle meaning, with no replacement native methods or fabricated persisted-frame success.
|
|
13
|
+
* @evidence contracts/development/common.md#meaningful-documentation Distinguishes original staging, identity commitment, start side effects, active availability and completed filesystem IO; disposal and failed-copy obligations are explicit.
|
|
14
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Coordinator uses constant scalar state and one optional identity record; real copy/start costs remain accounted by the supplied ports and are not reduced by this wrapper.
|
|
15
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work A successful prepare is reused by the next commit without another copy, while changed copies real current pixels under the committed identity; effectful repeated changes are not cached by identity alone.
|
|
16
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds one identity and prepared/closed flags while the caller owns one pending bitmap; dispose marks closed and invokes release once. A release throw is not retried or memoized as a repeated failure by this primitive, so native bitmap release uncertainty remains with its caller port.
|
|
17
|
+
*/
|
|
18
|
+
export declare function createViewerDisplayPublication(props: {
|
|
19
|
+
copy: () => boolean;
|
|
20
|
+
start: (session: string, generation: number) => void;
|
|
21
|
+
release: () => void;
|
|
22
|
+
}): {
|
|
23
|
+
active: () => boolean;
|
|
24
|
+
prepare: () => boolean;
|
|
25
|
+
commit: (session: string, generation: number) => boolean;
|
|
26
|
+
changed: () => boolean;
|
|
27
|
+
dispose: () => void;
|
|
28
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stage an original completed snapshot without publishing its generation.
|
|
3
|
+
* The caller's copy port owns one latest bitmap and leaves it intact on a
|
|
4
|
+
* refused copy. Commit admits that prepared snapshot, or copies a direct
|
|
5
|
+
* active display; only then may the start port encode/upload it. Disposal
|
|
6
|
+
* releases the caller's pending bitmap and forbids further publication.
|
|
7
|
+
* The active query reports lifecycle availability, including uncommitted
|
|
8
|
+
* staging; it does not assert an admitted display or completed filesystem IO.
|
|
9
|
+
*
|
|
10
|
+
* @evidence contracts/development/implementation.md#principled-implementation Separates successful original bitmap copy from admitted session/generation and subsequent start; failed copy leaves prior identity/preparation intact, while disposal closes authority before releasing pending work. Caller supplies valid identity and transactional copy behavior; start failure occurs after identity commit and is not rolled back.
|
|
11
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One small publication state machine owns preparation/commit/change authority while caller ports own actual pixels, encoding/upload and pending bitmap release.
|
|
12
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Admission is actual copy success rather than a quiet watcher or fixture generation; closed/precommit branches follow lifecycle meaning, with no replacement native methods or fabricated persisted-frame success.
|
|
13
|
+
* @evidence contracts/development/common.md#meaningful-documentation Distinguishes original staging, identity commitment, start side effects, active availability and completed filesystem IO; disposal and failed-copy obligations are explicit.
|
|
14
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Coordinator uses constant scalar state and one optional identity record; real copy/start costs remain accounted by the supplied ports and are not reduced by this wrapper.
|
|
15
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work A successful prepare is reused by the next commit without another copy, while changed copies real current pixels under the committed identity; effectful repeated changes are not cached by identity alone.
|
|
16
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds one identity and prepared/closed flags while the caller owns one pending bitmap; dispose marks closed and invokes release once. A release throw is not retried or memoized as a repeated failure by this primitive, so native bitmap release uncertainty remains with its caller port.
|
|
17
|
+
*/
|
|
18
|
+
export function createViewerDisplayPublication(props) {
|
|
19
|
+
let identity;
|
|
20
|
+
let prepared = false;
|
|
21
|
+
let disposed = false;
|
|
22
|
+
return {
|
|
23
|
+
active: () => !disposed,
|
|
24
|
+
prepare: () => {
|
|
25
|
+
if (disposed || identity !== undefined)
|
|
26
|
+
return false;
|
|
27
|
+
const copied = props.copy();
|
|
28
|
+
if (copied)
|
|
29
|
+
prepared = true;
|
|
30
|
+
return copied;
|
|
31
|
+
},
|
|
32
|
+
commit: (session, generation) => {
|
|
33
|
+
if (disposed)
|
|
34
|
+
return false;
|
|
35
|
+
if (!prepared && !props.copy())
|
|
36
|
+
return false;
|
|
37
|
+
identity = { session, generation };
|
|
38
|
+
prepared = false;
|
|
39
|
+
props.start(session, generation);
|
|
40
|
+
return true;
|
|
41
|
+
},
|
|
42
|
+
changed: () => {
|
|
43
|
+
if (disposed || identity === undefined || !props.copy())
|
|
44
|
+
return false;
|
|
45
|
+
props.start(identity.session, identity.generation);
|
|
46
|
+
return true;
|
|
47
|
+
},
|
|
48
|
+
dispose: () => {
|
|
49
|
+
if (disposed)
|
|
50
|
+
return;
|
|
51
|
+
disposed = true;
|
|
52
|
+
props.release();
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=createViewerDisplayPublication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"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rB,QAAQ,GAAG,IAAI,CAAC;YAChB,KAAK,CAAC,OAAO,EAAE,CAAC;QAClB,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { IAutoMovieViewerDisplayMetadata } from "./IAutoMovieViewerDisplayMetadata.js";
|
|
2
|
+
/**
|
|
3
|
+
* Copy a completed display before asynchronously encoding and saving it.
|
|
4
|
+
* The caller owns completion, facts and commitment. One encoder/upload and
|
|
5
|
+
* one latest pending bitmap bound work; failed snapshots retain the previous
|
|
6
|
+
* pending and published frame. Owned superseded surfaces are released.
|
|
7
|
+
* Prepare copies a provisional visible frame without starting an upload;
|
|
8
|
+
* commit admits the same staged bitmap, or copies a direct active display.
|
|
9
|
+
* Commit/change return whether synchronous copying succeeded; asynchronous
|
|
10
|
+
* encoding or HTTP failures are reported separately and do not certify IO.
|
|
11
|
+
*
|
|
12
|
+
* @evidence contracts/development/implementation.md#principled-implementation Structured-clones completed metadata and copies original canvas pixels before PNG encoding, then posts the committed session/generation and monotone local sequence to the actual /display sink; copied facts/pixels must belong to one completed display, and synchronous success does not certify retain/encode/network completion.
|
|
13
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns browser bitmap/encoding/upload lifetime and delegates preparation/commit authority to createViewerDisplayPublication; optional paint and retain ports preserve existing visible-layer and graphics-recovery owners without a parallel render or solver.
|
|
14
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Saves actual copied pixels/metadata rather than a synthetic probe or fixture PNG; refused snapshot preserves the previous pending bitmap, and asynchronous failures are surfaced as AUTOMOVIE display-save warnings instead of a false saved receipt.
|
|
15
|
+
* @evidence contracts/development/common.md#meaningful-documentation Distinguishes provisional copy, committed upload, async failure and independent original-pixel retention; one-running/one-pending population and superseded-surface release are explicit.
|
|
16
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Copy/PNG/base64 serialization are O(frame pixels or encoded bytes plus cloned metadata); one encoder/upload runs while only latest pending bitmap survives, preventing a frame-per-draw backlog. Driver/browser serialization and network costs remain real work.
|
|
17
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Prepared original copy is reused by commit, successive pending copies replace superseded surfaces, and the running result is retained for graphics recovery; different completed pixels/facts require a new original snapshot rather than a metadata-only equivalence claim.
|
|
18
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Owns at most one running surface/blob/data URL and one pending surface/facts, bounded by their raster/encoded sizes. Release discards pending pixels, aborts the owned FileReader and fetch and closes publication authority. Native toBlob cannot be canceled; its callback is awaited without starting later work after disposal.
|
|
19
|
+
*/
|
|
20
|
+
export declare function createViewerDisplaySave(props: {
|
|
21
|
+
canvas: HTMLCanvasElement;
|
|
22
|
+
observe: () => IAutoMovieViewerDisplayMetadata | undefined;
|
|
23
|
+
/** Paint existing visible layers onto this owned surface, when applicable. */
|
|
24
|
+
paint?: (surface: HTMLCanvasElement) => void;
|
|
25
|
+
/** Keep the encoded completed bitmap for this display's graphics recovery. */
|
|
26
|
+
retain?: (blob: Blob) => void;
|
|
27
|
+
}): {
|
|
28
|
+
active: () => boolean;
|
|
29
|
+
prepare: () => boolean;
|
|
30
|
+
commit: (session: string, generation: number) => boolean;
|
|
31
|
+
changed: () => boolean;
|
|
32
|
+
dispose: () => void;
|
|
33
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { createViewerDisplayPublication } from "./createViewerDisplayPublication.js";
|
|
2
|
+
/**
|
|
3
|
+
* Copy a completed display before asynchronously encoding and saving it.
|
|
4
|
+
* The caller owns completion, facts and commitment. One encoder/upload and
|
|
5
|
+
* one latest pending bitmap bound work; failed snapshots retain the previous
|
|
6
|
+
* pending and published frame. Owned superseded surfaces are released.
|
|
7
|
+
* Prepare copies a provisional visible frame without starting an upload;
|
|
8
|
+
* commit admits the same staged bitmap, or copies a direct active display.
|
|
9
|
+
* Commit/change return whether synchronous copying succeeded; asynchronous
|
|
10
|
+
* encoding or HTTP failures are reported separately and do not certify IO.
|
|
11
|
+
*
|
|
12
|
+
* @evidence contracts/development/implementation.md#principled-implementation Structured-clones completed metadata and copies original canvas pixels before PNG encoding, then posts the committed session/generation and monotone local sequence to the actual /display sink; copied facts/pixels must belong to one completed display, and synchronous success does not certify retain/encode/network completion.
|
|
13
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns browser bitmap/encoding/upload lifetime and delegates preparation/commit authority to createViewerDisplayPublication; optional paint and retain ports preserve existing visible-layer and graphics-recovery owners without a parallel render or solver.
|
|
14
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Saves actual copied pixels/metadata rather than a synthetic probe or fixture PNG; refused snapshot preserves the previous pending bitmap, and asynchronous failures are surfaced as AUTOMOVIE display-save warnings instead of a false saved receipt.
|
|
15
|
+
* @evidence contracts/development/common.md#meaningful-documentation Distinguishes provisional copy, committed upload, async failure and independent original-pixel retention; one-running/one-pending population and superseded-surface release are explicit.
|
|
16
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Copy/PNG/base64 serialization are O(frame pixels or encoded bytes plus cloned metadata); one encoder/upload runs while only latest pending bitmap survives, preventing a frame-per-draw backlog. Driver/browser serialization and network costs remain real work.
|
|
17
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Prepared original copy is reused by commit, successive pending copies replace superseded surfaces, and the running result is retained for graphics recovery; different completed pixels/facts require a new original snapshot rather than a metadata-only equivalence claim.
|
|
18
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Owns at most one running surface/blob/data URL and one pending surface/facts, bounded by their raster/encoded sizes. Release discards pending pixels, aborts the owned FileReader and fetch and closes publication authority. Native toBlob cannot be canceled; its callback is awaited without starting later work after disposal.
|
|
19
|
+
*/
|
|
20
|
+
export function createViewerDisplaySave(props) {
|
|
21
|
+
let sequence = 0;
|
|
22
|
+
let running = false;
|
|
23
|
+
const cancellation = new AbortController();
|
|
24
|
+
let reader;
|
|
25
|
+
const snapshot = () => {
|
|
26
|
+
const observed = props.observe();
|
|
27
|
+
if (observed === undefined)
|
|
28
|
+
return undefined;
|
|
29
|
+
const facts = structuredClone(observed);
|
|
30
|
+
const surface = document.createElement("canvas");
|
|
31
|
+
try {
|
|
32
|
+
if (props.paint !== undefined)
|
|
33
|
+
props.paint(surface);
|
|
34
|
+
else {
|
|
35
|
+
surface.width = props.canvas.width;
|
|
36
|
+
surface.height = props.canvas.height;
|
|
37
|
+
const context = surface.getContext("2d");
|
|
38
|
+
if (context === null)
|
|
39
|
+
throw new Error("A 2D surface is required to retain the completed display.");
|
|
40
|
+
context.drawImage(props.canvas, 0, 0);
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
surface,
|
|
44
|
+
metadata: {
|
|
45
|
+
...facts,
|
|
46
|
+
width: surface.width,
|
|
47
|
+
height: surface.height,
|
|
48
|
+
displayedAt: new Date().toISOString(),
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
catch (cause) {
|
|
53
|
+
surface.width = 0;
|
|
54
|
+
surface.height = 0;
|
|
55
|
+
throw cause;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
let pending;
|
|
59
|
+
const flush = async () => {
|
|
60
|
+
if (pending === undefined || running || !publication.active())
|
|
61
|
+
return;
|
|
62
|
+
const { surface, metadata, } = pending;
|
|
63
|
+
pending = undefined;
|
|
64
|
+
running = true;
|
|
65
|
+
const sequenceId = ++sequence;
|
|
66
|
+
try {
|
|
67
|
+
const blob = await new Promise((resolve, reject) => {
|
|
68
|
+
surface.toBlob((value) => value === null
|
|
69
|
+
? reject(new Error("The displayed frame could not be encoded."))
|
|
70
|
+
: resolve(value), "image/png");
|
|
71
|
+
// The standard copies pixels before asynchronous serialization.
|
|
72
|
+
surface.width = 0;
|
|
73
|
+
surface.height = 0;
|
|
74
|
+
});
|
|
75
|
+
if (!publication.active())
|
|
76
|
+
return;
|
|
77
|
+
props.retain?.(blob);
|
|
78
|
+
const data = await new Promise((resolve, reject) => {
|
|
79
|
+
const reading = new FileReader();
|
|
80
|
+
reader = reading;
|
|
81
|
+
reading.onload = () => resolve(String(reading.result));
|
|
82
|
+
reading.onerror = () => reject(new Error("The encoded display could not be read.", {
|
|
83
|
+
cause: reading.error,
|
|
84
|
+
}));
|
|
85
|
+
reading.onabort = () => reject(cancellation.signal.reason);
|
|
86
|
+
reading.readAsDataURL(blob);
|
|
87
|
+
});
|
|
88
|
+
reader = undefined;
|
|
89
|
+
if (!publication.active())
|
|
90
|
+
return;
|
|
91
|
+
const response = await fetch("/display", {
|
|
92
|
+
signal: cancellation.signal,
|
|
93
|
+
method: "POST",
|
|
94
|
+
headers: { "Content-Type": "application/json" },
|
|
95
|
+
body: JSON.stringify({ ...metadata, sequence: sequenceId, png: data }),
|
|
96
|
+
});
|
|
97
|
+
if (!response.ok)
|
|
98
|
+
throw new Error(await response.text());
|
|
99
|
+
}
|
|
100
|
+
catch (cause) {
|
|
101
|
+
if (!cancellation.signal.aborted)
|
|
102
|
+
console.warn("AUTOMOVIE_DISPLAY_SAVE " + String(cause));
|
|
103
|
+
}
|
|
104
|
+
finally {
|
|
105
|
+
reader = undefined;
|
|
106
|
+
surface.width = 0;
|
|
107
|
+
surface.height = 0;
|
|
108
|
+
running = false;
|
|
109
|
+
if (pending !== undefined && publication.active())
|
|
110
|
+
void flush();
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
const copy = () => {
|
|
114
|
+
try {
|
|
115
|
+
const completed = snapshot();
|
|
116
|
+
if (completed === undefined)
|
|
117
|
+
return false;
|
|
118
|
+
if (pending !== undefined) {
|
|
119
|
+
pending.surface.width = 0;
|
|
120
|
+
pending.surface.height = 0;
|
|
121
|
+
}
|
|
122
|
+
pending = completed;
|
|
123
|
+
return true;
|
|
124
|
+
}
|
|
125
|
+
catch (cause) {
|
|
126
|
+
console.warn("AUTOMOVIE_DISPLAY_SAVE " + String(cause));
|
|
127
|
+
return false;
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
const publication = createViewerDisplayPublication({
|
|
131
|
+
copy,
|
|
132
|
+
start: (session, generation) => {
|
|
133
|
+
// The lifecycle calls start only after a successful original copy.
|
|
134
|
+
pending.metadata.session = session;
|
|
135
|
+
pending.metadata.generation = generation;
|
|
136
|
+
void flush();
|
|
137
|
+
},
|
|
138
|
+
release: () => {
|
|
139
|
+
cancellation.abort();
|
|
140
|
+
reader?.abort();
|
|
141
|
+
if (pending !== undefined) {
|
|
142
|
+
pending.surface.width = 0;
|
|
143
|
+
pending.surface.height = 0;
|
|
144
|
+
}
|
|
145
|
+
pending = undefined;
|
|
146
|
+
},
|
|
147
|
+
});
|
|
148
|
+
return publication;
|
|
149
|
+
}
|
|
150
|
+
//# sourceMappingURL=createViewerDisplaySave.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createViewerDisplaySave.js","sourceRoot":"","sources":["../src/createViewerDisplaySave.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAOvC;IAOC,IAAI,QAAQ,GAAW,CAAC,CAAC;IACzB,IAAI,OAAO,GAAY,KAAK,CAAC;IAC7B,MAAM,YAAY,GAAoB,IAAI,eAAe,EAAE,CAAC;IAC5D,IAAI,MAA8B,CAAC;IACnC,MAAM,QAAQ,GAWE,GAWF,EAAE;QACd,MAAM,QAAQ,GACZ,KAAK,CAAC,OAAO,EAAE,CAAC;QAClB,IAAI,QAAQ,KAAK,SAAS;YAAE,OAAO,SAAS,CAAC;QAC7C,MAAM,KAAK,GAAoC,eAAe,CAAC,QAAQ,CAAC,CAAC;QACzE,MAAM,OAAO,GAAsB,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QACpE,IAAI,CAAC;YACH,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS;gBAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;iBAC/C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CAAC,KAAK,CAAC,CAAC,CAAC;YACxD,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC,CAAC;IACF,MAAM,WAAW,GAMb,8BAA8B,CAAC;QACjC,IAAI;QACJ,KAAK,EAAE,CAAC,OAAe,EAAE,UAAkB,EAAQ,EAAE;YACnD,mEAAmE;YACnE,OAAQ,CAAC,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC;YACpC,OAAQ,CAAC,QAAQ,CAAC,UAAU,GAAG,UAAU,CAAC;YAC1C,KAAK,KAAK,EAAE,CAAC;QACf,CAAC;QACD,OAAO,EAAE,GAAS,EAAE;YAClB,YAAY,CAAC,KAAK,EAAE,CAAC;YACrB,MAAM,EAAE,KAAK,EAAE,CAAC;YAChB,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;gBAC1B,OAAO,CAAC,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC;gBAC1B,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;YAC7B,CAAC;YACD,OAAO,GAAG,SAAS,CAAC;QACtB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type * as THREE from "three";
|
|
2
|
+
import type { IAutoMovieViewerCompletedFrame } from "./IAutoMovieViewerCompletedFrame.js";
|
|
3
|
+
/**
|
|
4
|
+
* Own a mounted frame's camera/time controller and nested playback freezes.
|
|
5
|
+
* Normal ticks run only outside a freeze; explicit redraw and restoration still
|
|
6
|
+
* use the original producer. A producer-owned clock or audio supplies its own
|
|
7
|
+
* freeze lease. Only the final normal release resumes it; disposal releases it
|
|
8
|
+
* with resume=false. The borrowed camera is the mount's camera, so switching
|
|
9
|
+
* active-camera or other application state needs that application's adapter.
|
|
10
|
+
*
|
|
11
|
+
* @evidence contracts/development/implementation.md#principled-implementation Transfers the existing native camera snapshot and finite nonnegative completed seconds, then rebases and redraws through the original producer. Failed redraw independently restores the previous borrowed camera and mount base, preserving the source refusal before rollback causes; application graph/pixel rollback remains source-owned. Reference-counted freeze leases suppress producer ticks and pair the outermost producer pause with one final release, distinguishing resume from terminal disposal.
|
|
12
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns the actual controller used by mountViewer without creating a renderer or a second clock. Camera transfer stays with createViewerCameraState, and source clocks/audio remain behind an explicit producer lease.
|
|
13
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No timer, foreign method or synthetic completed frame is substituted. Invalid state refuses before camera mutation; a failed release preserves its cause and refuses further playback until terminal cleanup.
|
|
14
|
+
* @evidence contracts/development/common.md#meaningful-documentation States nested ownership, explicit-draw behavior, terminal versus resumable release, borrowed camera scope and independent source-state responsibility.
|
|
15
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Tick gating and lease accounting use constant work/storage; camera snapshots use the existing fixed-size native adapter and producer operations retain their own cost.
|
|
16
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Nested freezes share one outer producer lease; every returned release and terminal cleanup has one sticky attempt. Distinct redraws remain real producer effects.
|
|
17
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Retains one borrowed camera, callbacks, scalar lease count and at most one producer release. Final release or dispose consumes that release once; disposed controllers reject later effects and acquired producer resources remain governed by the producer's release callback.
|
|
18
|
+
*/
|
|
19
|
+
export declare function createViewerFrameControl(options: {
|
|
20
|
+
/** Native camera owned by this mount; other active cameras need their source adapter. */
|
|
21
|
+
camera: THREE.Camera;
|
|
22
|
+
/** Actual completed scene time, in seconds. */
|
|
23
|
+
currentSeconds: () => number;
|
|
24
|
+
/** Refuse operations after the mounted owner has stopped. */
|
|
25
|
+
assertActive: () => void;
|
|
26
|
+
/** Rebase the mount clock before an explicit restored draw or resumed tick. */
|
|
27
|
+
rebase: (seconds: number) => void;
|
|
28
|
+
/** Complete an original draw at these authoritative scene seconds. */
|
|
29
|
+
redraw: (seconds: number) => void;
|
|
30
|
+
/** Optional source pause; release(true) resumes, release(false) retires without resuming. */
|
|
31
|
+
freezeCompleted?: () => (resume: boolean) => void;
|
|
32
|
+
}): {
|
|
33
|
+
control: NonNullable<IAutoMovieViewerCompletedFrame["control"]>;
|
|
34
|
+
frame: (produce: () => void) => void;
|
|
35
|
+
dispose: () => void;
|
|
36
|
+
};
|