@automovie/viewer 0.3.4 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -87
- package/lib/IAutoMovieViewerCompletedFrame.d.ts +19 -11
- package/lib/IAutoMovieViewerDisplayMetadata.d.ts +0 -5
- package/lib/IAutoMovieViewerHandle.d.ts +3 -25
- package/lib/IMountViewerOptions.d.ts +24 -38
- package/lib/IViewerCameraStateSnapshot.d.ts +0 -5
- package/lib/IViewerFrameTransfer.d.ts +11 -0
- package/lib/IViewerFrameTransfer.js +3 -0
- package/lib/IViewerFrameTransfer.js.map +1 -0
- package/lib/IViewerFrameTransfer.mjs +0 -0
- package/lib/applyCaptureCanvasSize.d.ts +9 -10
- package/lib/applyCaptureCanvasSize.js +7 -13
- package/lib/applyCaptureCanvasSize.js.map +1 -1
- package/lib/applyCaptureCanvasSize.mjs +7 -10
- package/lib/applyCaptureCanvasSize.mjs.map +1 -1
- package/lib/audio/IAutoMovieAudioCue.d.ts +3 -8
- package/lib/audio/planAutoMovieAudioPlayback.d.ts +8 -21
- package/lib/audio/planAutoMovieAudioPlayback.js +8 -14
- package/lib/audio/planAutoMovieAudioPlayback.js.map +1 -1
- package/lib/audio/planAutoMovieAudioPlayback.mjs +8 -14
- package/lib/audio/planAutoMovieAudioPlayback.mjs.map +1 -1
- package/lib/audio/playAutoMovieAudioCues.d.ts +4 -11
- package/lib/audio/playAutoMovieAudioCues.js +4 -11
- package/lib/audio/playAutoMovieAudioCues.js.map +1 -1
- package/lib/audio/playAutoMovieAudioCues.mjs +4 -11
- package/lib/audio/playAutoMovieAudioCues.mjs.map +1 -1
- package/lib/createViewerCameraState.d.ts +3 -11
- package/lib/createViewerCameraState.js +80 -121
- package/lib/createViewerCameraState.js.map +1 -1
- package/lib/createViewerCameraState.mjs +46 -98
- package/lib/createViewerCameraState.mjs.map +1 -1
- package/lib/createViewerDisplayClock.d.ts +2 -10
- package/lib/createViewerDisplayClock.js +4 -12
- package/lib/createViewerDisplayClock.js.map +1 -1
- package/lib/createViewerDisplayClock.mjs +3 -11
- package/lib/createViewerDisplayClock.mjs.map +1 -1
- package/lib/createViewerDisplayPublication.d.ts +7 -15
- package/lib/createViewerDisplayPublication.js +7 -15
- package/lib/createViewerDisplayPublication.js.map +1 -1
- package/lib/createViewerDisplayPublication.mjs +7 -15
- package/lib/createViewerDisplayPublication.mjs.map +1 -1
- package/lib/createViewerDisplaySave.d.ts +8 -16
- package/lib/createViewerDisplaySave.js +8 -16
- package/lib/createViewerDisplaySave.js.map +1 -1
- package/lib/createViewerDisplaySave.mjs +8 -16
- package/lib/createViewerDisplaySave.mjs.map +1 -1
- package/lib/createViewerFrameControl.d.ts +8 -10
- package/lib/createViewerFrameControl.js +3 -15
- package/lib/createViewerFrameControl.js.map +1 -1
- package/lib/createViewerFrameControl.mjs +3 -12
- package/lib/createViewerFrameControl.mjs.map +1 -1
- package/lib/createViewerViewportResize.d.ts +4 -12
- package/lib/createViewerViewportResize.js +7 -20
- package/lib/createViewerViewportResize.js.map +1 -1
- package/lib/createViewerViewportResize.mjs +6 -14
- package/lib/createViewerViewportResize.mjs.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +6 -1
- package/lib/inspector/AutoMovieInspector.d.ts +33 -13
- package/lib/inspector/AutoMovieInspector.js +110 -19
- package/lib/inspector/AutoMovieInspector.js.map +1 -1
- package/lib/inspector/AutoMovieInspector.mjs +121 -18
- package/lib/inspector/AutoMovieInspector.mjs.map +1 -1
- package/lib/inspector/AutoMovieInspectorBeauty.d.ts +41 -0
- package/lib/inspector/AutoMovieInspectorBeauty.js +56 -0
- package/lib/inspector/AutoMovieInspectorBeauty.js.map +1 -0
- package/lib/inspector/AutoMovieInspectorBeauty.mjs +55 -0
- package/lib/inspector/AutoMovieInspectorBeauty.mjs.map +1 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticLog.d.ts +48 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticLog.js +186 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticLog.js.map +1 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticLog.mjs +171 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticLog.mjs.map +1 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.d.ts +23 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.js +37 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.js.map +1 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.mjs +85 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.mjs.map +1 -0
- package/lib/inspector/AutoMovieInspectorMarksPanel.d.ts +4 -10
- package/lib/inspector/AutoMovieInspectorMarksPanel.js +18 -35
- package/lib/inspector/AutoMovieInspectorMarksPanel.js.map +1 -1
- package/lib/inspector/AutoMovieInspectorMarksPanel.mjs +32 -38
- package/lib/inspector/AutoMovieInspectorMarksPanel.mjs.map +1 -1
- package/lib/inspector/AutoMovieInspectorPlayhead.d.ts +35 -96
- package/lib/inspector/AutoMovieInspectorPlayhead.js +41 -101
- package/lib/inspector/AutoMovieInspectorPlayhead.js.map +1 -1
- package/lib/inspector/AutoMovieInspectorPlayhead.mjs +44 -98
- package/lib/inspector/AutoMovieInspectorPlayhead.mjs.map +1 -1
- package/lib/inspector/AutoMovieInspectorRequestPanel.d.ts +9 -10
- package/lib/inspector/AutoMovieInspectorRequestPanel.js +18 -12
- package/lib/inspector/AutoMovieInspectorRequestPanel.js.map +1 -1
- package/lib/inspector/AutoMovieInspectorRequestPanel.mjs +32 -14
- package/lib/inspector/AutoMovieInspectorRequestPanel.mjs.map +1 -1
- package/lib/inspector/AutoMovieInspectorSelectionPanel.d.ts +0 -8
- package/lib/inspector/AutoMovieInspectorSelectionPanel.js +0 -8
- package/lib/inspector/AutoMovieInspectorSelectionPanel.js.map +1 -1
- package/lib/inspector/AutoMovieInspectorSelectionPanel.mjs +0 -8
- package/lib/inspector/AutoMovieInspectorSelectionPanel.mjs.map +1 -1
- package/lib/inspector/AutoMovieInspectorShadePanel.d.ts +2 -9
- package/lib/inspector/AutoMovieInspectorShadePanel.js +18 -25
- package/lib/inspector/AutoMovieInspectorShadePanel.js.map +1 -1
- package/lib/inspector/AutoMovieInspectorShadePanel.mjs +18 -27
- package/lib/inspector/AutoMovieInspectorShadePanel.mjs.map +1 -1
- package/lib/inspector/AutoMovieInspectorTimePanel.d.ts +0 -8
- package/lib/inspector/AutoMovieInspectorTimePanel.js +0 -8
- package/lib/inspector/AutoMovieInspectorTimePanel.js.map +1 -1
- package/lib/inspector/AutoMovieInspectorTimePanel.mjs +0 -8
- package/lib/inspector/AutoMovieInspectorTimePanel.mjs.map +1 -1
- package/lib/inspector/AutoMovieInspectorTimeReadout.d.ts +0 -8
- package/lib/inspector/AutoMovieInspectorTimeReadout.js +4 -10
- package/lib/inspector/AutoMovieInspectorTimeReadout.js.map +1 -1
- package/lib/inspector/AutoMovieInspectorTimeReadout.mjs +3 -12
- package/lib/inspector/AutoMovieInspectorTimeReadout.mjs.map +1 -1
- package/lib/inspector/AutoMovieInspectorTransition.d.ts +79 -0
- package/lib/inspector/AutoMovieInspectorTransition.js +131 -0
- package/lib/inspector/AutoMovieInspectorTransition.js.map +1 -0
- package/lib/inspector/AutoMovieInspectorTransition.mjs +119 -0
- package/lib/inspector/AutoMovieInspectorTransition.mjs.map +1 -0
- package/lib/inspector/AutoMovieInspectorViewPanel.d.ts +0 -8
- package/lib/inspector/AutoMovieInspectorViewPanel.js +0 -8
- package/lib/inspector/AutoMovieInspectorViewPanel.js.map +1 -1
- package/lib/inspector/AutoMovieInspectorViewPanel.mjs +0 -8
- package/lib/inspector/AutoMovieInspectorViewPanel.mjs.map +1 -1
- package/lib/inspector/IAutoMovieInspectorAction.d.ts +54 -95
- package/lib/inspector/IAutoMovieInspectorLive.d.ts +43 -0
- package/lib/inspector/IAutoMovieInspectorLive.js +3 -0
- package/lib/inspector/IAutoMovieInspectorLive.js.map +1 -0
- package/lib/inspector/IAutoMovieInspectorLive.mjs +0 -0
- package/lib/inspector/IAutoMovieInspectorPathNode.d.ts +14 -9
- package/lib/inspector/IAutoMovieInspectorProps.d.ts +3 -14
- package/lib/inspector/IAutoMovieInspectorScene.d.ts +96 -100
- package/lib/inspector/IAutoMovieInspectorSceneHost.d.ts +37 -102
- package/lib/inspector/IAutoMovieInspectorState.d.ts +6 -7
- package/lib/inspector/assertAutoMovieInspectorRaster.d.ts +7 -0
- package/lib/inspector/assertAutoMovieInspectorRaster.js +19 -0
- package/lib/inspector/assertAutoMovieInspectorRaster.js.map +1 -0
- package/lib/inspector/assertAutoMovieInspectorRaster.mjs +17 -0
- package/lib/inspector/assertAutoMovieInspectorRaster.mjs.map +1 -0
- package/lib/inspector/buildAutoMovieInspectorPathTree.d.ts +9 -10
- package/lib/inspector/buildAutoMovieInspectorPathTree.js +9 -10
- package/lib/inspector/buildAutoMovieInspectorPathTree.js.map +1 -1
- package/lib/inspector/buildAutoMovieInspectorPathTree.mjs +9 -10
- package/lib/inspector/buildAutoMovieInspectorPathTree.mjs.map +1 -1
- package/lib/inspector/changesAutoMovieObservedScene.d.ts +16 -0
- package/lib/inspector/changesAutoMovieObservedScene.js +28 -0
- package/lib/inspector/changesAutoMovieObservedScene.js.map +1 -0
- package/lib/inspector/changesAutoMovieObservedScene.mjs +21 -0
- package/lib/inspector/changesAutoMovieObservedScene.mjs.map +1 -0
- package/lib/inspector/createAutoMovieInspectorAddressWriter.d.ts +13 -11
- package/lib/inspector/createAutoMovieInspectorAddressWriter.js +13 -11
- package/lib/inspector/createAutoMovieInspectorAddressWriter.js.map +1 -1
- package/lib/inspector/createAutoMovieInspectorAddressWriter.mjs +13 -11
- package/lib/inspector/createAutoMovieInspectorAddressWriter.mjs.map +1 -1
- package/lib/inspector/createAutoMovieInspectorCanvasHost.d.ts +7 -10
- package/lib/inspector/createAutoMovieInspectorCanvasHost.js +14 -11
- package/lib/inspector/createAutoMovieInspectorCanvasHost.js.map +1 -1
- package/lib/inspector/createAutoMovieInspectorCanvasHost.mjs +17 -14
- package/lib/inspector/createAutoMovieInspectorCanvasHost.mjs.map +1 -1
- package/lib/inspector/createAutoMovieInspectorState.d.ts +3 -9
- package/lib/inspector/createAutoMovieInspectorState.js +3 -9
- package/lib/inspector/createAutoMovieInspectorState.js.map +1 -1
- package/lib/inspector/createAutoMovieInspectorState.mjs +3 -9
- package/lib/inspector/createAutoMovieInspectorState.mjs.map +1 -1
- package/lib/inspector/firstAutoMovieInspectorSecond.d.ts +6 -0
- package/lib/inspector/firstAutoMovieInspectorSecond.js +13 -0
- package/lib/inspector/firstAutoMovieInspectorSecond.js.map +1 -0
- package/lib/inspector/firstAutoMovieInspectorSecond.mjs +11 -0
- package/lib/inspector/firstAutoMovieInspectorSecond.mjs.map +1 -0
- package/lib/inspector/followAutoMovieInspectorSize.d.ts +11 -0
- package/lib/inspector/followAutoMovieInspectorSize.js +26 -0
- package/lib/inspector/followAutoMovieInspectorSize.js.map +1 -0
- package/lib/inspector/followAutoMovieInspectorSize.mjs +26 -0
- package/lib/inspector/followAutoMovieInspectorSize.mjs.map +1 -0
- package/lib/inspector/formatAutoMovieInspectorAddress.d.ts +11 -10
- package/lib/inspector/formatAutoMovieInspectorAddress.js +15 -11
- package/lib/inspector/formatAutoMovieInspectorAddress.js.map +1 -1
- package/lib/inspector/formatAutoMovieInspectorAddress.mjs +15 -11
- package/lib/inspector/formatAutoMovieInspectorAddress.mjs.map +1 -1
- package/lib/inspector/formatAutoMovieInspectorCommand.d.ts +20 -14
- package/lib/inspector/formatAutoMovieInspectorCommand.js +33 -14
- package/lib/inspector/formatAutoMovieInspectorCommand.js.map +1 -1
- package/lib/inspector/formatAutoMovieInspectorCommand.mjs +26 -15
- package/lib/inspector/formatAutoMovieInspectorCommand.mjs.map +1 -1
- package/lib/inspector/handleAutoMovieInspectorKey.d.ts +24 -15
- package/lib/inspector/handleAutoMovieInspectorKey.js +27 -16
- package/lib/inspector/handleAutoMovieInspectorKey.js.map +1 -1
- package/lib/inspector/handleAutoMovieInspectorKey.mjs +27 -16
- package/lib/inspector/handleAutoMovieInspectorKey.mjs.map +1 -1
- package/lib/inspector/index.d.ts +5 -0
- package/lib/inspector/index.js +5 -0
- package/lib/inspector/index.js.map +1 -1
- package/lib/inspector/index.mjs +6 -1
- package/lib/inspector/inspectAutoMovieInspectorRequest.d.ts +19 -0
- package/lib/inspector/inspectAutoMovieInspectorRequest.js +20 -0
- package/lib/inspector/inspectAutoMovieInspectorRequest.js.map +1 -0
- package/lib/inspector/inspectAutoMovieInspectorRequest.mjs +20 -0
- package/lib/inspector/inspectAutoMovieInspectorRequest.mjs.map +1 -0
- package/lib/inspector/installAutoMovieInspectorRequest.d.ts +20 -0
- package/lib/inspector/installAutoMovieInspectorRequest.js +36 -0
- package/lib/inspector/installAutoMovieInspectorRequest.js.map +1 -0
- package/lib/inspector/installAutoMovieInspectorRequest.mjs +35 -0
- package/lib/inspector/installAutoMovieInspectorRequest.mjs.map +1 -0
- package/lib/inspector/locateAutoMovieInspectorFinding.d.ts +19 -0
- package/lib/inspector/locateAutoMovieInspectorFinding.js +34 -0
- package/lib/inspector/locateAutoMovieInspectorFinding.js.map +1 -0
- package/lib/inspector/locateAutoMovieInspectorFinding.mjs +37 -0
- package/lib/inspector/locateAutoMovieInspectorFinding.mjs.map +1 -0
- package/lib/inspector/messageOfAutoMovieInspectorError.d.ts +2 -0
- package/lib/inspector/messageOfAutoMovieInspectorError.js +8 -0
- package/lib/inspector/messageOfAutoMovieInspectorError.js.map +1 -0
- package/lib/inspector/messageOfAutoMovieInspectorError.mjs +8 -0
- package/lib/inspector/messageOfAutoMovieInspectorError.mjs.map +1 -0
- package/lib/inspector/mountAutoMovieInspectorPage.d.ts +5 -8
- package/lib/inspector/mountAutoMovieInspectorPage.js +3 -9
- package/lib/inspector/mountAutoMovieInspectorPage.js.map +1 -1
- package/lib/inspector/mountAutoMovieInspectorPage.mjs +4 -9
- package/lib/inspector/mountAutoMovieInspectorPage.mjs.map +1 -1
- package/lib/inspector/mountAutoMovieInspectorScene.d.ts +55 -12
- package/lib/inspector/mountAutoMovieInspectorScene.js +238 -164
- package/lib/inspector/mountAutoMovieInspectorScene.js.map +1 -1
- package/lib/inspector/mountAutoMovieInspectorScene.mjs +223 -149
- package/lib/inspector/mountAutoMovieInspectorScene.mjs.map +1 -1
- package/lib/inspector/placeAutoMovieInspectorLabels.d.ts +29 -0
- package/lib/inspector/placeAutoMovieInspectorLabels.js +33 -0
- package/lib/inspector/placeAutoMovieInspectorLabels.js.map +1 -0
- package/lib/inspector/placeAutoMovieInspectorLabels.mjs +32 -0
- package/lib/inspector/placeAutoMovieInspectorLabels.mjs.map +1 -0
- package/lib/inspector/readAutoMovieInspectorAddress.d.ts +8 -11
- package/lib/inspector/readAutoMovieInspectorAddress.js +8 -11
- package/lib/inspector/readAutoMovieInspectorAddress.js.map +1 -1
- package/lib/inspector/readAutoMovieInspectorAddress.mjs +8 -11
- package/lib/inspector/readAutoMovieInspectorAddress.mjs.map +1 -1
- package/lib/inspector/readAutoMovieInspectorFacts.d.ts +17 -0
- package/lib/inspector/readAutoMovieInspectorFacts.js +34 -0
- package/lib/inspector/readAutoMovieInspectorFacts.js.map +1 -0
- package/lib/inspector/readAutoMovieInspectorFacts.mjs +28 -0
- package/lib/inspector/readAutoMovieInspectorFacts.mjs.map +1 -0
- package/lib/inspector/readsAutoMovieInspectorPlacedScene.d.ts +9 -0
- package/lib/inspector/readsAutoMovieInspectorPlacedScene.js +14 -0
- package/lib/inspector/readsAutoMovieInspectorPlacedScene.js.map +1 -0
- package/lib/inspector/readsAutoMovieInspectorPlacedScene.mjs +14 -0
- package/lib/inspector/readsAutoMovieInspectorPlacedScene.mjs.map +1 -0
- package/lib/inspector/reduceAutoMovieInspectorState.d.ts +10 -10
- package/lib/inspector/reduceAutoMovieInspectorState.js +17 -11
- package/lib/inspector/reduceAutoMovieInspectorState.js.map +1 -1
- package/lib/inspector/reduceAutoMovieInspectorState.mjs +16 -11
- package/lib/inspector/reduceAutoMovieInspectorState.mjs.map +1 -1
- package/lib/inspector/releaseAutoMovieInspectorSteps.d.ts +6 -0
- package/lib/inspector/releaseAutoMovieInspectorSteps.js +23 -0
- package/lib/inspector/releaseAutoMovieInspectorSteps.js.map +1 -0
- package/lib/inspector/releaseAutoMovieInspectorSteps.mjs +19 -0
- package/lib/inspector/releaseAutoMovieInspectorSteps.mjs.map +1 -0
- package/lib/inspector/reportAutoMovieInspectorLabels.d.ts +21 -0
- package/lib/inspector/reportAutoMovieInspectorLabels.js +27 -0
- package/lib/inspector/reportAutoMovieInspectorLabels.js.map +1 -0
- package/lib/inspector/reportAutoMovieInspectorLabels.mjs +30 -0
- package/lib/inspector/reportAutoMovieInspectorLabels.mjs.map +1 -0
- package/lib/inspector/resolveAutoMovieInspectorCamera.d.ts +22 -0
- package/lib/inspector/resolveAutoMovieInspectorCamera.js +34 -0
- package/lib/inspector/resolveAutoMovieInspectorCamera.js.map +1 -0
- package/lib/inspector/resolveAutoMovieInspectorCamera.mjs +34 -0
- package/lib/inspector/resolveAutoMovieInspectorCamera.mjs.map +1 -0
- package/lib/inspector/showAutoMovieInspectorFinding.d.ts +25 -0
- package/lib/inspector/showAutoMovieInspectorFinding.js +26 -0
- package/lib/inspector/showAutoMovieInspectorFinding.js.map +1 -0
- package/lib/inspector/showAutoMovieInspectorFinding.mjs +26 -0
- package/lib/inspector/showAutoMovieInspectorFinding.mjs.map +1 -0
- package/lib/inspector/stopAutoMovieInspectorTime.d.ts +11 -0
- package/lib/inspector/stopAutoMovieInspectorTime.js +17 -0
- package/lib/inspector/stopAutoMovieInspectorTime.js.map +1 -0
- package/lib/inspector/stopAutoMovieInspectorTime.mjs +18 -0
- package/lib/inspector/stopAutoMovieInspectorTime.mjs.map +1 -0
- package/lib/inspector/writeAutoMovieInspectorInspection.d.ts +6 -0
- package/lib/inspector/writeAutoMovieInspectorInspection.js +12 -0
- package/lib/inspector/writeAutoMovieInspectorInspection.js.map +1 -0
- package/lib/inspector/writeAutoMovieInspectorInspection.mjs +12 -0
- package/lib/inspector/writeAutoMovieInspectorInspection.mjs.map +1 -0
- package/lib/internal.d.ts +7 -0
- package/lib/internal.js +25 -0
- package/lib/internal.js.map +1 -0
- package/lib/internal.mjs +8 -0
- package/lib/mountViewer.d.ts +16 -10
- package/lib/mountViewer.js +17 -14
- package/lib/mountViewer.js.map +1 -1
- package/lib/mountViewer.mjs +18 -12
- package/lib/mountViewer.mjs.map +1 -1
- package/lib/publishViewerCompletedFrame.d.ts +12 -10
- package/lib/publishViewerCompletedFrame.js +11 -9
- package/lib/publishViewerCompletedFrame.js.map +1 -1
- package/lib/publishViewerCompletedFrame.mjs +11 -9
- package/lib/publishViewerCompletedFrame.mjs.map +1 -1
- package/lib/redrawViewerCompletedFrame.d.ts +2 -10
- package/lib/redrawViewerCompletedFrame.js +4 -12
- package/lib/redrawViewerCompletedFrame.js.map +1 -1
- package/lib/redrawViewerCompletedFrame.mjs +3 -11
- package/lib/redrawViewerCompletedFrame.mjs.map +1 -1
- package/lib/releaseMountedViewer.d.ts +5 -9
- package/lib/releaseMountedViewer.js +5 -9
- package/lib/releaseMountedViewer.js.map +1 -1
- package/lib/releaseMountedViewer.mjs +5 -9
- package/lib/releaseMountedViewer.mjs.map +1 -1
- package/lib/transport/AutoMovieViewerTransport.d.ts +13 -122
- package/lib/transport/AutoMovieViewerTransport.js +10 -74
- package/lib/transport/AutoMovieViewerTransport.js.map +1 -1
- package/lib/transport/AutoMovieViewerTransport.mjs +10 -65
- package/lib/transport/AutoMovieViewerTransport.mjs.map +1 -1
- package/lib/transport/readAutoMovieReviewInterval.d.ts +3 -10
- package/lib/transport/readAutoMovieReviewInterval.js +11 -16
- package/lib/transport/readAutoMovieReviewInterval.js.map +1 -1
- package/lib/transport/readAutoMovieReviewInterval.mjs +8 -14
- package/lib/transport/readAutoMovieReviewInterval.mjs.map +1 -1
- package/package.json +12 -8
- package/src/IAutoMovieViewerCompletedFrame.ts +21 -11
- package/src/IAutoMovieViewerDisplayMetadata.ts +0 -5
- package/src/IAutoMovieViewerHandle.ts +3 -25
- package/src/IMountViewerOptions.ts +24 -38
- package/src/IViewerCameraStateSnapshot.ts +0 -5
- package/src/IViewerFrameTransfer.ts +13 -0
- package/src/applyCaptureCanvasSize.ts +9 -18
- package/src/audio/IAutoMovieAudioCue.ts +3 -8
- package/src/audio/planAutoMovieAudioPlayback.ts +9 -23
- package/src/audio/playAutoMovieAudioCues.ts +4 -11
- package/src/createViewerCameraState.ts +119 -175
- package/src/createViewerDisplayClock.ts +4 -12
- package/src/createViewerDisplayPublication.ts +7 -15
- package/src/createViewerDisplaySave.ts +8 -16
- package/src/createViewerFrameControl.ts +16 -24
- package/src/createViewerViewportResize.ts +7 -23
- package/src/index.ts +1 -0
- package/src/inspector/AutoMovieInspector.tsx +183 -20
- package/src/inspector/AutoMovieInspectorBeauty.ts +89 -0
- package/src/inspector/AutoMovieInspectorDiagnosticLog.ts +235 -0
- package/src/inspector/AutoMovieInspectorDiagnosticsPanel.tsx +118 -0
- package/src/inspector/AutoMovieInspectorMarksPanel.tsx +26 -34
- package/src/inspector/AutoMovieInspectorPlayhead.ts +53 -110
- package/src/inspector/AutoMovieInspectorRequestPanel.tsx +57 -29
- package/src/inspector/AutoMovieInspectorSelectionPanel.tsx +0 -8
- package/src/inspector/AutoMovieInspectorShadePanel.tsx +24 -29
- package/src/inspector/AutoMovieInspectorTimePanel.tsx +0 -8
- package/src/inspector/AutoMovieInspectorTimeReadout.tsx +4 -10
- package/src/inspector/AutoMovieInspectorTransition.ts +178 -0
- package/src/inspector/AutoMovieInspectorViewPanel.tsx +0 -8
- package/src/inspector/IAutoMovieInspectorAction.ts +57 -94
- package/src/inspector/IAutoMovieInspectorLive.ts +62 -0
- package/src/inspector/IAutoMovieInspectorPathNode.ts +14 -9
- package/src/inspector/IAutoMovieInspectorProps.ts +4 -14
- package/src/inspector/IAutoMovieInspectorScene.ts +104 -99
- package/src/inspector/IAutoMovieInspectorSceneHost.ts +43 -102
- package/src/inspector/IAutoMovieInspectorState.ts +6 -7
- package/src/inspector/assertAutoMovieInspectorRaster.ts +23 -0
- package/src/inspector/buildAutoMovieInspectorPathTree.ts +9 -10
- package/src/inspector/changesAutoMovieObservedScene.ts +30 -0
- package/src/inspector/createAutoMovieInspectorAddressWriter.ts +13 -11
- package/src/inspector/createAutoMovieInspectorCanvasHost.ts +14 -12
- package/src/inspector/createAutoMovieInspectorState.ts +3 -9
- package/src/inspector/firstAutoMovieInspectorSecond.ts +13 -0
- package/src/inspector/followAutoMovieInspectorSize.ts +32 -0
- package/src/inspector/formatAutoMovieInspectorAddress.ts +15 -11
- package/src/inspector/formatAutoMovieInspectorCommand.ts +44 -15
- package/src/inspector/handleAutoMovieInspectorKey.ts +27 -16
- package/src/inspector/index.ts +5 -0
- package/src/inspector/inspectAutoMovieInspectorRequest.ts +37 -0
- package/src/inspector/installAutoMovieInspectorRequest.ts +50 -0
- package/src/inspector/locateAutoMovieInspectorFinding.ts +40 -0
- package/src/inspector/messageOfAutoMovieInspectorError.ts +4 -0
- package/src/inspector/mountAutoMovieInspectorPage.tsx +7 -8
- package/src/inspector/mountAutoMovieInspectorScene.ts +290 -232
- package/src/inspector/placeAutoMovieInspectorLabels.ts +53 -0
- package/src/inspector/readAutoMovieInspectorAddress.ts +8 -11
- package/src/inspector/readAutoMovieInspectorFacts.ts +50 -0
- package/src/inspector/readsAutoMovieInspectorPlacedScene.ts +16 -0
- package/src/inspector/reduceAutoMovieInspectorState.ts +17 -11
- package/src/inspector/releaseAutoMovieInspectorSteps.ts +19 -0
- package/src/inspector/reportAutoMovieInspectorLabels.ts +45 -0
- package/src/inspector/resolveAutoMovieInspectorCamera.ts +50 -0
- package/src/inspector/showAutoMovieInspectorFinding.ts +40 -0
- package/src/inspector/stopAutoMovieInspectorTime.ts +19 -0
- package/src/inspector/writeAutoMovieInspectorInspection.ts +12 -0
- package/src/internal.ts +9 -0
- package/src/mountViewer.ts +17 -14
- package/src/publishViewerCompletedFrame.ts +14 -10
- package/src/redrawViewerCompletedFrame.ts +3 -12
- package/src/releaseMountedViewer.ts +5 -9
- package/src/transport/AutoMovieViewerTransport.ts +17 -144
- package/src/transport/readAutoMovieReviewInterval.ts +15 -16
|
@@ -3,18 +3,13 @@
|
|
|
3
3
|
* seeks, interval playback at a review speed, optional synchronized sound and
|
|
4
4
|
* capture freezes, all through one synchronous `place(seconds)` producer.
|
|
5
5
|
*
|
|
6
|
-
* A placement commits the displayed second only after the producer succeeds,
|
|
7
|
-
*
|
|
6
|
+
* A placement commits the displayed second only after the producer succeeds, so
|
|
7
|
+
* a failed draw never masquerades as a sought frame. Playback anchors one
|
|
8
8
|
* wall-clock origin (no integrated render deltas), snaps to the frame grid of
|
|
9
|
-
* `fps` and draws the interval's exact end before pausing. Sound starts
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (One authoritative review clock for a deterministic film producer: exact seeks, interval playback at a review speed, optional synchronized sound and capture freezes, all through one synchronous `place(seconds)` producer) and documents 21 documented members as stated in this comment.
|
|
15
|
-
* @evidence contracts/development/design.md#principled-representation Represents One authoritative review clock for a deterministic film producer: exact seeks, interval playback at a review speed, optional synchronized sound and capture freezes, all through one synchronous `place(seconds)` producer: class of 21 members (`seconds`, `playing`, `sound`, `error`, `interval`, `available`, ...); units and frames named in its text: second, seconds, milliseconds, frame. It has no optional member, so no absent-value state combines with another. 2 members are readonly.
|
|
16
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `AutoMovieViewerTransport` in packages/viewer/src/transport/AutoMovieViewerTransport.ts; its surface is the 21 members listed and the text shows 3 other files naming it, mostly packages/viewer (2), test (1), so no member is declared for a presumed future need.
|
|
17
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts Scanning the declaration finds no `any`, a use of `unknown`, no index signature and no cast; it duplicates no type that another owner declares as far as a name search shows. The widening above is the remaining shortcut and is not justified here.
|
|
9
|
+
* `fps` and draws the interval's exact end before pausing. Sound starts before
|
|
10
|
+
* the anchor and a generation token cancels a start that a later pause, seek or
|
|
11
|
+
* speed change superseded. The clock source is injectable, so the logic runs in
|
|
12
|
+
* milliseconds without a browser.
|
|
18
13
|
*/
|
|
19
14
|
export declare class AutoMovieViewerTransport {
|
|
20
15
|
/** Last successfully displayed second. */
|
|
@@ -53,54 +48,20 @@ export declare class AutoMovieViewerTransport {
|
|
|
53
48
|
* Start playback from the committed second, after the sound starts.
|
|
54
49
|
*
|
|
55
50
|
* @returns When the clock is anchored, or the start was superseded.
|
|
56
|
-
*
|
|
57
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Start playback from the committed second, after the sound starts.
|
|
58
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Start playback from the committed second, after the sound starts) directly over its typed inputs as a fixed number of statements with no loop or recursion in the body, delegating to `String`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (1 throw site). Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
59
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One async operation of 20 lines and 5 top-level statements that reuses `String` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
|
|
60
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.
|
|
61
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of its inputs; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call. No speedup is claimed and none is measured.
|
|
62
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Awaits 1 call per invocation and shares no result or in-flight work between invocations: equivalence of effectful calls is not decided here, so every call repeats its effects.
|
|
63
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The body awaits asynchronous work; it retains nothing after it settles beyond its result, and any handle it opens is owned and released by the call or by its callees.
|
|
64
51
|
*/
|
|
65
52
|
play(): Promise<void>;
|
|
66
|
-
/**
|
|
67
|
-
* Stop playback and sound without moving the displayed second.
|
|
68
|
-
*
|
|
69
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Stop playback and sound without moving the displayed second.
|
|
70
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Stop playback and sound without moving the displayed second) directly over its typed inputs as a fixed number of statements with no loop or recursion in the body; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body performs no validation and relies on its callers. Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
71
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 5 lines and 3 top-level statements that calls no other named helper; it adds no option, layer or abstraction beyond its documented parameters.
|
|
72
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.
|
|
73
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of its inputs; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call. No speedup is claimed and none is measured.
|
|
74
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
75
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 0 allocation sites become the returned value or die with the call, so nothing grows.
|
|
76
|
-
*/
|
|
53
|
+
/** Stop playback and sound without moving the displayed second. */
|
|
77
54
|
pause(): void;
|
|
78
55
|
/**
|
|
79
56
|
* Place an exact second inside the available range.
|
|
80
57
|
*
|
|
81
58
|
* @param seconds The second.
|
|
82
|
-
*
|
|
83
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Place an exact second inside the available range.
|
|
84
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Place an exact second inside the available range) directly over its typed inputs (`seconds`) as a fixed number of statements with no loop or recursion in the body, delegating to `Number.isFinite`, `String`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (2 throw sites). Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
85
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 19 lines and 3 top-level statements that reuses `Number.isFinite`, `String` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
|
|
86
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.
|
|
87
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `seconds`; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call with 1 allocation site (literals and constructed values). No speedup is claimed and none is measured.
|
|
88
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
89
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 1 allocation site become the returned value or die with the call, so nothing grows.
|
|
90
59
|
*/
|
|
91
60
|
seek(seconds: number): void;
|
|
92
61
|
/**
|
|
93
62
|
* Advance a running clock to the frame due now; call once per display frame.
|
|
94
63
|
*
|
|
95
64
|
* @returns Whether a new frame was placed.
|
|
96
|
-
*
|
|
97
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Advance a running clock to the frame due now; call once per display frame.
|
|
98
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Advance a running clock to the frame due now; call once per display frame) directly over its typed inputs as a fixed number of statements with no loop or recursion in the body, delegating to `Math.min`, `Math.max`, `Math.floor`, `String`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (1 throw site). Beyond structural 0, 1 and 2 the body uses the literal 1000, whose basis this answer does not independently establish and a reviewer must confirm.
|
|
99
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 26 lines and 6 top-level statements that reuses `Math.min`, `Math.max`, `Math.floor`, `String` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
|
|
100
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters. Literal caveat: 1000 are not independently sourced here.
|
|
101
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of its inputs; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call. No speedup is claimed and none is measured.
|
|
102
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
103
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 0 allocation sites become the returned value or die with the call, so nothing grows.
|
|
104
65
|
*/
|
|
105
66
|
tick(): boolean;
|
|
106
67
|
/**
|
|
@@ -108,28 +69,12 @@ export declare class AutoMovieViewerTransport {
|
|
|
108
69
|
*
|
|
109
70
|
* @param start Start second.
|
|
110
71
|
* @param end End second, after the start.
|
|
111
|
-
*
|
|
112
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Select a playback interval by placing its start first.
|
|
113
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Select a playback interval by placing its start first) directly over its typed inputs (`start`, `end`) as a fixed number of statements with no loop or recursion in the body, delegating to `Number.isFinite`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (1 throw site). Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
114
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 14 lines and 3 top-level statements that reuses `Number.isFinite` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
|
|
115
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.
|
|
116
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `start`, `end`; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call with 2 allocation sites (literals and constructed values). No speedup is claimed and none is measured.
|
|
117
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
118
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 2 allocation sites become the returned value or die with the call, so nothing grows.
|
|
119
72
|
*/
|
|
120
73
|
setInterval(start: number, end: number): void;
|
|
121
74
|
/**
|
|
122
75
|
* Pause for a capture and return a once-only release that may resume.
|
|
123
76
|
*
|
|
124
77
|
* @returns The release; `true` resumes a formerly playing clock.
|
|
125
|
-
*
|
|
126
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Pause for a capture and return a once-only release that may resume.
|
|
127
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Pause for a capture and return a once-only release that may resume) directly over its typed inputs as a fixed number of statements with no loop or recursion in the body; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body performs no validation and relies on its callers. Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
128
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 10 lines and 4 top-level statements that calls no other named helper; it adds no option, layer or abstraction beyond its documented parameters.
|
|
129
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.
|
|
130
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of its inputs; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call. No speedup is claimed and none is measured.
|
|
131
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
132
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 0 allocation sites become the returned value or die with the call, so nothing grows.
|
|
133
78
|
*/
|
|
134
79
|
freeze(): (resume: boolean) => void;
|
|
135
80
|
/** The injected or performance clock, milliseconds. */
|
|
@@ -137,60 +82,16 @@ export declare class AutoMovieViewerTransport {
|
|
|
137
82
|
}
|
|
138
83
|
/** Companion types of {@link AutoMovieViewerTransport}. */
|
|
139
84
|
export declare namespace AutoMovieViewerTransport {
|
|
140
|
-
/**
|
|
141
|
-
* A synchronized sound source.
|
|
142
|
-
*
|
|
143
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: A synchronized sound source.
|
|
144
|
-
* @evidence contracts/development/design.md#principled-representation Represents A synchronized sound source: interface of 2 members (`play`, `pause`); units and frames named in its text: second, seconds. It has no optional member, so no absent-value state combines with another.
|
|
145
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `IAudio` in packages/viewer/src/transport/AutoMovieViewerTransport.ts; its surface is the 2 members listed and the text shows 0 other files naming it, so no member is declared for a presumed future need.
|
|
146
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts Scanning the declaration finds no `any`, no `unknown`, no index signature and no cast; it duplicates no type that another owner declares as far as a name search shows.
|
|
147
|
-
*/
|
|
85
|
+
/** A synchronized sound source. */
|
|
148
86
|
interface IAudio {
|
|
149
|
-
/**
|
|
150
|
-
* Start from a film second at a speed; resolves once sounding.
|
|
151
|
-
*
|
|
152
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Start from a film second at a speed; resolves once sounding.
|
|
153
|
-
* @evidenceExclude contracts/development/implementation.md#principled-implementation Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; the contract it fixes is: Start from a film second at a speed; resolves once sounding.
|
|
154
|
-
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; it declares one operation and adds no layer.
|
|
155
|
-
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; nothing here can special-case a value.
|
|
156
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; the cost an implementation may incur is not constrained by this signature.
|
|
157
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; it coordinates no work itself.
|
|
158
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; it owns no state, handle or task.
|
|
159
|
-
*/
|
|
87
|
+
/** Start from a film second at a speed; resolves once sounding. */
|
|
160
88
|
play(seconds: number, rate: number): Promise<void>;
|
|
161
|
-
/**
|
|
162
|
-
* Stop any current sound.
|
|
163
|
-
*
|
|
164
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Stop any current sound.
|
|
165
|
-
* @evidenceExclude contracts/development/implementation.md#principled-implementation Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; the contract it fixes is: Stop any current sound.
|
|
166
|
-
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; it declares one operation and adds no layer.
|
|
167
|
-
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; nothing here can special-case a value.
|
|
168
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; the cost an implementation may incur is not constrained by this signature.
|
|
169
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; it coordinates no work itself.
|
|
170
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; it owns no state, handle or task.
|
|
171
|
-
*/
|
|
89
|
+
/** Stop any current sound. */
|
|
172
90
|
pause(): void;
|
|
173
91
|
}
|
|
174
|
-
/**
|
|
175
|
-
* Transport settings and collaborators.
|
|
176
|
-
*
|
|
177
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Transport settings and collaborators.
|
|
178
|
-
* @evidence contracts/development/design.md#principled-representation Represents Transport settings and collaborators: interface of 6 members (`place`, `available`, `fps`, `speeds`, `audio`, `now`); units and frames named in its text: second, seconds, frame, frames, milliseconds. Optional members `speeds`, `audio`, `now` express documented absence, and the ranges its member docs state are left to runtime validation.
|
|
179
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `IOptions` in packages/viewer/src/transport/AutoMovieViewerTransport.ts; its surface is the 6 members listed and the text shows 14 other files naming it, mostly packages/human (10), test (3), packages/engine (1), so no member is declared for a presumed future need.
|
|
180
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts Scanning the declaration finds no `any`, no `unknown`, no index signature and no cast; 3 optional members (`speeds`, `audio`, `now`) are independent fields rather than alternatives of one another as far as their docs state; it duplicates no type that another owner declares as far as a name search shows.
|
|
181
|
-
*/
|
|
92
|
+
/** Transport settings and collaborators. */
|
|
182
93
|
interface IOptions {
|
|
183
|
-
/**
|
|
184
|
-
* The synchronous producer that displays a second; throws on failure.
|
|
185
|
-
*
|
|
186
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: The synchronous producer that displays a second; throws on failure.
|
|
187
|
-
* @evidenceExclude contracts/development/implementation.md#principled-implementation Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; the contract it fixes is: The synchronous producer that displays a second; throws on failure.
|
|
188
|
-
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; it declares one operation and adds no layer.
|
|
189
|
-
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; nothing here can special-case a value.
|
|
190
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; the cost an implementation may incur is not constrained by this signature.
|
|
191
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; it coordinates no work itself.
|
|
192
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; it owns no state, handle or task.
|
|
193
|
-
*/
|
|
94
|
+
/** The synchronous producer that displays a second; throws on failure. */
|
|
194
95
|
place(seconds: number): void;
|
|
195
96
|
/** Available source range, seconds. */
|
|
196
97
|
available: readonly [number, number];
|
|
@@ -200,17 +101,7 @@ export declare namespace AutoMovieViewerTransport {
|
|
|
200
101
|
speeds?: readonly number[];
|
|
201
102
|
/** Optional sound source. */
|
|
202
103
|
audio?: IAudio;
|
|
203
|
-
/**
|
|
204
|
-
* Clock in milliseconds; `performance.now` by default.
|
|
205
|
-
*
|
|
206
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Clock in milliseconds; `performance.now` by default.
|
|
207
|
-
* @evidenceExclude contracts/development/implementation.md#principled-implementation Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; the contract it fixes is: Clock in milliseconds; `performance.now` by default.
|
|
208
|
-
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; it declares one operation and adds no layer.
|
|
209
|
-
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; nothing here can special-case a value.
|
|
210
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; the cost an implementation may incur is not constrained by this signature.
|
|
211
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; it coordinates no work itself.
|
|
212
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; it owns no state, handle or task.
|
|
213
|
-
*/
|
|
104
|
+
/** Clock in milliseconds; `performance.now` by default. */
|
|
214
105
|
now?(): number;
|
|
215
106
|
}
|
|
216
107
|
}
|
|
@@ -6,18 +6,13 @@ exports.AutoMovieViewerTransport = void 0;
|
|
|
6
6
|
* seeks, interval playback at a review speed, optional synchronized sound and
|
|
7
7
|
* capture freezes, all through one synchronous `place(seconds)` producer.
|
|
8
8
|
*
|
|
9
|
-
* A placement commits the displayed second only after the producer succeeds,
|
|
10
|
-
*
|
|
9
|
+
* A placement commits the displayed second only after the producer succeeds, so
|
|
10
|
+
* a failed draw never masquerades as a sought frame. Playback anchors one
|
|
11
11
|
* wall-clock origin (no integrated render deltas), snaps to the frame grid of
|
|
12
|
-
* `fps` and draws the interval's exact end before pausing. Sound starts
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (One authoritative review clock for a deterministic film producer: exact seeks, interval playback at a review speed, optional synchronized sound and capture freezes, all through one synchronous `place(seconds)` producer) and documents 21 documented members as stated in this comment.
|
|
18
|
-
* @evidence contracts/development/design.md#principled-representation Represents One authoritative review clock for a deterministic film producer: exact seeks, interval playback at a review speed, optional synchronized sound and capture freezes, all through one synchronous `place(seconds)` producer: class of 21 members (`seconds`, `playing`, `sound`, `error`, `interval`, `available`, ...); units and frames named in its text: second, seconds, milliseconds, frame. It has no optional member, so no absent-value state combines with another. 2 members are readonly.
|
|
19
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `AutoMovieViewerTransport` in packages/viewer/src/transport/AutoMovieViewerTransport.ts; its surface is the 21 members listed and the text shows 3 other files naming it, mostly packages/viewer (2), test (1), so no member is declared for a presumed future need.
|
|
20
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts Scanning the declaration finds no `any`, a use of `unknown`, no index signature and no cast; it duplicates no type that another owner declares as far as a name search shows. The widening above is the remaining shortcut and is not justified here.
|
|
12
|
+
* `fps` and draws the interval's exact end before pausing. Sound starts before
|
|
13
|
+
* the anchor and a generation token cancels a start that a later pause, seek or
|
|
14
|
+
* speed change superseded. The clock source is injectable, so the logic runs in
|
|
15
|
+
* milliseconds without a browser.
|
|
21
16
|
*/
|
|
22
17
|
class AutoMovieViewerTransport {
|
|
23
18
|
/** Last successfully displayed second. */
|
|
@@ -49,10 +44,7 @@ class AutoMovieViewerTransport {
|
|
|
49
44
|
*/
|
|
50
45
|
constructor(options) {
|
|
51
46
|
const available = options.available;
|
|
52
|
-
if (!
|
|
53
|
-
available[0] < 0 ||
|
|
54
|
-
available[0] >= available[1] ||
|
|
55
|
-
!(options.fps > 0))
|
|
47
|
+
if (available[0] < 0 || available[0] >= available[1] || !(options.fps > 0))
|
|
56
48
|
throw new Error("Invalid transport range or frame rate");
|
|
57
49
|
this.options = options;
|
|
58
50
|
this.available = Object.freeze([available[0], available[1]]);
|
|
@@ -74,14 +66,6 @@ class AutoMovieViewerTransport {
|
|
|
74
66
|
* Start playback from the committed second, after the sound starts.
|
|
75
67
|
*
|
|
76
68
|
* @returns When the clock is anchored, or the start was superseded.
|
|
77
|
-
*
|
|
78
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Start playback from the committed second, after the sound starts.
|
|
79
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Start playback from the committed second, after the sound starts) directly over its typed inputs as a fixed number of statements with no loop or recursion in the body, delegating to `String`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (1 throw site). Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
80
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One async operation of 20 lines and 5 top-level statements that reuses `String` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
|
|
81
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.
|
|
82
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of its inputs; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call. No speedup is claimed and none is measured.
|
|
83
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Awaits 1 call per invocation and shares no result or in-flight work between invocations: equivalence of effectful calls is not decided here, so every call repeats its effects.
|
|
84
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The body awaits asynchronous work; it retains nothing after it settles beyond its result, and any handle it opens is owned and released by the call or by its callees.
|
|
85
69
|
*/
|
|
86
70
|
async play() {
|
|
87
71
|
this.pause();
|
|
@@ -106,17 +90,7 @@ class AutoMovieViewerTransport {
|
|
|
106
90
|
throw error;
|
|
107
91
|
}
|
|
108
92
|
}
|
|
109
|
-
/**
|
|
110
|
-
* Stop playback and sound without moving the displayed second.
|
|
111
|
-
*
|
|
112
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Stop playback and sound without moving the displayed second.
|
|
113
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Stop playback and sound without moving the displayed second) directly over its typed inputs as a fixed number of statements with no loop or recursion in the body; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body performs no validation and relies on its callers. Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
114
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 5 lines and 3 top-level statements that calls no other named helper; it adds no option, layer or abstraction beyond its documented parameters.
|
|
115
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.
|
|
116
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of its inputs; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call. No speedup is claimed and none is measured.
|
|
117
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
118
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 0 allocation sites become the returned value or die with the call, so nothing grows.
|
|
119
|
-
*/
|
|
93
|
+
/** Stop playback and sound without moving the displayed second. */
|
|
120
94
|
pause() {
|
|
121
95
|
this.generation++;
|
|
122
96
|
this.playing = false;
|
|
@@ -126,19 +100,9 @@ class AutoMovieViewerTransport {
|
|
|
126
100
|
* Place an exact second inside the available range.
|
|
127
101
|
*
|
|
128
102
|
* @param seconds The second.
|
|
129
|
-
*
|
|
130
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Place an exact second inside the available range.
|
|
131
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Place an exact second inside the available range) directly over its typed inputs (`seconds`) as a fixed number of statements with no loop or recursion in the body, delegating to `Number.isFinite`, `String`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (2 throw sites). Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
132
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 19 lines and 3 top-level statements that reuses `Number.isFinite`, `String` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
|
|
133
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.
|
|
134
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `seconds`; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call with 1 allocation site (literals and constructed values). No speedup is claimed and none is measured.
|
|
135
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
136
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 1 allocation site become the returned value or die with the call, so nothing grows.
|
|
137
103
|
*/
|
|
138
104
|
seek(seconds) {
|
|
139
|
-
if (
|
|
140
|
-
seconds < this.available[0] ||
|
|
141
|
-
seconds > this.available[1])
|
|
105
|
+
if (seconds < this.available[0] || seconds > this.available[1])
|
|
142
106
|
throw new Error(`Seek must remain inside [${this.available[0]},${this.available[1]}]`);
|
|
143
107
|
this.pause();
|
|
144
108
|
try {
|
|
@@ -155,14 +119,6 @@ class AutoMovieViewerTransport {
|
|
|
155
119
|
* Advance a running clock to the frame due now; call once per display frame.
|
|
156
120
|
*
|
|
157
121
|
* @returns Whether a new frame was placed.
|
|
158
|
-
*
|
|
159
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Advance a running clock to the frame due now; call once per display frame.
|
|
160
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Advance a running clock to the frame due now; call once per display frame) directly over its typed inputs as a fixed number of statements with no loop or recursion in the body, delegating to `Math.min`, `Math.max`, `Math.floor`, `String`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (1 throw site). Beyond structural 0, 1 and 2 the body uses the literal 1000, whose basis this answer does not independently establish and a reviewer must confirm.
|
|
161
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 26 lines and 6 top-level statements that reuses `Math.min`, `Math.max`, `Math.floor`, `String` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
|
|
162
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters. Literal caveat: 1000 are not independently sourced here.
|
|
163
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of its inputs; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call. No speedup is claimed and none is measured.
|
|
164
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
165
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 0 allocation sites become the returned value or die with the call, so nothing grows.
|
|
166
122
|
*/
|
|
167
123
|
tick() {
|
|
168
124
|
if (!this.playing)
|
|
@@ -194,21 +150,9 @@ class AutoMovieViewerTransport {
|
|
|
194
150
|
*
|
|
195
151
|
* @param start Start second.
|
|
196
152
|
* @param end End second, after the start.
|
|
197
|
-
*
|
|
198
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Select a playback interval by placing its start first.
|
|
199
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Select a playback interval by placing its start first) directly over its typed inputs (`start`, `end`) as a fixed number of statements with no loop or recursion in the body, delegating to `Number.isFinite`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (1 throw site). Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
200
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 14 lines and 3 top-level statements that reuses `Number.isFinite` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
|
|
201
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.
|
|
202
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `start`, `end`; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call with 2 allocation sites (literals and constructed values). No speedup is claimed and none is measured.
|
|
203
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
204
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 2 allocation sites become the returned value or die with the call, so nothing grows.
|
|
205
153
|
*/
|
|
206
154
|
setInterval(start, end) {
|
|
207
|
-
if (
|
|
208
|
-
!Number.isFinite(end) ||
|
|
209
|
-
start < this.available[0] ||
|
|
210
|
-
end > this.available[1] ||
|
|
211
|
-
end <= start)
|
|
155
|
+
if (start < this.available[0] || end > this.available[1] || end <= start)
|
|
212
156
|
throw new Error(`Review interval must remain inside [${this.available[0]},${this.available[1]}]`);
|
|
213
157
|
this.seek(start);
|
|
214
158
|
this.interval = [start, end];
|
|
@@ -217,14 +161,6 @@ class AutoMovieViewerTransport {
|
|
|
217
161
|
* Pause for a capture and return a once-only release that may resume.
|
|
218
162
|
*
|
|
219
163
|
* @returns The release; `true` resumes a formerly playing clock.
|
|
220
|
-
*
|
|
221
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Pause for a capture and return a once-only release that may resume.
|
|
222
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Pause for a capture and return a once-only release that may resume) directly over its typed inputs as a fixed number of statements with no loop or recursion in the body; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body performs no validation and relies on its callers. Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
223
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 10 lines and 4 top-level statements that calls no other named helper; it adds no option, layer or abstraction beyond its documented parameters.
|
|
224
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.
|
|
225
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of its inputs; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call. No speedup is claimed and none is measured.
|
|
226
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
227
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 0 allocation sites become the returned value or die with the call, so nothing grows.
|
|
228
164
|
*/
|
|
229
165
|
freeze() {
|
|
230
166
|
const playing = this.playing;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoMovieViewerTransport.js","sourceRoot":"","sources":["../../src/transport/AutoMovieViewerTransport.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"AutoMovieViewerTransport.js","sourceRoot":"","sources":["../../src/transport/AutoMovieViewerTransport.ts"],"names":[],"mappings":"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"}
|
|
@@ -4,18 +4,13 @@
|
|
|
4
4
|
* seeks, interval playback at a review speed, optional synchronized sound and
|
|
5
5
|
* capture freezes, all through one synchronous `place(seconds)` producer.
|
|
6
6
|
*
|
|
7
|
-
* A placement commits the displayed second only after the producer succeeds,
|
|
8
|
-
*
|
|
7
|
+
* A placement commits the displayed second only after the producer succeeds, so
|
|
8
|
+
* a failed draw never masquerades as a sought frame. Playback anchors one
|
|
9
9
|
* wall-clock origin (no integrated render deltas), snaps to the frame grid of
|
|
10
|
-
* `fps` and draws the interval's exact end before pausing. Sound starts
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (One authoritative review clock for a deterministic film producer: exact seeks, interval playback at a review speed, optional synchronized sound and capture freezes, all through one synchronous `place(seconds)` producer) and documents 21 documented members as stated in this comment.
|
|
16
|
-
* @evidence contracts/development/design.md#principled-representation Represents One authoritative review clock for a deterministic film producer: exact seeks, interval playback at a review speed, optional synchronized sound and capture freezes, all through one synchronous `place(seconds)` producer: class of 21 members (`seconds`, `playing`, `sound`, `error`, `interval`, `available`, ...); units and frames named in its text: second, seconds, milliseconds, frame. It has no optional member, so no absent-value state combines with another. 2 members are readonly.
|
|
17
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `AutoMovieViewerTransport` in packages/viewer/src/transport/AutoMovieViewerTransport.ts; its surface is the 21 members listed and the text shows 3 other files naming it, mostly packages/viewer (2), test (1), so no member is declared for a presumed future need.
|
|
18
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts Scanning the declaration finds no `any`, a use of `unknown`, no index signature and no cast; it duplicates no type that another owner declares as far as a name search shows. The widening above is the remaining shortcut and is not justified here.
|
|
10
|
+
* `fps` and draws the interval's exact end before pausing. Sound starts before
|
|
11
|
+
* the anchor and a generation token cancels a start that a later pause, seek or
|
|
12
|
+
* speed change superseded. The clock source is injectable, so the logic runs in
|
|
13
|
+
* milliseconds without a browser.
|
|
19
14
|
*/
|
|
20
15
|
var AutoMovieViewerTransport = class {
|
|
21
16
|
/** Last successfully displayed second. */
|
|
@@ -47,7 +42,7 @@ var AutoMovieViewerTransport = class {
|
|
|
47
42
|
*/
|
|
48
43
|
constructor(options) {
|
|
49
44
|
const available = options.available;
|
|
50
|
-
if (
|
|
45
|
+
if (available[0] < 0 || available[0] >= available[1] || !(options.fps > 0)) throw new Error("Invalid transport range or frame rate");
|
|
51
46
|
this.options = options;
|
|
52
47
|
this.available = Object.freeze([available[0], available[1]]);
|
|
53
48
|
this.seconds = available[0];
|
|
@@ -71,14 +66,6 @@ var AutoMovieViewerTransport = class {
|
|
|
71
66
|
* Start playback from the committed second, after the sound starts.
|
|
72
67
|
*
|
|
73
68
|
* @returns When the clock is anchored, or the start was superseded.
|
|
74
|
-
*
|
|
75
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Start playback from the committed second, after the sound starts.
|
|
76
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Start playback from the committed second, after the sound starts) directly over its typed inputs as a fixed number of statements with no loop or recursion in the body, delegating to `String`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (1 throw site). Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
77
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One async operation of 20 lines and 5 top-level statements that reuses `String` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
|
|
78
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.
|
|
79
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of its inputs; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call. No speedup is claimed and none is measured.
|
|
80
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Awaits 1 call per invocation and shares no result or in-flight work between invocations: equivalence of effectful calls is not decided here, so every call repeats its effects.
|
|
81
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The body awaits asynchronous work; it retains nothing after it settles beyond its result, and any handle it opens is owned and released by the call or by its callees.
|
|
82
69
|
*/
|
|
83
70
|
async play() {
|
|
84
71
|
this.pause();
|
|
@@ -98,17 +85,7 @@ var AutoMovieViewerTransport = class {
|
|
|
98
85
|
throw error;
|
|
99
86
|
}
|
|
100
87
|
}
|
|
101
|
-
/**
|
|
102
|
-
* Stop playback and sound without moving the displayed second.
|
|
103
|
-
*
|
|
104
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Stop playback and sound without moving the displayed second.
|
|
105
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Stop playback and sound without moving the displayed second) directly over its typed inputs as a fixed number of statements with no loop or recursion in the body; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body performs no validation and relies on its callers. Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
106
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 5 lines and 3 top-level statements that calls no other named helper; it adds no option, layer or abstraction beyond its documented parameters.
|
|
107
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.
|
|
108
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of its inputs; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call. No speedup is claimed and none is measured.
|
|
109
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
110
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 0 allocation sites become the returned value or die with the call, so nothing grows.
|
|
111
|
-
*/
|
|
88
|
+
/** Stop playback and sound without moving the displayed second. */
|
|
112
89
|
pause() {
|
|
113
90
|
this.generation++;
|
|
114
91
|
this.playing = false;
|
|
@@ -118,17 +95,9 @@ var AutoMovieViewerTransport = class {
|
|
|
118
95
|
* Place an exact second inside the available range.
|
|
119
96
|
*
|
|
120
97
|
* @param seconds The second.
|
|
121
|
-
*
|
|
122
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Place an exact second inside the available range.
|
|
123
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Place an exact second inside the available range) directly over its typed inputs (`seconds`) as a fixed number of statements with no loop or recursion in the body, delegating to `Number.isFinite`, `String`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (2 throw sites). Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
124
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 19 lines and 3 top-level statements that reuses `Number.isFinite`, `String` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
|
|
125
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.
|
|
126
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `seconds`; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call with 1 allocation site (literals and constructed values). No speedup is claimed and none is measured.
|
|
127
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
128
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 1 allocation site become the returned value or die with the call, so nothing grows.
|
|
129
98
|
*/
|
|
130
99
|
seek(seconds) {
|
|
131
|
-
if (
|
|
100
|
+
if (seconds < this.available[0] || seconds > this.available[1]) throw new Error(`Seek must remain inside [${this.available[0]},${this.available[1]}]`);
|
|
132
101
|
this.pause();
|
|
133
102
|
try {
|
|
134
103
|
this.options.place(seconds);
|
|
@@ -143,14 +112,6 @@ var AutoMovieViewerTransport = class {
|
|
|
143
112
|
* Advance a running clock to the frame due now; call once per display frame.
|
|
144
113
|
*
|
|
145
114
|
* @returns Whether a new frame was placed.
|
|
146
|
-
*
|
|
147
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Advance a running clock to the frame due now; call once per display frame.
|
|
148
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Advance a running clock to the frame due now; call once per display frame) directly over its typed inputs as a fixed number of statements with no loop or recursion in the body, delegating to `Math.min`, `Math.max`, `Math.floor`, `String`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (1 throw site). Beyond structural 0, 1 and 2 the body uses the literal 1000, whose basis this answer does not independently establish and a reviewer must confirm.
|
|
149
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 26 lines and 6 top-level statements that reuses `Math.min`, `Math.max`, `Math.floor`, `String` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
|
|
150
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters. Literal caveat: 1000 are not independently sourced here.
|
|
151
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of its inputs; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call. No speedup is claimed and none is measured.
|
|
152
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
153
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 0 allocation sites become the returned value or die with the call, so nothing grows.
|
|
154
115
|
*/
|
|
155
116
|
tick() {
|
|
156
117
|
if (!this.playing) return false;
|
|
@@ -177,17 +138,9 @@ var AutoMovieViewerTransport = class {
|
|
|
177
138
|
*
|
|
178
139
|
* @param start Start second.
|
|
179
140
|
* @param end End second, after the start.
|
|
180
|
-
*
|
|
181
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Select a playback interval by placing its start first.
|
|
182
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Select a playback interval by placing its start first) directly over its typed inputs (`start`, `end`) as a fixed number of statements with no loop or recursion in the body, delegating to `Number.isFinite`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (1 throw site). Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
183
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 14 lines and 3 top-level statements that reuses `Number.isFinite` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
|
|
184
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.
|
|
185
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `start`, `end`; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call with 2 allocation sites (literals and constructed values). No speedup is claimed and none is measured.
|
|
186
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
187
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 2 allocation sites become the returned value or die with the call, so nothing grows.
|
|
188
141
|
*/
|
|
189
142
|
setInterval(start, end) {
|
|
190
|
-
if (
|
|
143
|
+
if (start < this.available[0] || end > this.available[1] || end <= start) throw new Error(`Review interval must remain inside [${this.available[0]},${this.available[1]}]`);
|
|
191
144
|
this.seek(start);
|
|
192
145
|
this.interval = [start, end];
|
|
193
146
|
}
|
|
@@ -195,14 +148,6 @@ var AutoMovieViewerTransport = class {
|
|
|
195
148
|
* Pause for a capture and return a once-only release that may resume.
|
|
196
149
|
*
|
|
197
150
|
* @returns The release; `true` resumes a formerly playing clock.
|
|
198
|
-
*
|
|
199
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Pause for a capture and return a once-only release that may resume.
|
|
200
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Pause for a capture and return a once-only release that may resume) directly over its typed inputs as a fixed number of statements with no loop or recursion in the body; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body performs no validation and relies on its callers. Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
201
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 10 lines and 4 top-level statements that calls no other named helper; it adds no option, layer or abstraction beyond its documented parameters.
|
|
202
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.
|
|
203
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of its inputs; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call. No speedup is claimed and none is measured.
|
|
204
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
205
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 0 allocation sites become the returned value or die with the call, so nothing grows.
|
|
206
151
|
*/
|
|
207
152
|
freeze() {
|
|
208
153
|
const playing = this.playing;
|