@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,63 +1,93 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
IAutoMovieCapturePlanRequest,
|
|
3
|
+
IAutoMovieInspectionDiagnostics,
|
|
3
4
|
IAutoMovieInspectionLegendEntry,
|
|
4
5
|
} from "@automovie/interface";
|
|
5
6
|
import type { IApplyAutoMovieInspectionProps } from "@automovie/render";
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
|
-
* A subject mounted on the inspector's canvas by
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Two calls the component's effects make; what the mount learns flows out through the `IReport` the component passes in.
|
|
12
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts `apply` never throws: a request the scene refuses is reported with the request still drawn, so the component sets that request back and the address stays equal to the picture.
|
|
13
|
-
* @evidence contracts/development/common.md#meaningful-documentation States what the handle stands for and what each call does.
|
|
9
|
+
* A subject mounted on the inspector's canvas by
|
|
10
|
+
* `mountAutoMovieInspectorScene`: the calls the component makes while it
|
|
11
|
+
* lives.
|
|
14
12
|
*/
|
|
15
13
|
export interface IAutoMovieInspectorScene {
|
|
16
14
|
/**
|
|
17
|
-
* Draw a new request from the next frame. Before the instance is ready the
|
|
15
|
+
* Draw a new request from the next frame. Before the instance is ready the
|
|
16
|
+
* request is held and applied when it is.
|
|
18
17
|
*
|
|
19
|
-
* The inspection is re-applied when the request's inspection differs, the
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One restore and one apply, each linear in the scene and its marks, only when the inspection changed.
|
|
26
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work A request whose inspection writes the same text keeps the applied inspection.
|
|
27
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds one applied inspection; the replaced one is restored first.
|
|
18
|
+
* The inspection is re-applied when the request's inspection differs, the
|
|
19
|
+
* playhead moves to the request's first second when that differs, and the
|
|
20
|
+
* picture redraws. When the inspection refuses the request, such as a mark
|
|
21
|
+
* pattern that matches no kind, the previous request stays drawn and is
|
|
22
|
+
* reported through `IReport.refused` with the reason. The same request object
|
|
23
|
+
* again does nothing.
|
|
28
24
|
*/
|
|
29
25
|
apply(request: IAutoMovieCapturePlanRequest): void;
|
|
30
26
|
|
|
31
27
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
28
|
+
* Show or hide the diagnostic witness cubes from the next frame. Checks,
|
|
29
|
+
* their reports and console incidents continue either way.
|
|
30
|
+
*/
|
|
31
|
+
overlay(show: boolean): void;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* End the mount: cancel the pending frame, restore the inspection, dispose
|
|
35
|
+
* the renderer and the instance, or dispose the instance when it arrives if
|
|
36
|
+
* it has not yet. Calling it again does nothing.
|
|
41
37
|
*/
|
|
42
38
|
dispose(): void;
|
|
43
39
|
}
|
|
44
40
|
export namespace IAutoMovieInspectorScene {
|
|
45
41
|
/**
|
|
46
|
-
* What
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
42
|
+
* What joined the samples of a reported span: `frames` for checks at
|
|
43
|
+
* consecutive output frames, `playback` for painted samples of one
|
|
44
|
+
* uninterrupted playback, whose unpainted film in between was not checked.
|
|
45
|
+
*/
|
|
46
|
+
export type EpisodeBasis = "frames" | "playback";
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* One console incident: a confirmed error's first visit, or a closed span of
|
|
50
|
+
* its observations.
|
|
51
|
+
*/
|
|
52
|
+
export type IIncident =
|
|
53
|
+
| {
|
|
54
|
+
kind: "first";
|
|
55
|
+
observation: IAutoMovieInspectionDiagnostics.IObservation;
|
|
56
|
+
}
|
|
57
|
+
| {
|
|
58
|
+
kind: "episode";
|
|
59
|
+
basis: EpisodeBasis;
|
|
60
|
+
episode: IAutoMovieInspectionDiagnostics.IEpisode;
|
|
61
|
+
firstSample: IAutoMovieInspectionDiagnostics.ITime;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* What a mount learns about its subject once the instance is ready, for the
|
|
66
|
+
* panels.
|
|
52
67
|
*/
|
|
53
68
|
export interface IFacts {
|
|
54
|
-
/**
|
|
69
|
+
/**
|
|
70
|
+
* Identity paths of every drawn object in scene order, then of every
|
|
71
|
+
* supplied mark, at the first second drawn.
|
|
72
|
+
*/
|
|
55
73
|
paths: string[];
|
|
56
74
|
|
|
57
|
-
/**
|
|
75
|
+
/**
|
|
76
|
+
* Marks supplied at the first second drawn, which provide their kinds and
|
|
77
|
+
* styles to the marks panel.
|
|
78
|
+
*/
|
|
58
79
|
marks: NonNullable<IApplyAutoMovieInspectionProps["marks"]>;
|
|
59
80
|
|
|
60
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* Subject-declared kinds available throughout the mount, including kinds
|
|
83
|
+
* with no mark at the first second.
|
|
84
|
+
*/
|
|
85
|
+
markKinds?: IApplyAutoMovieInspectionProps["markKinds"];
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The subject's own view names, then the named viewpoints a fitted view
|
|
89
|
+
* takes.
|
|
90
|
+
*/
|
|
61
91
|
views: string[];
|
|
62
92
|
|
|
63
93
|
/** Width in pixels of a still of the subject. */
|
|
@@ -69,20 +99,19 @@ export namespace IAutoMovieInspectorScene {
|
|
|
69
99
|
/** The subject's duration in seconds. */
|
|
70
100
|
durationSeconds: number;
|
|
71
101
|
|
|
72
|
-
/**
|
|
102
|
+
/**
|
|
103
|
+
* Frames per second of the subject's own grid, the step the time slider
|
|
104
|
+
* moves by.
|
|
105
|
+
*/
|
|
73
106
|
fps: number;
|
|
74
107
|
}
|
|
75
108
|
|
|
76
|
-
/**
|
|
77
|
-
* The labels of one paused picture, placed for the canvas as laid out.
|
|
78
|
-
*
|
|
79
|
-
* @evidence contracts/development/design.md#principled-representation Positions and line height are CSS pixels of the canvas, converted from the picture pixels render's placement works in by the ratio of the canvas's size to the subject's raster, so an element placed at them sits where a capture stamps the same label.
|
|
80
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface The labels kept and the line height the component sizes them by; dropped labels are counted so the reader knows some were asked for.
|
|
81
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts No font or colour: the component owns how a label looks.
|
|
82
|
-
* @evidence contracts/development/common.md#meaningful-documentation States the units and the conversion.
|
|
83
|
-
*/
|
|
109
|
+
/** The labels of one paused picture, placed for the canvas as laid out. */
|
|
84
110
|
export interface ILabels {
|
|
85
|
-
/**
|
|
111
|
+
/**
|
|
112
|
+
* Each kept label: its path, its text, and its top-left corner in CSS
|
|
113
|
+
* pixels from the canvas's top-left.
|
|
114
|
+
*/
|
|
86
115
|
labels: {
|
|
87
116
|
/** The labelled path. */
|
|
88
117
|
path: string;
|
|
@@ -97,84 +126,60 @@ export namespace IAutoMovieInspectorScene {
|
|
|
97
126
|
top: number;
|
|
98
127
|
}[];
|
|
99
128
|
|
|
100
|
-
/**
|
|
129
|
+
/**
|
|
130
|
+
* Height of the stamp's label box in CSS pixels, which the overlap was
|
|
131
|
+
* decided for.
|
|
132
|
+
*/
|
|
101
133
|
lineHeight: number;
|
|
102
134
|
|
|
103
|
-
/**
|
|
135
|
+
/**
|
|
136
|
+
* How many asked labels were dropped because they would overlap a kept one
|
|
137
|
+
* or fall outside the picture.
|
|
138
|
+
*/
|
|
104
139
|
dropped: number;
|
|
105
140
|
}
|
|
106
141
|
|
|
107
142
|
/**
|
|
108
|
-
* Where a mount reports what it learns; the component turns each report into
|
|
109
|
-
*
|
|
110
|
-
* @evidence contracts/development/design.md#principled-representation Five events: ready, a legend, labels, a drawing error or its end, and a refused request.
|
|
111
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Each is read by the inspector component and nothing else.
|
|
112
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts A drawing error and a refused request are separate, because only the second changes the request.
|
|
113
|
-
* @evidence contracts/development/common.md#meaningful-documentation States when each event fires.
|
|
143
|
+
* Where a mount reports what it learns; the component turns each report into
|
|
144
|
+
* state.
|
|
114
145
|
*/
|
|
115
146
|
export interface IReport {
|
|
116
|
-
/**
|
|
117
|
-
* The instance is ready and drawn once.
|
|
118
|
-
*
|
|
119
|
-
* @evidence contracts/development/common.md#meaningful-documentation States when it fires.
|
|
120
|
-
* @evidenceExclude contracts/development/implementation.md#principled-implementation A callback signature; the component implements it.
|
|
121
|
-
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A callback signature; the component implements it.
|
|
122
|
-
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A callback signature; the component implements it.
|
|
123
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms A callback signature; the component implements it.
|
|
124
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A callback signature; the component implements it.
|
|
125
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A callback signature; the component implements it.
|
|
126
|
-
*/
|
|
147
|
+
/** The instance is ready and drawn once. */
|
|
127
148
|
ready(facts: IFacts): void;
|
|
128
149
|
|
|
129
150
|
/**
|
|
130
|
-
* The legend of the picture, after an apply and after every draw while
|
|
131
|
-
*
|
|
132
|
-
* @evidence contracts/development/common.md#meaningful-documentation States when it fires.
|
|
133
|
-
* @evidenceExclude contracts/development/implementation.md#principled-implementation A callback signature; the component implements it.
|
|
134
|
-
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A callback signature; the component implements it.
|
|
135
|
-
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A callback signature; the component implements it.
|
|
136
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms A callback signature; the component implements it.
|
|
137
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A callback signature; the component implements it.
|
|
138
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A callback signature; the component implements it.
|
|
151
|
+
* The legend of the picture, after an apply and after every draw while
|
|
152
|
+
* paused.
|
|
139
153
|
*/
|
|
140
154
|
legend(entries: IAutoMovieInspectionLegendEntry[]): void;
|
|
141
155
|
|
|
142
156
|
/**
|
|
143
|
-
* The labels the request's `label` patterns place on the picture, after
|
|
144
|
-
*
|
|
145
|
-
* @evidence contracts/development/common.md#meaningful-documentation States when it fires and the empty case.
|
|
146
|
-
* @evidenceExclude contracts/development/implementation.md#principled-implementation A callback signature; the component implements it.
|
|
147
|
-
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A callback signature; the component implements it.
|
|
148
|
-
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A callback signature; the component implements it.
|
|
149
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms A callback signature; the component implements it.
|
|
150
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A callback signature; the component implements it.
|
|
151
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A callback signature; the component implements it.
|
|
157
|
+
* The labels the request's `label` patterns place on the picture, after
|
|
158
|
+
* every draw while paused, and none once playing starts.
|
|
152
159
|
*/
|
|
153
160
|
labels(placed: ILabels): void;
|
|
154
161
|
|
|
155
162
|
/**
|
|
156
|
-
* Why the last frame or the instance could not be drawn, or null once a
|
|
157
|
-
*
|
|
158
|
-
* @evidence contracts/development/common.md#meaningful-documentation States when it fires and what null means.
|
|
159
|
-
* @evidenceExclude contracts/development/implementation.md#principled-implementation A callback signature; the component implements it.
|
|
160
|
-
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A callback signature; the component implements it.
|
|
161
|
-
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A callback signature; the component implements it.
|
|
162
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms A callback signature; the component implements it.
|
|
163
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A callback signature; the component implements it.
|
|
164
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A callback signature; the component implements it.
|
|
163
|
+
* Why the last frame or the instance could not be drawn, or null once a
|
|
164
|
+
* frame draws again.
|
|
165
165
|
*/
|
|
166
166
|
error(message: string | null): void;
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
|
|
169
|
+
* Findings and coverage of a painted production sample when the subject
|
|
170
|
+
* provides diagnostics.
|
|
171
|
+
*/
|
|
172
|
+
diagnostics?(packet: IAutoMovieInspectionDiagnostics): void;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Console evidence from the current mount's confirmed diagnostic
|
|
176
|
+
* observations.
|
|
177
|
+
*/
|
|
178
|
+
diagnosticIncident?(entry: IIncident): void;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The scene refused a request; `request` is the one it still draws and
|
|
182
|
+
* `message` why.
|
|
178
183
|
*/
|
|
179
184
|
refused(request: IAutoMovieCapturePlanRequest, message: string): void;
|
|
180
185
|
}
|
|
@@ -1,140 +1,81 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
IAutoMovieFilmIndirectRenderer,
|
|
3
|
+
IAutoMovieSectionRenderer,
|
|
4
|
+
} from "@automovie/render";
|
|
2
5
|
import type * as THREE from "three";
|
|
3
6
|
|
|
4
7
|
/**
|
|
5
|
-
* What the inspector's scene mount takes from the page: a renderer, the
|
|
8
|
+
* What the inspector's scene mount takes from the page: a renderer, the
|
|
9
|
+
* animation-frame clock and the canvas size.
|
|
6
10
|
*
|
|
7
|
-
* `createAutoMovieInspectorCanvasHost` gives the browser's: a `WebGLRenderer`
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts Structural rather than `THREE.WebGLRenderer`, because demanding the whole renderer would put a live WebGL context between the lifecycle and any check of it; the real renderer satisfies it as it stands.
|
|
12
|
-
* @evidence contracts/development/common.md#meaningful-documentation States who supplies it in a page and in a test, and what each member is.
|
|
11
|
+
* `createAutoMovieInspectorCanvasHost` gives the browser's: a `WebGLRenderer`
|
|
12
|
+
* on the canvas, `requestAnimationFrame` and the canvas's layout size. A unit
|
|
13
|
+
* test gives recording doubles, so the mount's lifecycle runs without a
|
|
14
|
+
* browser.
|
|
13
15
|
*/
|
|
14
16
|
export interface IAutoMovieInspectorSceneHost {
|
|
15
17
|
/**
|
|
16
|
-
* Create the renderer one mount draws with; the mount disposes it when it
|
|
17
|
-
*
|
|
18
|
-
* @evidence contracts/development/common.md#meaningful-documentation States ownership of the result.
|
|
19
|
-
* @evidenceExclude contracts/development/implementation.md#principled-implementation A signature has no body; the host that implements it answers.
|
|
20
|
-
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A signature has no body; the host that implements it answers.
|
|
21
|
-
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A signature has no body; the host that implements it answers.
|
|
22
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms A signature has no body; the host that implements it answers.
|
|
23
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A signature has no body; the host that implements it answers.
|
|
24
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The mount owns the renderer and calls its `dispose` once.
|
|
18
|
+
* Create the renderer one mount draws with; the mount disposes it when it
|
|
19
|
+
* ends.
|
|
25
20
|
*/
|
|
26
|
-
createRenderer(): IAutoMovieInspectorSceneHost.
|
|
21
|
+
createRenderer(): IAutoMovieInspectorSceneHost.ICreated;
|
|
27
22
|
|
|
28
23
|
/**
|
|
29
|
-
* Run `callback` once before the next repaint with the frame's time in
|
|
30
|
-
*
|
|
31
|
-
* @evidence contracts/development/common.md#meaningful-documentation States the unit and the handle.
|
|
32
|
-
* @evidenceExclude contracts/development/implementation.md#principled-implementation A signature has no body; the host that implements it answers.
|
|
33
|
-
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A signature has no body; the host that implements it answers.
|
|
34
|
-
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A signature has no body; the host that implements it answers.
|
|
35
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms A signature has no body; the host that implements it answers.
|
|
36
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A signature has no body; the host that implements it answers.
|
|
37
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The mount holds at most one pending handle and cancels it when it ends.
|
|
24
|
+
* Run `callback` once before the next repaint with the frame's time in
|
|
25
|
+
* milliseconds, and return a handle `cancelFrame` takes.
|
|
38
26
|
*/
|
|
39
27
|
requestFrame(callback: (nowMs: number) => void): number;
|
|
40
28
|
|
|
41
|
-
/**
|
|
42
|
-
* Cancel a pending frame so its callback never runs.
|
|
43
|
-
*
|
|
44
|
-
* @evidence contracts/development/common.md#meaningful-documentation States the effect.
|
|
45
|
-
* @evidenceExclude contracts/development/implementation.md#principled-implementation A signature has no body; the host that implements it answers.
|
|
46
|
-
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A signature has no body; the host that implements it answers.
|
|
47
|
-
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A signature has no body; the host that implements it answers.
|
|
48
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms A signature has no body; the host that implements it answers.
|
|
49
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A signature has no body; the host that implements it answers.
|
|
50
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A signature has no body; the host that implements it answers.
|
|
51
|
-
*/
|
|
29
|
+
/** Cancel a pending frame so its callback never runs. */
|
|
52
30
|
cancelFrame(handle: number): void;
|
|
53
31
|
|
|
54
32
|
/**
|
|
55
|
-
* The size to draw at now: CSS pixels of the drawing area and the device
|
|
56
|
-
*
|
|
57
|
-
* @evidence contracts/development/common.md#meaningful-documentation States the units.
|
|
58
|
-
* @evidenceExclude contracts/development/implementation.md#principled-implementation A signature has no body; the host that implements it answers.
|
|
59
|
-
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A signature has no body; the host that implements it answers.
|
|
60
|
-
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A signature has no body; the host that implements it answers.
|
|
61
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms A signature has no body; the host that implements it answers.
|
|
62
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A signature has no body; the host that implements it answers.
|
|
63
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A signature has no body; the host that implements it answers.
|
|
33
|
+
* The size to draw at now: CSS pixels of the drawing area and the device
|
|
34
|
+
* pixel ratio.
|
|
64
35
|
*/
|
|
65
36
|
size(): IAutoMovieInspectorSceneHost.ISize;
|
|
66
37
|
}
|
|
67
38
|
export namespace IAutoMovieInspectorSceneHost {
|
|
68
|
-
/**
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts No context or capability member, so a recording double needs no WebGL.
|
|
74
|
-
* @evidence contracts/development/common.md#meaningful-documentation States what each member is for.
|
|
75
|
-
*/
|
|
76
|
-
export interface IRenderer extends IAutoMovieSectionRenderer {
|
|
39
|
+
/** A created renderer and, when it is a WebGL one, that renderer as such. */
|
|
40
|
+
export interface ICreated {
|
|
41
|
+
/** The renderer the mount draws with. */
|
|
42
|
+
renderer: IRenderer;
|
|
43
|
+
|
|
77
44
|
/**
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
* @evidenceExclude contracts/development/implementation.md#principled-implementation three.js's own method.
|
|
82
|
-
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure three.js's own method.
|
|
83
|
-
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts three.js's own method.
|
|
84
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms three.js's own method.
|
|
85
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work three.js's own method.
|
|
86
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources three.js's own method.
|
|
45
|
+
* The same renderer as a `THREE.WebGLRenderer`, or null for one that is
|
|
46
|
+
* not: a subject's render-target work and a transition's compositing need
|
|
47
|
+
* its native targets.
|
|
87
48
|
*/
|
|
49
|
+
compositor: THREE.WebGLRenderer | null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The part of `THREE.WebGLRenderer` the inspector's mount calls, including
|
|
54
|
+
* what `AutoMovieFilmResponseStage` and `AutoMovieFilmIndirectStage` drive
|
|
55
|
+
* when a subject supplies optics and shading.
|
|
56
|
+
*/
|
|
57
|
+
export interface IRenderer
|
|
58
|
+
extends IAutoMovieSectionRenderer, IAutoMovieFilmIndirectRenderer {
|
|
59
|
+
/** Draw a scene through a camera into the canvas. */
|
|
88
60
|
render(scene: THREE.Object3D, camera: THREE.Camera): void;
|
|
89
61
|
|
|
90
|
-
/**
|
|
91
|
-
* Set the device pixel ratio the drawing buffer is scaled by.
|
|
92
|
-
*
|
|
93
|
-
* @evidence contracts/development/common.md#meaningful-documentation States the effect.
|
|
94
|
-
* @evidenceExclude contracts/development/implementation.md#principled-implementation three.js's own method.
|
|
95
|
-
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure three.js's own method.
|
|
96
|
-
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts three.js's own method.
|
|
97
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms three.js's own method.
|
|
98
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work three.js's own method.
|
|
99
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources three.js's own method.
|
|
100
|
-
*/
|
|
62
|
+
/** Set the device pixel ratio the drawing buffer is scaled by. */
|
|
101
63
|
setPixelRatio(ratio: number): void;
|
|
102
64
|
|
|
103
65
|
/**
|
|
104
|
-
* Size the drawing buffer in CSS pixels; `updateStyle` false leaves the
|
|
105
|
-
*
|
|
106
|
-
* @evidence contracts/development/common.md#meaningful-documentation States the unit and the style switch.
|
|
107
|
-
* @evidenceExclude contracts/development/implementation.md#principled-implementation three.js's own method.
|
|
108
|
-
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure three.js's own method.
|
|
109
|
-
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts three.js's own method.
|
|
110
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms three.js's own method.
|
|
111
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work three.js's own method.
|
|
112
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources three.js's own method.
|
|
66
|
+
* Size the drawing buffer in CSS pixels; `updateStyle` false leaves the
|
|
67
|
+
* canvas's layout to the page.
|
|
113
68
|
*/
|
|
114
69
|
setSize(width: number, height: number, updateStyle?: boolean): void;
|
|
115
70
|
|
|
116
71
|
/**
|
|
117
|
-
* Release the renderer's GPU resources. The context is not lost, so a later
|
|
118
|
-
*
|
|
119
|
-
* @evidence contracts/development/common.md#meaningful-documentation States what is released and what is kept.
|
|
120
|
-
* @evidenceExclude contracts/development/implementation.md#principled-implementation three.js's own method.
|
|
121
|
-
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure three.js's own method.
|
|
122
|
-
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts three.js's own method.
|
|
123
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms three.js's own method.
|
|
124
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work three.js's own method.
|
|
125
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources three.js's own method.
|
|
72
|
+
* Release the renderer's GPU resources. The context is not lost, so a later
|
|
73
|
+
* renderer on the same canvas draws.
|
|
126
74
|
*/
|
|
127
75
|
dispose(): void;
|
|
128
76
|
}
|
|
129
77
|
|
|
130
|
-
/**
|
|
131
|
-
* The drawing size the host reports.
|
|
132
|
-
*
|
|
133
|
-
* @evidence contracts/development/design.md#principled-representation CSS pixels and a device pixel ratio, the two numbers a WebGL drawing buffer is sized from.
|
|
134
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Three numbers.
|
|
135
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts That they are positive and finite is checked by the mount, which skips a frame otherwise.
|
|
136
|
-
* @evidence contracts/development/common.md#meaningful-documentation States each unit.
|
|
137
|
-
*/
|
|
78
|
+
/** The drawing size the host reports. */
|
|
138
79
|
export interface ISize {
|
|
139
80
|
/** Drawing width, CSS pixels. */
|
|
140
81
|
width: number;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* What the inspector holds between edits: the one request every control edits
|
|
5
|
-
*
|
|
6
|
-
* @evidence contracts/development/design.md#principled-representation The page's whole state is one capture plan request, so the address, the command and the picture all derive from it; the refusal is text because it is only shown.
|
|
7
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the viewer, produced by `createAutoMovieInspectorState` and `reduceAutoMovieInspectorState`, read by `AutoMovieInspector`. The request is render's own plan request.
|
|
8
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts A refused edit keeps the previous request beside its reason, so no half-applied request exists.
|
|
9
|
-
* @evidence contracts/development/common.md#meaningful-documentation States what each member holds and what null means.
|
|
4
|
+
* What the inspector holds between edits: the one request every control edits
|
|
5
|
+
* and the canvas draws, and the last refusal.
|
|
10
6
|
*/
|
|
11
7
|
export interface IAutoMovieInspectorState {
|
|
12
8
|
/** The request drawn, as the plan grammar read it. */
|
|
13
9
|
request: IAutoMovieCapturePlanRequest;
|
|
14
10
|
|
|
15
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Why the last edit was refused, naming the key, or null when it was
|
|
13
|
+
* accepted.
|
|
14
|
+
*/
|
|
16
15
|
error: string | null;
|
|
17
16
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IAutoMovieDrawScene } from "@automovie/render";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Refuse, naming the subject, a subject whose duration, frame rate, width or
|
|
5
|
+
* height is not positive, before the mount gives the playhead its duration: no
|
|
6
|
+
* clock or picture follows from it.
|
|
7
|
+
*/
|
|
8
|
+
export function assertAutoMovieInspectorRaster(
|
|
9
|
+
name: string,
|
|
10
|
+
instance: Pick<
|
|
11
|
+
IAutoMovieDrawScene,
|
|
12
|
+
"durationSeconds" | "fps" | "width" | "height"
|
|
13
|
+
>,
|
|
14
|
+
): void {
|
|
15
|
+
for (const [field, value] of [
|
|
16
|
+
["duration", instance.durationSeconds],
|
|
17
|
+
["fps", instance.fps],
|
|
18
|
+
["width", instance.width],
|
|
19
|
+
["height", instance.height],
|
|
20
|
+
] as const)
|
|
21
|
+
if (!(value > 0))
|
|
22
|
+
throw new Error(`Subject "${name}" ${field} ${value} is not positive`);
|
|
23
|
+
}
|
|
@@ -3,19 +3,18 @@ import type { IAutoMovieInspectorPathNode } from "./IAutoMovieInspectorPathNode.
|
|
|
3
3
|
/**
|
|
4
4
|
* Arrange identity paths into the tree of their names, for the selection panel.
|
|
5
5
|
*
|
|
6
|
-
* Each distinct path becomes one node marked `drawn`, and each prefix of it a
|
|
6
|
+
* Each distinct path becomes one node marked `drawn`, and each prefix of it a
|
|
7
|
+
* node above, created once however many paths share it. Siblings keep the order
|
|
8
|
+
* in which their first path appeared, so paths listed in scene order give the
|
|
9
|
+
* scene's order, and a path repeated later, as two objects that share a path
|
|
10
|
+
* are, adds nothing. The empty path, which an object with no named ancestor
|
|
11
|
+
* has, becomes one top-level node with the empty name and no pattern.
|
|
7
12
|
*
|
|
8
13
|
* ```ts
|
|
9
|
-
* const tree = buildAutoMovieInspectorPathTree(
|
|
14
|
+
* const tree = buildAutoMovieInspectorPathTree(
|
|
15
|
+
* listAutoMovieInspectionPaths(scene).map(({ path }) => path),
|
|
16
|
+
* );
|
|
10
17
|
* ```
|
|
11
|
-
*
|
|
12
|
-
* @evidence contracts/development/common.md#meaningful-documentation States what becomes a node, the order, what a repeated path does, the empty path and each node's pattern rule by reference to the node type.
|
|
13
|
-
* @evidence contracts/development/implementation.md#principled-implementation A path is split on `/` as the path grammar splits it, so a node's prefix is a path the grammar can name; an anchored pattern (one holding `/`) selects that prefix and its subtree, which is why a top-level name is written `<name>/**`.
|
|
14
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One walk per path down a map from prefix to node, creating what is missing.
|
|
15
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No name is treated specially; a name holding a wildcard character stays a wildcard in its pattern, because the grammar has no escape.
|
|
16
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One hashed lookup per name of every path; each lookup key is the prefix built by appending one name, so the cost is the total length of the prefixes, which for paths a few names deep is a small multiple of their own length.
|
|
17
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of one list.
|
|
18
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh tree and keeps nothing.
|
|
19
18
|
*/
|
|
20
19
|
export function buildAutoMovieInspectorPathTree(
|
|
21
20
|
paths: readonly string[],
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Whether applying an inspection changes scene state that a placed observation
|
|
5
|
+
* reads.
|
|
6
|
+
*
|
|
7
|
+
* `applyAutoMovieInspection` takes unselected objects off their layers
|
|
8
|
+
* (`parts`, `hide`, `surface` off), overrides materials (`shade` other than
|
|
9
|
+
* beauty, `color`), adds mark geometry to its overlay group (`marks`, `trail`)
|
|
10
|
+
* and gives materials a clipping plane (`section`). An inspection with none of
|
|
11
|
+
* these leaves only its empty overlay group and its screen-space labels, which
|
|
12
|
+
* no observer reads, so the scene it leaves can be observed as placed.
|
|
13
|
+
*
|
|
14
|
+
* @param inspection The inspection of a request.
|
|
15
|
+
* @returns True when the scene must be restored before an observation.
|
|
16
|
+
*/
|
|
17
|
+
export function changesAutoMovieObservedScene(
|
|
18
|
+
inspection: IAutoMovieCapturePlanRequest["inspection"],
|
|
19
|
+
): boolean {
|
|
20
|
+
return (
|
|
21
|
+
inspection.parts.length !== 0 ||
|
|
22
|
+
inspection.hide.length !== 0 ||
|
|
23
|
+
!inspection.surface ||
|
|
24
|
+
inspection.shade !== "beauty" ||
|
|
25
|
+
inspection.color.length !== 0 ||
|
|
26
|
+
inspection.marks.length !== 0 ||
|
|
27
|
+
inspection.trail.length !== 0 ||
|
|
28
|
+
inspection.section !== null
|
|
29
|
+
);
|
|
30
|
+
}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Build an `onRequestChange` listener that keeps a page's address equal to the
|
|
2
|
+
* Build an `onRequestChange` listener that keeps a page's address equal to the
|
|
3
|
+
* inspector's request, writing through the `history` and `location` the host
|
|
4
|
+
* passes.
|
|
3
5
|
*
|
|
4
|
-
* Each text the inspector reports, as `formatAutoMovieInspectorAddress` writes
|
|
6
|
+
* Each text the inspector reports, as `formatAutoMovieInspectorAddress` writes
|
|
7
|
+
* it, becomes the address's query: the path and the fragment are kept, the
|
|
8
|
+
* empty request clears the query, and `history.replaceState` writes it with the
|
|
9
|
+
* entry's own state, so editing the request adds no history entry. A text equal
|
|
10
|
+
* to the current query writes nothing. The library reaches no global: a host
|
|
11
|
+
* that passes no listener keeps its address untouched.
|
|
5
12
|
*
|
|
6
13
|
* ```ts
|
|
7
|
-
* const onRequestChange = createAutoMovieInspectorAddressWriter({
|
|
14
|
+
* const onRequestChange = createAutoMovieInspectorAddressWriter({
|
|
15
|
+
* location,
|
|
16
|
+
* history,
|
|
17
|
+
* });
|
|
8
18
|
* ```
|
|
9
|
-
*
|
|
10
|
-
* @evidence contracts/development/common.md#meaningful-documentation States what becomes of each text, what is kept, the empty and unchanged cases, why history gains no entry, and that nothing global is reached.
|
|
11
|
-
* @evidence contracts/development/implementation.md#principled-implementation `replaceState` changes the current entry's URL without navigating or adding an entry, and `location.search` is `?` plus the query, or empty, which the comparison mirrors.
|
|
12
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One closure over the two injected objects.
|
|
13
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No `window` is read; the host's objects are the only ones written.
|
|
14
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant work plus the length of the address per call.
|
|
15
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work An unchanged query is not written again, which the inspector's report at mount relies on.
|
|
16
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds the two borrowed objects for as long as the listener lives; nothing else.
|
|
17
19
|
*/
|
|
18
20
|
export function createAutoMovieInspectorAddressWriter(props: {
|
|
19
21
|
/** The page's location, read for the current path, query and fragment. */
|