@automovie/viewer 0.3.3 → 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
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The inspector's playhead: the second shown, the subject's duration, whether
|
|
2
|
+
* The inspector's playhead: the second shown, the subject's duration, whether
|
|
3
|
+
* it plays and how fast, kept outside React.
|
|
3
4
|
*
|
|
4
|
-
* The render loop advances it and reads it directly every frame. The time
|
|
5
|
+
* The render loop advances it and reads it directly every frame. The time
|
|
6
|
+
* readout reads its snapshot through `useSyncExternalStore` with `subscribe`
|
|
7
|
+
* and `getSnapshot`, and the time panel only whether it plays, so a playing
|
|
8
|
+
* frame re-renders the readout alone and a start or stop also the panel's play
|
|
9
|
+
* button. A snapshot is replaced, never changed, so its identity tells a reader
|
|
10
|
+
* whether anything moved. Seconds stay within `[0, durationSeconds]`.
|
|
5
11
|
*
|
|
6
|
-
* The rate scales how fast the preview plays and is not part of the request: it
|
|
12
|
+
* The rate scales how fast the preview plays and is not part of the request: it
|
|
13
|
+
* changes no picture, and the capture grammar's `rate` key, stills per second,
|
|
14
|
+
* is a different quantity.
|
|
7
15
|
*
|
|
8
16
|
* ```ts
|
|
9
|
-
* const seconds = useSyncExternalStore(
|
|
17
|
+
* const seconds = useSyncExternalStore(
|
|
18
|
+
* playhead.subscribe,
|
|
19
|
+
* playhead.getSnapshot,
|
|
20
|
+
* ).seconds;
|
|
10
21
|
* ```
|
|
11
|
-
*
|
|
12
|
-
* @evidence contracts/development/design.md#principled-representation Seconds and duration are subject seconds, the rate is a positive multiplier of wall time and playing is a boolean; the snapshot is one immutable record so the external-store contract's identity comparison is exact.
|
|
13
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the inspector, one per mounted component; the scene mount calls `setDuration`, `seek` and `advance`, the time panel `play`, `pause` and `setRate` and subscribes to the playing flag, the readout `seek`, `subscribe` and `getSnapshot`, and the inspector's keys, through `handleAutoMovieInspectorKey`, `play`, `pause`, `seek` and `getSnapshot`.
|
|
14
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts `subscribe` and `getSnapshot` are bound properties, so React keeps one subscription across renders instead of resubscribing to a new function each time.
|
|
15
|
-
* @evidence contracts/development/common.md#meaningful-documentation States who moves and who reads the playhead and what each reader re-renders on, why it lives outside React, the snapshot's identity rule, the range and why the rate is not a request member.
|
|
16
22
|
*/
|
|
17
23
|
export class AutoMovieInspectorPlayhead {
|
|
18
24
|
private snapshot_: AutoMovieInspectorPlayhead.ISnapshot = {
|
|
@@ -20,20 +26,11 @@ export class AutoMovieInspectorPlayhead {
|
|
|
20
26
|
durationSeconds: 0,
|
|
21
27
|
playing: false,
|
|
22
28
|
rate: 1,
|
|
29
|
+
jump: 0,
|
|
23
30
|
};
|
|
24
31
|
private readonly listeners_: Set<() => void> = new Set<() => void>();
|
|
25
32
|
|
|
26
|
-
/**
|
|
27
|
-
* Call `listener` after every change, until the returned function is called.
|
|
28
|
-
*
|
|
29
|
-
* @evidence contracts/development/common.md#meaningful-documentation States when the listener runs and how it is removed.
|
|
30
|
-
* @evidence contracts/development/implementation.md#principled-implementation The external-store contract React's `useSyncExternalStore` reads: subscribe returns its own unsubscribe.
|
|
31
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One set of listeners.
|
|
32
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The same listener given twice is held once, as a set holds it.
|
|
33
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant time to add and to remove.
|
|
34
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A registration computes nothing.
|
|
35
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds the listener until its unsubscribe runs; the set grows by one per live subscription, which React keeps at two per mounted inspector, the time panel's and the readout's.
|
|
36
|
-
*/
|
|
33
|
+
/** Call `listener` after every change, until the returned function is called. */
|
|
37
34
|
public readonly subscribe: (listener: () => void) => () => void = (
|
|
38
35
|
listener: () => void,
|
|
39
36
|
): (() => void) => {
|
|
@@ -43,35 +40,18 @@ export class AutoMovieInspectorPlayhead {
|
|
|
43
40
|
};
|
|
44
41
|
};
|
|
45
42
|
|
|
46
|
-
/**
|
|
47
|
-
* The current snapshot, the same object until something changes.
|
|
48
|
-
*
|
|
49
|
-
* @evidence contracts/development/common.md#meaningful-documentation States the identity rule.
|
|
50
|
-
* @evidence contracts/development/implementation.md#principled-implementation `useSyncExternalStore` requires a cached snapshot, or it renders forever.
|
|
51
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Returns the held record.
|
|
52
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Never builds a record on read.
|
|
53
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant.
|
|
54
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Returns what is held.
|
|
55
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Allocates nothing.
|
|
56
|
-
*/
|
|
43
|
+
/** The current snapshot, the same object until something changes. */
|
|
57
44
|
public readonly getSnapshot: () => AutoMovieInspectorPlayhead.ISnapshot =
|
|
58
45
|
(): AutoMovieInspectorPlayhead.ISnapshot => this.snapshot_;
|
|
59
46
|
|
|
60
47
|
/**
|
|
61
|
-
* Set the subject's duration when an instance is ready, keeping the second
|
|
48
|
+
* Set the subject's duration when an instance is ready, keeping the second
|
|
49
|
+
* within it.
|
|
62
50
|
*
|
|
63
|
-
* It throws for a duration that is not
|
|
64
|
-
*
|
|
65
|
-
* @evidence contracts/development/common.md#meaningful-documentation States when it is called, the clamp and the refusal.
|
|
66
|
-
* @evidence contracts/development/implementation.md#principled-implementation Seconds beyond the subject's end show nothing of it, so the second is clamped to the new range.
|
|
67
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Check, then one change.
|
|
68
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A bad duration is refused instead of clamping every second to zero.
|
|
69
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant plus one call per listener.
|
|
70
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A state change.
|
|
71
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Replaces one record.
|
|
51
|
+
* It throws for a duration that is not positive.
|
|
72
52
|
*/
|
|
73
53
|
public setDuration(durationSeconds: number): void {
|
|
74
|
-
if (!(
|
|
54
|
+
if (!(durationSeconds > 0))
|
|
75
55
|
throw new Error(
|
|
76
56
|
`Inspector duration ${durationSeconds} is not a positive number of seconds`,
|
|
77
57
|
);
|
|
@@ -82,92 +62,55 @@ export class AutoMovieInspectorPlayhead {
|
|
|
82
62
|
}
|
|
83
63
|
|
|
84
64
|
/**
|
|
85
|
-
* Start playing; from the end, play starts again at zero
|
|
86
|
-
*
|
|
87
|
-
* @evidence contracts/development/common.md#meaningful-documentation States the restart at the end.
|
|
88
|
-
* @evidence contracts/development/implementation.md#principled-implementation A playhead at the end has nothing left to play, so play means the whole subject again.
|
|
89
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One change.
|
|
90
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Playing an unready subject (duration zero) is a no-op rather than a loop at zero.
|
|
91
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant plus one call per listener.
|
|
92
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A state change.
|
|
93
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Replaces one record.
|
|
65
|
+
* Start playing; from the end, play starts again at zero, which counts as a
|
|
66
|
+
* jump.
|
|
94
67
|
*/
|
|
95
68
|
public play(): void {
|
|
96
69
|
const { seconds, durationSeconds }: AutoMovieInspectorPlayhead.ISnapshot =
|
|
97
70
|
this.snapshot_;
|
|
98
71
|
if (durationSeconds === 0) return;
|
|
99
|
-
this.change(
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
72
|
+
this.change(
|
|
73
|
+
seconds >= durationSeconds
|
|
74
|
+
? { playing: true, seconds: 0, jump: this.snapshot_.jump + 1 }
|
|
75
|
+
: { playing: true },
|
|
76
|
+
);
|
|
103
77
|
}
|
|
104
78
|
|
|
105
|
-
/**
|
|
106
|
-
* Stop playing where the playhead is.
|
|
107
|
-
*
|
|
108
|
-
* @evidence contracts/development/common.md#meaningful-documentation States that the second is kept.
|
|
109
|
-
* @evidence contracts/development/implementation.md#principled-implementation The paused second is the picture the request then names.
|
|
110
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One change.
|
|
111
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Pausing a paused playhead changes nothing and notifies no one.
|
|
112
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant plus one call per listener.
|
|
113
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A state change.
|
|
114
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Replaces one record.
|
|
115
|
-
*/
|
|
79
|
+
/** Stop playing where the playhead is. */
|
|
116
80
|
public pause(): void {
|
|
117
81
|
this.change({ playing: false });
|
|
118
82
|
}
|
|
119
83
|
|
|
120
84
|
/**
|
|
121
|
-
* Show one second, clamped to `[0, durationSeconds]`; playing continues from
|
|
122
|
-
*
|
|
123
|
-
* @evidence contracts/development/common.md#meaningful-documentation States the clamp, that playing continues and the refusal.
|
|
124
|
-
* @evidence contracts/development/implementation.md#principled-implementation A slider or an address can ask past either end, and the nearest second the subject has is the one drawn.
|
|
125
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Check, clamp, change.
|
|
126
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts NaN is refused instead of clamped to an end.
|
|
127
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant plus one call per listener.
|
|
128
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A state change.
|
|
129
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Replaces one record.
|
|
85
|
+
* Show one second, clamped to `[0, durationSeconds]`; playing continues from
|
|
86
|
+
* it. Moving to another second counts as a jump.
|
|
130
87
|
*/
|
|
131
88
|
public seek(seconds: number): void {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
89
|
+
const clamped: number = Math.min(
|
|
90
|
+
Math.max(seconds, 0),
|
|
91
|
+
this.snapshot_.durationSeconds,
|
|
92
|
+
);
|
|
93
|
+
if (clamped !== this.snapshot_.seconds)
|
|
94
|
+
this.change({ seconds: clamped, jump: this.snapshot_.jump + 1 });
|
|
137
95
|
}
|
|
138
96
|
|
|
139
97
|
/**
|
|
140
|
-
* Play `rate` subject seconds per wall second. It throws for a rate that is
|
|
141
|
-
*
|
|
142
|
-
* @evidence contracts/development/common.md#meaningful-documentation States the unit and the refusal.
|
|
143
|
-
* @evidence contracts/development/implementation.md#principled-implementation The rate multiplies the wall time `advance` is given.
|
|
144
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Check, change.
|
|
145
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Zero and negative rates are refused; pausing is `pause`.
|
|
146
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant plus one call per listener.
|
|
147
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A state change.
|
|
148
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Replaces one record.
|
|
98
|
+
* Play `rate` subject seconds per wall second. It throws for a rate that is
|
|
99
|
+
* not positive.
|
|
149
100
|
*/
|
|
150
101
|
public setRate(rate: number): void {
|
|
151
|
-
if (!(
|
|
102
|
+
if (!(rate > 0))
|
|
152
103
|
throw new Error(`Inspector rate ${rate} is not a positive number`);
|
|
153
104
|
this.change({ rate });
|
|
154
105
|
}
|
|
155
106
|
|
|
156
107
|
/**
|
|
157
|
-
* Move a playing playhead by `wallSeconds` of wall time times the rate,
|
|
158
|
-
*
|
|
159
|
-
* @evidence contracts/development/common.md#meaningful-documentation States the unit, the stop at the end and the paused case.
|
|
160
|
-
* @evidence contracts/development/implementation.md#principled-implementation Subject time is wall time scaled by the rate; reaching the end pauses there so the last picture stays.
|
|
161
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One change from one sum.
|
|
162
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Negative or non-finite wall time, such as a clock step backwards, moves nothing.
|
|
163
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant plus one call per listener, once per animation frame while playing.
|
|
164
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A state change.
|
|
165
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Replaces one record.
|
|
108
|
+
* Move a playing playhead by `wallSeconds` of wall time times the rate,
|
|
109
|
+
* stopping at the end. A paused playhead does not move.
|
|
166
110
|
*/
|
|
167
111
|
public advance(wallSeconds: number): void {
|
|
168
112
|
const now: AutoMovieInspectorPlayhead.ISnapshot = this.snapshot_;
|
|
169
|
-
if (!now.playing || !(
|
|
170
|
-
return;
|
|
113
|
+
if (!now.playing || !(wallSeconds > 0)) return;
|
|
171
114
|
const seconds: number = now.seconds + wallSeconds * now.rate;
|
|
172
115
|
this.change(
|
|
173
116
|
seconds >= now.durationSeconds
|
|
@@ -186,7 +129,8 @@ export class AutoMovieInspectorPlayhead {
|
|
|
186
129
|
next.seconds === this.snapshot_.seconds &&
|
|
187
130
|
next.durationSeconds === this.snapshot_.durationSeconds &&
|
|
188
131
|
next.playing === this.snapshot_.playing &&
|
|
189
|
-
next.rate === this.snapshot_.rate
|
|
132
|
+
next.rate === this.snapshot_.rate &&
|
|
133
|
+
next.jump === this.snapshot_.jump
|
|
190
134
|
)
|
|
191
135
|
return;
|
|
192
136
|
this.snapshot_ = next;
|
|
@@ -194,14 +138,7 @@ export class AutoMovieInspectorPlayhead {
|
|
|
194
138
|
}
|
|
195
139
|
}
|
|
196
140
|
export namespace AutoMovieInspectorPlayhead {
|
|
197
|
-
/**
|
|
198
|
-
* One immutable state of the playhead.
|
|
199
|
-
*
|
|
200
|
-
* @evidence contracts/development/design.md#principled-representation Subject seconds and duration, a wall-time multiplier and a playing flag, with `0 <= seconds <= durationSeconds` kept by the playhead.
|
|
201
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface The four members the readout shows and the loop reads.
|
|
202
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts A duration of zero means no instance is ready yet, not a subject that lasts no time.
|
|
203
|
-
* @evidence contracts/development/common.md#meaningful-documentation States each member's unit and the zero duration.
|
|
204
|
-
*/
|
|
141
|
+
/** One immutable state of the playhead. */
|
|
205
142
|
export interface ISnapshot {
|
|
206
143
|
/** The second shown, subject seconds. */
|
|
207
144
|
seconds: number;
|
|
@@ -214,5 +151,11 @@ export namespace AutoMovieInspectorPlayhead {
|
|
|
214
151
|
|
|
215
152
|
/** Subject seconds played per wall second, positive. */
|
|
216
153
|
rate: number;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Number of seeks to another second and restarts from the end so far; two
|
|
157
|
+
* snapshots with the same count are joined by playback alone.
|
|
158
|
+
*/
|
|
159
|
+
jump: number;
|
|
217
160
|
}
|
|
218
161
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
|
|
2
|
-
|
|
3
2
|
import {
|
|
4
3
|
type CSSProperties,
|
|
5
4
|
type ChangeEvent,
|
|
@@ -10,21 +9,18 @@ import {
|
|
|
10
9
|
} from "react";
|
|
11
10
|
|
|
12
11
|
import type { IAutoMovieInspectorAction } from "./IAutoMovieInspectorAction.js";
|
|
12
|
+
import type { IAutoMovieInspectorProps } from "./IAutoMovieInspectorProps.js";
|
|
13
13
|
import { formatAutoMovieInspectorAddress } from "./formatAutoMovieInspectorAddress.js";
|
|
14
14
|
import { formatAutoMovieInspectorCommand } from "./formatAutoMovieInspectorCommand.js";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* The query field shows the request's address text; an edit is dispatched as a `text` action when the field is left or Enter is pressed, and a text the grammar refuses keeps the previous request with the refusal shown above. The command is read-only, quoted for a POSIX shell. Copying writes the field's text to the clipboard where the page may, and says so under the fields, in a status region that stays mounted so each note is announced; where the page has no clipboard, as outside a secure context, or is refused it, the note says to select the text and copy it instead.
|
|
17
|
+
* Copy or edit the address and, when the host supplies a command, copy its
|
|
18
|
+
* capture command in the selected shell syntax.
|
|
20
19
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two writes of the request per render, linear in its text.
|
|
26
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A view with handlers.
|
|
27
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Holds only the text being typed and the last copy's note.
|
|
20
|
+
* The query field dispatches edits on blur or Enter. A refused edit keeps the
|
|
21
|
+
* previous request. The command is read-only and initially uses POSIX syntax.
|
|
22
|
+
* Copying reports success in a live status region, or tells the reader to
|
|
23
|
+
* select the text if clipboard access is unavailable.
|
|
28
24
|
*/
|
|
29
25
|
export function AutoMovieInspectorRequestPanel(props: {
|
|
30
26
|
/** The request shown. */
|
|
@@ -32,8 +28,12 @@ export function AutoMovieInspectorRequestPanel(props: {
|
|
|
32
28
|
|
|
33
29
|
/** Where an edited text goes. */
|
|
34
30
|
dispatch: (action: IAutoMovieInspectorAction) => void;
|
|
31
|
+
|
|
32
|
+
/** Executable and fixed arguments from the host for the optional command. */
|
|
33
|
+
captureCommand?: IAutoMovieInspectorProps["captureCommand"];
|
|
35
34
|
}): JSX.Element {
|
|
36
35
|
const [typed, setTyped] = useState<string | null>(null);
|
|
36
|
+
const [shell, setShell] = useState<"posix" | "powershell">("posix");
|
|
37
37
|
const [copied, setCopied]: [
|
|
38
38
|
string | null,
|
|
39
39
|
Dispatch<SetStateAction<string | null>>,
|
|
@@ -66,7 +66,12 @@ export function AutoMovieInspectorRequestPanel(props: {
|
|
|
66
66
|
};
|
|
67
67
|
const address: string =
|
|
68
68
|
typed ?? formatAutoMovieInspectorAddress(props.request);
|
|
69
|
-
const command: string =
|
|
69
|
+
const command: string | null = props.captureCommand
|
|
70
|
+
? formatAutoMovieInspectorCommand(props.request, {
|
|
71
|
+
command: props.captureCommand,
|
|
72
|
+
shell,
|
|
73
|
+
}).text
|
|
74
|
+
: null;
|
|
70
75
|
const row: CSSProperties = {
|
|
71
76
|
display: "flex",
|
|
72
77
|
gap: 4,
|
|
@@ -97,23 +102,46 @@ export function AutoMovieInspectorRequestPanel(props: {
|
|
|
97
102
|
</button>
|
|
98
103
|
</span>
|
|
99
104
|
</label>
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
105
|
+
{command !== null && (
|
|
106
|
+
<>
|
|
107
|
+
<label style={{ display: "block" }}>
|
|
108
|
+
Shell{" "}
|
|
109
|
+
<select
|
|
110
|
+
aria-label="Command shell"
|
|
111
|
+
value={shell}
|
|
112
|
+
onChange={(event: ChangeEvent<HTMLSelectElement>): void =>
|
|
113
|
+
setShell(
|
|
114
|
+
event.target.value === "powershell" ? "powershell" : "posix",
|
|
115
|
+
)
|
|
116
|
+
}
|
|
117
|
+
>
|
|
118
|
+
<option value="posix">POSIX</option>
|
|
119
|
+
<option value="powershell">PowerShell 7.3+</option>
|
|
120
|
+
</select>
|
|
121
|
+
</label>
|
|
122
|
+
<label style={{ display: "block" }}>
|
|
123
|
+
Capture command
|
|
124
|
+
<span style={row}>
|
|
125
|
+
<input
|
|
126
|
+
aria-label="Capture command"
|
|
127
|
+
readOnly
|
|
128
|
+
style={{
|
|
129
|
+
flex: "1 1 auto",
|
|
130
|
+
minWidth: 0,
|
|
131
|
+
fontFamily: "monospace",
|
|
132
|
+
}}
|
|
133
|
+
value={command}
|
|
134
|
+
/>
|
|
135
|
+
<button
|
|
136
|
+
type="button"
|
|
137
|
+
onClick={(): void => void copy("command", command)}
|
|
138
|
+
>
|
|
139
|
+
Copy command
|
|
140
|
+
</button>
|
|
141
|
+
</span>
|
|
142
|
+
</label>
|
|
143
|
+
</>
|
|
144
|
+
)}
|
|
117
145
|
{/* The live region stays mounted and only its text changes, so each
|
|
118
146
|
copy's note is announced. */}
|
|
119
147
|
<p role="status" style={{ margin: "4px 0 0", fontSize: 12 }}>
|
|
@@ -30,14 +30,6 @@ const DISCLOSURE: number = 16;
|
|
|
30
30
|
* A header names the four columns. Each node edits the request by its pattern, the one that selects the node and its subtree: a checkbox puts the pattern in or takes it out of `parts`, `hide` or `label`, and the colour input gives it a `color` pair, which the clear button takes back. A node is checked when its own pattern is in the list, so a pattern typed in the address that matches several nodes checks none of them, and stays in the request. The empty path has no pattern and only a name.
|
|
31
31
|
*
|
|
32
32
|
* A node with children is folded until opened, with the number of paths under it, so a figure's dozens of bones do not fill the panel. Its disclosure button, between the controls and the name, opens and folds it and states whether it is open; it sits beside the controls, never around them, so no control is nested in another. The filter keeps the nodes whose path contains the typed text, with their ancestors, and opens them; while it does, their disclosure buttons are disabled.
|
|
33
|
-
*
|
|
34
|
-
* @evidence contracts/development/common.md#meaningful-documentation States the header, what each control edits, when a node is checked, what happens to typed patterns and the empty path, and how folding and the filter work.
|
|
35
|
-
* @evidence contracts/development/implementation.md#principled-implementation The tree and each node's pattern come from `buildAutoMovieInspectorPathTree`, and every edit is a reducer action through the grammar, so the panel restates no path rule; folding is the disclosure pattern, a button with `aria-expanded` that owns no other control.
|
|
36
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One memoized tree, one filter, and one recursive row per node.
|
|
37
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A checked state is read from the request, never kept in the panel; the filter hides rows and changes no request.
|
|
38
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The tree is rebuilt only when the path list changes; a render is linear in the nodes times the lists' lengths, and a folded subtree is not rendered.
|
|
39
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work `useMemo` keeps the tree while the path list is the same array, which the mount reports once per instance.
|
|
40
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Holds the memoized tree and the filter text only while mounted.
|
|
41
33
|
*/
|
|
42
34
|
export function AutoMovieInspectorSelectionPanel(props: {
|
|
43
35
|
/** The request shown. */
|
|
@@ -2,36 +2,35 @@ import type {
|
|
|
2
2
|
AutoMovieInspectionShade,
|
|
3
3
|
IAutoMovieCapturePlanRequest,
|
|
4
4
|
} from "@automovie/interface";
|
|
5
|
-
|
|
6
5
|
import type { ChangeEvent, JSX } from "react";
|
|
7
6
|
|
|
8
7
|
import type { IAutoMovieInspectorAction } from "./IAutoMovieInspectorAction.js";
|
|
9
8
|
|
|
9
|
+
/** Each shade keyed by itself, so the compiler refuses a list that misses one. */
|
|
10
|
+
type IShadeIndex = { [Shade in AutoMovieInspectionShade]: Shade };
|
|
10
11
|
|
|
11
|
-
/** Every shade
|
|
12
|
-
const SHADES:
|
|
13
|
-
beauty:
|
|
14
|
-
depth:
|
|
15
|
-
mask:
|
|
16
|
-
normal:
|
|
17
|
-
outline:
|
|
18
|
-
pose:
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
/** Every shade offered. */
|
|
13
|
+
const SHADES: IShadeIndex = {
|
|
14
|
+
beauty: "beauty",
|
|
15
|
+
depth: "depth",
|
|
16
|
+
mask: "mask",
|
|
17
|
+
normal: "normal",
|
|
18
|
+
outline: "outline",
|
|
19
|
+
pose: "pose",
|
|
20
|
+
albedo: "albedo",
|
|
21
|
+
graphics: "graphics",
|
|
22
|
+
clay: "clay",
|
|
23
|
+
faces: "faces",
|
|
21
24
|
};
|
|
22
25
|
|
|
26
|
+
/** The shades in option order. */
|
|
27
|
+
const OPTIONS: AutoMovieInspectionShade[] = Object.values(SHADES);
|
|
28
|
+
|
|
23
29
|
/**
|
|
24
30
|
* Shade and surface: how surfaces are coloured and whether they are drawn.
|
|
25
31
|
*
|
|
26
|
-
* The page draws the request's first pass, so the shade shown is `passes[0]`;
|
|
27
|
-
*
|
|
28
|
-
* @evidence contracts/development/common.md#meaningful-documentation States what the panel edits and how several passes become one.
|
|
29
|
-
* @evidence contracts/development/implementation.md#principled-implementation The shade list is a record keyed by the request's shade union, so a shade render adds fails compilation here until it is offered.
|
|
30
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One select and one checkbox, each dispatching one edit.
|
|
31
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The panel shows the request's values and keeps no copy of them.
|
|
32
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant per render.
|
|
33
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A view with handlers.
|
|
34
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Holds nothing.
|
|
32
|
+
* The page draws the request's first pass, so the shade shown is `passes[0]`;
|
|
33
|
+
* choosing one replaces every pass with it.
|
|
35
34
|
*/
|
|
36
35
|
export function AutoMovieInspectorShadePanel(props: {
|
|
37
36
|
/** The request shown. */
|
|
@@ -58,12 +57,13 @@ export function AutoMovieInspectorShadePanel(props: {
|
|
|
58
57
|
aria-label="Shade"
|
|
59
58
|
value={props.request.passes[0]}
|
|
60
59
|
onChange={(event: ChangeEvent<HTMLSelectElement>): void => {
|
|
61
|
-
const shade:
|
|
62
|
-
|
|
60
|
+
const shade: AutoMovieInspectionShade | undefined =
|
|
61
|
+
OPTIONS[event.target.selectedIndex];
|
|
62
|
+
if (shade !== undefined) props.dispatch({ type: "shade", shade });
|
|
63
63
|
}}
|
|
64
64
|
>
|
|
65
|
-
{
|
|
66
|
-
(shade:
|
|
65
|
+
{OPTIONS.map(
|
|
66
|
+
(shade: AutoMovieInspectionShade): JSX.Element => (
|
|
67
67
|
<option key={shade} value={shade}>
|
|
68
68
|
{shade}
|
|
69
69
|
</option>
|
|
@@ -87,8 +87,3 @@ export function AutoMovieInspectorShadePanel(props: {
|
|
|
87
87
|
</fieldset>
|
|
88
88
|
);
|
|
89
89
|
}
|
|
90
|
-
|
|
91
|
-
/** Whether a text is one of the shades offered. */
|
|
92
|
-
function isShade(text: string): text is AutoMovieInspectionShade {
|
|
93
|
-
return Object.hasOwn(SHADES, text);
|
|
94
|
-
}
|
|
@@ -11,14 +11,6 @@ const RATES: readonly number[] = [0.1, 0.25, 0.5, 1, 2];
|
|
|
11
11
|
* The transport under the canvas: one play or pause button, the scrubber and clock, and the preview speed.
|
|
12
12
|
*
|
|
13
13
|
* Play, pause and the speed move only the playhead; the readout turns a stop or a seek into a `time` edit, so the request names the picture left on screen. The button reads only whether the playhead plays, so playing frames do not re-render it; its label says what pressing it does, Play or Pause, and it carries no pressed state, since a toggle's label must not change with its state.
|
|
14
|
-
*
|
|
15
|
-
* @evidence contracts/development/common.md#meaningful-documentation States what each control changes, which of them edit the request, what the button reads and how it is labelled.
|
|
16
|
-
* @evidence contracts/development/implementation.md#principled-implementation The speed changes no picture, so it stays with the playhead; a stop or seek fixes a picture, so the readout makes it the request's second.
|
|
17
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One toggle, the readout and a select.
|
|
18
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The button subscribes to the playing flag alone, a boolean React compares by value, so moving seconds never re-render the panel.
|
|
19
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant per render, one render per start or stop.
|
|
20
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A view with handlers.
|
|
21
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources React holds one playhead subscription while the panel is mounted and removes it on unmount; the readout holds its own.
|
|
22
14
|
*/
|
|
23
15
|
export function AutoMovieInspectorTimePanel(props: {
|
|
24
16
|
/** The playhead driven. */
|
|
@@ -10,19 +10,12 @@ import {
|
|
|
10
10
|
|
|
11
11
|
import type { AutoMovieInspectorPlayhead } from "./AutoMovieInspectorPlayhead.js";
|
|
12
12
|
import type { IAutoMovieInspectorAction } from "./IAutoMovieInspectorAction.js";
|
|
13
|
+
import { stopAutoMovieInspectorTime } from "./stopAutoMovieInspectorTime.js";
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
16
|
* The playhead's slider and clock, the one component that reads the playhead's second and so the only one a playing frame re-renders; the time panel reads only whether it plays.
|
|
16
17
|
*
|
|
17
18
|
* Moving the slider seeks to a regular frame or the exact end and dispatches the second as a `time` edit. Without a frame rate, the slider seeks directly in seconds. A pause or playback reaching the end also dispatches its second, so the request names the picture left on screen. The slider announces its second and, when available, its frame number.
|
|
18
|
-
*
|
|
19
|
-
* @evidence contracts/development/common.md#meaningful-documentation States what it shows, why it alone reads the playhead's second, when it edits the request and what it announces.
|
|
20
|
-
* @evidence contracts/development/implementation.md#principled-implementation `useSyncExternalStore` reads the cached playhead snapshot without tearing. Native range inputs enforce their step grid, so integer positions give every frame and the exact end a valid slider value.
|
|
21
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One store read, one slider that converts its position to seconds on seek, and one clock output.
|
|
22
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Playback frames dispatch nothing; only a seek and the change from playing to stopped edit the request, and the first render, which stops nothing, edits nothing.
|
|
23
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant work per render, one render per moved snapshot.
|
|
24
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Uses the shared presentation grid and computes its last frame number once per render.
|
|
25
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources React holds one playhead subscription while the readout is mounted and removes it on unmount.
|
|
26
19
|
*/
|
|
27
20
|
export function AutoMovieInspectorTimeReadout(props: {
|
|
28
21
|
/** The playhead shown and sought. */
|
|
@@ -43,8 +36,9 @@ export function AutoMovieInspectorTimeReadout(props: {
|
|
|
43
36
|
const was: RefObject<boolean> = useRef<boolean>(snapshot.playing);
|
|
44
37
|
const { dispatch } = props;
|
|
45
38
|
useEffect((): void => {
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
const stop: IAutoMovieInspectorAction.ITime | null =
|
|
40
|
+
stopAutoMovieInspectorTime(was.current, snapshot);
|
|
41
|
+
if (stop !== null) dispatch(stop);
|
|
48
42
|
was.current = snapshot.playing;
|
|
49
43
|
}, [snapshot, dispatch]);
|
|
50
44
|
|