@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
|
@@ -3,25 +3,27 @@ import * as THREE from "three";
|
|
|
3
3
|
import type { IAutoMovieInspectorSceneHost } from "./IAutoMovieInspectorSceneHost.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* The browser's scene host for one canvas: a `WebGLRenderer` drawing into it,
|
|
6
|
+
* The browser's scene host for one canvas: a `WebGLRenderer` drawing into it,
|
|
7
|
+
* the window's animation frames, and the canvas's layout size with the device
|
|
8
|
+
* pixel ratio.
|
|
7
9
|
*
|
|
8
|
-
* Each `createRenderer` call makes a new renderer on the same canvas, which
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Four one-line members over the canvas and its window.
|
|
13
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No global is replaced; the canvas's own window is used, so a canvas in another frame paces by that frame.
|
|
14
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant per call.
|
|
15
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A host computes nothing to reuse; the mount reuses its renderer.
|
|
16
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds the borrowed canvas only; each renderer it creates is owned and disposed by the mount that asked for it.
|
|
10
|
+
* Each `createRenderer` call makes a new renderer on the same canvas, which
|
|
11
|
+
* reuses the canvas's context, so a mount after a dispose draws; the mount
|
|
12
|
+
* disposes each renderer without losing the context. A canvas that has no
|
|
13
|
+
* layout size yet reports zero, and the mount skips drawing until it has one.
|
|
17
14
|
*/
|
|
18
15
|
export function createAutoMovieInspectorCanvasHost(
|
|
19
16
|
canvas: HTMLCanvasElement,
|
|
20
17
|
): IAutoMovieInspectorSceneHost {
|
|
21
18
|
const view: Window = canvas.ownerDocument.defaultView ?? window;
|
|
22
19
|
return {
|
|
23
|
-
createRenderer: (): IAutoMovieInspectorSceneHost.
|
|
24
|
-
new THREE.WebGLRenderer({
|
|
20
|
+
createRenderer: (): IAutoMovieInspectorSceneHost.ICreated => {
|
|
21
|
+
const renderer: THREE.WebGLRenderer = new THREE.WebGLRenderer({
|
|
22
|
+
canvas,
|
|
23
|
+
antialias: true,
|
|
24
|
+
});
|
|
25
|
+
return { renderer, compositor: renderer };
|
|
26
|
+
},
|
|
25
27
|
requestFrame: (callback: (nowMs: number) => void): number =>
|
|
26
28
|
view.requestAnimationFrame(callback),
|
|
27
29
|
cancelFrame: (handle: number): void => view.cancelAnimationFrame(handle),
|
|
@@ -5,15 +5,9 @@ import { reduceAutoMovieInspectorState } from "./reduceAutoMovieInspectorState.j
|
|
|
5
5
|
/**
|
|
6
6
|
* The inspector's first state, read from the address text it opens with.
|
|
7
7
|
*
|
|
8
|
-
* The text is applied as a `text` edit of the request the empty address names,
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* @evidence contracts/development/implementation.md#principled-implementation The empty address is the grammar's request that asks for nothing, and the opening text goes through the same reducer edit a typed address does, so both refuse alike.
|
|
12
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Read the empty address, then reduce the given text onto it.
|
|
13
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No default request is written here; the grammar's empty reading supplies it.
|
|
14
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two readings, linear in the text's length.
|
|
15
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Called once per inspector, as `useReducer`'s initializer.
|
|
16
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh state and keeps nothing.
|
|
8
|
+
* The text is applied as a `text` edit of the request the empty address names,
|
|
9
|
+
* which asks for nothing, so a refused address opens on that request with the
|
|
10
|
+
* refusal shown and the page still draws.
|
|
17
11
|
*/
|
|
18
12
|
export function createAutoMovieInspectorState(
|
|
19
13
|
text: string,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The first second a request draws: its first explicit second, or the start of
|
|
5
|
+
* its sampling.
|
|
6
|
+
*/
|
|
7
|
+
export function firstAutoMovieInspectorSecond(
|
|
8
|
+
request: Pick<IAutoMovieCapturePlanRequest, "sampling">,
|
|
9
|
+
): number {
|
|
10
|
+
return request.sampling.kind === "at"
|
|
11
|
+
? request.sampling.seconds[0]!
|
|
12
|
+
: request.sampling.from;
|
|
13
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { IAutoMovieInspectorLive } from "./IAutoMovieInspectorLive.js";
|
|
2
|
+
import type { IAutoMovieInspectorSceneHost } from "./IAutoMovieInspectorSceneHost.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Follow the host's drawing size: when every side and the pixel ratio are
|
|
6
|
+
* positive and finite and differ from the size the renderer has, resize the
|
|
7
|
+
* renderer's drawing buffer, leaving the canvas's layout to the page, and mark
|
|
8
|
+
* the mount for a redraw.
|
|
9
|
+
*
|
|
10
|
+
* @returns Whether the size can be drawn at.
|
|
11
|
+
*/
|
|
12
|
+
export function followAutoMovieInspectorSize(
|
|
13
|
+
now: IAutoMovieInspectorLive,
|
|
14
|
+
size: IAutoMovieInspectorSceneHost.ISize,
|
|
15
|
+
): boolean {
|
|
16
|
+
const drawable: boolean = [size.width, size.height, size.pixelRatio].every(
|
|
17
|
+
(value: number): boolean => value > 0,
|
|
18
|
+
);
|
|
19
|
+
if (
|
|
20
|
+
drawable &&
|
|
21
|
+
(now.size === undefined ||
|
|
22
|
+
now.size.width !== size.width ||
|
|
23
|
+
now.size.height !== size.height ||
|
|
24
|
+
now.size.pixelRatio !== size.pixelRatio)
|
|
25
|
+
) {
|
|
26
|
+
now.renderer.setPixelRatio(size.pixelRatio);
|
|
27
|
+
now.renderer.setSize(size.width, size.height, false);
|
|
28
|
+
now.size = size;
|
|
29
|
+
now.dirty = true;
|
|
30
|
+
}
|
|
31
|
+
return drawable;
|
|
32
|
+
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
|
|
2
2
|
import { formatAutoMovieCapturePlanRequest } from "@automovie/render";
|
|
3
3
|
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Characters the grammar writes that a query keeps readable: list, view, path,
|
|
6
|
+
* focus, colour pair and cut separators.
|
|
7
|
+
*/
|
|
5
8
|
const READABLE: ReadonlyMap<string, string> = new Map<string, string>([
|
|
6
9
|
["%2C", ","],
|
|
7
10
|
["%3A", ":"],
|
|
@@ -12,17 +15,18 @@ const READABLE: ReadonlyMap<string, string> = new Map<string, string>([
|
|
|
12
15
|
]);
|
|
13
16
|
|
|
14
17
|
/**
|
|
15
|
-
* Write a request as the query text of an address, without the leading `?`, so
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
+
* Write a request as the query text of an address, without the leading `?`, so
|
|
19
|
+
* the address repeats the request and `readAutoMovieInspectorAddress` reads it
|
|
20
|
+
* back equal.
|
|
18
21
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* @
|
|
22
|
+
* Keys and values come from `formatAutoMovieCapturePlanRequest`, in its order
|
|
23
|
+
* and with absent values left out, so the request that asks for nothing is the
|
|
24
|
+
* empty text. Each key and value is escaped by `encodeURIComponent`, then the
|
|
25
|
+
* separators `,`, `:`, `;`, `/`, `@` and `=` are put back, because a query may
|
|
26
|
+
* hold them as they are and `URLSearchParams` reads them unchanged (a pair
|
|
27
|
+
* splits at its first `=`, and no key holds one), so
|
|
28
|
+
* `parts=hero/torso&views=front@focus=hero&color=hero=ff8800` stays readable. A
|
|
29
|
+
* key whose value is empty is written bare.
|
|
26
30
|
*/
|
|
27
31
|
export function formatAutoMovieInspectorAddress(
|
|
28
32
|
request: IAutoMovieCapturePlanRequest,
|
|
@@ -4,46 +4,75 @@ import { formatAutoMovieCapturePlanRequest } from "@automovie/render";
|
|
|
4
4
|
/** An argument a POSIX shell passes through unquoted. */
|
|
5
5
|
const PLAIN: RegExp = /^[\w%+,./:=@-]+$/u;
|
|
6
6
|
|
|
7
|
+
/** A bare word that also stays one argument to a PowerShell script. */
|
|
8
|
+
const POWERSHELL_PLAIN: RegExp = /^[\w+./:=-]+$/u;
|
|
9
|
+
|
|
7
10
|
/**
|
|
8
|
-
* Write
|
|
11
|
+
* Write a capture request's option tokens and a shell command to copy.
|
|
9
12
|
*
|
|
10
|
-
* Every pair `formatAutoMovieCapturePlanRequest` writes becomes one
|
|
13
|
+
* Every pair `formatAutoMovieCapturePlanRequest` writes becomes one
|
|
14
|
+
* `--<key>=<value>` option, in its order. The `=` form is used for every
|
|
15
|
+
* option, so a value that starts with `-`, such as an axis cut `-x:0.2`, or
|
|
16
|
+
* that is empty stays the option's value. `readAutoMovieCaptureArguments` reads
|
|
17
|
+
* the options back to the same named values, so the command's reader gives an
|
|
18
|
+
* equal request.
|
|
11
19
|
*
|
|
12
|
-
* The text
|
|
20
|
+
* The text starts with the host's executable and arguments, or with `automovie
|
|
21
|
+
* capture` when the caller formats the request alone. The host supplies any
|
|
22
|
+
* options required to reproduce its subject and inputs. POSIX is the default.
|
|
23
|
+
* PowerShell also quotes commas so a script such as `pnpm` receives each list
|
|
24
|
+
* or plane as one argument.
|
|
13
25
|
*
|
|
14
26
|
* ```ts
|
|
15
27
|
* const { text } = formatAutoMovieInspectorCommand(request);
|
|
16
28
|
* ```
|
|
17
|
-
*
|
|
18
|
-
* @evidence contracts/development/common.md#meaningful-documentation States the option form and why it is used for every option, the round trip through the command's reader, the text's prefix and the quoting rule.
|
|
19
|
-
* @evidence contracts/development/implementation.md#principled-implementation The grammar's writer decides keys and values and the command's own argument reader is the inverse of the `--key=value` form; a single-quoted POSIX word is literal except for `'`, which is closed, escaped and reopened.
|
|
20
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One map to options and one join with quoting.
|
|
21
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No option is written by hand, so the command offers exactly what the address carries.
|
|
22
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Linear in the length of the written request.
|
|
23
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure conversion of one request.
|
|
24
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns fresh strings and keeps nothing.
|
|
25
29
|
*/
|
|
26
30
|
export function formatAutoMovieInspectorCommand(
|
|
27
31
|
request: IAutoMovieCapturePlanRequest,
|
|
32
|
+
props: {
|
|
33
|
+
/** Executable and fixed arguments supplied by the capture host. */
|
|
34
|
+
command?: readonly [string, ...string[]];
|
|
35
|
+
|
|
36
|
+
/** The shell syntax used for the copied text. Defaults to POSIX. */
|
|
37
|
+
shell?: "posix" | "powershell";
|
|
38
|
+
} = {},
|
|
28
39
|
): {
|
|
29
|
-
/** The
|
|
40
|
+
/** The request's own options, one argument each. */
|
|
30
41
|
options: string[];
|
|
31
42
|
|
|
32
|
-
/** The
|
|
43
|
+
/** The command with the host and request arguments quoted for the shell. */
|
|
33
44
|
text: string;
|
|
34
45
|
} {
|
|
35
46
|
const options: string[] = formatAutoMovieCapturePlanRequest(request).map(
|
|
36
47
|
([key, value]: [key: string, value: string]): string => `--${key}=${value}`,
|
|
37
48
|
);
|
|
49
|
+
const powershell: boolean = props.shell === "powershell";
|
|
50
|
+
const quote: (argument: string) => string = powershell
|
|
51
|
+
? quotePowerShell
|
|
52
|
+
: quotePosix;
|
|
53
|
+
const [executable, ...fixed]: readonly [string, ...string[]] =
|
|
54
|
+
props.command ?? ["automovie", "capture"];
|
|
55
|
+
const program: string = quote(executable);
|
|
38
56
|
return {
|
|
39
57
|
options,
|
|
40
|
-
text: [
|
|
58
|
+
text: [
|
|
59
|
+
powershell && program !== executable ? `& ${program}` : program,
|
|
60
|
+
...fixed.map(quote),
|
|
61
|
+
...options.map(quote),
|
|
62
|
+
].join(" "),
|
|
41
63
|
};
|
|
42
64
|
}
|
|
43
65
|
|
|
44
66
|
/** One argument as a POSIX shell word. */
|
|
45
|
-
function
|
|
67
|
+
function quotePosix(argument: string): string {
|
|
46
68
|
return PLAIN.test(argument)
|
|
47
69
|
? argument
|
|
48
70
|
: `'${argument.replaceAll("'", "'\\''")}'`;
|
|
49
71
|
}
|
|
72
|
+
|
|
73
|
+
/** One argument as a PowerShell word, including smart single quotes. */
|
|
74
|
+
function quotePowerShell(argument: string): string {
|
|
75
|
+
return POWERSHELL_PLAIN.test(argument)
|
|
76
|
+
? argument
|
|
77
|
+
: `'${argument.replace(/['\u2018-\u201b]/gu, "$&$&")}'`;
|
|
78
|
+
}
|
|
@@ -3,7 +3,9 @@ import { AutoMovieFrameGrid } from "@automovie/render";
|
|
|
3
3
|
import type { AutoMovieInspectorPlayhead } from "./AutoMovieInspectorPlayhead.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* The elements that take a key themselves: fields, buttons, disclosure
|
|
6
|
+
* The elements that take a key themselves: fields, buttons, disclosure
|
|
7
|
+
* summaries, links, editable text and the widgets that answer Space or arrows
|
|
8
|
+
* by their role.
|
|
7
9
|
*/
|
|
8
10
|
const INTERACTIVE: string = [
|
|
9
11
|
"input",
|
|
@@ -21,26 +23,35 @@ const INTERACTIVE: string = [
|
|
|
21
23
|
].join(", ");
|
|
22
24
|
|
|
23
25
|
/**
|
|
24
|
-
* The inspector's playback keys, as a video player's: Space and K play or
|
|
26
|
+
* The inspector's playback keys, as a video player's: Space and K play or
|
|
27
|
+
* pause, J and L seek one second back and forward, comma and full stop step one
|
|
28
|
+
* frame back and forward with playback paused, Home and End go to the first and
|
|
29
|
+
* last second. K, J and L work in either case.
|
|
25
30
|
*
|
|
26
|
-
* Frame steps start at the slider's displayed frame and include the exact end
|
|
31
|
+
* Frame steps start at the slider's displayed frame and include the exact end
|
|
32
|
+
* of the subject, even when it falls between regular frames.
|
|
27
33
|
*
|
|
28
|
-
* A key is left to the page, unhandled and moving nothing, when Ctrl, Meta or
|
|
34
|
+
* A key is left to the page, unhandled and moving nothing, when Ctrl, Meta or
|
|
35
|
+
* Alt is held, so the browser's and the system's shortcuts keep working, and
|
|
36
|
+
* when the key's target is or sits inside an element that takes the key itself
|
|
37
|
+
* (a field, a button, a summary, a link, editable text, or a widget by its
|
|
38
|
+
* role), so Space still presses a button and opens a section. Shift is allowed,
|
|
39
|
+
* since it only changes a letter's case.
|
|
29
40
|
*
|
|
30
|
-
* A seek or a step returns the second the playhead now shows, which the caller
|
|
41
|
+
* A seek or a step returns the second the playhead now shows, which the caller
|
|
42
|
+
* makes the request's `time`, as the slider does; play and pause return null,
|
|
43
|
+
* because a stop already becomes the request's second through the time readout.
|
|
44
|
+
* A key the inspector does not use is not handled either.
|
|
31
45
|
*
|
|
32
|
-
* @param event The pressed key's `KeyboardEvent` members the decision reads;
|
|
46
|
+
* @param event The pressed key's `KeyboardEvent` members the decision reads;
|
|
47
|
+
* `target` is the element the key went to, or null when it is not an
|
|
48
|
+
* element.
|
|
33
49
|
* @param playhead The playhead the keys drive.
|
|
34
|
-
* @param fps The subject's frames per second, the step of comma and full stop;
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* @
|
|
38
|
-
*
|
|
39
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Two early returns, then one table from key to move and one lookup.
|
|
40
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The playhead clamps every seek to the film, so nothing here restates its bounds; a key is never taken from a control that answers it, so no control loses its own keyboard behaviour.
|
|
41
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant work per key, besides one `closest` walk up the target's ancestors.
|
|
42
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Uses the same presentation grid as the slider.
|
|
43
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Holds nothing between calls.
|
|
50
|
+
* @param fps The subject's frames per second, the step of comma and full stop;
|
|
51
|
+
* null before a subject is ready, when they step a twenty-fourth of a
|
|
52
|
+
* second.
|
|
53
|
+
* @returns Whether the key was used, so the caller prevents its default, and
|
|
54
|
+
* the second a seek left the playhead on.
|
|
44
55
|
*/
|
|
45
56
|
export function handleAutoMovieInspectorKey(
|
|
46
57
|
event: {
|
package/src/inspector/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./AutoMovieInspector.js";
|
|
2
|
+
export * from "./AutoMovieInspectorDiagnosticsPanel.js";
|
|
2
3
|
export * from "./AutoMovieInspectorMarksPanel.js";
|
|
3
4
|
export * from "./AutoMovieInspectorPlayhead.js";
|
|
4
5
|
export * from "./AutoMovieInspectorRequestPanel.js";
|
|
@@ -6,6 +7,7 @@ export * from "./AutoMovieInspectorSelectionPanel.js";
|
|
|
6
7
|
export * from "./AutoMovieInspectorShadePanel.js";
|
|
7
8
|
export * from "./AutoMovieInspectorTimePanel.js";
|
|
8
9
|
export * from "./AutoMovieInspectorTimeReadout.js";
|
|
10
|
+
export * from "./AutoMovieInspectorTransition.js";
|
|
9
11
|
export * from "./AutoMovieInspectorViewPanel.js";
|
|
10
12
|
export * from "./buildAutoMovieInspectorPathTree.js";
|
|
11
13
|
export * from "./createAutoMovieInspectorAddressWriter.js";
|
|
@@ -14,6 +16,9 @@ export * from "./createAutoMovieInspectorState.js";
|
|
|
14
16
|
export * from "./formatAutoMovieInspectorAddress.js";
|
|
15
17
|
export * from "./formatAutoMovieInspectorCommand.js";
|
|
16
18
|
export * from "./handleAutoMovieInspectorKey.js";
|
|
19
|
+
export * from "./locateAutoMovieInspectorFinding.js";
|
|
20
|
+
export * from "./showAutoMovieInspectorFinding.js";
|
|
21
|
+
export * from "./stopAutoMovieInspectorTime.js";
|
|
17
22
|
export * from "./IAutoMovieInspectorAction.js";
|
|
18
23
|
export * from "./IAutoMovieInspectorPathNode.js";
|
|
19
24
|
export * from "./IAutoMovieInspectorProps.js";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
|
|
2
|
+
import {
|
|
3
|
+
type IApplyAutoMovieInspectionProps,
|
|
4
|
+
type IAutoMovieDrawScene,
|
|
5
|
+
type IAutoMovieInspectionHandle,
|
|
6
|
+
applyAutoMovieInspection,
|
|
7
|
+
} from "@automovie/render";
|
|
8
|
+
|
|
9
|
+
import type { IAutoMovieInspectorSceneHost } from "./IAutoMovieInspectorSceneHost.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Apply a request's inspection to the subject's scene with the marks of the
|
|
13
|
+
* placed second and the kinds the subject declares, as the draw page applies
|
|
14
|
+
* it. It throws what `applyAutoMovieInspection` refuses, leaving the scene as
|
|
15
|
+
* it was, so the mount can keep or fall back to another request.
|
|
16
|
+
*/
|
|
17
|
+
export function inspectAutoMovieInspectorRequest(props: {
|
|
18
|
+
/** The created subject. */
|
|
19
|
+
instance: IAutoMovieDrawScene;
|
|
20
|
+
|
|
21
|
+
/** The inspector's renderer. */
|
|
22
|
+
renderer: IAutoMovieInspectorSceneHost.IRenderer;
|
|
23
|
+
|
|
24
|
+
/** The request whose inspection is applied. */
|
|
25
|
+
request: IAutoMovieCapturePlanRequest;
|
|
26
|
+
|
|
27
|
+
/** The marks of the placed second; absent applies none. */
|
|
28
|
+
marks: IApplyAutoMovieInspectionProps["marks"] | undefined;
|
|
29
|
+
}): IAutoMovieInspectionHandle {
|
|
30
|
+
return applyAutoMovieInspection({
|
|
31
|
+
scene: props.instance.scene,
|
|
32
|
+
request: props.request.inspection,
|
|
33
|
+
renderer: props.renderer,
|
|
34
|
+
...(props.marks === undefined ? {} : { marks: props.marks }),
|
|
35
|
+
markKinds: props.instance.markKinds ?? [],
|
|
36
|
+
});
|
|
37
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
|
|
2
|
+
|
|
3
|
+
import type { IAutoMovieInspectorLive } from "./IAutoMovieInspectorLive.js";
|
|
4
|
+
import { inspectAutoMovieInspectorRequest } from "./inspectAutoMovieInspectorRequest.js";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Install a request's inspection on the mount's subject with the marks of the
|
|
8
|
+
* placed second; when the scene refuses it, install the applied request again,
|
|
9
|
+
* so the preceding inspection stays in force, and hand the refusal to
|
|
10
|
+
* `refused`.
|
|
11
|
+
*
|
|
12
|
+
* @returns Whether the request's own inspection was installed.
|
|
13
|
+
*/
|
|
14
|
+
export function installAutoMovieInspectorRequest(props: {
|
|
15
|
+
/** The mount's live state, whose inspection this replaces. */
|
|
16
|
+
now: IAutoMovieInspectorLive;
|
|
17
|
+
|
|
18
|
+
/** The request to install. */
|
|
19
|
+
request: IAutoMovieCapturePlanRequest;
|
|
20
|
+
|
|
21
|
+
/** The placed second, whose marks the inspection draws. */
|
|
22
|
+
seconds: number;
|
|
23
|
+
|
|
24
|
+
/** Told the refusal's error when the request is refused. */
|
|
25
|
+
refused: (error: unknown) => void;
|
|
26
|
+
}): boolean {
|
|
27
|
+
const { now }: typeof props = props;
|
|
28
|
+
const base: Omit<
|
|
29
|
+
Parameters<typeof inspectAutoMovieInspectorRequest>[0],
|
|
30
|
+
"request"
|
|
31
|
+
> = {
|
|
32
|
+
instance: now.instance,
|
|
33
|
+
renderer: now.renderer,
|
|
34
|
+
marks: now.instance.marks?.(props.seconds),
|
|
35
|
+
};
|
|
36
|
+
try {
|
|
37
|
+
now.inspection = inspectAutoMovieInspectorRequest({
|
|
38
|
+
...base,
|
|
39
|
+
request: props.request,
|
|
40
|
+
});
|
|
41
|
+
return true;
|
|
42
|
+
} catch (error) {
|
|
43
|
+
now.inspection = inspectAutoMovieInspectorRequest({
|
|
44
|
+
...base,
|
|
45
|
+
request: now.applied,
|
|
46
|
+
});
|
|
47
|
+
props.refused(error);
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { IAutoMovieInspectionDiagnostics } from "@automovie/interface";
|
|
2
|
+
|
|
3
|
+
import type { IAutoMovieInspectorAction } from "./IAutoMovieInspectorAction.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The edit that shows one observation: the picture at its witness second, with
|
|
7
|
+
* its entities labelled.
|
|
8
|
+
*
|
|
9
|
+
* A finding's paths name drawn objects, or parts a checker addresses below them
|
|
10
|
+
* such as a formation slot (`/slot/<n>`), a cord segment (`/segment/<n>`), a
|
|
11
|
+
* batch instance (`#<n>`) or a transform field (`.children[<n>].matrixWorld`).
|
|
12
|
+
* Each path is labelled by the nearest drawn path that equals it or contains
|
|
13
|
+
* it, so the label lands on the object the part belongs to; a path with no
|
|
14
|
+
* drawn owner is left unlabelled, because the scene refuses a label pattern
|
|
15
|
+
* that matches nothing.
|
|
16
|
+
*
|
|
17
|
+
* @param observation The witness to show.
|
|
18
|
+
* @param drawn The identity paths the scene draws, as the mount lists them.
|
|
19
|
+
* @returns A `locate` action for the inspector's reducer.
|
|
20
|
+
*/
|
|
21
|
+
export function locateAutoMovieInspectorFinding(
|
|
22
|
+
observation: IAutoMovieInspectionDiagnostics.IObservation,
|
|
23
|
+
drawn: readonly string[],
|
|
24
|
+
): IAutoMovieInspectorAction.ILocate {
|
|
25
|
+
const known: Set<string> = new Set(drawn);
|
|
26
|
+
const label: string[] = [];
|
|
27
|
+
for (const path of observation.finding.paths) {
|
|
28
|
+
let owner: string | undefined = path;
|
|
29
|
+
while (owner !== undefined && !known.has(owner)) {
|
|
30
|
+
const cut: number = Math.max(
|
|
31
|
+
owner.lastIndexOf("/"),
|
|
32
|
+
owner.lastIndexOf("#"),
|
|
33
|
+
owner.lastIndexOf("."),
|
|
34
|
+
);
|
|
35
|
+
owner = cut <= 0 ? undefined : owner.slice(0, cut);
|
|
36
|
+
}
|
|
37
|
+
if (owner !== undefined && !label.includes(owner)) label.push(owner);
|
|
38
|
+
}
|
|
39
|
+
return { type: "locate", seconds: observation.time.filmSeconds, label };
|
|
40
|
+
}
|
|
@@ -3,6 +3,7 @@ import { StrictMode } from "react";
|
|
|
3
3
|
import { type Root, createRoot } from "react-dom/client";
|
|
4
4
|
|
|
5
5
|
import { AutoMovieInspector } from "./AutoMovieInspector.js";
|
|
6
|
+
import type { IAutoMovieInspectorProps } from "./IAutoMovieInspectorProps.js";
|
|
6
7
|
import { createAutoMovieInspectorAddressWriter } from "./createAutoMovieInspectorAddressWriter.js";
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -10,17 +11,11 @@ import { createAutoMovieInspectorAddressWriter } from "./createAutoMovieInspecto
|
|
|
10
11
|
*
|
|
11
12
|
* `location` and `history` are the host's, passed in rather than read from `window`, so the page's address is the only global state the inspector writes and a host decides which. The returned `unmount` disposes the scene and its renderer through the component's effect cleanup.
|
|
12
13
|
*
|
|
14
|
+
* A host that can reproduce its subjects in a terminal also supplies `captureCommand`.
|
|
15
|
+
*
|
|
13
16
|
* ```ts
|
|
14
17
|
* mountAutoMovieInspectorPage({ root: document.getElementById("root")!, subjects, location, history });
|
|
15
18
|
* ```
|
|
16
|
-
*
|
|
17
|
-
* @evidence contracts/development/common.md#meaningful-documentation States what is rendered, where the first request comes from, how the address follows it, that nothing global is read, and what `unmount` releases.
|
|
18
|
-
* @evidence contracts/development/implementation.md#principled-implementation `createRoot` is React 19's client entry, and StrictMode runs the canvas effect twice in development, which the scene mount is built to survive, so a page always exercises that path.
|
|
19
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Three steps: build the address writer, create the root, render the component with the address's query.
|
|
20
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No subject, request or address is chosen here; they are the host's.
|
|
21
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant work beyond React's own render.
|
|
22
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A page is mounted once.
|
|
23
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The React root owns the component tree until `unmount`, which unmounts it and so releases the scene, renderer and frame loop the component holds.
|
|
24
19
|
*/
|
|
25
20
|
export function mountAutoMovieInspectorPage(props: {
|
|
26
21
|
/** The element the page renders into. */
|
|
@@ -34,6 +29,9 @@ export function mountAutoMovieInspectorPage(props: {
|
|
|
34
29
|
|
|
35
30
|
/** The page's history, whose current entry follows the request. */
|
|
36
31
|
history: Pick<History, "replaceState" | "state">;
|
|
32
|
+
|
|
33
|
+
/** Executable and fixed capture arguments from the host, when available. */
|
|
34
|
+
captureCommand?: IAutoMovieInspectorProps["captureCommand"];
|
|
37
35
|
}): {
|
|
38
36
|
/** Unmount the page and release everything it holds. */
|
|
39
37
|
unmount: () => void;
|
|
@@ -50,6 +48,7 @@ export function mountAutoMovieInspectorPage(props: {
|
|
|
50
48
|
subjects={props.subjects}
|
|
51
49
|
initialText={props.location.search}
|
|
52
50
|
onRequestChange={onRequestChange}
|
|
51
|
+
captureCommand={props.captureCommand}
|
|
53
52
|
/>
|
|
54
53
|
</StrictMode>,
|
|
55
54
|
);
|