@automovie/render 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/IAutoMovieCaptionEntry.d.ts +1 -28
- package/lib/IAutoMovieCaptionSidecar.d.ts +1 -25
- package/lib/IAutoMovieCapturedFrame.d.ts +1 -22
- package/lib/IAutoMovieGuidePassOutput.d.ts +1 -23
- package/lib/IAutoMoviePoseKeypointActor.d.ts +1 -36
- package/lib/IAutoMoviePoseKeypointFrame.d.ts +1 -25
- package/lib/IAutoMoviePoseKeypointSidecar.d.ts +1 -21
- package/lib/IAutoMovieRenderAdapters.d.ts +1 -34
- package/lib/IAutoMovieRenderAndSeeRequest.d.ts +1 -32
- package/lib/IAutoMovieRenderAndSeeResult.d.ts +1 -20
- package/lib/IAutoMovieRenderChunk.d.ts +1 -48
- package/lib/IAutoMovieRenderChunkPlan.d.ts +1 -32
- package/lib/IAutoMovieRenderPassManifest.d.ts +1 -21
- package/lib/IAutoMovieRenderReassembly.d.ts +1 -24
- package/lib/IAutoMovieRenderResult.d.ts +1 -39
- package/lib/IAutoMovieSequenceRenderAdapters.d.ts +1 -36
- package/lib/IAutoMovieSequenceRenderAndSeeRequest.d.ts +1 -36
- package/lib/IAutoMovieSequenceRenderAndSeeResult.d.ts +1 -23
- package/lib/IAutoMovieSequenceRenderFrame.d.ts +1 -41
- package/lib/IAutoMovieSequenceRenderPlan.d.ts +1 -76
- package/lib/IAutoMovieSequenceRenderResult.d.ts +1 -44
- package/lib/IAutoMovieSequenceRenderShotSpan.d.ts +1 -39
- package/lib/IAutoMovieSequenceRenderTransitionSpan.d.ts +1 -39
- package/lib/audio/mixAutoMovieAudioPcm.d.ts +2 -39
- package/lib/audio/mixAutoMovieAudioPcm.js.map +1 -1
- package/lib/audio/mixAutoMovieAudioPcm.mjs.map +1 -1
- package/lib/auditAutoMovieRenderObservation.d.ts +2 -14
- package/lib/auditAutoMovieRenderObservation.js.map +1 -1
- package/lib/auditAutoMovieRenderObservation.mjs.map +1 -1
- package/lib/cache/createAutoMovieHttpArtifactStore.d.ts +1 -1
- package/lib/cache/createAutoMovieHttpArtifactStore.mjs.map +1 -1
- package/lib/caption/IAutoMovieBeatCaption.d.ts +1 -22
- package/lib/caption/beatCaptions.d.ts +1 -2
- package/lib/caption/beatCaptions.js.map +1 -1
- package/lib/caption/beatCaptions.mjs.map +1 -1
- package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.d.ts +1 -12
- package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.js.map +1 -1
- package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.mjs.map +1 -1
- package/lib/caption/parseAutoMovieCaptionLanguage.d.ts +1 -14
- package/lib/caption/parseAutoMovieCaptionLanguage.js.map +1 -1
- package/lib/caption/parseAutoMovieCaptionLanguage.mjs.map +1 -1
- package/lib/capture/AutoMovieCaptureFolder.d.ts +3 -13
- package/lib/capture/AutoMovieCaptureFolder.js.map +1 -1
- package/lib/capture/AutoMovieCaptureFolder.mjs.map +1 -1
- package/lib/capture/IAutoMovieCaptureBudget.d.ts +1 -24
- package/lib/capture/IAutoMovieCaptureCell.d.ts +1 -33
- package/lib/capture/IAutoMovieCaptureComparison.d.ts +1 -75
- package/lib/capture/IAutoMovieCaptureDrawing.d.ts +1 -56
- package/lib/capture/IAutoMovieCaptureLayout.d.ts +1 -47
- package/lib/capture/IAutoMovieCapturePlan.d.ts +1 -30
- package/lib/capture/IAutoMovieCapturePlanRequest.d.ts +1 -97
- package/lib/capture/IAutoMovieCaptureRecord.d.ts +1 -134
- package/lib/capture/IAutoMovieCaptureRequestSource.d.ts +1 -36
- package/lib/capture/IAutoMovieCaptureResolution.d.ts +1 -20
- package/lib/capture/IAutoMovieCaptureSelection.d.ts +1 -23
- package/lib/capture/IAutoMovieCaptureStorage.d.ts +1 -76
- package/lib/capture/IAutoMovieCaptureSubject.d.ts +1 -81
- package/lib/capture/IAutoMovieCaptureTime.d.ts +1 -16
- package/lib/capture/IAutoMovieCaptureWindow.d.ts +1 -24
- package/lib/capture/compareAutoMovieCaptureRounds.d.ts +2 -23
- package/lib/capture/compareAutoMovieCaptureRounds.js.map +1 -1
- package/lib/capture/compareAutoMovieCaptureRounds.mjs.map +1 -1
- package/lib/capture/formatAutoMovieCapturePlanRequest.d.ts +1 -1
- package/lib/capture/formatAutoMovieCapturePlanRequest.js.map +1 -1
- package/lib/capture/formatAutoMovieCapturePlanRequest.mjs.map +1 -1
- package/lib/capture/markAutoMovieCaptureCell.d.ts +1 -1
- package/lib/capture/markAutoMovieCaptureCell.mjs.map +1 -1
- package/lib/capture/parseAutoMovieCapturePlanRequest.d.ts +1 -2
- package/lib/capture/parseAutoMovieCapturePlanRequest.js.map +1 -1
- package/lib/capture/parseAutoMovieCapturePlanRequest.mjs.map +1 -1
- package/lib/capture/planAutoMovieCapture.d.ts +2 -11
- package/lib/capture/planAutoMovieCapture.js.map +1 -1
- package/lib/capture/planAutoMovieCapture.mjs.map +1 -1
- package/lib/capture/planAutoMovieCaptureFrames.d.ts +2 -22
- package/lib/capture/planAutoMovieCaptureFrames.js.map +1 -1
- package/lib/capture/planAutoMovieCaptureFrames.mjs.map +1 -1
- package/lib/capture/planAutoMovieCaptureLayout.d.ts +2 -16
- package/lib/capture/planAutoMovieCaptureLayout.js.map +1 -1
- package/lib/capture/planAutoMovieCaptureLayout.mjs.map +1 -1
- package/lib/capture/planAutoMovieVideoFrames.d.ts +2 -8
- package/lib/capture/planAutoMovieVideoFrames.js.map +1 -1
- package/lib/capture/planAutoMovieVideoFrames.mjs.map +1 -1
- package/lib/capture/planAutoMovieVideoSceneCuts.d.ts +2 -8
- package/lib/capture/planAutoMovieVideoSceneCuts.js.map +1 -1
- package/lib/capture/planAutoMovieVideoSceneCuts.mjs.map +1 -1
- package/lib/capture/readAutoMovieVideoSceneCuts.d.ts +2 -6
- package/lib/capture/readAutoMovieVideoSceneCuts.js.map +1 -1
- package/lib/capture/readAutoMovieVideoSceneCuts.mjs.map +1 -1
- package/lib/capture/resolveAutoMovieCapturePatterns.d.ts +2 -10
- package/lib/capture/resolveAutoMovieCapturePatterns.js.map +1 -1
- package/lib/capture/resolveAutoMovieCapturePatterns.mjs.map +1 -1
- package/lib/capture/runAutoMovieCapture.d.ts +2 -21
- package/lib/capture/runAutoMovieCapture.js.map +1 -1
- package/lib/capture/runAutoMovieCapture.mjs.map +1 -1
- package/lib/capture/runAutoMovieVideoCapture.d.ts +2 -20
- package/lib/capture/runAutoMovieVideoCapture.js.map +1 -1
- package/lib/capture/runAutoMovieVideoCapture.mjs.map +1 -1
- package/lib/capture/scaleAutoMovieCaptureLabels.d.ts +2 -5
- package/lib/capture/scaleAutoMovieCaptureLabels.js.map +1 -1
- package/lib/capture/scaleAutoMovieCaptureLabels.mjs.map +1 -1
- package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.d.ts +2 -6
- package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.js.map +1 -1
- package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.mjs.map +1 -1
- package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.d.ts +2 -14
- package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.js.map +1 -1
- package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.mjs.map +1 -1
- package/lib/delivery/AutoMovieProductionPngRole.d.ts +1 -14
- package/lib/delivery/IAutoMovieProductionPngProfile.d.ts +1 -41
- package/lib/delivery/IAutoMovieProductionVideoProfile.d.ts +1 -46
- package/lib/delivery/assertAutoMovieCaptureClock.d.ts +2 -9
- package/lib/delivery/assertAutoMovieCaptureClock.js.map +1 -1
- package/lib/delivery/assertAutoMovieCaptureClock.mjs.map +1 -1
- package/lib/delivery/assertProductionPngPicture.d.ts +2 -6
- package/lib/delivery/assertProductionPngPicture.js.map +1 -1
- package/lib/delivery/assertProductionPngPicture.mjs.map +1 -1
- package/lib/delivery/assertProductionVideoProfile.d.ts +2 -6
- package/lib/delivery/assertProductionVideoProfile.js.map +1 -1
- package/lib/delivery/assertProductionVideoProfile.mjs.map +1 -1
- package/lib/delivery/auditAutoMovieDecodedFrames.d.ts +2 -35
- package/lib/delivery/auditAutoMovieDecodedFrames.js.map +1 -1
- package/lib/delivery/auditAutoMovieDecodedFrames.mjs.map +1 -1
- package/lib/delivery/auditAutoMovieEncodedPresentation.d.ts +2 -8
- package/lib/delivery/auditAutoMovieEncodedPresentation.js.map +1 -1
- package/lib/delivery/auditAutoMovieEncodedPresentation.mjs.map +1 -1
- package/lib/delivery/planAutoMovieVideoEncoding.d.ts +2 -18
- package/lib/delivery/planAutoMovieVideoEncoding.js.map +1 -1
- package/lib/delivery/planAutoMovieVideoEncoding.mjs.map +1 -1
- package/lib/delivery/productionOpusDescription.d.ts +2 -6
- package/lib/delivery/productionOpusDescription.js.map +1 -1
- package/lib/delivery/productionOpusDescription.mjs.map +1 -1
- package/lib/delivery/resolveProductionPngProfile.d.ts +2 -7
- package/lib/delivery/resolveProductionPngProfile.js.map +1 -1
- package/lib/delivery/resolveProductionPngProfile.mjs.map +1 -1
- package/lib/delivery/resolveProductionVideoProfile.d.ts +2 -7
- package/lib/delivery/resolveProductionVideoProfile.js.map +1 -1
- package/lib/delivery/resolveProductionVideoProfile.mjs.map +1 -1
- package/lib/draw/AutoMovieDrawSession.d.ts +3 -16
- package/lib/draw/AutoMovieDrawSession.js.map +1 -1
- package/lib/draw/AutoMovieDrawSession.mjs.map +1 -1
- package/lib/draw/IAutoMovieDrawCall.d.ts +1 -27
- package/lib/draw/IAutoMovieDrawDescription.d.ts +1 -15
- package/lib/draw/IAutoMovieDrawFunction.d.ts +1 -3
- package/lib/draw/IAutoMovieDrawResult.d.ts +1 -36
- package/lib/draw/IAutoMovieDrawScene.d.ts +9 -2
- package/lib/draw/decodeAutoMovieDrawPixels.d.ts +2 -6
- package/lib/draw/decodeAutoMovieDrawPixels.js.map +1 -1
- package/lib/draw/decodeAutoMovieDrawPixels.mjs.map +1 -1
- package/lib/draw/describeAutoMovieDrawScene.d.ts +4 -4
- package/lib/draw/describeAutoMovieDrawScene.js +10 -4
- package/lib/draw/describeAutoMovieDrawScene.js.map +1 -1
- package/lib/draw/describeAutoMovieDrawScene.mjs +8 -4
- package/lib/draw/describeAutoMovieDrawScene.mjs.map +1 -1
- package/lib/draw/index.d.ts +1 -0
- package/lib/draw/index.js +1 -0
- package/lib/draw/index.js.map +1 -1
- package/lib/draw/index.mjs +2 -1
- package/lib/draw/installAutoMovieDraw.d.ts +6 -6
- package/lib/draw/installAutoMovieDraw.js +18 -23
- package/lib/draw/installAutoMovieDraw.js.map +1 -1
- package/lib/draw/installAutoMovieDraw.mjs +16 -23
- package/lib/draw/installAutoMovieDraw.mjs.map +1 -1
- package/lib/draw/planAutoMovieDrawCall.d.ts +1 -3
- package/lib/draw/planAutoMovieDrawCall.js.map +1 -1
- package/lib/draw/planAutoMovieDrawCall.mjs.map +1 -1
- package/lib/draw/renderAutoMovieDrawnVideo.d.ts +2 -12
- package/lib/draw/renderAutoMovieDrawnVideo.js.map +1 -1
- package/lib/draw/renderAutoMovieDrawnVideo.mjs.map +1 -1
- package/lib/draw/replaceAutoMovieDrawInspection.d.ts +24 -0
- package/lib/draw/replaceAutoMovieDrawInspection.js +29 -0
- package/lib/draw/replaceAutoMovieDrawInspection.js.map +1 -0
- package/lib/draw/replaceAutoMovieDrawInspection.mjs +29 -0
- package/lib/draw/replaceAutoMovieDrawInspection.mjs.map +1 -0
- package/lib/draw/stampAutoMovieDrawLegend.d.ts +2 -4
- package/lib/draw/stampAutoMovieDrawLegend.js.map +1 -1
- package/lib/draw/stampAutoMovieDrawLegend.mjs.map +1 -1
- package/lib/film/AutoMovieOrderedScalar.d.ts +1 -15
- package/lib/film/IAutoMovieProductionAudioAssetIdentity.d.ts +1 -28
- package/lib/film/IAutoMovieProductionAudioAssetIdentityBase.d.ts +1 -29
- package/lib/film/IAutoMovieProductionEncoderIdentity.d.ts +1 -36
- package/lib/film/IAutoMovieProductionRenderChunk.d.ts +1 -39
- package/lib/film/IAutoMovieProductionRenderJobPlan.d.ts +1 -53
- package/lib/film/IAutoMovieProductionRenderRuntimeIdentity.d.ts +1 -31
- package/lib/film/IAutoMovieProductionRenderTier.d.ts +1 -25
- package/lib/film/equalOrderedScalars.d.ts +2 -5
- package/lib/film/equalOrderedScalars.js.map +1 -1
- package/lib/film/equalOrderedScalars.mjs.map +1 -1
- package/lib/film/normalizeAudioAssets.d.ts +1 -1
- package/lib/film/normalizeAudioAssets.js.map +1 -1
- package/lib/film/normalizeAudioAssets.mjs.map +1 -1
- package/lib/film/normalizeRenderTier.d.ts +1 -1
- package/lib/film/normalizeRenderTier.mjs.map +1 -1
- package/lib/film/planProductionRenderJob.d.ts +2 -16
- package/lib/film/planProductionRenderJob.js.map +1 -1
- package/lib/film/planProductionRenderJob.mjs.map +1 -1
- package/lib/film/resolveProductionRenderTierFrameFormat.d.ts +1 -2
- package/lib/film/resolveProductionRenderTierFrameFormat.mjs.map +1 -1
- package/lib/film/validWaveAudioIdentity.d.ts +1 -1
- package/lib/film/validWaveAudioIdentity.mjs.map +1 -1
- package/lib/index.mjs +8 -7
- package/lib/picture/AutoMovieRasterSheet.d.ts +2 -2
- package/lib/picture/AutoMovieRasterSheet.js.map +1 -1
- package/lib/picture/AutoMovieRasterSheet.mjs.map +1 -1
- package/lib/picture/IAutoMovieRasterComparison.d.ts +1 -33
- package/lib/picture/IAutoMovieRasterImage.d.ts +1 -17
- package/lib/picture/compareAutoMovieRasters.d.ts +1 -2
- package/lib/picture/compareAutoMovieRasters.js.map +1 -1
- package/lib/picture/compareAutoMovieRasters.mjs.map +1 -1
- package/lib/picture/decodeAutoMovieRasterPng.d.ts +1 -1
- package/lib/picture/decodeAutoMovieRasterPng.js.map +1 -1
- package/lib/picture/decodeAutoMovieRasterPng.mjs.map +1 -1
- package/lib/picture/encodeAutoMovieRasterPng.d.ts +1 -1
- package/lib/picture/encodeAutoMovieRasterPng.js.map +1 -1
- package/lib/picture/encodeAutoMovieRasterPng.mjs.map +1 -1
- package/lib/picture/hashAutoMovieRasterImage.d.ts +1 -1
- package/lib/picture/hashAutoMovieRasterImage.mjs.map +1 -1
- package/lib/picture/stampAutoMovieRasterLabel.d.ts +2 -5
- package/lib/picture/stampAutoMovieRasterLabel.js.map +1 -1
- package/lib/picture/stampAutoMovieRasterLabel.mjs.map +1 -1
- package/lib/planCaptionSidecar.d.ts +2 -8
- package/lib/planCaptionSidecar.js.map +1 -1
- package/lib/planCaptionSidecar.mjs.map +1 -1
- package/lib/planChunkedSequenceRender.d.ts +2 -9
- package/lib/planChunkedSequenceRender.js.map +1 -1
- package/lib/planChunkedSequenceRender.mjs.map +1 -1
- package/lib/planGuidePassOutputs.d.ts +2 -6
- package/lib/planGuidePassOutputs.js.map +1 -1
- package/lib/planGuidePassOutputs.mjs.map +1 -1
- package/lib/planPoseKeypointSidecar.d.ts +2 -12
- package/lib/planPoseKeypointSidecar.js.map +1 -1
- package/lib/planPoseKeypointSidecar.mjs.map +1 -1
- package/lib/planSequenceRender.d.ts +2 -9
- package/lib/planSequenceRender.js.map +1 -1
- package/lib/planSequenceRender.mjs.map +1 -1
- package/lib/planViewerFrameTimes.d.ts +2 -16
- package/lib/planViewerFrameTimes.js.map +1 -1
- package/lib/planViewerFrameTimes.mjs.map +1 -1
- package/lib/renderAndSee.d.ts +1 -2
- package/lib/renderAndSee.js.map +1 -1
- package/lib/renderAndSee.mjs.map +1 -1
- package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.d.ts +1 -41
- package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.d.ts +1 -53
- package/lib/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.d.ts +1 -27
- package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.d.ts +2 -13
- package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.js.map +1 -1
- package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.mjs.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.d.ts +2 -8
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.js.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.mjs.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.d.ts +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.js.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.mjs.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.d.ts +1 -2
- package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.js.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.mjs.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.d.ts +2 -8
- package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.js.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.mjs.map +1 -1
- package/lib/renderCaptionSidecar.d.ts +1 -1
- package/lib/renderCaptionSidecar.mjs.map +1 -1
- package/lib/renderPoseKeypointSidecar.d.ts +1 -1
- package/lib/renderPoseKeypointSidecar.mjs.map +1 -1
- package/lib/renderSequenceAndSee.d.ts +1 -2
- package/lib/renderSequenceAndSee.js.map +1 -1
- package/lib/renderSequenceAndSee.mjs.map +1 -1
- package/lib/renderSequenceVideo.d.ts +1 -3
- package/lib/renderSequenceVideo.js.map +1 -1
- package/lib/renderSequenceVideo.mjs.map +1 -1
- package/lib/renderVideo.d.ts +1 -3
- package/lib/renderVideo.js.map +1 -1
- package/lib/renderVideo.mjs.map +1 -1
- package/lib/scene/AutoMovieFilmBeautyComposition.d.ts +1 -25
- package/lib/scene/AutoMoviePlayer.d.ts +1 -2
- package/lib/scene/AutoMoviePlayer.js.map +1 -1
- package/lib/scene/AutoMoviePlayer.mjs.map +1 -1
- package/lib/scene/IApplyAutoMovieSectionPlanesProps.d.ts +1 -1
- package/lib/scene/IAutoMovieFilmBeautyLayer.d.ts +1 -12
- package/lib/scene/IAutoMovieFormationPoseTake.d.ts +1 -22
- package/lib/scene/IAutoMovieFormationViewerObject.d.ts +1 -2
- package/lib/scene/IAutoMovieRigLocalTransform.d.ts +1 -15
- package/lib/scene/IAutoMovieSpringAxisSettlement.d.ts +2 -2
- package/lib/scene/IBakeFormationCycleProps.d.ts +1 -2
- package/lib/scene/applyAutoMovieRigLocals.d.ts +1 -2
- package/lib/scene/applyAutoMovieRigLocals.js.map +1 -1
- package/lib/scene/applyAutoMovieRigLocals.mjs.map +1 -1
- package/lib/scene/applyAutoMovieSectionPlanes.mjs.map +1 -1
- package/lib/scene/applyFormationCycleCadence.d.ts +1 -1
- package/lib/scene/applyFormationCycleCadence.mjs.map +1 -1
- package/lib/scene/applyPose.d.ts +1 -2
- package/lib/scene/applyPose.js.map +1 -1
- package/lib/scene/applyPose.mjs.map +1 -1
- package/lib/scene/applyRenderMode.js.map +1 -1
- package/lib/scene/applyRenderMode.mjs.map +1 -1
- package/lib/scene/applySampledObjectMotion.d.ts +1 -1
- package/lib/scene/applySampledObjectMotion.mjs.map +1 -1
- package/lib/scene/applySemanticMaskMode.d.ts +1 -1
- package/lib/scene/applySemanticMaskMode.js.map +1 -1
- package/lib/scene/applySemanticMaskMode.mjs.map +1 -1
- package/lib/scene/autoMovieAnalysisRampColor.d.ts +2 -5
- package/lib/scene/autoMovieAnalysisRampColor.js.map +1 -1
- package/lib/scene/autoMovieAnalysisRampColor.mjs.map +1 -1
- package/lib/scene/bakeFormationCycle.d.ts +2 -1
- package/lib/scene/bakeFormationCycle.js +3 -2
- package/lib/scene/bakeFormationCycle.js.map +1 -1
- package/lib/scene/bakeFormationCycle.mjs +3 -2
- package/lib/scene/bakeFormationCycle.mjs.map +1 -1
- package/lib/scene/buildAutoMovieConstruction.d.ts +2 -5
- package/lib/scene/buildAutoMovieConstruction.js.map +1 -1
- package/lib/scene/buildAutoMovieConstruction.mjs.map +1 -1
- package/lib/scene/buildGeometry.d.ts +1 -1
- package/lib/scene/buildGeometry.js.map +1 -1
- package/lib/scene/buildGeometry.mjs.map +1 -1
- package/lib/scene/buildInstancedEffect.js.map +1 -1
- package/lib/scene/buildInstancedEffect.mjs.map +1 -1
- package/lib/scene/buildInstancedFormation.js.map +1 -1
- package/lib/scene/buildInstancedFormation.mjs.map +1 -1
- package/lib/scene/buildSpaceObject.js.map +1 -1
- package/lib/scene/buildSpaceObject.mjs.map +1 -1
- package/lib/scene/createAutoMoviePhysicalPoseAdapter.d.ts +2 -2
- package/lib/scene/createAutoMoviePhysicalPoseAdapter.js.map +1 -1
- package/lib/scene/createAutoMoviePhysicalPoseAdapter.mjs.map +1 -1
- package/lib/scene/describeFormationTextureSources.d.ts +1 -2
- package/lib/scene/describeFormationTextureSources.mjs.map +1 -1
- package/lib/scene/formation/index.d.ts +1 -1
- package/lib/scene/formationCycleCadence.d.ts +1 -1
- package/lib/scene/formationCycleCadence.mjs.map +1 -1
- package/lib/scene/human-polygon/AutoMovieHumanPolygon.d.ts +7 -57
- package/lib/scene/human-polygon/applyHumanPolygonPose.d.ts +2 -2
- package/lib/scene/human-polygon/applyHumanPolygonPose.js.map +1 -1
- package/lib/scene/human-polygon/applyHumanPolygonPose.mjs.map +1 -1
- package/lib/scene/human-polygon/buildHumanPolygon.d.ts +2 -1
- package/lib/scene/human-polygon/buildHumanPolygon.js.map +1 -1
- package/lib/scene/human-polygon/buildHumanPolygon.mjs.map +1 -1
- package/lib/scene/human-polygon/buildHumanPolygonModule.d.ts +2 -2
- package/lib/scene/human-polygon/buildHumanPolygonModule.js.map +1 -1
- package/lib/scene/human-polygon/buildHumanPolygonModule.mjs.map +1 -1
- package/lib/scene/human-polygon/buildHumanPolygonParts.d.ts +2 -2
- package/lib/scene/human-polygon/buildHumanPolygonParts.js.map +1 -1
- package/lib/scene/human-polygon/buildHumanPolygonParts.mjs.map +1 -1
- package/lib/scene/human-polygon/createAutoMovieHumanPolygonFigure.d.ts +3 -2
- package/lib/scene/human-polygon/createAutoMovieHumanPolygonFigure.js.map +1 -1
- package/lib/scene/human-polygon/createAutoMovieHumanPolygonFigure.mjs.map +1 -1
- package/lib/scene/index.d.ts +1 -1
- package/lib/scene/index.js +0 -1
- package/lib/scene/index.js.map +1 -1
- package/lib/scene/index.mjs +6 -6
- package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.d.ts +2 -4
- package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.js.map +1 -1
- package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.mjs.map +1 -1
- package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.d.ts +1 -1
- package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.mjs.map +1 -1
- package/lib/scene/inspection/IApplyAutoMovieInspectionProps.d.ts +2 -3
- package/lib/scene/inspection/IAutoMovieInspectionCamera.d.ts +1 -29
- package/lib/scene/inspection/IAutoMovieInspectionHandle.d.ts +3 -6
- package/lib/scene/inspection/IAutoMovieInspectionKind.d.ts +1 -16
- package/lib/scene/inspection/IAutoMovieInspectionLabel.d.ts +1 -18
- package/lib/scene/inspection/IAutoMovieInspectionLegendEntry.d.ts +1 -22
- package/lib/scene/inspection/IAutoMovieInspectionMarkSet.d.ts +1 -1
- package/lib/scene/inspection/IAutoMovieInspectionMeasured.d.ts +1 -1
- package/lib/scene/inspection/IAutoMovieInspectionRequest.d.ts +1 -99
- package/lib/scene/inspection/IAutoMovieInspectionTrail.d.ts +1 -18
- package/lib/scene/inspection/IAutoMovieInspectionView.d.ts +1 -80
- package/lib/scene/inspection/applyAutoMovieInspection.js.map +1 -1
- package/lib/scene/inspection/applyAutoMovieInspection.mjs.map +1 -1
- package/lib/scene/inspection/applyAutoMovieInspectionSection.d.ts +1 -1
- package/lib/scene/inspection/applyAutoMovieInspectionSection.mjs.map +1 -1
- package/lib/scene/inspection/applyAutoMovieInspectionShade.d.ts +2 -2
- package/lib/scene/inspection/applyAutoMovieInspectionShade.js.map +1 -1
- package/lib/scene/inspection/applyAutoMovieInspectionShade.mjs.map +1 -1
- package/lib/scene/inspection/buildAutoMovieInspectionMarks.mjs.map +1 -1
- package/lib/scene/inspection/chooseAutoMovieInspectionMarks.d.ts +1 -1
- package/lib/scene/inspection/chooseAutoMovieInspectionMarks.mjs.map +1 -1
- package/lib/scene/inspection/colorAutoMovieInspectionObjects.d.ts +3 -3
- package/lib/scene/inspection/colorAutoMovieInspectionObjects.js.map +1 -1
- package/lib/scene/inspection/colorAutoMovieInspectionObjects.mjs.map +1 -1
- package/lib/scene/inspection/expandAutoMovieInspectionSweep.d.ts +2 -17
- package/lib/scene/inspection/expandAutoMovieInspectionSweep.js.map +1 -1
- package/lib/scene/inspection/expandAutoMovieInspectionSweep.mjs.map +1 -1
- package/lib/scene/inspection/focusAutoMovieInspection.d.ts +2 -3
- package/lib/scene/inspection/focusAutoMovieInspection.js.map +1 -1
- package/lib/scene/inspection/focusAutoMovieInspection.mjs.map +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionCameraView.d.ts +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionCameraView.js.map +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionCameraView.mjs.map +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionRequest.d.ts +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionRequest.js.map +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionRequest.mjs.map +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionView.d.ts +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionView.js.map +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionView.mjs.map +1 -1
- package/lib/scene/inspection/legendAutoMovieInspectionMarks.d.ts +2 -6
- package/lib/scene/inspection/legendAutoMovieInspectionMarks.js.map +1 -1
- package/lib/scene/inspection/legendAutoMovieInspectionMarks.mjs.map +1 -1
- package/lib/scene/inspection/listAutoMovieInspectionKinds.d.ts +2 -9
- package/lib/scene/inspection/listAutoMovieInspectionKinds.js.map +1 -1
- package/lib/scene/inspection/listAutoMovieInspectionKinds.mjs.map +1 -1
- package/lib/scene/inspection/markAutoMovieInspectionTrails.d.ts +1 -2
- package/lib/scene/inspection/markAutoMovieInspectionTrails.js.map +1 -1
- package/lib/scene/inspection/markAutoMovieInspectionTrails.mjs.map +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionDefects.d.ts +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionDefects.js.map +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionDefects.mjs.map +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionEdges.mjs.map +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionMeshes.d.ts +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionMeshes.mjs.map +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionPaths.d.ts +2 -7
- package/lib/scene/inspection/measureAutoMovieInspectionPaths.js.map +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionPaths.mjs.map +1 -1
- package/lib/scene/inspection/mergeAutoMovieInspectionLegends.d.ts +1 -1
- package/lib/scene/inspection/mergeAutoMovieInspectionLegends.mjs.map +1 -1
- package/lib/scene/inspection/parseAutoMovieInspectionRequest.d.ts +1 -1
- package/lib/scene/inspection/parseAutoMovieInspectionRequest.js.map +1 -1
- package/lib/scene/inspection/parseAutoMovieInspectionRequest.mjs.map +1 -1
- package/lib/scene/inspection/parseAutoMovieInspectionView.d.ts +1 -1
- package/lib/scene/inspection/parseAutoMovieInspectionView.js.map +1 -1
- package/lib/scene/inspection/parseAutoMovieInspectionView.mjs.map +1 -1
- package/lib/scene/inspection/placeAutoMovieInspectionLabels.d.ts +2 -6
- package/lib/scene/inspection/placeAutoMovieInspectionLabels.js.map +1 -1
- package/lib/scene/inspection/placeAutoMovieInspectionLabels.mjs.map +1 -1
- package/lib/scene/inspection/planAutoMovieInspectionTrailTimes.d.ts +2 -9
- package/lib/scene/inspection/planAutoMovieInspectionTrailTimes.js.map +1 -1
- package/lib/scene/inspection/planAutoMovieInspectionTrailTimes.mjs.map +1 -1
- package/lib/scene/inspection/resolveAutoMovieInspectionColors.d.ts +2 -18
- package/lib/scene/inspection/resolveAutoMovieInspectionColors.js.map +1 -1
- package/lib/scene/inspection/resolveAutoMovieInspectionColors.mjs.map +1 -1
- package/lib/scene/inspection/resolveAutoMovieInspectionView.d.ts +1 -2
- package/lib/scene/inspection/resolveAutoMovieInspectionView.js.map +1 -1
- package/lib/scene/inspection/resolveAutoMovieInspectionView.mjs.map +1 -1
- package/lib/scene/inspection/sampleAutoMovieInspectionTrails.d.ts +1 -1
- package/lib/scene/inspection/sampleAutoMovieInspectionTrails.js.map +1 -1
- package/lib/scene/inspection/sampleAutoMovieInspectionTrails.mjs.map +1 -1
- package/lib/scene/matchesAutoMovieShadowTextureProfile.d.ts +1 -1
- package/lib/scene/matchesAutoMovieShadowTextureProfile.mjs.map +1 -1
- package/lib/scene/observeAutoMovieRendererFrame.d.ts +2 -5
- package/lib/scene/observeAutoMovieRendererFrame.js.map +1 -1
- package/lib/scene/observeAutoMovieRendererFrame.mjs.map +1 -1
- package/lib/scene/planAutoMovieShadowTextureTarget.d.ts +1 -1
- package/lib/scene/planAutoMovieShadowTextureTarget.mjs.map +1 -1
- package/lib/scene/readAutoMovieFilmDisplayTextureResidency.d.ts +2 -6
- package/lib/scene/readAutoMovieFilmDisplayTextureResidency.js.map +1 -1
- package/lib/scene/readAutoMovieFilmDisplayTextureResidency.mjs.map +1 -1
- package/lib/scene/readAutoMovieMaterialTextureSources.d.ts +3 -5
- package/lib/scene/readAutoMovieMaterialTextureSources.js.map +1 -1
- package/lib/scene/readAutoMovieMaterialTextureSources.mjs.map +1 -1
- package/lib/scene/readAutoMovieRenderTextureTarget.d.ts +1 -1
- package/lib/scene/readAutoMovieRenderTextureTarget.mjs.map +1 -1
- package/lib/scene/readAutoMovieShadowTextureTargets.d.ts +1 -2
- package/lib/scene/readAutoMovieShadowTextureTargets.js.map +1 -1
- package/lib/scene/readAutoMovieShadowTextureTargets.mjs.map +1 -1
- package/lib/scene/readAutoMovieTextureSource.d.ts +1 -1
- package/lib/scene/readAutoMovieTextureSource.js.map +1 -1
- package/lib/scene/readAutoMovieTextureSource.mjs.map +1 -1
- package/lib/scene/readAutoMovieTransmissionTextureTarget.d.ts +1 -1
- package/lib/scene/readAutoMovieTransmissionTextureTarget.mjs.map +1 -1
- package/lib/scene/resolveAutoMovieFilmBeautyComposition.d.ts +2 -3
- package/lib/scene/resolveAutoMovieFilmBeautyComposition.js.map +1 -1
- package/lib/scene/resolveAutoMovieFilmBeautyComposition.mjs.map +1 -1
- package/lib/scene/semanticMask/IAutoMovieSemanticMaskBinding.d.ts +1 -19
- package/lib/scene/semanticMask/attachAutoMovieSemanticMask.d.ts +1 -1
- package/lib/scene/semanticMask/attachAutoMovieSemanticMask.mjs.map +1 -1
- package/lib/scene/semanticMask/autoMovieSemanticMaskOf.d.ts +1 -1
- package/lib/scene/semanticMask/autoMovieSemanticMaskOf.mjs.map +1 -1
- package/lib/sliceCaptionSidecar.d.ts +1 -1
- package/lib/sliceCaptionSidecar.mjs.map +1 -1
- package/package.json +7 -7
- package/src/IAutoMovieCaptionEntry.ts +1 -32
- package/src/IAutoMovieCaptionSidecar.ts +1 -29
- package/src/IAutoMovieCapturedFrame.ts +1 -24
- package/src/IAutoMovieGuidePassOutput.ts +1 -27
- package/src/IAutoMoviePoseKeypointActor.ts +1 -39
- package/src/IAutoMoviePoseKeypointFrame.ts +1 -28
- package/src/IAutoMoviePoseKeypointSidecar.ts +1 -25
- package/src/IAutoMovieRenderAdapters.ts +1 -39
- package/src/IAutoMovieRenderAndSeeRequest.ts +1 -38
- package/src/IAutoMovieRenderAndSeeResult.ts +1 -23
- package/src/IAutoMovieRenderChunk.ts +1 -62
- package/src/IAutoMovieRenderChunkPlan.ts +1 -40
- package/src/IAutoMovieRenderPassManifest.ts +1 -25
- package/src/IAutoMovieRenderReassembly.ts +1 -28
- package/src/IAutoMovieRenderResult.ts +1 -46
- package/src/IAutoMovieSequenceRenderAdapters.ts +1 -41
- package/src/IAutoMovieSequenceRenderAndSeeRequest.ts +1 -47
- package/src/IAutoMovieSequenceRenderAndSeeResult.ts +1 -23
- package/src/IAutoMovieSequenceRenderFrame.ts +1 -48
- package/src/IAutoMovieSequenceRenderPlan.ts +1 -88
- package/src/IAutoMovieSequenceRenderResult.ts +1 -52
- package/src/IAutoMovieSequenceRenderShotSpan.ts +1 -46
- package/src/IAutoMovieSequenceRenderTransitionSpan.ts +1 -46
- package/src/audio/mixAutoMovieAudioPcm.ts +10 -44
- package/src/auditAutoMovieRenderObservation.ts +5 -14
- package/src/cache/createAutoMovieHttpArtifactStore.ts +1 -1
- package/src/caption/IAutoMovieBeatCaption.ts +1 -23
- package/src/caption/beatCaptions.ts +1 -1
- package/src/caption/inspectAutoMovieCaptionReadabilityWithRuntime.ts +1 -12
- package/src/caption/parseAutoMovieCaptionLanguage.ts +1 -13
- package/src/capture/AutoMovieCaptureFolder.ts +10 -16
- package/src/capture/IAutoMovieCaptureBudget.ts +1 -26
- package/src/capture/IAutoMovieCaptureCell.ts +1 -42
- package/src/capture/IAutoMovieCaptureComparison.ts +1 -96
- package/src/capture/IAutoMovieCaptureDrawing.ts +1 -64
- package/src/capture/IAutoMovieCaptureLayout.ts +1 -51
- package/src/capture/IAutoMovieCapturePlan.ts +1 -36
- package/src/capture/IAutoMovieCapturePlanRequest.ts +1 -117
- package/src/capture/IAutoMovieCaptureRecord.ts +1 -174
- package/src/capture/IAutoMovieCaptureRequestSource.ts +1 -37
- package/src/capture/IAutoMovieCaptureResolution.ts +1 -23
- package/src/capture/IAutoMovieCaptureSelection.ts +1 -28
- package/src/capture/IAutoMovieCaptureStorage.ts +1 -76
- package/src/capture/IAutoMovieCaptureSubject.ts +1 -94
- package/src/capture/IAutoMovieCaptureTime.ts +1 -17
- package/src/capture/IAutoMovieCaptureWindow.ts +1 -29
- package/src/capture/compareAutoMovieCaptureRounds.ts +33 -48
- package/src/capture/formatAutoMovieCapturePlanRequest.ts +7 -3
- package/src/capture/markAutoMovieCaptureCell.ts +1 -1
- package/src/capture/parseAutoMovieCapturePlanRequest.ts +13 -10
- package/src/capture/planAutoMovieCapture.ts +20 -21
- package/src/capture/planAutoMovieCaptureFrames.ts +9 -28
- package/src/capture/planAutoMovieCaptureLayout.ts +8 -21
- package/src/capture/planAutoMovieVideoFrames.ts +5 -10
- package/src/capture/planAutoMovieVideoSceneCuts.ts +5 -10
- package/src/capture/readAutoMovieVideoSceneCuts.ts +5 -7
- package/src/capture/resolveAutoMovieCapturePatterns.ts +11 -14
- package/src/capture/runAutoMovieCapture.ts +19 -33
- package/src/capture/runAutoMovieVideoCapture.ts +13 -32
- package/src/capture/scaleAutoMovieCaptureLabels.ts +5 -2
- package/src/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.ts +5 -6
- package/src/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.ts +17 -27
- package/src/delivery/AutoMovieProductionPngRole.ts +1 -18
- package/src/delivery/IAutoMovieProductionPngProfile.ts +1 -52
- package/src/delivery/IAutoMovieProductionVideoProfile.ts +1 -48
- package/src/delivery/assertAutoMovieCaptureClock.ts +7 -7
- package/src/delivery/assertProductionPngPicture.ts +8 -13
- package/src/delivery/assertProductionVideoProfile.ts +5 -12
- package/src/delivery/auditAutoMovieDecodedFrames.ts +17 -56
- package/src/delivery/auditAutoMovieEncodedPresentation.ts +3 -8
- package/src/delivery/planAutoMovieVideoEncoding.ts +8 -23
- package/src/delivery/productionOpusDescription.ts +9 -15
- package/src/delivery/resolveProductionPngProfile.ts +9 -17
- package/src/delivery/resolveProductionVideoProfile.ts +9 -16
- package/src/draw/AutoMovieDrawSession.ts +19 -18
- package/src/draw/IAutoMovieDrawCall.ts +1 -34
- package/src/draw/IAutoMovieDrawDescription.ts +1 -17
- package/src/draw/IAutoMovieDrawFunction.ts +5 -3
- package/src/draw/IAutoMovieDrawResult.ts +1 -45
- package/src/draw/IAutoMovieDrawScene.ts +10 -2
- package/src/draw/decodeAutoMovieDrawPixels.ts +5 -3
- package/src/draw/describeAutoMovieDrawScene.ts +18 -11
- package/src/draw/index.ts +1 -0
- package/src/draw/installAutoMovieDraw.ts +43 -45
- package/src/draw/planAutoMovieDrawCall.ts +8 -5
- package/src/draw/renderAutoMovieDrawnVideo.ts +6 -9
- package/src/draw/replaceAutoMovieDrawInspection.ts +36 -0
- package/src/draw/stampAutoMovieDrawLegend.ts +7 -5
- package/src/film/AutoMovieOrderedScalar.ts +1 -15
- package/src/film/IAutoMovieProductionAudioAssetIdentity.ts +1 -40
- package/src/film/IAutoMovieProductionAudioAssetIdentityBase.ts +1 -34
- package/src/film/IAutoMovieProductionEncoderIdentity.ts +1 -42
- package/src/film/IAutoMovieProductionRenderChunk.ts +1 -47
- package/src/film/IAutoMovieProductionRenderJobPlan.ts +1 -73
- package/src/film/IAutoMovieProductionRenderRuntimeIdentity.ts +1 -37
- package/src/film/IAutoMovieProductionRenderTier.ts +1 -27
- package/src/film/equalOrderedScalars.ts +10 -10
- package/src/film/normalizeAudioAssets.ts +4 -2
- package/src/film/normalizeRenderTier.ts +1 -1
- package/src/film/planProductionRenderJob.ts +11 -48
- package/src/film/resolveProductionRenderTierFrameFormat.ts +1 -1
- package/src/film/validWaveAudioIdentity.ts +3 -3
- package/src/picture/AutoMovieRasterSheet.ts +7 -3
- package/src/picture/IAutoMovieRasterComparison.ts +1 -33
- package/src/picture/IAutoMovieRasterImage.ts +1 -19
- package/src/picture/compareAutoMovieRasters.ts +4 -2
- package/src/picture/decodeAutoMovieRasterPng.ts +2 -1
- package/src/picture/encodeAutoMovieRasterPng.ts +2 -1
- package/src/picture/hashAutoMovieRasterImage.ts +1 -1
- package/src/picture/stampAutoMovieRasterLabel.ts +5 -2
- package/src/planCaptionSidecar.ts +11 -30
- package/src/planChunkedSequenceRender.ts +15 -26
- package/src/planGuidePassOutputs.ts +10 -16
- package/src/planPoseKeypointSidecar.ts +11 -40
- package/src/planSequenceRender.ts +11 -32
- package/src/planViewerFrameTimes.ts +5 -22
- package/src/renderAndSee.ts +5 -2
- package/src/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.ts +1 -53
- package/src/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.ts +1 -61
- package/src/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.ts +1 -29
- package/src/renderBudgetPreflight/assessAutoMovieRenderBudget.ts +9 -37
- package/src/renderBudgetPreflight/autoMovieRenderBudgetEvidence.ts +11 -15
- package/src/renderBudgetPreflight/autoMovieRenderBudgetRefusal.ts +2 -3
- package/src/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.ts +4 -3
- package/src/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.ts +7 -19
- package/src/renderCaptionSidecar.ts +1 -1
- package/src/renderPoseKeypointSidecar.ts +1 -1
- package/src/renderSequenceAndSee.ts +5 -2
- package/src/renderSequenceVideo.ts +6 -4
- package/src/renderVideo.ts +5 -3
- package/src/scene/AutoMovieFilmBeautyComposition.ts +1 -24
- package/src/scene/AutoMoviePlayer.ts +12 -12
- package/src/scene/IApplyAutoMovieSectionPlanesProps.ts +1 -1
- package/src/scene/IAutoMovieFilmBeautyLayer.ts +1 -12
- package/src/scene/IAutoMovieFormationPoseTake.ts +1 -26
- package/src/scene/IAutoMovieFormationViewerObject.ts +4 -2
- package/src/scene/IAutoMovieRigLocalTransform.ts +1 -16
- package/src/scene/IAutoMovieSpringAxisSettlement.ts +2 -2
- package/src/scene/IBakeFormationCycleProps.ts +4 -2
- package/src/scene/applyAutoMovieRigLocals.ts +4 -2
- package/src/scene/applyAutoMovieSectionPlanes.ts +1 -1
- package/src/scene/applyFormationCycleCadence.ts +1 -1
- package/src/scene/applyPose.ts +2 -5
- package/src/scene/applyRenderMode.ts +5 -5
- package/src/scene/applySampledObjectMotion.ts +1 -1
- package/src/scene/applySemanticMaskMode.ts +1 -1
- package/src/scene/autoMovieAnalysisRampColor.ts +7 -5
- package/src/scene/bakeFormationCycle.ts +4 -3
- package/src/scene/buildAutoMovieConstruction.ts +2 -5
- package/src/scene/buildGeometry.ts +6 -9
- package/src/scene/buildInstancedEffect.ts +6 -6
- package/src/scene/buildInstancedFormation.ts +3 -3
- package/src/scene/buildSpaceObject.ts +7 -3
- package/src/scene/createAutoMoviePhysicalPoseAdapter.ts +4 -4
- package/src/scene/describeFormationTextureSources.ts +2 -2
- package/src/scene/formation/index.ts +1 -1
- package/src/scene/formationCycleCadence.ts +1 -1
- package/src/scene/human-polygon/AutoMovieHumanPolygon.ts +7 -67
- package/src/scene/human-polygon/applyHumanPolygonPose.ts +12 -7
- package/src/scene/human-polygon/buildHumanPolygon.ts +23 -12
- package/src/scene/human-polygon/buildHumanPolygonModule.ts +6 -3
- package/src/scene/human-polygon/buildHumanPolygonParts.ts +10 -6
- package/src/scene/human-polygon/createAutoMovieHumanPolygonFigure.ts +10 -3
- package/src/scene/index.ts +1 -1
- package/src/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.ts +3 -1
- package/src/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.ts +1 -1
- package/src/scene/inspection/IApplyAutoMovieInspectionProps.ts +5 -3
- package/src/scene/inspection/IAutoMovieInspectionCamera.ts +1 -38
- package/src/scene/inspection/IAutoMovieInspectionHandle.ts +8 -6
- package/src/scene/inspection/IAutoMovieInspectionKind.ts +1 -18
- package/src/scene/inspection/IAutoMovieInspectionLabel.ts +1 -21
- package/src/scene/inspection/IAutoMovieInspectionLegendEntry.ts +1 -24
- package/src/scene/inspection/IAutoMovieInspectionMarkSet.ts +1 -1
- package/src/scene/inspection/IAutoMovieInspectionMeasured.ts +1 -1
- package/src/scene/inspection/IAutoMovieInspectionRequest.ts +1 -115
- package/src/scene/inspection/IAutoMovieInspectionTrail.ts +1 -21
- package/src/scene/inspection/IAutoMovieInspectionView.ts +1 -92
- package/src/scene/inspection/applyAutoMovieInspection.ts +12 -8
- package/src/scene/inspection/applyAutoMovieInspectionSection.ts +1 -1
- package/src/scene/inspection/applyAutoMovieInspectionShade.ts +2 -2
- package/src/scene/inspection/buildAutoMovieInspectionMarks.ts +1 -1
- package/src/scene/inspection/chooseAutoMovieInspectionMarks.ts +1 -1
- package/src/scene/inspection/colorAutoMovieInspectionObjects.ts +6 -3
- package/src/scene/inspection/expandAutoMovieInspectionSweep.ts +8 -15
- package/src/scene/inspection/focusAutoMovieInspection.ts +6 -4
- package/src/scene/inspection/formatAutoMovieInspectionCameraView.ts +2 -1
- package/src/scene/inspection/formatAutoMovieInspectionRequest.ts +6 -3
- package/src/scene/inspection/formatAutoMovieInspectionView.ts +4 -3
- package/src/scene/inspection/legendAutoMovieInspectionMarks.ts +6 -3
- package/src/scene/inspection/listAutoMovieInspectionKinds.ts +7 -10
- package/src/scene/inspection/markAutoMovieInspectionTrails.ts +4 -2
- package/src/scene/inspection/measureAutoMovieInspectionDefects.ts +5 -5
- package/src/scene/inspection/measureAutoMovieInspectionEdges.ts +1 -1
- package/src/scene/inspection/measureAutoMovieInspectionMeshes.ts +1 -1
- package/src/scene/inspection/measureAutoMovieInspectionPaths.ts +6 -3
- package/src/scene/inspection/mergeAutoMovieInspectionLegends.ts +1 -1
- package/src/scene/inspection/parseAutoMovieInspectionRequest.ts +10 -7
- package/src/scene/inspection/parseAutoMovieInspectionView.ts +6 -4
- package/src/scene/inspection/placeAutoMovieInspectionLabels.ts +6 -7
- package/src/scene/inspection/planAutoMovieInspectionTrailTimes.ts +4 -11
- package/src/scene/inspection/resolveAutoMovieInspectionColors.ts +7 -11
- package/src/scene/inspection/resolveAutoMovieInspectionView.ts +5 -3
- package/src/scene/inspection/sampleAutoMovieInspectionTrails.ts +1 -1
- package/src/scene/matchesAutoMovieShadowTextureProfile.ts +1 -1
- package/src/scene/observeAutoMovieRendererFrame.ts +3 -3
- package/src/scene/planAutoMovieShadowTextureTarget.ts +1 -1
- package/src/scene/readAutoMovieFilmDisplayTextureResidency.ts +3 -12
- package/src/scene/readAutoMovieMaterialTextureSources.ts +5 -3
- package/src/scene/readAutoMovieRenderTextureTarget.ts +1 -1
- package/src/scene/readAutoMovieShadowTextureTargets.ts +5 -5
- package/src/scene/readAutoMovieTextureSource.ts +4 -2
- package/src/scene/readAutoMovieTransmissionTextureTarget.ts +1 -1
- package/src/scene/resolveAutoMovieFilmBeautyComposition.ts +6 -4
- package/src/scene/semanticMask/IAutoMovieSemanticMaskBinding.ts +1 -24
- package/src/scene/semanticMask/attachAutoMovieSemanticMask.ts +1 -1
- package/src/scene/semanticMask/autoMovieSemanticMaskOf.ts +1 -1
- package/src/sliceCaptionSidecar.ts +2 -2
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { IAutoMovieInspectionKind } from "./IAutoMovieInspectionKind.js";
|
|
3
|
-
import type { IAutoMovieInspectionRequest } from "./IAutoMovieInspectionRequest.js";
|
|
1
|
+
import type { IAutoMovieInspectionKind, IAutoMovieListInspectionKindsProps } from "@automovie/interface";
|
|
4
2
|
/**
|
|
5
3
|
* List the mark kinds a request's `marks` patterns may name for a set of supplied marks: what a picture can draw, each with its label and default colour.
|
|
6
4
|
*
|
|
@@ -16,9 +14,4 @@ import type { IAutoMovieInspectionRequest } from "./IAutoMovieInspectionRequest.
|
|
|
16
14
|
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of its arguments.
|
|
17
15
|
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns fresh records and keeps nothing.
|
|
18
16
|
*/
|
|
19
|
-
export declare function listAutoMovieInspectionKinds(props:
|
|
20
|
-
/** The request's sliver limit and trail patterns, which decide the conditional kinds. */
|
|
21
|
-
request: Pick<IAutoMovieInspectionRequest, "sliver" | "trail">;
|
|
22
|
-
/** The marks the subject supplies. */
|
|
23
|
-
marks: readonly IAutoMovieMark[];
|
|
24
|
-
}): IAutoMovieInspectionKind[];
|
|
17
|
+
export declare function listAutoMovieInspectionKinds(props: IAutoMovieListInspectionKindsProps): IAutoMovieInspectionKind[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listAutoMovieInspectionKinds.js","sourceRoot":"","sources":["../../../src/scene/inspection/listAutoMovieInspectionKinds.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"listAutoMovieInspectionKinds.js","sourceRoot":"","sources":["../../../src/scene/inspection/listAutoMovieInspectionKinds.ts"],"names":[],"mappings":";;;AAKA,qFAA+E;AAE/E;;;;;;;;;;;;;;GAcG;AACH,sCACE,KAAyC;IAEzC,MAAM,KAAK,GAA0C,IAAI,GAAG,EAGzD,CAAC;IACJ,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,KAAK;QAC5B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;YACvB,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE;gBACnB,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,KAAK,EAAE,IAAI,CAAC,KAAK;aAClB,CAAC,CAAC;IACP,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,4DAA2B,CAAC,EAAE,CAAC;QACxE,IAAI,IAAI,KAAK,eAAe,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,KAAK,IAAI;YAAE,SAAS;QACxE,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;YAAE,SAAS;QAC3E,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;YAClB,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;IACtE,CAAC;IACD,OAAO,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;AAC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listAutoMovieInspectionKinds.mjs","names":[],"sources":["../../../src/scene/inspection/listAutoMovieInspectionKinds.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"listAutoMovieInspectionKinds.mjs","names":[],"sources":["../../../src/scene/inspection/listAutoMovieInspectionKinds.ts"],"sourcesContent":["import type {\n IAutoMovieInspectionKind,\n IAutoMovieListInspectionKindsProps,\n} from \"@automovie/interface\";\n\nimport { AUTO_MOVIE_INSPECTION_KINDS } from \"./AUTO_MOVIE_INSPECTION_KINDS.js\";\n\n/**\n * List the mark kinds a request's `marks` patterns may name for a set of supplied marks: what a picture can draw, each with its label and default colour.\n *\n * The supplied marks' kinds come first, in the order they first appear, with the label and colour of their first mark. The inspection's own kinds follow in `AUTO_MOVIE_INSPECTION_KINDS` order: `edge` and the `defect/<kind>` kinds always, since every mesh has them, except `defect/sliver`, which exists only while the request sets a sliver limit, and `trail` and `trail/now` only while the request names a trail. A supplied kind that has an inspection kind's name is listed once, as supplied.\n *\n * `applyAutoMovieInspection` refuses a `marks` pattern that matches none of these, and an inspector panel and a capture plan read the same list.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the order, where each label and colour come from, when the conditional kinds exist, how a name clash is listed, and who reads the list.\n * @evidence contracts/development/implementation.md#principled-implementation A kind exists when something can draw it: a supplied mark, a mesh measurement that needs no input, a sliver measurement that needs its limit, or a trail the request asks for.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One pass over the supplied marks, then one over the inspection's own table with its two conditions.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The inspection's own kinds are read from their one table, not restated, and no supplied kind is named.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the supplied marks, with one hashed lookup each.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of its arguments.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns fresh records and keeps nothing.\n */\nexport function listAutoMovieInspectionKinds(\n props: IAutoMovieListInspectionKindsProps,\n): IAutoMovieInspectionKind[] {\n const kinds: Map<string, IAutoMovieInspectionKind> = new Map<\n string,\n IAutoMovieInspectionKind\n >();\n for (const mark of props.marks)\n if (!kinds.has(mark.kind))\n kinds.set(mark.kind, {\n kind: mark.kind,\n label: mark.label,\n color: mark.color,\n });\n for (const [kind, entry] of Object.entries(AUTO_MOVIE_INSPECTION_KINDS)) {\n if (kind === \"defect/sliver\" && props.request.sliver === null) continue;\n if (kind.startsWith(\"trail\") && props.request.trail.length === 0) continue;\n if (!kinds.has(kind))\n kinds.set(kind, { kind, label: entry.label, color: entry.color });\n }\n return [...kinds.values()];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAsBA,SAAgB,6BACd,OAC4B;CAC5B,MAAM,wBAA+C,IAAI,IAGvD;CACF,KAAK,MAAM,QAAQ,MAAM,OACvB,IAAI,CAAC,MAAM,IAAI,KAAK,IAAI,GACtB,MAAM,IAAI,KAAK,MAAM;EACnB,MAAM,KAAK;EACX,OAAO,KAAK;EACZ,OAAO,KAAK;CACd,CAAC;CACL,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,2BAA2B,GAAG;EACvE,IAAI,SAAS,mBAAmB,MAAM,QAAQ,WAAW,MAAM;EAC/D,IAAI,KAAK,WAAW,OAAO,KAAK,MAAM,QAAQ,MAAM,WAAW,GAAG;EAClE,IAAI,CAAC,MAAM,IAAI,IAAI,GACjB,MAAM,IAAI,MAAM;GAAE;GAAM,OAAO,MAAM;GAAO,OAAO,MAAM;EAAM,CAAC;CACpE;CACA,OAAO,CAAC,GAAG,MAAM,OAAO,CAAC;AAC3B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { IAutoMovieMark } from "@automovie/
|
|
2
|
-
import type { IAutoMovieInspectionTrail } from "./IAutoMovieInspectionTrail.js";
|
|
1
|
+
import type { IAutoMovieInspectionTrail, IAutoMovieMark } from "@automovie/interface";
|
|
3
2
|
/**
|
|
4
3
|
* Draw sampled trails as marks for one drawn second: each moving object's path as a line through its samples with a tick at every sample, and the sample of the drawn second emphasised.
|
|
5
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markAutoMovieInspectionTrails.js","sourceRoot":"","sources":["../../../src/scene/inspection/markAutoMovieInspectionTrails.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"markAutoMovieInspectionTrails.js","sourceRoot":"","sources":["../../../src/scene/inspection/markAutoMovieInspectionTrails.ts"],"names":[],"mappings":";;;AAKA,qFAA+E;AAE/E,sCAAsC;AACtC,MAAM,KAAK,GACT,4DAA2B,CAAC,KAAM,CAAC;AAErC,2CAA2C;AAC3C,MAAM,GAAG,GACP,4DAA2B,CAAC,WAAW,CAAE,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,uCACE,MAA4C,EAC5C,OAAe;IAEf,MAAM,KAAK,GAAqB,EAAE,CAAC;IACnC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,MAAM,IAAI,GAAW,KAAK,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,QAAQ,CAAC;QACzE,IAAI,OAAO,GAAW,CAAC,CAAC;QACxB,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAY,EAAE,CAAS,EAAQ,EAAE;YACpD,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAE,GAAG,OAAO,CAAC;gBACtE,OAAO,GAAG,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,KAAK,CAAC,UAAU;YACnB,KAAK,CAAC,IAAI,CAAC;gBACT,IAAI;gBACJ,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE;gBACnE,OAAO,EAAE,KAAK;gBACd,MAAM,EAAE,IAAI;aACb,CAAC,CAAC;QACL,KAAK,CAAC,IAAI,CACR;YACE,IAAI;YACJ,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,KAAK,CAAC,UAAU;oBACtB,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;oBAC7B,CAAC,CAAC,KAAK,CAAC,SAAS;aACpB;YACD,OAAO,EAAE,KAAK;YACd,MAAM,EAAE,IAAI;SACb,EACD;YACE,IAAI;YACJ,IAAI,EAAE,WAAW;YACjB,KAAK,EAAE,GAAG,CAAC,KAAK;YAChB,KAAK,EAAE,GAAG,CAAC,KAAK;YAChB,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,EAAE,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC;aAC5D;YACD,OAAO,EAAE,KAAK;YACd,MAAM,EAAE,IAAI;SACb,CACF,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markAutoMovieInspectionTrails.mjs","names":[],"sources":["../../../src/scene/inspection/markAutoMovieInspectionTrails.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"markAutoMovieInspectionTrails.mjs","names":[],"sources":["../../../src/scene/inspection/markAutoMovieInspectionTrails.ts"],"sourcesContent":["import type {\n IAutoMovieInspectionTrail,\n IAutoMovieMark,\n} from \"@automovie/interface\";\n\nimport { AUTO_MOVIE_INSPECTION_KINDS } from \"./AUTO_MOVIE_INSPECTION_KINDS.js\";\n\n/** Legend entry of the trail kind. */\nconst TRAIL: { readonly label: string; readonly color: number } =\n AUTO_MOVIE_INSPECTION_KINDS.trail!;\n\n/** Legend entry of the emphasised tick. */\nconst NOW: { readonly label: string; readonly color: number } =\n AUTO_MOVIE_INSPECTION_KINDS[\"trail/now\"]!;\n\n/**\n * Draw sampled trails as marks for one drawn second: each moving object's path as a line through its samples with a tick at every sample, and the sample of the drawn second emphasised.\n *\n * Per trail, at path `<object path>/trail`: a polyline of kind `trail` through the samples in time order, a points mark of the same kind with one tick per sample, and a points mark of kind `trail/now` at the sample whose second is nearest `seconds`, the earlier one on a tie. A stationary trail has no line and one tick. Both kinds are in world metres and unanchored.\n *\n * | Kind | Label | Colour |\n * | --- | --- | --- |\n * | `trail` | `trail` | Chocolate `d2691e` |\n * | `trail/now` | `trail at the drawn second` | Dodger blue `1e90ff` |\n *\n * @param trails The trails, as `sampleAutoMovieInspectionTrails` returns them.\n * @param seconds The drawn film second.\n * @returns For each trail its line, when it moves, then its ticks, then its emphasised tick.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the three marks of a trail, how the emphasised sample is chosen, the stationary case, the frame, and tabulates both kinds.\n * @evidence contracts/development/implementation.md#principled-implementation A still shows a pose, not a movement, so the path an object travels and where on it the drawn second falls are drawn from measured positions instead of left for the eye to infer.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One pass over the trails, with one nearest-sample search each.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No sample is interpolated: every tick and the emphasis are measured positions. The labels and colours are those `AUTO_MOVIE_INSPECTION_KINDS` gives the two kinds.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the samples.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure conversion of sampled data for one second.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The line and the ticks share the trail's position array; nothing else is kept.\n */\nexport function markAutoMovieInspectionTrails(\n trails: readonly IAutoMovieInspectionTrail[],\n seconds: number,\n): IAutoMovieMark[] {\n const marks: IAutoMovieMark[] = [];\n for (const trail of trails) {\n const path: string = trail.path === \"\" ? \"trail\" : `${trail.path}/trail`;\n let nearest: number = 0;\n trail.times.forEach((time: number, i: number): void => {\n if (Math.abs(time - seconds) < Math.abs(trail.times[nearest]! - seconds))\n nearest = i;\n });\n if (!trail.stationary)\n marks.push({\n path,\n kind: \"trail\",\n label: TRAIL.label,\n color: TRAIL.color,\n shape: { type: \"polyline\", points: trail.positions, closed: false },\n flagged: false,\n anchor: null,\n });\n marks.push(\n {\n path,\n kind: \"trail\",\n label: TRAIL.label,\n color: TRAIL.color,\n shape: {\n type: \"points\",\n points: trail.stationary\n ? trail.positions.slice(0, 3)\n : trail.positions,\n },\n flagged: false,\n anchor: null,\n },\n {\n path,\n kind: \"trail/now\",\n label: NOW.label,\n color: NOW.color,\n shape: {\n type: \"points\",\n points: trail.positions.slice(nearest * 3, nearest * 3 + 3),\n },\n flagged: false,\n anchor: null,\n },\n );\n }\n return marks;\n}\n"],"mappings":";;;AAQA,MAAM,QACJ,4BAA4B;;AAG9B,MAAM,MACJ,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;AAwB9B,SAAgB,8BACd,QACA,SACkB;CAClB,MAAM,QAA0B,CAAC;CACjC,KAAK,MAAM,SAAS,QAAQ;EAC1B,MAAM,OAAe,MAAM,SAAS,KAAK,UAAU,GAAG,MAAM,KAAK;EACjE,IAAI,UAAkB;EACtB,MAAM,MAAM,SAAS,MAAc,MAAoB;GACrD,IAAI,KAAK,IAAI,OAAO,OAAO,IAAI,KAAK,IAAI,MAAM,MAAM,WAAY,OAAO,GACrE,UAAU;EACd,CAAC;EACD,IAAI,CAAC,MAAM,YACT,MAAM,KAAK;GACT;GACA,MAAM;GACN,OAAO,MAAM;GACb,OAAO,MAAM;GACb,OAAO;IAAE,MAAM;IAAY,QAAQ,MAAM;IAAW,QAAQ;GAAM;GAClE,SAAS;GACT,QAAQ;EACV,CAAC;EACH,MAAM,KACJ;GACE;GACA,MAAM;GACN,OAAO,MAAM;GACb,OAAO,MAAM;GACb,OAAO;IACL,MAAM;IACN,QAAQ,MAAM,aACV,MAAM,UAAU,MAAM,GAAG,CAAC,IAC1B,MAAM;GACZ;GACA,SAAS;GACT,QAAQ;EACV,GACA;GACE;GACA,MAAM;GACN,OAAO,IAAI;GACX,OAAO,IAAI;GACX,OAAO;IACL,MAAM;IACN,QAAQ,MAAM,UAAU,MAAM,UAAU,GAAG,UAAU,IAAI,CAAC;GAC5D;GACA,SAAS;GACT,QAAQ;EACV,CACF;CACF;CACA,OAAO;AACT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"measureAutoMovieInspectionDefects.js","sourceRoot":"","sources":["../../../src/scene/inspection/measureAutoMovieInspectionDefects.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"measureAutoMovieInspectionDefects.js","sourceRoot":"","sources":["../../../src/scene/inspection/measureAutoMovieInspectionDefects.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAgE;AAKhE,MAAY,KAAK,kCAAc;AAE/B,qFAA+E;AAG/E;;;;;;;;;;;;;;;;GAgBG;AACH,2CAAkD,KAejD;IACC,MAAM,IAAI,GAAe,KAAK,CAAC,IAAI,CAAC;IACpC,IAAI,OAAO,GAAuC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAClE,IAAI,CAAC,QAAQ,CACd,CAAC;IACF,IAAI,OAAO,KAAK,SAAS,EAAE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,gFAAgF;IAChF,MAAM,QAAQ,GACZ,QAAQ,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;IACpC,MAAM,SAAS,GAAiB,IAAI,YAAY,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IACrE,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;QAChD,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpC,SAAS,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACxC,SAAS,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC;IACD,IAAI,CAAC;QACH,OAAO,IAAA,oCAA2B,EAChC,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,CAAC,QAAQ,EAAE,EAAE,KAAK,IAAI,IAAI,EAAE,EAC1D,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAClC,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,SAAS,IAAI,qCAAqC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAC1G,EAAE,KAAK,EAAE,KAAK,EAAE,CACjB,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"measureAutoMovieInspectionDefects.mjs","names":[],"sources":["../../../src/scene/inspection/measureAutoMovieInspectionDefects.ts"],"sourcesContent":["import {\n
|
|
1
|
+
{"version":3,"file":"measureAutoMovieInspectionDefects.mjs","names":[],"sources":["../../../src/scene/inspection/measureAutoMovieInspectionDefects.ts"],"sourcesContent":["import { measureAutoMovieMeshDefects } from \"@automovie/engine\";\nimport type {\n IAutoMovieMark,\n IAutoMovieMeshDefect,\n} from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport { AUTO_MOVIE_INSPECTION_KINDS } from \"./AUTO_MOVIE_INSPECTION_KINDS.js\";\nimport type { IAutoMovieInspectionMeasured } from \"./IAutoMovieInspectionMeasured.js\";\n\n/**\n * Measure a mesh's defects and return them as marks lying on the mesh as it is posed.\n *\n * Every mesh has the quantity, so the inspection measures it itself on the meshes it draws, through the engine's `measureAutoMovieMeshDefects` on the mesh's stored positions. An edge defect becomes a segments mark of its two vertices and a triangle defect a closed polyline of its three. A defect's kind is `defect/<engine kind>`, such as `defect/open`, its path is the mesh's path followed by its kind and its ordinal among that kind on the mesh, such as `panel/defect/open/2`, and its label and colour are those `AUTO_MOVIE_INSPECTION_KINDS` gives the kind, such as `open edge` in red.\n *\n * Only the `kinds` asked are returned, and `sliver` is the aspect limit the engine needs for slivers. `measured` caches the engine's answer by geometry, so meshes that share one are measured once. Each mesh still gets its own marks, because their coordinates are read from that mesh's pose: morph targets and linear-blend skinning included, a dual-quaternion skin by its linear-blend pose.\n *\n * An engine refusal of the buffers is rethrown naming the mesh's path.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States why the inspection measures this kind itself, how each defect becomes a mark, its kind, path, label and colour, the filter, the cache and its limit, what the posed coordinates include, and the refusal.\n * @evidence contracts/development/implementation.md#principled-implementation A defect is located by vertex indices into the stored buffer, so its mark keeps those indices and its coordinates are their posed positions in the mesh's space, which the mesh's world matrix carries into the scene.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Measure through the cache, then one mark per kept defect with its index run, then a refresh that rewrites every mark from its run.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Edge or triangle is read from the defect's own vertex count, not from a list of kind names, and positions are read through the attribute so interleaved and normalized buffers give metres.\n * @evidence contracts/development/implementation.md#efficient-algorithms The engine's measure dominates and runs once per geometry; building and each refresh are linear in the marked vertices.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work The caller's cache shares one measurement among meshes with the same geometry, the only input the defects depend on; the sliver limit is fixed for one inspection.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The marks and their index runs live as long as the caller keeps the record; the mesh is borrowed and the cache is the caller's.\n */\nexport function measureAutoMovieInspectionDefects(props: {\n /** The mesh to measure, drawn and with a position buffer. */\n mesh: THREE.Mesh;\n\n /** The mesh's inspection path. */\n path: string;\n\n /** The engine kinds to return. */\n kinds: ReadonlySet<IAutoMovieMeshDefect.Kind>;\n\n /** Sliver aspect limit, or null when slivers are not measured. */\n sliver: number | null;\n\n /** The engine's defects by geometry, shared across the meshes of one inspection. */\n measured: Map<THREE.BufferGeometry, IAutoMovieMeshDefect[]>;\n}): IAutoMovieInspectionMeasured {\n const mesh: THREE.Mesh = props.mesh;\n let defects: IAutoMovieMeshDefect[] | undefined = props.measured.get(\n mesh.geometry,\n );\n if (defects === undefined) {\n defects = measure(mesh.geometry, props.path, props.sliver);\n props.measured.set(mesh.geometry, defects);\n }\n\n // One mark per kept defect, numbered within its kind on this mesh.\n const ordinals: Map<string, number> = new Map<string, number>();\n const runs: number[][] = [];\n const marks: IAutoMovieMark[] = [];\n for (const defect of defects) {\n if (!props.kinds.has(defect.kind)) continue;\n const ordinal: number = ordinals.get(defect.kind) ?? 0;\n ordinals.set(defect.kind, ordinal + 1);\n const edge: boolean = defect.vertices.length === 2;\n const kind: string = `defect/${defect.kind}`;\n const points: number[] = new Array<number>(defect.vertices.length * 3).fill(\n 0,\n );\n runs.push([...defect.vertices]);\n marks.push({\n path:\n props.path === \"\"\n ? `${kind}/${ordinal}`\n : `${props.path}/${kind}/${ordinal}`,\n kind,\n label: AUTO_MOVIE_INSPECTION_KINDS[kind]!.label,\n color: AUTO_MOVIE_INSPECTION_KINDS[kind]!.color,\n shape: edge\n ? { type: \"segments\", points }\n : { type: \"polyline\", points, closed: true },\n flagged: false,\n anchor: props.path,\n });\n }\n\n const posed: THREE.Vector3 = new THREE.Vector3();\n const refresh: () => void = (): void => {\n marks.forEach((mark: IAutoMovieMark, m: number): void => {\n const points: number[] = (\n mark.shape as IAutoMovieMark.ISegments | IAutoMovieMark.IPolyline\n ).points;\n runs[m]!.forEach((vertex: number, k: number): void => {\n mesh.getVertexPosition(vertex, posed);\n points[k * 3] = posed.x;\n points[k * 3 + 1] = posed.y;\n points[k * 3 + 2] = posed.z;\n });\n });\n };\n refresh();\n return { anchor: mesh, marks, refresh };\n}\n\n/** Measure one geometry's defects on its stored positions, naming the mesh's path when the engine refuses the buffers. */\nfunction measure(\n geometry: THREE.BufferGeometry,\n path: string,\n sliver: number | null,\n): IAutoMovieMeshDefect[] {\n // Read through the attribute so interleaved and normalized buffers give metres.\n const position: THREE.BufferAttribute | THREE.InterleavedBufferAttribute =\n geometry.getAttribute(\"position\");\n const positions: Float32Array = new Float32Array(position.count * 3);\n for (let i: number = 0; i < position.count; i++) {\n positions[i * 3] = position.getX(i);\n positions[i * 3 + 1] = position.getY(i);\n positions[i * 3 + 2] = position.getZ(i);\n }\n try {\n return measureAutoMovieMeshDefects(\n { positions, indices: geometry.getIndex()?.array ?? null },\n sliver === null ? {} : { sliver },\n );\n } catch (error) {\n throw new Error(\n `Mesh \"${path}\" cannot be measured for defects: ${error instanceof Error ? error.message : String(error)}`,\n { cause: error },\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA2BA,SAAgB,kCAAkC,OAejB;CAC/B,MAAM,OAAmB,MAAM;CAC/B,IAAI,UAA8C,MAAM,SAAS,IAC/D,KAAK,QACP;CACA,IAAI,YAAY,KAAA,GAAW;EACzB,UAAU,QAAQ,KAAK,UAAU,MAAM,MAAM,MAAM,MAAM;EACzD,MAAM,SAAS,IAAI,KAAK,UAAU,OAAO;CAC3C;CAGA,MAAM,2BAAgC,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AAI,aAAa,SAAS,QAAQ,CAAC;CACnE,KAAK,IAAI,IAAY,GAAG,IAAI,SAAS,OAAO,KAAK;EAC/C,UAAU,IAAI,KAAK,SAAS,KAAK,CAAC;EAClC,UAAU,IAAI,IAAI,KAAK,SAAS,KAAK,CAAC;EACtC,UAAU,IAAI,IAAI,KAAK,SAAS,KAAK,CAAC;CACxC;CACA,IAAI;EACF,OAAO,4BACL;GAAE;GAAW,SAAS,SAAS,SAAS,CAAC,EAAE,SAAS;EAAK,GACzD,WAAW,OAAO,CAAC,IAAI,EAAE,OAAO,CAClC;CACF,SAAS,OAAO;EACd,MAAM,IAAI,MACR,SAAS,KAAK,oCAAoC,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,KACvG,EAAE,OAAO,MAAM,CACjB;CACF;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"measureAutoMovieInspectionEdges.mjs","names":[],"sources":["../../../src/scene/inspection/measureAutoMovieInspectionEdges.ts"],"sourcesContent":["import type { IAutoMovieMark } from \"@automovie/
|
|
1
|
+
{"version":3,"file":"measureAutoMovieInspectionEdges.mjs","names":[],"sources":["../../../src/scene/inspection/measureAutoMovieInspectionEdges.ts"],"sourcesContent":["import type { IAutoMovieMark } from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport { AUTO_MOVIE_INSPECTION_KINDS } from \"./AUTO_MOVIE_INSPECTION_KINDS.js\";\nimport type { IAutoMovieInspectionMeasured } from \"./IAutoMovieInspectionMeasured.js\";\n\n/**\n * Read a mesh's triangle edges and return them as one mark lying on the mesh as it is posed, so the triangles are drawn over the shaded surface or alone.\n *\n * Every mesh has edges, so the inspection measures them itself on the meshes it draws. Each edge of a triangle is drawn once, however many triangles share it. Corners are welded by their stored positions, so an indexed geometry and a non-indexed one of the same form give the same edges, and a triangle side between two corners at one place draws nothing. The mark's kind is `edge`, its path the mesh's path followed by `edge`, its label `mesh edge` and its colour the palette's dark blue, which no shade uses.\n *\n * The coordinates are read from the mesh as three.js poses it, morph targets and linear-blend skinning included, through the first stored vertex of each welded corner.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States why the inspection measures this kind itself, the once-per-edge and welding rules with their consequence for indexed and non-indexed forms, the kind, path, label and colour, and what the posed coordinates include.\n * @evidence contracts/development/implementation.md#principled-implementation An edge is an unordered pair of distinct corners of a triangle; welding by exact stored position identifies the corners a non-indexed geometry repeats per triangle, which is the topology an indexed one states, so both give one edge set.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Weld the corners, collect each triangle's three sides into one set keyed by the welded pair, then a refresh that writes each edge's two posed ends.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Positions are read through the attribute so interleaved and normalized buffers give metres, a group-split or drawn range is not used to skip triangles, and no mesh is skipped by name.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the stored vertices and the triangles, with one hashed lookup per corner and per side; each refresh is linear in the edges.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each mesh's edges are read once per inspection and rewritten in place on every refresh.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The mark and its corner runs live as long as the caller keeps the record; the mesh is borrowed.\n */\nexport function measureAutoMovieInspectionEdges(props: {\n /** The mesh to read, drawn and with a position buffer. */\n mesh: THREE.Mesh;\n\n /** The mesh's inspection path. */\n path: string;\n}): IAutoMovieInspectionMeasured {\n const mesh: THREE.Mesh = props.mesh;\n const position: THREE.BufferAttribute | THREE.InterleavedBufferAttribute =\n mesh.geometry.getAttribute(\"position\");\n\n // Weld: the first stored vertex at each position stands for every vertex there.\n const welded: Map<string, number> = new Map<string, number>();\n const corner: Int32Array = new Int32Array(position.count);\n for (let i: number = 0; i < position.count; i++) {\n const key: string = `${position.getX(i)},${position.getY(i)},${position.getZ(i)}`;\n const first: number | undefined = welded.get(key);\n if (first === undefined) welded.set(key, i);\n corner[i] = first ?? i;\n }\n\n // Each triangle side once, keyed by its welded ends.\n const index: THREE.BufferAttribute | null = mesh.geometry.getIndex();\n const count: number = index === null ? position.count : index.count;\n const at: (k: number) => number = (k: number): number =>\n corner[index === null ? k : index.getX(k)]!;\n const seen: Set<number> = new Set<number>();\n const ends: number[] = [];\n for (let k: number = 0; k + 2 < count; k += 3)\n for (const [a, b] of [\n [at(k), at(k + 1)],\n [at(k + 1), at(k + 2)],\n [at(k + 2), at(k)],\n ] as [number, number][]) {\n if (a === b) continue;\n const key: number = Math.min(a, b) * position.count + Math.max(a, b);\n if (seen.has(key)) continue;\n seen.add(key);\n ends.push(a, b);\n }\n\n const points: number[] = new Array<number>(ends.length * 3).fill(0);\n const marks: IAutoMovieMark[] = [];\n if (ends.length !== 0)\n marks.push({\n path: props.path === \"\" ? \"edge\" : `${props.path}/edge`,\n kind: \"edge\",\n label: AUTO_MOVIE_INSPECTION_KINDS.edge!.label,\n color: AUTO_MOVIE_INSPECTION_KINDS.edge!.color,\n shape: { type: \"segments\", points },\n flagged: false,\n anchor: props.path,\n });\n const posed: THREE.Vector3 = new THREE.Vector3();\n const refresh: () => void = (): void => {\n ends.forEach((vertex: number, k: number): void => {\n mesh.getVertexPosition(vertex, posed);\n points[k * 3] = posed.x;\n points[k * 3 + 1] = posed.y;\n points[k * 3 + 2] = posed.z;\n });\n };\n refresh();\n return { anchor: mesh, marks, refresh };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAqBA,SAAgB,gCAAgC,OAMf;CAC/B,MAAM,OAAmB,MAAM;CAC/B,MAAM,WACJ,KAAK,SAAS,aAAa,UAAU;CAGvC,MAAM,yBAA8B,IAAI,IAAoB;CAC5D,MAAM,SAAqB,IAAI,WAAW,SAAS,KAAK;CACxD,KAAK,IAAI,IAAY,GAAG,IAAI,SAAS,OAAO,KAAK;EAC/C,MAAM,MAAc,GAAG,SAAS,KAAK,CAAC,EAAE,GAAG,SAAS,KAAK,CAAC,EAAE,GAAG,SAAS,KAAK,CAAC;EAC9E,MAAM,QAA4B,OAAO,IAAI,GAAG;EAChD,IAAI,UAAU,KAAA,GAA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AAK,MAAM;GACtB,OAAO,IAAI,IAAI,KAAK,MAAM;GAC1B,OAAO,IAAI,IAAI,KAAK,MAAM;EAC5B,CAAC;CACH;CACA,QAAQ;CACR,OAAO;EAAE,QAAQ;EAAM;EAAO;CAAQ;AACxC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAutoMovieMeshDefect } from "@automovie/
|
|
1
|
+
import type { IAutoMovieMeshDefect } from "@automovie/interface";
|
|
2
2
|
import * as THREE from "three";
|
|
3
3
|
import type { IAutoMovieInspectionMeasured } from "./IAutoMovieInspectionMeasured.js";
|
|
4
4
|
import type { IAutoMovieInspectionPath } from "./IAutoMovieInspectionPath.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"measureAutoMovieInspectionMeshes.mjs","names":[],"sources":["../../../src/scene/inspection/measureAutoMovieInspectionMeshes.ts"],"sourcesContent":["import type { IAutoMovieMeshDefect } from \"@automovie/
|
|
1
|
+
{"version":3,"file":"measureAutoMovieInspectionMeshes.mjs","names":[],"sources":["../../../src/scene/inspection/measureAutoMovieInspectionMeshes.ts"],"sourcesContent":["import type { IAutoMovieMeshDefect } from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport type { IAutoMovieInspectionMeasured } from \"./IAutoMovieInspectionMeasured.js\";\nimport type { IAutoMovieInspectionPath } from \"./IAutoMovieInspectionPath.js\";\nimport { measureAutoMovieInspectionDefects } from \"./measureAutoMovieInspectionDefects.js\";\nimport { measureAutoMovieInspectionEdges } from \"./measureAutoMovieInspectionEdges.js\";\n\n/**\n * Find the meshes an inspection draws and measure on them the kinds it measures itself and the request asks for: the `edge` kind and the `defect/<kind>` kinds.\n *\n * A mesh is drawn when it and its ancestors are visible and it has a position buffer; batched meshes are not. Edges and defects are measured on every drawn mesh `hidden` does not leave out, whether or not `parts` selects it, so a pattern can name one of its marks alone. `defects` are the engine defect kinds that exist under the request: the sliver kind only while a sliver limit is set.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States which meshes are drawn, which are measured and why selection does not narrow them, and which defect kinds exist.\n * @evidence contracts/development/implementation.md#principled-implementation Every mesh has edges and defects, so the inspection measures them as the renderer draws the meshes; a mark's path decides its selection afterwards, as for any supplied mark.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One pass listing the drawn meshes, then one producer call per kind family and mesh.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No mesh is skipped by name, and a kind not asked is not measured.\n * @evidence contracts/development/implementation.md#efficient-algorithms Measurement runs only for asked kinds, and defects once per geometry through one shared cache.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work The defect cache is shared by every mesh of the call.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The measured records live as long as the caller keeps them; the cache dies with the call.\n */\nexport function measureAutoMovieInspectionMeshes(props: {\n /** Every drawn object of the scene with its path. */\n drawn: readonly IAutoMovieInspectionPath[];\n\n /** The engine defect kinds that exist under the request. */\n defects: readonly IAutoMovieMeshDefect.Kind[];\n\n /** Sliver aspect limit, or null. */\n sliver: number | null;\n\n /** Whether the request asks for a kind. */\n asks: (kind: string) => boolean;\n\n /** Whether `hide` leaves a path out. */\n hidden: (path: string) => boolean;\n}): {\n meshes: { path: string; mesh: THREE.Mesh }[];\n measured: IAutoMovieInspectionMeasured[];\n} {\n const meshes: { path: string; mesh: THREE.Mesh }[] = [];\n for (const { path, object } of props.drawn)\n if (\n object instanceof THREE.Mesh &&\n (object as { isBatchedMesh?: boolean }).isBatchedMesh !== true &&\n object.geometry.hasAttribute(\"position\") &&\n shown(object)\n )\n meshes.push({ path, mesh: object });\n\n const measured: IAutoMovieInspectionMeasured[] = [];\n const kept: { path: string; mesh: THREE.Mesh }[] = meshes.filter(\n ({ path }: { path: string }): boolean => !props.hidden(path),\n );\n if (props.asks(\"edge\"))\n for (const { path, mesh } of kept)\n measured.push(measureAutoMovieInspectionEdges({ mesh, path }));\n const kinds: Set<IAutoMovieMeshDefect.Kind> =\n new Set<IAutoMovieMeshDefect.Kind>(\n props.defects.filter((kind: IAutoMovieMeshDefect.Kind): boolean =>\n props.asks(`defect/${kind}`),\n ),\n );\n if (kinds.size !== 0) {\n const cache: Map<THREE.BufferGeometry, IAutoMovieMeshDefect[]> = new Map<\n THREE.BufferGeometry,\n IAutoMovieMeshDefect[]\n >();\n for (const { path, mesh } of kept)\n measured.push(\n measureAutoMovieInspectionDefects({\n mesh,\n path,\n kinds,\n sliver: props.sliver,\n measured: cache,\n }),\n );\n }\n return { meshes, measured };\n}\n\n/** Whether an object and every ancestor are visible. */\nfunction shown(object: THREE.Object3D): boolean {\n for (\n let current: THREE.Object3D | null = object;\n current !== null;\n current = current.parent\n )\n if (!current.visible) return false;\n return true;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAqBA,SAAgB,iCAAiC,OAkB/C;CACA,MAAM,SAA+C,CAAC;CACtD,KAAK,MAAM,EAAE,MAAM,YAAY,MAAM,OACnC,IACE,kBAAkB,MAAM,QACvB,OAAuC,kBAAkB,QAC1D,OAAO,SAAS,aAAa,UAAU,KACvC,MAAM,MAAM,GAEZ,OAAO,KAAK;EAAE;EAAM,MAAM;CAAO,CAAC;CAEtC,MAAM,WAA2C,CAAC;CAClD,MAAM,OAA6C,OAAO,QACvD,EAAE,WAAsC,CAAC,MAAM,OAAO,IAAI,CAC7D;CACA,IAAI,MAAM,KAAK,MAAM,GACnB,KAAK,MAAM,EAAE,MAAM,UAAU,MAC3B,SAAS,KAAK,gCAAgC;EAAE;EAAM;CAAK,CAAC,CAAC;CACjE,MAAM,QACJ,IAAI,IACF,MAAM,QAAQ,QAAQ,SACpB,MAAM,KAAK,UAAU,MAAM,CAC7B,CACF;CACF,IAAI,MAAM,SAAS,GAAG;EACpB,MAAM,wBAA2D,IAAI,IAGnE;EACF,KAAK,MAAM,EAAE,MAAM,UAAU,MAC3B,SAAS,KACP,kCAAkC;GAChC;GACA;GACA;GACA,QAAQ,MAAM;GACd,UAAU;EACZ,CAAC,CACH;CACJ;CACA,OAAO;EAAE;EAAQ;CAAS;AAC5B;;AAGA,SAAS,MAAM,QAAiC;CAC9C,KACE,IAAI,UAAiC,QACrC,YAAY,MACZ,UAAU,QAAQ,QAElB,IAAI,CAAC,QAAQ,SAAS,OAAO;CAC/B,OAAO;AACT"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { IAutoMovieMark } from "@automovie/
|
|
2
|
-
import type { IAutoMovieVector3 } from "@automovie/interface";
|
|
1
|
+
import type { IAutoMovieInspectionDrawable, IAutoMovieMark } from "@automovie/interface";
|
|
3
2
|
import * as THREE from "three";
|
|
4
3
|
import type { IAutoMovieInspectionPath } from "./IAutoMovieInspectionPath.js";
|
|
5
4
|
/**
|
|
@@ -25,8 +24,4 @@ export declare function measureAutoMovieInspectionPaths(props: {
|
|
|
25
24
|
}[];
|
|
26
25
|
/** Whether a path is measured. */
|
|
27
26
|
choose: (path: string) => boolean;
|
|
28
|
-
}):
|
|
29
|
-
path: string;
|
|
30
|
-
min: IAutoMovieVector3;
|
|
31
|
-
max: IAutoMovieVector3;
|
|
32
|
-
}[];
|
|
27
|
+
}): IAutoMovieInspectionDrawable[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"measureAutoMovieInspectionPaths.js","sourceRoot":"","sources":["../../../src/scene/inspection/measureAutoMovieInspectionPaths.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"measureAutoMovieInspectionPaths.js","sourceRoot":"","sources":["../../../src/scene/inspection/measureAutoMovieInspectionPaths.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAY,KAAK,kCAAc;AAG/B,+FAAyF;AAEzF;;;;;;;;;;;;GAYG;AACH,yCAAgD,KAS/C;IACC,MAAM,KAAK,GAA4B,IAAI,GAAG,EAAsB,CAAC;IACrE,MAAM,GAAG,GAAiC,CAAC,IAAY,EAAc,EAAE;QACrE,IAAI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,IAAI;QACJ,GAAG,EAAE,EAAE,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE;QACvD,GAAG,EAAE,EAAE,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE;KACxD,CAAC,CACH,CAAC;AACN,CAAC;AAED,0CAA0C;AAC1C,SAAS,MAAM,CAAC,KAAwB;IACtC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;AACtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"measureAutoMovieInspectionPaths.mjs","names":[],"sources":["../../../src/scene/inspection/measureAutoMovieInspectionPaths.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"measureAutoMovieInspectionPaths.mjs","names":[],"sources":["../../../src/scene/inspection/measureAutoMovieInspectionPaths.ts"],"sourcesContent":["import type {\n IAutoMovieInspectionDrawable,\n IAutoMovieMark,\n IAutoMovieVector3,\n} from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport type { IAutoMovieInspectionPath } from \"./IAutoMovieInspectionPath.js\";\nimport { measureAutoMovieInspectionBounds } from \"./measureAutoMovieInspectionBounds.js\";\n\n/**\n * Measure the world-space box of every chosen path of an inspected scene: of the drawn objects at that path and of the marks at that path, together.\n *\n * An object's box is what `measureAutoMovieInspectionBounds` measures of it as drawn now, its posed vertices and those of the objects beneath it that are drawn, so an isolated object contributes nothing. A mark's box holds its coordinates carried by its anchor's world matrix, through the anchor's first instance when it is an instanced mesh, and an arrow's tips as well as its origins. Paths come in the order the objects, then the marks, first give them; a chosen path with nothing drawn is left out.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States what each box holds for objects and for marks, what is left out, and the order.\n * @evidence contracts/development/implementation.md#principled-implementation An object is measured as the renderer draws it, and a mark's coordinates are in its anchor's frame, so its world points are those coordinates under the anchor's world matrix.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One map from path to box, filled from the objects and then from the marks.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Nothing is measured by name, and a path with nothing drawn has no box instead of a box at the origin.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the chosen objects' drawn vertices and the chosen marks' coordinates.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The pose changes between calls, so no earlier box is reused.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returns plain numbers; the objects, marks and anchors are read.\n */\nexport function measureAutoMovieInspectionPaths(props: {\n /** Drawn objects with their paths. */\n objects: readonly IAutoMovieInspectionPath[];\n\n /** Drawn marks with the object their frame belongs to, `null` for world space. */\n marks: readonly { mark: IAutoMovieMark; anchor: THREE.Object3D | null }[];\n\n /** Whether a path is measured. */\n choose: (path: string) => boolean;\n}): IAutoMovieInspectionDrawable[] {\n const boxes: Map<string, THREE.Box3> = new Map<string, THREE.Box3>();\n const box: (path: string) => THREE.Box3 = (path: string): THREE.Box3 => {\n let found: THREE.Box3 | undefined = boxes.get(path);\n if (found === undefined) {\n found = new THREE.Box3();\n boxes.set(path, found);\n }\n return found;\n };\n\n for (const { path, object } of props.objects) {\n if (!props.choose(path)) continue;\n const measured: { min: IAutoMovieVector3; max: IAutoMovieVector3 } | null =\n measureAutoMovieInspectionBounds(object);\n if (measured !== null)\n box(path)\n .expandByPoint(vector(measured.min))\n .expandByPoint(vector(measured.max));\n }\n\n const point: THREE.Vector3 = new THREE.Vector3();\n const placement: THREE.Matrix4 = new THREE.Matrix4();\n for (const { mark, anchor } of props.marks) {\n if (!props.choose(mark.path)) continue;\n placement.identity();\n if (anchor !== null) {\n anchor.updateWorldMatrix(true, false);\n placement.copy(anchor.matrixWorld);\n if (anchor instanceof THREE.InstancedMesh && anchor.count > 0) {\n const instance: THREE.Matrix4 = new THREE.Matrix4();\n anchor.getMatrixAt(0, instance);\n placement.multiply(instance);\n }\n }\n const target: THREE.Box3 = box(mark.path);\n const shape: IAutoMovieMark.Shape = mark.shape;\n const lists: number[][] =\n shape.type === \"arrows\"\n ? [\n shape.origins,\n shape.origins.map(\n (value: number, i: number): number => value + shape.vectors[i]!,\n ),\n ]\n : [shape.points];\n for (const list of lists)\n for (let i: number = 0; i + 2 < list.length; i += 3)\n target.expandByPoint(\n point\n .set(list[i]!, list[i + 1]!, list[i + 2]!)\n .applyMatrix4(placement),\n );\n }\n\n return [...boxes]\n .filter(([, found]: [string, THREE.Box3]): boolean => !found.isEmpty())\n .map(\n ([path, found]: [string, THREE.Box3]): {\n path: string;\n min: IAutoMovieVector3;\n max: IAutoMovieVector3;\n } => ({\n path,\n min: { x: found.min.x, y: found.min.y, z: found.min.z },\n max: { x: found.max.x, y: found.max.y, z: found.max.z },\n }),\n );\n}\n\n/** A three.js vector from a plain one. */\nfunction vector(value: IAutoMovieVector3): THREE.Vector3 {\n return new THREE.Vector3(value.x, value.y, value.z);\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAuBA,SAAgB,gCAAgC,OASb;CACjC,MAAM,wBAAiC,IAAI,IAAwB;CACnE,MAAM,OAAqC,SAA6B;EACtE,IAAI,QAAgC,MAAM,IAAI,IAAI;EAClD,IAAI,UAAU,KAAA,GAAW;GACvB,QAAQ,IAAI,MAAM,KAAK;GACvB,MAAM,IAAI,MAAM,KAAK;EACvB;EACA,OAAO;CACT;CAEA,KAAK,MAAM,EAAE,MAAM,YAAY,MAAM,SAAS;EAC5C,IAAI,CAAC,MAAM,OAAO,IAAI,GAAG;EACzB,MAAM,WACJ,iCAAiC,MAAM;EACzC,IAAI,aAAa,MACf,IAAI,IAAI,CAAC,CACN,cAAc,OAAO,SAAS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A,SAAS,OAAO,OAAyC;CACvD,OAAO,IAAI,MAAM,QAAQ,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AACpD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAutoMovieInspectionLegendEntry } from "
|
|
1
|
+
import type { IAutoMovieInspectionLegendEntry } from "@automovie/interface";
|
|
2
2
|
/**
|
|
3
3
|
* Join legends into one, adding the counts of entries that share a label and keeping the order in which labels first appear.
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeAutoMovieInspectionLegends.mjs","names":[],"sources":["../../../src/scene/inspection/mergeAutoMovieInspectionLegends.ts"],"sourcesContent":["import type { IAutoMovieInspectionLegendEntry } from \"
|
|
1
|
+
{"version":3,"file":"mergeAutoMovieInspectionLegends.mjs","names":[],"sources":["../../../src/scene/inspection/mergeAutoMovieInspectionLegends.ts"],"sourcesContent":["import type { IAutoMovieInspectionLegendEntry } from \"@automovie/interface\";\n\n/**\n * Join legends into one, adding the counts of entries that share a label and keeping the order in which labels first appear.\n *\n * Entries that share a label and differ in colour throw, because one label then names two different marks.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the merge key, the order kept and the refusal.\n * @evidence contracts/development/implementation.md#principled-implementation The label is the meaning of a colour, so entries are summed by label and a second colour under one label is a contradiction, not a variant.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One map from label to the entry being accumulated, read back in insertion order.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A colour conflict is refused instead of resolved by keeping the first.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the number of entries, with one hashed lookup each.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work The curve builder, the defect builder and the scene inspection all tally through this one function.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The result is a fresh list of fresh entries and the inputs are not kept or changed.\n */\nexport function mergeAutoMovieInspectionLegends(\n legends: readonly (readonly IAutoMovieInspectionLegendEntry[])[],\n): IAutoMovieInspectionLegendEntry[] {\n const merged: Map<string, IAutoMovieInspectionLegendEntry> = new Map<\n string,\n IAutoMovieInspectionLegendEntry\n >();\n for (const legend of legends)\n for (const entry of legend) {\n const known: IAutoMovieInspectionLegendEntry | undefined = merged.get(\n entry.label,\n );\n if (known === undefined) merged.set(entry.label, { ...entry });\n else if (known.color !== entry.color)\n throw new Error(\n `Legend label \"${entry.label}\" is given two colours, ${known.color.toString(16)} and ${entry.color.toString(16)}`,\n );\n else known.count += entry.count;\n }\n return [...merged.values()];\n}\n"],"mappings":";;;;;;;;;;;;;;AAeA,SAAgB,gCACd,SACmC;CACnC,MAAM,yBAAuD,IAAI,IAG/D;CACF,KAAK,MAAM,UAAU,SACnB,KAAK,MAAM,SAAS,QAAQ;EAC1B,MAAM,QAAqD,OAAO,IAChE,MAAM,KACR;EACA,IAAI,UAAU,KAAA,GAAW,OAAO,IAAI,MAAM,OAAO,EAAE,GAAG,MAAM,CAAC;OACxD,IAAI,MAAM,UAAU,MAAM,OAC7B,MAAM,IAAI,MACR,iBAAiB,MAAM,MAAM,0BAA0B,MAAM,MAAM,SAAS,EAAE,EAAE,OAAO,MAAM,MAAM,SAAS,EAAE,GAChH;OACG,MAAM,SAAS,MAAM;CAC5B;CACF,OAAO,CAAC,GAAG,OAAO,OAAO,CAAC;AAC5B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAutoMovieInspectionRequest } from "
|
|
1
|
+
import type { IAutoMovieInspectionRequest } from "@automovie/interface";
|
|
2
2
|
/**
|
|
3
3
|
* Read an inspection request from named text values, the form both a page address and a command line supply.
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseAutoMovieInspectionRequest.js","sourceRoot":"","sources":["../../../src/scene/inspection/parseAutoMovieInspectionRequest.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"parseAutoMovieInspectionRequest.js","sourceRoot":"","sources":["../../../src/scene/inspection/parseAutoMov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AAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBAC7B,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;aAC9B;SACF,CAAC;IACJ,CAAC;IAED,oDAAoD;IACpD,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,GAAe,MAAM,CAAC,GAAG,CAAC,CAAC,IAAY,EAAY,EAAE,CACxE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAC5B,CAAC;IACF,IACE,KAAM,CAAC,MAAM,KAAK,CAAC;QACnB,MAAO,CAAC,MAAM,KAAK,CAAC;QACpB,CAAC,GAAG,KAAM,EAAE,GAAG,MAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;QAC1C,MAAO,CAAC,KAAK,CAAC,CAAC,SAAiB,EAAW,EAAE,CAAC,SAAS,KAAK,CAAC,CAAC;QAE9D,OAAO,MAAM,EAAE,CAAC;IAClB,OAAO;QACL,KAAK,EAAE,EAAE,CAAC,EAAE,KAAM,CAAC,CAAC,CAAE,EAAE,CAAC,EAAE,KAAM,CAAC,CAAC,CAAE,EAAE,CAAC,EAAE,KAAM,CAAC,CAAC,CAAE,EAAE;QACtD,MAAM,EAAE,EAAE,CAAC,EAAE,MAAO,CAAC,CAAC,CAAE,EAAE,CAAC,EAAE,MAAO,CAAC,CAAC,CAAE,EAAE,CAAC,EAAE,MAAO,CAAC,CAAC,CAAE,EAAE;KAC3D,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseAutoMovieInspectionRequest.mjs","names":[],"sources":["../../../src/scene/inspection/parseAutoMovieInspectionRequest.ts"],"sourcesContent":["import type { IAutoMovieSectionPlane } from \"@automovie/engine\";\n\nimport type { IAutoMovieInspectionRequest } from \"./IAutoMovieInspectionRequest.js\";\n\n/** Stroke width in output pixels when none is asked: three, which stays visible when a still is reduced into a contact-sheet cell. */\nconst STROKE: number = 3;\n\n/** Seconds a trail reaches before and after the drawn second when none is asked: one, which shows where a movement comes from and goes within a typical action. */\nconst REACH: number = 1;\n\n/** Trail samples per second when none is asked: five, the lower end of the five to ten stills per second the capture skill reads a movement at. */\nconst TICKS: number = 5;\n\n/** Every shade, keyed so the compiler refuses a list that misses one. */\nconst SHADES: Record<IAutoMovieInspectionRequest.Shade, true> = {\n beauty: true,\n depth: true,\n mask: true,\n normal: true,\n outline: true,\n pose: true,\n clay: true,\n faces: true,\n};\n\n/**\n * Read an inspection request from named text values, the form both a page address and a command line supply.\n *\n * `read` returns the text of a key, or null or undefined when the key is absent. A key that is present without a value reads as the empty string, which turns a switch on. `AUTO_MOVIE_INSPECTION_KEYS` lists every key read, and `formatAutoMovieInspectionRequest` writes a request back as these values.\n *\n * | Key | Text | Absent |\n * | --- | --- | --- |\n * | `parts`, `hide` | Path patterns separated by commas | No pattern |\n * | `shade` | `beauty`, `depth`, `mask`, `normal`, `outline`, `pose`, `clay` or `faces` | `beauty` |\n * | `surface` | A switch | On |\n * | `marks` | Kind patterns separated by commas, such as `curve/section,defect` | No mark |\n * | `sliver` | A positive aspect limit | No sliver measured |\n * | `section` | `x:0.2` cuts away everything beyond x = 0.2 m, `-x:0.2` everything before it, likewise `y` and `z`; or `px,py,pz:nx,ny,nz`, a point in metres and the direction cut away | No cut |\n * | `xray` | A switch | Off |\n * | `stroke` | A positive width in output pixels | 3 |\n * | `label` | Path patterns separated by commas | No label |\n * | `color` | `pattern=rrggbb` pairs separated by commas, such as `hero/arm=ff8800,curve/section=00ff00` | No colour |\n * | `trail` | Path patterns of the objects whose travel is drawn, separated by commas | No trail |\n * | `reach` | Seconds a trail samples before and after the drawn second, positive | 1 |\n * | `ticks` | Trail samples per second, positive | 5 |\n *\n * A switch is on for the empty string, `1` or `true` and off for `0` or `false`. Any other text, an unknown shade or a number out of range throws an `Error` that names the key, the text and what is accepted. Mark kinds are not checked here, because their producers own them; `applyAutoMovieInspection` refuses a kind pattern that matches no kind it is given.\n *\n * ```ts\n * const request = parseAutoMovieInspectionRequest((key) => url.searchParams.get(key));\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation Tabulates every key with its accepted text and its absent value, states the switch rule, what a refusal reports and where kinds are checked instead.\n * @evidence contracts/development/implementation.md#principled-implementation Each key is read once through the caller's reader and admitted against the type's own members, so the returned record is complete and every value in it is one the request type allows.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One record literal with one helper per value form: pattern list, switch, positive number and cut.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unreadable text throws instead of falling back to the absent value, and the shade table is a record keyed by the request's union, so a shade added there fails compilation here until it is listed.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the length of the text read.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each key is read and parsed once per call and nothing is computed twice.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The call keeps nothing: the reader is used and dropped, and the returned record is the caller's.\n */\nexport function parseAutoMovieInspectionRequest(\n read: (key: string) => string | null | undefined,\n): IAutoMovieInspectionRequest {\n const shade: string = read(\"shade\") ?? \"beauty\";\n if (!Object.hasOwn(SHADES, shade))\n throw new Error(\n `Inspection shade \"${shade}\" is not one of ${Object.keys(SHADES).join(\", \")}`,\n );\n return {\n parts: list(read(\"parts\")),\n hide: list(read(\"hide\")),\n shade: shade as IAutoMovieInspectionRequest.Shade,\n surface: flag(\"surface\", read(\"surface\"), true),\n marks: list(read(\"marks\")),\n sliver: positive(\"sliver\", read(\"sliver\")),\n section: section(read(\"section\")),\n xray: flag(\"xray\", read(\"xray\"), false),\n stroke: positive(\"stroke\", read(\"stroke\")) ?? STROKE,\n label: list(read(\"label\")),\n color: colors(read(\"color\")),\n trail: list(read(\"trail\")),\n reach: positive(\"reach\", read(\"reach\")) ?? REACH,\n ticks: positive(\"ticks\", read(\"ticks\")) ?? TICKS,\n };\n}\n\n/** The non-empty items of a comma-separated text. */\nfunction list(text: string | null | undefined): string[] {\n return (text ?? \"\")\n .split(\",\")\n .map((item: string): string => item.trim())\n .filter((item: string): boolean => item !== \"\");\n}\n\n/** The `pattern=rrggbb` pairs of a comma-separated text. */\nfunction colors(\n text: string | null | undefined,\n): IAutoMovieInspectionRequest.IColor[] {\n return list(text).map((item: string): IAutoMovieInspectionRequest.IColor => {\n const pair: RegExpExecArray | null = /^(.+)=([0-9a-fA-F]{6})$/u.exec(item);\n if (pair === null)\n throw new Error(`Inspection color \"${item}\" is not pattern=rrggbb`);\n return { pattern: pair[1]!.trim(), color: Number.parseInt(pair[2]!, 16) };\n });\n}\n\n/** A switch: on for the empty string, `1` or `true`, off for `0` or `false`. */\nfunction flag(\n key: string,\n text: string | null | undefined,\n absent: boolean,\n): boolean {\n if (text === null || text === undefined) return absent;\n if (text === \"\" || text === \"1\" || text === \"true\") return true;\n if (text === \"0\" || text === \"false\") return false;\n throw new Error(`Inspection ${key} \"${text}\" is not 1, true, 0 or false`);\n}\n\n/** A positive finite number, or null when the key is absent. */\nfunction positive(key: string, text: string | null | undefined): number | null {\n if (text === null || text === undefined) return null;\n const value: number = finite(text);\n if (!(value > 0))\n throw new Error(`Inspection ${key} \"${text}\" is not a positive number`);\n return value;\n}\n\n/** The number a text spells, NaN for blank or malformed text. */\nfunction finite(text: string): number {\n const value: number = text.trim() === \"\" ? Number.NaN : Number(text);\n return Number.isFinite(value) ? value : Number.NaN;\n}\n\n/** The cut a text spells, in either of its two forms. */\nfunction section(\n text: string | null | undefined,\n): IAutoMovieSectionPlane | null {\n if (text === null || text === undefined) return null;\n const refuse: () => never = (): never => {\n throw new Error(\n `Inspection section \"${text}\" is neither an axis cut such as y:1.2 or -x:0 nor px,py,pz:nx,ny,nz with a direction that is not zero`,\n );\n };\n const halves: string[] = text.split(\":\");\n if (halves.length !== 2) return refuse();\n\n // Axis form: the sign names the side that is cut away.\n const axis: RegExpExecArray | null = /^([+-]?)([xyz])$/.exec(\n halves[0]!.trim(),\n );\n if (axis !== null) {\n const offset: number = finite(halves[1]!);\n if (Number.isNaN(offset)) return refuse();\n const sign: number = axis[1] === \"-\" ? -1 : 1;\n return {\n point: {\n x: axis[2] === \"x\" ? offset : 0,\n y: axis[2] === \"y\" ? offset : 0,\n z: axis[2] === \"z\" ? offset : 0,\n },\n normal: {\n x: axis[2] === \"x\" ? sign : 0,\n y: axis[2] === \"y\" ? sign : 0,\n z: axis[2] === \"z\" ? sign : 0,\n },\n };\n }\n\n // General form: a point and the direction cut away.\n const [point, normal]: number[][] = halves.map((half: string): number[] =>\n half.split(\",\").map(finite),\n );\n if (\n point!.length !== 3 ||\n normal!.length !== 3 ||\n [...point!, ...normal!].some(Number.isNaN) ||\n normal!.every((component: number): boolean => component === 0)\n )\n return refuse();\n return {\n point: { x: point![0]!, y: point![1]!, z: point![2]! },\n normal: { x: normal![0]!, y: normal![1]!, z: normal![2]! },\n };\n}\n"],"mappings":";;AAKA,MAAM,SAAiB;;AAGvB,MAAM,QAAgB;;AAGtB,MAAM,QAAgB;;AAGtB,MAAM,SAA0D;CAC9D,QAAQ;CACR,OAAO;CACP,MAAM;CACN,QAAQ;CACR,SAAS;CACT,MAAM;CACN,MAAM;CACN,OAAO;AACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,SAAgB,gCACd,MAC6B;CAC7B,MAAM,QAAgB,KAAK,OAAO,KAAK;CACvC,IAAI,CAAC,OAAO,OAAO,QAAQ,KAAK,GAC9B,MAAM,IAAI,MACR,qBAAqB,MAAM,kBAAkB,OAAO,KAAK,MAAM,CAAC,CAAC,KAAK,IAAI,GAC5E;CACF,OAAO;EACL,OAAO,KAAK,KAAK,OAAO,CAAC;EACzB,MAAM,KAAK,KAAK,MAAM,CAAC;EAChB;EACP,SAAS,KAAK,WAAW,KAAK,SAAS,GAAG,IAAI;EAC9C,OAAO,KAAK,KAAK,OAAO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E,GAAG,MAAO;GAAK,GAAG,MAAO;GAAK,GAAG,MAAO;EAAI;EACrD,QAAQ;GAAE,GAAG,OAAQ;GAAK,GAAG,OAAQ;GAAK,GAAG,OAAQ;EAAI;CAC3D;AACF"}
|
|
1
|
+
{"version":3,"file":"parseAutoMovieInspectionRequest.mjs","names":[],"sources":["../../../src/scene/inspection/parseAutoMovieInspectionRequest.ts"],"sourcesContent":["import type {\n AutoMovieInspectionShade,\n IAutoMovieInspectionColorAssignment,\n IAutoMovieInspectionRequest,\n IAutoMovieSectionPlane,\n} from \"@automovie/interface\";\n\n/** Stroke width in output pixels when none is asked: three, which stays visible when a still is reduced into a contact-sheet cell. */\nconst STROKE: number = 3;\n\n/** Seconds a trail reaches before and after the drawn second when none is asked: one, which shows where a movement comes from and goes within a typical action. */\nconst REACH: number = 1;\n\n/** Trail samples per second when none is asked: five, the lower end of the five to ten stills per second the capture skill reads a movement at. */\nconst TICKS: number = 5;\n\n/** Every shade, keyed so the compiler refuses a list that misses one. */\nconst SHADES: Record<AutoMovieInspectionShade, true> = {\n beauty: true,\n depth: true,\n mask: true,\n normal: true,\n outline: true,\n pose: true,\n clay: true,\n faces: true,\n};\n\n/**\n * Read an inspection request from named text values, the form both a page address and a command line supply.\n *\n * `read` returns the text of a key, or null or undefined when the key is absent. A key that is present without a value reads as the empty string, which turns a switch on. `AUTO_MOVIE_INSPECTION_KEYS` lists every key read, and `formatAutoMovieInspectionRequest` writes a request back as these values.\n *\n * | Key | Text | Absent |\n * | --- | --- | --- |\n * | `parts`, `hide` | Path patterns separated by commas | No pattern |\n * | `shade` | `beauty`, `depth`, `mask`, `normal`, `outline`, `pose`, `clay` or `faces` | `beauty` |\n * | `surface` | A switch | On |\n * | `marks` | Kind patterns separated by commas, such as `curve/section,defect` | No mark |\n * | `sliver` | A positive aspect limit | No sliver measured |\n * | `section` | `x:0.2` cuts away everything beyond x = 0.2 m, `-x:0.2` everything before it, likewise `y` and `z`; or `px,py,pz:nx,ny,nz`, a point in metres and the direction cut away | No cut |\n * | `xray` | A switch | Off |\n * | `stroke` | A positive width in output pixels | 3 |\n * | `label` | Path patterns separated by commas | No label |\n * | `color` | `pattern=rrggbb` pairs separated by commas, such as `hero/arm=ff8800,curve/section=00ff00` | No colour |\n * | `trail` | Path patterns of the objects whose travel is drawn, separated by commas | No trail |\n * | `reach` | Seconds a trail samples before and after the drawn second, positive | 1 |\n * | `ticks` | Trail samples per second, positive | 5 |\n *\n * A switch is on for the empty string, `1` or `true` and off for `0` or `false`. Any other text, an unknown shade or a number out of range throws an `Error` that names the key, the text and what is accepted. Mark kinds are not checked here, because their producers own them; `applyAutoMovieInspection` refuses a kind pattern that matches no kind it is given.\n *\n * ```ts\n * const request = parseAutoMovieInspectionRequest((key) => url.searchParams.get(key));\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation Tabulates every key with its accepted text and its absent value, states the switch rule, what a refusal reports and where kinds are checked instead.\n * @evidence contracts/development/implementation.md#principled-implementation Each key is read once through the caller's reader and admitted against the type's own members, so the returned record is complete and every value in it is one the request type allows.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One record literal with one helper per value form: pattern list, switch, positive number and cut.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unreadable text throws instead of falling back to the absent value, and the shade table is a record keyed by the request's union, so a shade added there fails compilation here until it is listed.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the length of the text read.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each key is read and parsed once per call and nothing is computed twice.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The call keeps nothing: the reader is used and dropped, and the returned record is the caller's.\n */\nexport function parseAutoMovieInspectionRequest(\n read: (key: string) => string | null | undefined,\n): IAutoMovieInspectionRequest {\n const shade: string = read(\"shade\") ?? \"beauty\";\n if (!Object.hasOwn(SHADES, shade))\n throw new Error(\n `Inspection shade \"${shade}\" is not one of ${Object.keys(SHADES).join(\", \")}`,\n );\n return {\n parts: list(read(\"parts\")),\n hide: list(read(\"hide\")),\n shade: shade as AutoMovieInspectionShade,\n surface: flag(\"surface\", read(\"surface\"), true),\n marks: list(read(\"marks\")),\n sliver: positive(\"sliver\", read(\"sliver\")),\n section: section(read(\"section\")),\n xray: flag(\"xray\", read(\"xray\"), false),\n stroke: positive(\"stroke\", read(\"stroke\")) ?? STROKE,\n label: list(read(\"label\")),\n color: colors(read(\"color\")),\n trail: list(read(\"trail\")),\n reach: positive(\"reach\", read(\"reach\")) ?? REACH,\n ticks: positive(\"ticks\", read(\"ticks\")) ?? TICKS,\n };\n}\n\n/** The non-empty items of a comma-separated text. */\nfunction list(text: string | null | undefined): string[] {\n return (text ?? \"\")\n .split(\",\")\n .map((item: string): string => item.trim())\n .filter((item: string): boolean => item !== \"\");\n}\n\n/** The `pattern=rrggbb` pairs of a comma-separated text. */\nfunction colors(\n text: string | null | undefined,\n): IAutoMovieInspectionColorAssignment[] {\n return list(text).map((item: string): IAutoMovieInspectionColorAssignment => {\n const pair: RegExpExecArray | null = /^(.+)=([0-9a-fA-F]{6})$/u.exec(item);\n if (pair === null)\n throw new Error(`Inspection color \"${item}\" is not pattern=rrggbb`);\n return { pattern: pair[1]!.trim(), color: Number.parseInt(pair[2]!, 16) };\n });\n}\n\n/** A switch: on for the empty string, `1` or `true`, off for `0` or `false`. */\nfunction flag(\n key: string,\n text: string | null | undefined,\n absent: boolean,\n): boolean {\n if (text === null || text === undefined) return absent;\n if (text === \"\" || text === \"1\" || text === \"true\") return true;\n if (text === \"0\" || text === \"false\") return false;\n throw new Error(`Inspection ${key} \"${text}\" is not 1, true, 0 or false`);\n}\n\n/** A positive finite number, or null when the key is absent. */\nfunction positive(key: string, text: string | null | undefined): number | null {\n if (text === null || text === undefined) return null;\n const value: number = finite(text);\n if (!(value > 0))\n throw new Error(`Inspection ${key} \"${text}\" is not a positive number`);\n return value;\n}\n\n/** The number a text spells, NaN for blank or malformed text. */\nfunction finite(text: string): number {\n const value: number = text.trim() === \"\" ? Number.NaN : Number(text);\n return Number.isFinite(value) ? value : Number.NaN;\n}\n\n/** The cut a text spells, in either of its two forms. */\nfunction section(\n text: string | null | undefined,\n): IAutoMovieSectionPlane | null {\n if (text === null || text === undefined) return null;\n const refuse: () => never = (): never => {\n throw new Error(\n `Inspection section \"${text}\" is neither an axis cut such as y:1.2 or -x:0 nor px,py,pz:nx,ny,nz with a direction that is not zero`,\n );\n };\n const halves: string[] = text.split(\":\");\n if (halves.length !== 2) return refuse();\n\n // Axis form: the sign names the side that is cut away.\n const axis: RegExpExecArray | null = /^([+-]?)([xyz])$/.exec(\n halves[0]!.trim(),\n );\n if (axis !== null) {\n const offset: number = finite(halves[1]!);\n if (Number.isNaN(offset)) return refuse();\n const sign: number = axis[1] === \"-\" ? -1 : 1;\n return {\n point: {\n x: axis[2] === \"x\" ? offset : 0,\n y: axis[2] === \"y\" ? offset : 0,\n z: axis[2] === \"z\" ? offset : 0,\n },\n normal: {\n x: axis[2] === \"x\" ? sign : 0,\n y: axis[2] === \"y\" ? sign : 0,\n z: axis[2] === \"z\" ? sign : 0,\n },\n };\n }\n\n // General form: a point and the direction cut away.\n const [point, normal]: number[][] = halves.map((half: string): number[] =>\n half.split(\",\").map(finite),\n );\n if (\n point!.length !== 3 ||\n normal!.length !== 3 ||\n [...point!, ...normal!].some(Number.isNaN) ||\n normal!.every((component: number): boolean => component === 0)\n )\n return refuse();\n return {\n point: { x: point![0]!, y: point![1]!, z: point![2]! },\n normal: { x: normal![0]!, y: normal![1]!, z: normal![2]! },\n };\n}\n"],"mappings":";;AAQA,MAAM,SAAiB;;AAGvB,MAAM,QAAgB;;AAGtB,MAAM,QAAgB;;AAGtB,MAAM,SAAiD;CACrD,QAAQ;CACR,OAAO;CACP,MAAM;CACN,QAAQ;CACR,SAAS;CACT,MAAM;CACN,MAAM;CACN,OAAO;AACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,SAAgB,gCACd,MAC6B;CAC7B,MAAM,QAAgB,KAA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AM,OAAO;GAC9B;EACF;CACF;CAGA,MAAM,CAAC,OAAO,UAAsB,OAAO,KAAK,SAC9C,KAAK,MAAM,GAAG,CAAC,CAAC,IAAI,MAAM,CAC5B;CACA,IACE,MAAO,WAAW,KAClB,OAAQ,WAAW,KACnB,CAAC,GAAG,OAAQ,GAAG,MAAO,CAAC,CAAC,KAAK,OAAO,KAAK,KACzC,OAAQ,OAAO,cAA+B,cAAc,CAAC,GAE7D,OAAO,OAAO;CAChB,OAAO;EACL,OAAO;GAAE,GAAG,MAAO;GAAK,GAAG,MAAO;GAAK,GAAG,MAAO;EAAI;EACrD,QAAQ;GAAE,GAAG,OAAQ;GAAK,GAAG,OAAQ;GAAK,GAAG,OAAQ;EAAI;CAC3D;AACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAutoMovieInspectionView } from "
|
|
1
|
+
import type { IAutoMovieInspectionView } from "@automovie/interface";
|
|
2
2
|
/**
|
|
3
3
|
* Read one inspection view from its text, the form a page address, a command line and a capture plan all write.
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseAutoMovieInspectionView.js","sourceRoot":"","sources":["../../../src/scene/inspection/parseAutoMovieInspectionView.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"parseAutoMovieInspectionView.js","sourceRoot":"","sources":["../../../src/scene/inspection/parseAutoMovieInspectionView.ts"],"names":[],"mappings":";;;AAMA,mDAAmD;AACnD,MAAM,KAAK,GACT,sLAAsL,CAAC;AAEzL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,sCACE,IAAY;IAEZ,MAAM,MAAM,GAA+B,CAAC,OAAe,EAAS,EAAE;QACpE,MAAM,IAAI,KAAK,CAAC,oBAAoB,IAAI,KAAK,OAAO,eAAe,KAAK,EAAE,CAAC,CAAC;IAC9E,CAAC,CAAC;IACF,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE;QAAE,OAAO,MA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ACV,GAAG,CAAC,CAAC,KAAa,EAAU,EAAE,CAC7B,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CACjD,CAAC;AACN,CAAC;AAED,8BAA8B;AAC9B,SAAS,MAAM,CAAC,MAAgB;IAC9B,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAE,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAE,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAE,EAAE,CAAC;AACzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseAutoMovieInspectionView.mjs","names":[],"sources":["../../../src/scene/inspection/parseAutoMovieInspectionView.ts"],"sourcesContent":["import type { IAutoMovieVector3 } from \"@automovie/interface\";\n\nimport type { IAutoMovieInspectionView } from \"./IAutoMovieInspectionView.js\";\n\n/** The accepted forms, quoted in every refusal. */\nconst FORMS: string =\n \"film; x,y,z:tx,ty,tz in metres, followed by any of @ortho=<metres per pixel> or @up=x,y,z; or a name such as front, followed by any of @ortho, @follow, @focus=<pattern> or @flagged\";\n\n/**\n * Read one inspection view from its text, the form a page address, a command line and a capture plan all write.\n *\n * | Text | View |\n * | --- | --- |\n * | `film` | The subject's own delivery camera, unchanged |\n * | `x,y,z:tx,ty,tz` | A fixed camera at the first point looking at the second, in world metres, with the subject's lens and world `+Y` up |\n * | `x,y,z:tx,ty,tz@ortho=<m>` | The same fixed camera, orthographic, `<m>` metres of world per picture pixel |\n * | `x,y,z:tx,ty,tz@up=ux,uy,uz` | The same fixed camera with that up direction, such as a camera looking straight down |\n * | `<name>` | A subject's own view of that name, or a named viewpoint such as `front` fitted to what is drawn |\n * | `<name>@ortho` | The same fit with an orthographic camera |\n * | `<name>@follow` | The same fit made at each drawn second alone instead of over every second a capture plans |\n * | `<name>@focus=<pattern>` | The same fit framing only the drawn objects and marks the path pattern selects |\n * | `<name>@flagged` | The same fit framing only the drawn flagged marks |\n *\n * Switches may be combined in any order, such as `three-quarter@ortho@focus=hero/torso` or `0,1,4:0,1,0@ortho=0.004@up=0,0,-1`. A name holds no `@`, `:`, `;`, `,` or space. Whether a name exists is decided by `resolveAutoMovieInspectionView`, which knows the subject.\n *\n * It throws an `Error` that names the text and lists the accepted forms for empty text, coordinates that are not two finite triples or that coincide, a switch on `film`, a switch a form does not take (a fit's switches on a fixed camera, `@up` or a valued `@ortho` on a name, a bare `@ortho` on a fixed camera), an unknown or repeated switch, a scale that is not a positive number, an up direction that is not a finite non-zero triple or lies along the line of sight, an empty focus pattern, and a focus pattern beside `@flagged`.\n *\n * ```ts\n * const view = parseAutoMovieInspectionView(\"front@ortho\");\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation Tabulates every form with what it views, states how switches combine, which characters a name excludes and why names are not checked here, and lists every refusal.\n * @evidence contracts/development/implementation.md#principled-implementation A colon occurs only in the fixed form and `@` only before a switch, so the form is decided by those two characters alone, and every host that splits a list of views on `;` leaves each view's text whole. A fixed camera's switches carry exactly what a recorded camera holds beyond its two points, its orthographic scale and its roll, so any recorded camera can be written back.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Three branches, film, fixed and named, each with one loop over its own switches.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unreadable text throws instead of falling back to the film camera, and a switch that a form cannot honour is refused instead of ignored.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the length of the text.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of one text.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh record and keeps nothing.\n */\nexport function parseAutoMovieInspectionView(\n text: string,\n): IAutoMovieInspectionView {\n const refuse: (problem: string) => never = (problem: string): never => {\n throw new Error(`Inspection view \"${text}\" ${problem}; a view is ${FORMS}`);\n };\n if (text.trim() === \"\") return refuse(\"is empty\");\n if (text === \"film\") return { type: \"film\" };\n const [head, ...switches]: string[] = text.split(\"@\");\n const seen: Set<string> = new Set<string>();\n const once: (written: string) => string = (written: string): string => {\n const key: string = written.split(\"=\")[0]!;\n if (seen.has(key)) return refuse(`repeats the switch @${key}`);\n seen.add(key);\n return key;\n };\n\n // Fixed: two triples, then the scale and the up direction a recorded camera may need.\n if (head!.includes(\":\")) {\n const halves: string[] = head!.split(\":\");\n const points: number[][] = halves.map(triple);\n if (\n points.length !== 2 ||\n points.some(\n (point: number[]): boolean =>\n point.length !== 3 || !point.every(Number.isFinite),\n )\n )\n return refuse(\"is not two finite triples\");\n const position: IAutoMovieVector3 = vector(points[0]!);\n const target: IAutoMovieVector3 = vector(points[1]!);\n const sight: IAutoMovieVector3 = {\n x: target.x - position.x,\n y: target.y - position.y,\n z: target.z - position.z,\n };\n if (sight.x === 0 && sight.y === 0 && sight.z === 0)\n return refuse(\"looks from its own target\");\n let metresPerPixel: number | null = null;\n let up: IAutoMovieVector3 | null = null;\n for (const written of switches) {\n const key: string = once(written);\n const value: string = written.slice(key.length + 1);\n if (key === \"ortho\") {\n if (!written.startsWith(\"ortho=\"))\n return refuse(\n \"is a fixed camera, whose @ortho states its metres per pixel as @ortho=<m>\",\n );\n const scale: number = value.trim() === \"\" ? Number.NaN : Number(value);\n if (!(Number.isFinite(scale) && scale > 0))\n return refuse(\n `has @ortho=${value}, which is not a positive number of metres per pixel`,\n );\n metresPerPixel = scale;\n } else if (key === \"up\" && written.startsWith(\"up=\")) {\n const direction: number[] = triple(value);\n if (direction.length !== 3 || !direction.every(Number.isFinite))\n return refuse(`has @up=${value}, which is not a finite triple`);\n up = vector(direction);\n const cross: number = Math.hypot(\n up.y * sight.z - up.z * sight.y,\n up.z * sight.x - up.x * sight.z,\n up.x * sight.y - up.y * sight.x,\n );\n if (\n !(\n cross >\n 1e-12 *\n Math.hypot(up.x, up.y, up.z) *\n Math.hypot(sight.x, sight.y, sight.z)\n )\n )\n return refuse(\n `has @up=${value}, which is zero or lies along the line of sight`,\n );\n } else return refuse(`is a fixed camera, which takes no @${written}`);\n }\n return { type: \"fixed\", position, target, metresPerPixel, up };\n }\n\n // Named: a name, then the switches of a fit.\n if (!/^[^@:;,\\s]+$/u.test(head!)) return refuse(\"does not start with a name\");\n if (head === \"film\")\n return refuse(\"is the film camera, which takes no switch\");\n let orthographic: boolean = false;\n let follow: boolean = false;\n let focus: IAutoMovieInspectionView.IFocus | null = null;\n for (const written of switches) {\n const key: string = once(written);\n if (\n (key === \"focus\" && seen.has(\"flagged\")) ||\n (key === \"flagged\" && seen.has(\"focus\"))\n )\n return refuse(`contradicts its focus with @${written}`);\n if (written === \"ortho\") orthographic = true;\n else if (written === \"follow\") follow = true;\n else if (written === \"flagged\") focus = { type: \"flagged\" };\n else if (written.startsWith(\"focus=\")) {\n const pattern: string = written.slice(\"focus=\".length);\n if (pattern === \"\") return refuse(\"has an empty focus pattern\");\n focus = { type: \"pattern\", pattern };\n } else\n return refuse(\n `has the switch @${written}, which a named view does not take`,\n );\n }\n return { type: \"named\", name: head!, orthographic, follow, focus };\n}\n\n/** The numbers of a comma-separated triple, NaN for a blank one. */\nfunction triple(text: string): number[] {\n return text\n .split(\",\")\n .map((value: string): number =>\n value.trim() === \"\" ? Number.NaN : Number(value),\n );\n}\n\n/** A vector from a triple. */\nfunction vector(triple: number[]): IAutoMovieVector3 {\n return { x: triple[0]!, y: triple[1]!, z: triple[2]! };\n}\n"],"mappings":";;AAKA,MAAM,QACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCF,SAAgB,6BACd,MAC0B;CAC1B,MAAM,UAAsC,YAA2B;EACrE,MAAM,IAAI,MAAM,oBAAoB,KAAK,IAAI,QAAQ,cAAc,OAAO;CAC5E;CACA,IAAI,KAAK,KAAK,MAAM,IAAI,OAAO,OAAO,UAAU;CAChD,IAAI,SAAS,QAAQ,OAAO,EAAE,MAAM,OAAO;CAC3C,MAAM,CAAC,MAAM,GAAG,YAAsB,KAAK,MAAM,GAAG;CACpD,M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AO;EAAc;EAAQ;CAAM;AACnE;;AAGA,SAAS,OAAO,MAAwB;CACtC,OAAO,KACJ,MAAM,GAAG,CAAC,CACV,KAAK,UACJ,MAAM,KAAK,MAAM,KAAK,MAAa,OAAO,KAAK,CACjD;AACJ;;AAGA,SAAS,OAAO,QAAqC;CACnD,OAAO;EAAE,GAAG,OAAO;EAAK,GAAG,OAAO;EAAK,GAAG,OAAO;CAAI;AACvD"}
|
|
1
|
+
{"version":3,"file":"parseAutoMovieInspectionView.mjs","names":[],"sources":["../../../src/scene/inspection/parseAutoMovieInspectionView.ts"],"sourcesContent":["import type {\n IAutoMovieInspectionFocus,\n IAutoMovieInspectionView,\n IAutoMovieVector3,\n} from \"@automovie/interface\";\n\n/** The accepted forms, quoted in every refusal. */\nconst FORMS: string =\n \"film; x,y,z:tx,ty,tz in metres, followed by any of @ortho=<metres per pixel> or @up=x,y,z; or a name such as front, followed by any of @ortho, @follow, @focus=<pattern> or @flagged\";\n\n/**\n * Read one inspection view from its text, the form a page address, a command line and a capture plan all write.\n *\n * | Text | View |\n * | --- | --- |\n * | `film` | The subject's own delivery camera, unchanged |\n * | `x,y,z:tx,ty,tz` | A fixed camera at the first point looking at the second, in world metres, with the subject's lens and world `+Y` up |\n * | `x,y,z:tx,ty,tz@ortho=<m>` | The same fixed camera, orthographic, `<m>` metres of world per picture pixel |\n * | `x,y,z:tx,ty,tz@up=ux,uy,uz` | The same fixed camera with that up direction, such as a camera looking straight down |\n * | `<name>` | A subject's own view of that name, or a named viewpoint such as `front` fitted to what is drawn |\n * | `<name>@ortho` | The same fit with an orthographic camera |\n * | `<name>@follow` | The same fit made at each drawn second alone instead of over every second a capture plans |\n * | `<name>@focus=<pattern>` | The same fit framing only the drawn objects and marks the path pattern selects |\n * | `<name>@flagged` | The same fit framing only the drawn flagged marks |\n *\n * Switches may be combined in any order, such as `three-quarter@ortho@focus=hero/torso` or `0,1,4:0,1,0@ortho=0.004@up=0,0,-1`. A name holds no `@`, `:`, `;`, `,` or space. Whether a name exists is decided by `resolveAutoMovieInspectionView`, which knows the subject.\n *\n * It throws an `Error` that names the text and lists the accepted forms for empty text, coordinates that are not two finite triples or that coincide, a switch on `film`, a switch a form does not take (a fit's switches on a fixed camera, `@up` or a valued `@ortho` on a name, a bare `@ortho` on a fixed camera), an unknown or repeated switch, a scale that is not a positive number, an up direction that is not a finite non-zero triple or lies along the line of sight, an empty focus pattern, and a focus pattern beside `@flagged`.\n *\n * ```ts\n * const view = parseAutoMovieInspectionView(\"front@ortho\");\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation Tabulates every form with what it views, states how switches combine, which characters a name excludes and why names are not checked here, and lists every refusal.\n * @evidence contracts/development/implementation.md#principled-implementation A colon occurs only in the fixed form and `@` only before a switch, so the form is decided by those two characters alone, and every host that splits a list of views on `;` leaves each view's text whole. A fixed camera's switches carry exactly what a recorded camera holds beyond its two points, its orthographic scale and its roll, so any recorded camera can be written back.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Three branches, film, fixed and named, each with one loop over its own switches.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unreadable text throws instead of falling back to the film camera, and a switch that a form cannot honour is refused instead of ignored.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the length of the text.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of one text.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh record and keeps nothing.\n */\nexport function parseAutoMovieInspectionView(\n text: string,\n): IAutoMovieInspectionView {\n const refuse: (problem: string) => never = (problem: string): never => {\n throw new Error(`Inspection view \"${text}\" ${problem}; a view is ${FORMS}`);\n };\n if (text.trim() === \"\") return refuse(\"is empty\");\n if (text === \"film\") return { type: \"film\" };\n const [head, ...switches]: string[] = text.split(\"@\");\n const seen: Set<string> = new Set<string>();\n const once: (written: string) => string = (written: string): string => {\n const key: string = written.split(\"=\")[0]!;\n if (seen.has(key)) return refuse(`repeats the switch @${key}`);\n seen.add(key);\n return key;\n };\n\n // Fixed: two triples, then the scale and the up direction a recorded camera may need.\n if (head!.includes(\":\")) {\n const halves: string[] = head!.split(\":\");\n const points: number[][] = halves.map(triple);\n if (\n points.length !== 2 ||\n points.some(\n (point: number[]): boolean =>\n point.length !== 3 || !point.every(Number.isFinite),\n )\n )\n return refuse(\"is not two finite triples\");\n const position: IAutoMovieVector3 = vector(points[0]!);\n const target: IAutoMovieVector3 = vector(points[1]!);\n const sight: IAutoMovieVector3 = {\n x: target.x - position.x,\n y: target.y - position.y,\n z: target.z - position.z,\n };\n if (sight.x === 0 && sight.y === 0 && sight.z === 0)\n return refuse(\"looks from its own target\");\n let metresPerPixel: number | null = null;\n let up: IAutoMovieVector3 | null = null;\n for (const written of switches) {\n const key: string = once(written);\n const value: string = written.slice(key.length + 1);\n if (key === \"ortho\") {\n if (!written.startsWith(\"ortho=\"))\n return refuse(\n \"is a fixed camera, whose @ortho states its metres per pixel as @ortho=<m>\",\n );\n const scale: number = value.trim() === \"\" ? Number.NaN : Number(value);\n if (!(Number.isFinite(scale) && scale > 0))\n return refuse(\n `has @ortho=${value}, which is not a positive number of metres per pixel`,\n );\n metresPerPixel = scale;\n } else if (key === \"up\" && written.startsWith(\"up=\")) {\n const direction: number[] = triple(value);\n if (direction.length !== 3 || !direction.every(Number.isFinite))\n return refuse(`has @up=${value}, which is not a finite triple`);\n up = vector(direction);\n const cross: number = Math.hypot(\n up.y * sight.z - up.z * sight.y,\n up.z * sight.x - up.x * sight.z,\n up.x * sight.y - up.y * sight.x,\n );\n if (\n !(\n cross >\n 1e-12 *\n Math.hypot(up.x, up.y, up.z) *\n Math.hypot(sight.x, sight.y, sight.z)\n )\n )\n return refuse(\n `has @up=${value}, which is zero or lies along the line of sight`,\n );\n } else return refuse(`is a fixed camera, which takes no @${written}`);\n }\n return { type: \"fixed\", position, target, metresPerPixel, up };\n }\n\n // Named: a name, then the switches of a fit.\n if (!/^[^@:;,\\s]+$/u.test(head!)) return refuse(\"does not start with a name\");\n if (head === \"film\")\n return refuse(\"is the film camera, which takes no switch\");\n let orthographic: boolean = false;\n let follow: boolean = false;\n let focus: IAutoMovieInspectionFocus | null = null;\n for (const written of switches) {\n const key: string = once(written);\n if (\n (key === \"focus\" && seen.has(\"flagged\")) ||\n (key === \"flagged\" && seen.has(\"focus\"))\n )\n return refuse(`contradicts its focus with @${written}`);\n if (written === \"ortho\") orthographic = true;\n else if (written === \"follow\") follow = true;\n else if (written === \"flagged\") focus = { type: \"flagged\" };\n else if (written.startsWith(\"focus=\")) {\n const pattern: string = written.slice(\"focus=\".length);\n if (pattern === \"\") return refuse(\"has an empty focus pattern\");\n focus = { type: \"pattern\", pattern };\n } else\n return refuse(\n `has the switch @${written}, which a named view does not take`,\n );\n }\n return { type: \"named\", name: head!, orthographic, follow, focus };\n}\n\n/** The numbers of a comma-separated triple, NaN for a blank one. */\nfunction triple(text: string): number[] {\n return text\n .split(\",\")\n .map((value: string): number =>\n value.trim() === \"\" ? Number.NaN : Number(value),\n );\n}\n\n/** A vector from a triple. */\nfunction vector(triple: number[]): IAutoMovieVector3 {\n return { x: triple[0]!, y: triple[1]!, z: triple[2]! };\n}\n"],"mappings":";;AAOA,MAAM,QACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCF,SAAgB,6BACd,MAC0B;CAC1B,MAAM,UAAsC,YAA2B;EACrE,MAAM,IAAI,MAAM,oBAAoB,KAAK,IAAI,QAAQ,cAAc,OAAO;CAC5E;CACA,IAAI,KAAK,KAAK,MAAM,IAAI,OAAO,OAAO,UAAU;CAChD,IAAI,SAAS,QAAQ,OAAO,EAAE,MAAM,OAAO;CAC3C,MAAM,CAAC,MAAM,GAAG,YAAsB,KAAK,MAAM,GAAG;CACpD,MAAM,uBAAoB,IAAI,IAAY;CAC1C,MAAM,QAAqC,YAA4B;EACrE,MAAM,MAAc,QAAQ,MAAM,GAAG,CAAC,CAAC;EACvC,IAAI,KAAK,IAAI,GAAG,GAAG,OAAO,OAAO,uBAAuB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AACJ;;AAGA,SAAS,OAAO,QAAqC;CACnD,OAAO;EAAE,GAAG,OAAO;EAAK,GAAG,OAAO;EAAK,GAAG,OAAO;CAAI;AACvD"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { IAutoMovieVector3 } from "@automovie/interface";
|
|
1
|
+
import type { IAutoMovieInspectionLabelPlacement, IAutoMovieVector3 } from "@automovie/interface";
|
|
2
2
|
import * as THREE from "three";
|
|
3
|
-
import type { IAutoMovieInspectionLabel } from "./IAutoMovieInspectionLabel.js";
|
|
4
3
|
/**
|
|
5
4
|
* Place labels on a picture: project each labelled path's centre through the camera into pixels and keep a label only where its box overlaps no label kept before it.
|
|
6
5
|
*
|
|
@@ -33,7 +32,4 @@ export declare function placeAutoMovieInspectionLabels(props: {
|
|
|
33
32
|
height: number;
|
|
34
33
|
/** Size of one font pixel of the stamp, in picture pixels. */
|
|
35
34
|
scale: number;
|
|
36
|
-
}):
|
|
37
|
-
labels: IAutoMovieInspectionLabel[];
|
|
38
|
-
dropped: IAutoMovieInspectionLabel[];
|
|
39
|
-
};
|
|
35
|
+
}): IAutoMovieInspectionLabelPlacement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"placeAutoMovieInspectionLabels.js","sourceRoot":"","sources":["../../../src/scene/inspection/placeAutoMovieInspectionLabels.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"placeAutoMovieInspectionLabels.js","sourceRoot":"","sources":["../../../src/scene/inspection/placeAutoMovieInspectionLabels.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAY,KAAK,kCAAc;AAE/B;;;;;;;;;;;;;;;;GAgBG;AACH,wCAA+C,KAmB9C;IACC,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI;QAC1B,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC;QACtB,C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