@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,15 +1,12 @@
|
|
|
1
1
|
import type { IAutoMovieInspectorSceneHost } from "./IAutoMovieInspectorSceneHost.js";
|
|
2
2
|
/**
|
|
3
|
-
* The browser's scene host for one canvas: a `WebGLRenderer` drawing into it,
|
|
3
|
+
* The browser's scene host for one canvas: a `WebGLRenderer` drawing into it,
|
|
4
|
+
* the window's animation frames, and the canvas's layout size with the device
|
|
5
|
+
* pixel ratio.
|
|
4
6
|
*
|
|
5
|
-
* Each `createRenderer` call makes a new renderer on the same canvas, which
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Four one-line members over the canvas and its window.
|
|
10
|
-
* @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.
|
|
11
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant per call.
|
|
12
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A host computes nothing to reuse; the mount reuses its renderer.
|
|
13
|
-
* @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.
|
|
7
|
+
* Each `createRenderer` call makes a new renderer on the same canvas, which
|
|
8
|
+
* reuses the canvas's context, so a mount after a dispose draws; the mount
|
|
9
|
+
* disposes each renderer without losing the context. A canvas that has no
|
|
10
|
+
* layout size yet reports zero, and the mount skips drawing until it has one.
|
|
14
11
|
*/
|
|
15
12
|
export declare function createAutoMovieInspectorCanvasHost(canvas: HTMLCanvasElement): IAutoMovieInspectorSceneHost;
|
|
@@ -36,22 +36,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.createAutoMovieInspectorCanvasHost = createAutoMovieInspectorCanvasHost;
|
|
37
37
|
const THREE = __importStar(require("three"));
|
|
38
38
|
/**
|
|
39
|
-
* The browser's scene host for one canvas: a `WebGLRenderer` drawing into it,
|
|
39
|
+
* The browser's scene host for one canvas: a `WebGLRenderer` drawing into it,
|
|
40
|
+
* the window's animation frames, and the canvas's layout size with the device
|
|
41
|
+
* pixel ratio.
|
|
40
42
|
*
|
|
41
|
-
* Each `createRenderer` call makes a new renderer on the same canvas, which
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Four one-line members over the canvas and its window.
|
|
46
|
-
* @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.
|
|
47
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant per call.
|
|
48
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A host computes nothing to reuse; the mount reuses its renderer.
|
|
49
|
-
* @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.
|
|
43
|
+
* Each `createRenderer` call makes a new renderer on the same canvas, which
|
|
44
|
+
* reuses the canvas's context, so a mount after a dispose draws; the mount
|
|
45
|
+
* disposes each renderer without losing the context. A canvas that has no
|
|
46
|
+
* layout size yet reports zero, and the mount skips drawing until it has one.
|
|
50
47
|
*/
|
|
51
48
|
function createAutoMovieInspectorCanvasHost(canvas) {
|
|
52
49
|
const view = canvas.ownerDocument.defaultView ?? window;
|
|
53
50
|
return {
|
|
54
|
-
createRenderer: () =>
|
|
51
|
+
createRenderer: () => {
|
|
52
|
+
const renderer = new THREE.WebGLRenderer({
|
|
53
|
+
canvas,
|
|
54
|
+
antialias: true,
|
|
55
|
+
});
|
|
56
|
+
return { renderer, compositor: renderer };
|
|
57
|
+
},
|
|
55
58
|
requestFrame: (callback) => view.requestAnimationFrame(callback),
|
|
56
59
|
cancelFrame: (handle) => view.cancelAnimationFrame(handle),
|
|
57
60
|
size: () => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAutoMovieInspectorCanvasHost.js","sourceRoot":"","sources":["../../src/inspector/createAutoMovieInspectorCanvasHost.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,KAAK,kCAAc;AAI/B
|
|
1
|
+
{"version":3,"file":"createAutoMovieInspectorCanvasHost.js","sourceRoot":"","sources":["../../src/inspector/createAutoMovieInspectorCanvasHost.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,KAAK,kCAAc;AAI/B;;;;;;;;;GASG;AACH,4CACE,MAAyB;IAEzB,MAAM,IAAI,GAAW,MAAM,CAAC,aAAa,CAAC,WAAW,IAAI,MAAM,CAAC;IAChE,OAAO;QACL,cAAc,EAAE,GAA0C,EAAE;YAC1D,MAAM,QAAQ,GAAwB,IAAI,KAAK,CAAC,aAAa,CAAC;gBAC5D,MAAM;gBACN,SAAS,EAAE,IAAI;aAChB,CAAC,CAAC;YACH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC;QAC5C,CAAC;QACD,YAAY,EAAE,CAAC,QAAiC,EAAU,EAAE,CAC1D,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC;QACtC,WAAW,EAAE,CAAC,MAAc,EAAQ,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC;QACxE,IAAI,EAAE,GAAuC,EAAE,CAAC,CAAC;YAC/C,KAAK,EAAE,MAAM,CAAC,WAAW;YACzB,MAAM,EAAE,MAAM,CAAC,YAAY;YAC3B,UAAU,EAAE,IAAI,CAAC,gBAAgB;SAClC,CAAC;KACH,CAAC;AACJ,CAAC"}
|
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
import * as THREE from "three";
|
|
2
2
|
// src/inspector/createAutoMovieInspectorCanvasHost.ts
|
|
3
3
|
/**
|
|
4
|
-
* The browser's scene host for one canvas: a `WebGLRenderer` drawing into it,
|
|
4
|
+
* The browser's scene host for one canvas: a `WebGLRenderer` drawing into it,
|
|
5
|
+
* the window's animation frames, and the canvas's layout size with the device
|
|
6
|
+
* pixel ratio.
|
|
5
7
|
*
|
|
6
|
-
* Each `createRenderer` call makes a new renderer on the same canvas, which
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Four one-line members over the canvas and its window.
|
|
11
|
-
* @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.
|
|
12
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant per call.
|
|
13
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A host computes nothing to reuse; the mount reuses its renderer.
|
|
14
|
-
* @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.
|
|
8
|
+
* Each `createRenderer` call makes a new renderer on the same canvas, which
|
|
9
|
+
* reuses the canvas's context, so a mount after a dispose draws; the mount
|
|
10
|
+
* disposes each renderer without losing the context. A canvas that has no
|
|
11
|
+
* layout size yet reports zero, and the mount skips drawing until it has one.
|
|
15
12
|
*/
|
|
16
13
|
function createAutoMovieInspectorCanvasHost(canvas) {
|
|
17
14
|
const view = canvas.ownerDocument.defaultView ?? window;
|
|
18
15
|
return {
|
|
19
|
-
createRenderer: () =>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
createRenderer: () => {
|
|
17
|
+
const renderer = new THREE.WebGLRenderer({
|
|
18
|
+
canvas,
|
|
19
|
+
antialias: true
|
|
20
|
+
});
|
|
21
|
+
return {
|
|
22
|
+
renderer,
|
|
23
|
+
compositor: renderer
|
|
24
|
+
};
|
|
25
|
+
},
|
|
23
26
|
requestFrame: (callback) => view.requestAnimationFrame(callback),
|
|
24
27
|
cancelFrame: (handle) => view.cancelAnimationFrame(handle),
|
|
25
28
|
size: () => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAutoMovieInspectorCanvasHost.mjs","names":[],"sources":["../../src/inspector/createAutoMovieInspectorCanvasHost.ts"],"sourcesContent":["import * as THREE from \"three\";\n\nimport type { IAutoMovieInspectorSceneHost } from \"./IAutoMovieInspectorSceneHost.js\";\n\n/**\n * The browser's scene host for one canvas: a `WebGLRenderer` drawing into it
|
|
1
|
+
{"version":3,"file":"createAutoMovieInspectorCanvasHost.mjs","names":[],"sources":["../../src/inspector/createAutoMovieInspectorCanvasHost.ts"],"sourcesContent":["import * as THREE from \"three\";\n\nimport type { IAutoMovieInspectorSceneHost } from \"./IAutoMovieInspectorSceneHost.js\";\n\n/**\n * The browser's scene host for one canvas: a `WebGLRenderer` drawing into it,\n * the window's animation frames, and the canvas's layout size with the device\n * pixel ratio.\n *\n * Each `createRenderer` call makes a new renderer on the same canvas, which\n * reuses the canvas's context, so a mount after a dispose draws; the mount\n * disposes each renderer without losing the context. A canvas that has no\n * layout size yet reports zero, and the mount skips drawing until it has one.\n */\nexport function createAutoMovieInspectorCanvasHost(\n canvas: HTMLCanvasElement,\n): IAutoMovieInspectorSceneHost {\n const view: Window = canvas.ownerDocument.defaultView ?? window;\n return {\n createRenderer: (): IAutoMovieInspectorSceneHost.ICreated => {\n const renderer: THREE.WebGLRenderer = new THREE.WebGLRenderer({\n canvas,\n antialias: true,\n });\n return { renderer, compositor: renderer };\n },\n requestFrame: (callback: (nowMs: number) => void): number =>\n view.requestAnimationFrame(callback),\n cancelFrame: (handle: number): void => view.cancelAnimationFrame(handle),\n size: (): IAutoMovieInspectorSceneHost.ISize => ({\n width: canvas.clientWidth,\n height: canvas.clientHeight,\n pixelRatio: view.devicePixelRatio,\n }),\n };\n}\n"],"mappings":";;;;;;;;;;;;AAcA,SAAgB,mCACd,QAC8B;CAC9B,MAAM,OAAe,OAAO,cAAc,eAAe;CACzD,OAAO;EACL,sBAA6D;GAC3D,MAAM,WAAgC,IAAI,MAAM,cAAc;IAC5D;IACA,WAAW;GACb,CAAC;GACD,OAAO;IAAE;IAAU,YAAY;GAAS;EAC1C;EACA,eAAe,aACb,KAAK,sBAAsB,QAAQ;EACrC,cAAc,WAAyB,KAAK,qBAAqB,MAAM;EACvE,aAAiD;GAC/C,OAAO,OAAO;GACd,QAAQ,OAAO;GACf,YAAY,KAAK;EACnB;CACF;AACF"}
|
|
@@ -2,14 +2,8 @@ import type { IAutoMovieInspectorState } from "./IAutoMovieInspectorState.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* The inspector's first state, read from the address text it opens with.
|
|
4
4
|
*
|
|
5
|
-
* The text is applied as a `text` edit of the request the empty address names,
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* @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.
|
|
9
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Read the empty address, then reduce the given text onto it.
|
|
10
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No default request is written here; the grammar's empty reading supplies it.
|
|
11
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two readings, linear in the text's length.
|
|
12
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Called once per inspector, as `useReducer`'s initializer.
|
|
13
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh state and keeps nothing.
|
|
5
|
+
* The text is applied as a `text` edit of the request the empty address names,
|
|
6
|
+
* which asks for nothing, so a refused address opens on that request with the
|
|
7
|
+
* refusal shown and the page still draws.
|
|
14
8
|
*/
|
|
15
9
|
export declare function createAutoMovieInspectorState(text: string): IAutoMovieInspectorState;
|
|
@@ -6,15 +6,9 @@ const reduceAutoMovieInspectorState_js_1 = require("./reduceAutoMovieInspectorSt
|
|
|
6
6
|
/**
|
|
7
7
|
* The inspector's first state, read from the address text it opens with.
|
|
8
8
|
*
|
|
9
|
-
* The text is applied as a `text` edit of the request the empty address names,
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* @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.
|
|
13
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Read the empty address, then reduce the given text onto it.
|
|
14
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No default request is written here; the grammar's empty reading supplies it.
|
|
15
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two readings, linear in the text's length.
|
|
16
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Called once per inspector, as `useReducer`'s initializer.
|
|
17
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh state and keeps nothing.
|
|
9
|
+
* The text is applied as a `text` edit of the request the empty address names,
|
|
10
|
+
* which asks for nothing, so a refused address opens on that request with the
|
|
11
|
+
* refusal shown and the page still draws.
|
|
18
12
|
*/
|
|
19
13
|
function createAutoMovieInspectorState(text) {
|
|
20
14
|
return (0, reduceAutoMovieInspectorState_js_1.reduceAutoMovieInspectorState)({ request: (0, readAutoMovieInspectorAddress_js_1.readAutoMovieInspectorAddress)(""), error: null }, { type: "text", text });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAutoMovieInspectorState.js","sourceRoot":"","sources":["../../src/inspector/createAutoMovieInspectorState.ts"],"names":[],"mappings":";;;AACA,yFAAmF;AACnF,yFAAmF;AAEnF
|
|
1
|
+
{"version":3,"file":"createAutoMovieInspectorState.js","sourceRoot":"","sources":["../../src/inspector/createAutoMovieInspectorState.ts"],"names":[],"mappings":";;;AACA,yFAAmF;AACnF,yFAAmF;AAEnF;;;;;;GAMG;AACH,uCACE,IAAY;IAEZ,OAAO,IAAA,gEAA6B,EAClC,EAAE,OAAO,EAAE,IAAA,gEAA6B,EAAC,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAC3D,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CACvB,CAAC;AACJ,CAAC"}
|
|
@@ -4,15 +4,9 @@ import { reduceAutoMovieInspectorState } from "./reduceAutoMovieInspectorState.m
|
|
|
4
4
|
/**
|
|
5
5
|
* The inspector's first state, read from the address text it opens with.
|
|
6
6
|
*
|
|
7
|
-
* The text is applied as a `text` edit of the request the empty address names,
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* @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.
|
|
11
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Read the empty address, then reduce the given text onto it.
|
|
12
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No default request is written here; the grammar's empty reading supplies it.
|
|
13
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two readings, linear in the text's length.
|
|
14
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Called once per inspector, as `useReducer`'s initializer.
|
|
15
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh state and keeps nothing.
|
|
7
|
+
* The text is applied as a `text` edit of the request the empty address names,
|
|
8
|
+
* which asks for nothing, so a refused address opens on that request with the
|
|
9
|
+
* refusal shown and the page still draws.
|
|
16
10
|
*/
|
|
17
11
|
function createAutoMovieInspectorState(text) {
|
|
18
12
|
return reduceAutoMovieInspectorState({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAutoMovieInspectorState.mjs","names":[],"sources":["../../src/inspector/createAutoMovieInspectorState.ts"],"sourcesContent":["import type { IAutoMovieInspectorState } from \"./IAutoMovieInspectorState.js\";\nimport { readAutoMovieInspectorAddress } from \"./readAutoMovieInspectorAddress.js\";\nimport { reduceAutoMovieInspectorState } from \"./reduceAutoMovieInspectorState.js\";\n\n/**\n * The inspector's first state, read from the address text it opens with.\n *\n * The text is applied as a `text` edit of the request the empty address names
|
|
1
|
+
{"version":3,"file":"createAutoMovieInspectorState.mjs","names":[],"sources":["../../src/inspector/createAutoMovieInspectorState.ts"],"sourcesContent":["import type { IAutoMovieInspectorState } from \"./IAutoMovieInspectorState.js\";\nimport { readAutoMovieInspectorAddress } from \"./readAutoMovieInspectorAddress.js\";\nimport { reduceAutoMovieInspectorState } from \"./reduceAutoMovieInspectorState.js\";\n\n/**\n * The inspector's first state, read from the address text it opens with.\n *\n * The text is applied as a `text` edit of the request the empty address names,\n * which asks for nothing, so a refused address opens on that request with the\n * refusal shown and the page still draws.\n */\nexport function createAutoMovieInspectorState(\n text: string,\n): IAutoMovieInspectorState {\n return reduceAutoMovieInspectorState(\n { request: readAutoMovieInspectorAddress(\"\"), error: null },\n { type: \"text\", text },\n );\n}\n"],"mappings":";;;;;;;;;;AAWA,SAAgB,8BACd,MAC0B;CAC1B,OAAO,8BACL;EAAE,SAAS,8BAA8B,EAAE;EAAG,OAAO;CAAK,GAC1D;EAAE,MAAM;EAAQ;CAAK,CACvB;AACF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
|
|
2
|
+
/**
|
|
3
|
+
* The first second a request draws: its first explicit second, or the start of
|
|
4
|
+
* its sampling.
|
|
5
|
+
*/
|
|
6
|
+
export declare function firstAutoMovieInspectorSecond(request: Pick<IAutoMovieCapturePlanRequest, "sampling">): number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.firstAutoMovieInspectorSecond = firstAutoMovieInspectorSecond;
|
|
4
|
+
/**
|
|
5
|
+
* The first second a request draws: its first explicit second, or the start of
|
|
6
|
+
* its sampling.
|
|
7
|
+
*/
|
|
8
|
+
function firstAutoMovieInspectorSecond(request) {
|
|
9
|
+
return request.sampling.kind === "at"
|
|
10
|
+
? request.sampling.seconds[0]
|
|
11
|
+
: request.sampling.from;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=firstAutoMovieInspectorSecond.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firstAutoMovieInspectorSecond.js","sourceRoot":"","sources":["../../src/inspector/firstAutoMovieInspectorSecond.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACH,uCACE,OAAuD;IAEvD,OAAO,OAAO,CAAC,QAAQ,CAAC,IAAI,KAAK,IAAI;QACnC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAE;QAC9B,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC;AAC5B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// src/inspector/firstAutoMovieInspectorSecond.ts
|
|
2
|
+
/**
|
|
3
|
+
* The first second a request draws: its first explicit second, or the start of
|
|
4
|
+
* its sampling.
|
|
5
|
+
*/
|
|
6
|
+
function firstAutoMovieInspectorSecond(request) {
|
|
7
|
+
return request.sampling.kind === "at" ? request.sampling.seconds[0] : request.sampling.from;
|
|
8
|
+
}
|
|
9
|
+
export { firstAutoMovieInspectorSecond };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=firstAutoMovieInspectorSecond.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firstAutoMovieInspectorSecond.mjs","names":[],"sources":["../../src/inspector/firstAutoMovieInspectorSecond.ts"],"sourcesContent":["import type { IAutoMovieCapturePlanRequest } from \"@automovie/interface\";\n\n/**\n * The first second a request draws: its first explicit second, or the start of\n * its sampling.\n */\nexport function firstAutoMovieInspectorSecond(\n request: Pick<IAutoMovieCapturePlanRequest, \"sampling\">,\n): number {\n return request.sampling.kind === \"at\"\n ? request.sampling.seconds[0]!\n : request.sampling.from;\n}\n"],"mappings":";;;;;AAMA,SAAgB,8BACd,SACQ;CACR,OAAO,QAAQ,SAAS,SAAS,OAC7B,QAAQ,SAAS,QAAQ,KACzB,QAAQ,SAAS;AACvB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IAutoMovieInspectorLive } from "./IAutoMovieInspectorLive.js";
|
|
2
|
+
import type { IAutoMovieInspectorSceneHost } from "./IAutoMovieInspectorSceneHost.js";
|
|
3
|
+
/**
|
|
4
|
+
* Follow the host's drawing size: when every side and the pixel ratio are
|
|
5
|
+
* positive and finite and differ from the size the renderer has, resize the
|
|
6
|
+
* renderer's drawing buffer, leaving the canvas's layout to the page, and mark
|
|
7
|
+
* the mount for a redraw.
|
|
8
|
+
*
|
|
9
|
+
* @returns Whether the size can be drawn at.
|
|
10
|
+
*/
|
|
11
|
+
export declare function followAutoMovieInspectorSize(now: IAutoMovieInspectorLive, size: IAutoMovieInspectorSceneHost.ISize): boolean;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.followAutoMovieInspectorSize = followAutoMovieInspectorSize;
|
|
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
|
+
function followAutoMovieInspectorSize(now, size) {
|
|
13
|
+
const drawable = [size.width, size.height, size.pixelRatio].every((value) => value > 0);
|
|
14
|
+
if (drawable &&
|
|
15
|
+
(now.size === undefined ||
|
|
16
|
+
now.size.width !== size.width ||
|
|
17
|
+
now.size.height !== size.height ||
|
|
18
|
+
now.size.pixelRatio !== size.pixelRatio)) {
|
|
19
|
+
now.renderer.setPixelRatio(size.pixelRatio);
|
|
20
|
+
now.renderer.setSize(size.width, size.height, false);
|
|
21
|
+
now.size = size;
|
|
22
|
+
now.dirty = true;
|
|
23
|
+
}
|
|
24
|
+
return drawable;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=followAutoMovieInspectorSize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"followAutoMovieInspectorSize.js","sourceRoot":"","sources":["../../src/inspector/followAutoMovieInspectorSize.ts"],"names":[],"mappings":";;;AAGA;;;;;;;GAOG;AACH,sCACE,GAA4B,EAC5B,IAAwC;IAExC,MAAM,QAAQ,GAAY,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,KAAK,CACxE,CAAC,KAAa,EAAW,EAAE,CAAC,KAAK,GAAG,CAAC,CACtC,CAAC;IACF,IACE,QAAQ;QACR,CAAC,GAAG,CAAC,IAAI,KAAK,SAAS;YACrB,GAAG,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK;YAC7B,GAAG,CAAC,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM;YAC/B,GAAG,CAAC,IAAI,CAAC,UAAU,KAAK,IAAI,CAAC,UAAU,CAAC,EAC1C,CAAC;QACD,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC5C,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QACrD,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC;QAChB,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC;IACnB,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// src/inspector/followAutoMovieInspectorSize.ts
|
|
2
|
+
/**
|
|
3
|
+
* Follow the host's drawing size: when every side and the pixel ratio are
|
|
4
|
+
* positive and finite and differ from the size the renderer has, resize the
|
|
5
|
+
* renderer's drawing buffer, leaving the canvas's layout to the page, and mark
|
|
6
|
+
* the mount for a redraw.
|
|
7
|
+
*
|
|
8
|
+
* @returns Whether the size can be drawn at.
|
|
9
|
+
*/
|
|
10
|
+
function followAutoMovieInspectorSize(now, size) {
|
|
11
|
+
const drawable = [
|
|
12
|
+
size.width,
|
|
13
|
+
size.height,
|
|
14
|
+
size.pixelRatio
|
|
15
|
+
].every((value) => value > 0);
|
|
16
|
+
if (drawable && (now.size === void 0 || now.size.width !== size.width || now.size.height !== size.height || now.size.pixelRatio !== size.pixelRatio)) {
|
|
17
|
+
now.renderer.setPixelRatio(size.pixelRatio);
|
|
18
|
+
now.renderer.setSize(size.width, size.height, false);
|
|
19
|
+
now.size = size;
|
|
20
|
+
now.dirty = true;
|
|
21
|
+
}
|
|
22
|
+
return drawable;
|
|
23
|
+
}
|
|
24
|
+
export { followAutoMovieInspectorSize };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=followAutoMovieInspectorSize.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"followAutoMovieInspectorSize.mjs","names":[],"sources":["../../src/inspector/followAutoMovieInspectorSize.ts"],"sourcesContent":["import type { IAutoMovieInspectorLive } from \"./IAutoMovieInspectorLive.js\";\nimport type { IAutoMovieInspectorSceneHost } from \"./IAutoMovieInspectorSceneHost.js\";\n\n/**\n * Follow the host's drawing size: when every side and the pixel ratio are\n * positive and finite and differ from the size the renderer has, resize the\n * renderer's drawing buffer, leaving the canvas's layout to the page, and mark\n * the mount for a redraw.\n *\n * @returns Whether the size can be drawn at.\n */\nexport function followAutoMovieInspectorSize(\n now: IAutoMovieInspectorLive,\n size: IAutoMovieInspectorSceneHost.ISize,\n): boolean {\n const drawable: boolean = [size.width, size.height, size.pixelRatio].every(\n (value: number): boolean => value > 0,\n );\n if (\n drawable &&\n (now.size === undefined ||\n now.size.width !== size.width ||\n now.size.height !== size.height ||\n now.size.pixelRatio !== size.pixelRatio)\n ) {\n now.renderer.setPixelRatio(size.pixelRatio);\n now.renderer.setSize(size.width, size.height, false);\n now.size = size;\n now.dirty = true;\n }\n return drawable;\n}\n"],"mappings":";;;;;;;;;AAWA,SAAgB,6BACd,KACA,MACS;CACT,MAAM,WAAoB;EAAC,KAAK;EAAO,KAAK;EAAQ,KAAK;CAAU,CAAC,CAAC,OAClE,UAA2B,QAAQ,CACtC;CACA,IACE,aACC,IAAI,SAAS,KAAA,KACZ,IAAI,KAAK,UAAU,KAAK,SACxB,IAAI,KAAK,WAAW,KAAK,UACzB,IAAI,KAAK,eAAe,KAAK,aAC/B;EACA,IAAI,SAAS,cAAc,KAAK,UAAU;EAC1C,IAAI,SAAS,QAAQ,KAAK,OAAO,KAAK,QAAQ,KAAK;EACnD,IAAI,OAAO;EACX,IAAI,QAAQ;CACd;CACA,OAAO;AACT"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
|
|
2
2
|
/**
|
|
3
|
-
* Write a request as the query text of an address, without the leading `?`, so
|
|
3
|
+
* Write a request as the query text of an address, without the leading `?`, so
|
|
4
|
+
* the address repeats the request and `readAutoMovieInspectorAddress` reads it
|
|
5
|
+
* back equal.
|
|
4
6
|
*
|
|
5
|
-
* Keys and values come from `formatAutoMovieCapturePlanRequest`, in its order
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* @
|
|
12
|
-
*
|
|
13
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh string and keeps nothing.
|
|
7
|
+
* Keys and values come from `formatAutoMovieCapturePlanRequest`, in its order
|
|
8
|
+
* and with absent values left out, so the request that asks for nothing is the
|
|
9
|
+
* empty text. Each key and value is escaped by `encodeURIComponent`, then the
|
|
10
|
+
* separators `,`, `:`, `;`, `/`, `@` and `=` are put back, because a query may
|
|
11
|
+
* hold them as they are and `URLSearchParams` reads them unchanged (a pair
|
|
12
|
+
* splits at its first `=`, and no key holds one), so
|
|
13
|
+
* `parts=hero/torso&views=front@focus=hero&color=hero=ff8800` stays readable. A
|
|
14
|
+
* key whose value is empty is written bare.
|
|
14
15
|
*/
|
|
15
16
|
export declare function formatAutoMovieInspectorAddress(request: IAutoMovieCapturePlanRequest): string;
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.formatAutoMovieInspectorAddress = formatAutoMovieInspectorAddress;
|
|
4
4
|
const render_1 = require("@automovie/render");
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Characters the grammar writes that a query keeps readable: list, view, path,
|
|
7
|
+
* focus, colour pair and cut separators.
|
|
8
|
+
*/
|
|
6
9
|
const READABLE = new Map([
|
|
7
10
|
["%2C", ","],
|
|
8
11
|
["%3A", ":"],
|
|
@@ -12,17 +15,18 @@ const READABLE = new Map([
|
|
|
12
15
|
["%3D", "="],
|
|
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
|
function formatAutoMovieInspectorAddress(request) {
|
|
28
32
|
return (0, render_1.formatAutoMovieCapturePlanRequest)(request)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatAutoMovieInspectorAddress.js","sourceRoot":"","sources":["../../src/inspector/formatAutoMovieInspectorAddress.ts"],"names":[],"mappings":";;;AACA,8CAAsE;AAEtE
|
|
1
|
+
{"version":3,"file":"formatAutoMovieInspectorAddress.js","sourceRoot":"","sources":["../../src/inspector/formatAutoMovieInspectorAddress.ts"],"names":[],"mappings":";;;AACA,8CAAsE;AAEtE;;;GAGG;AACH,MAAM,QAAQ,GAAgC,IAAI,GAAG,CAAiB;IACpE,CAAC,KAAK,EAAE,GAAG,CAAC;IACZ,CAAC,KAAK,EAAE,GAAG,CAAC;IACZ,CAAC,KAAK,EAAE,GAAG,CAAC;IACZ,CAAC,KAAK,EAAE,GAAG,CAAC;IACZ,CAAC,KAAK,EAAE,GAAG,CAAC;IACZ,CAAC,KAAK,EAAE,GAAG,CAAC;CACb,CAAC,CAAC;AAEH;;;;;;;;;;;;;GAaG;AACH,yCACE,OAAqC;IAErC,OAAO,IAAA,0CAAiC,EAAC,OAAO,CAAC;SAC9C,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAA+B,EAAU,EAAE,CAC1D,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,CAC/D;SACA,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC;AAED,kEAAkE;AAClE,SAAS,MAAM,CAAC,IAAY;IAC1B,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC,OAAO,CACrC,2BAA2B,EAC3B,CAAC,IAAY,EAAU,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAE,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { formatAutoMovieCapturePlanRequest } from "@automovie/render";
|
|
2
2
|
// src/inspector/formatAutoMovieInspectorAddress.ts
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Characters the grammar writes that a query keeps readable: list, view, path,
|
|
5
|
+
* focus, colour pair and cut separators.
|
|
6
|
+
*/
|
|
4
7
|
const READABLE = /* @__PURE__ */ new Map([
|
|
5
8
|
["%2C", ","],
|
|
6
9
|
["%3A", ":"],
|
|
@@ -10,17 +13,18 @@ const READABLE = /* @__PURE__ */ new Map([
|
|
|
10
13
|
["%3D", "="]
|
|
11
14
|
]);
|
|
12
15
|
/**
|
|
13
|
-
* Write a request as the query text of an address, without the leading `?`, so
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
+
* Write a request as the query text of an address, without the leading `?`, so
|
|
17
|
+
* the address repeats the request and `readAutoMovieInspectorAddress` reads it
|
|
18
|
+
* back equal.
|
|
16
19
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* @
|
|
20
|
+
* Keys and values come from `formatAutoMovieCapturePlanRequest`, in its order
|
|
21
|
+
* and with absent values left out, so the request that asks for nothing is the
|
|
22
|
+
* empty text. Each key and value is escaped by `encodeURIComponent`, then the
|
|
23
|
+
* separators `,`, `:`, `;`, `/`, `@` and `=` are put back, because a query may
|
|
24
|
+
* hold them as they are and `URLSearchParams` reads them unchanged (a pair
|
|
25
|
+
* splits at its first `=`, and no key holds one), so
|
|
26
|
+
* `parts=hero/torso&views=front@focus=hero&color=hero=ff8800` stays readable. A
|
|
27
|
+
* key whose value is empty is written bare.
|
|
24
28
|
*/
|
|
25
29
|
function formatAutoMovieInspectorAddress(request) {
|
|
26
30
|
return formatAutoMovieCapturePlanRequest(request).map(([key, value]) => value === "" ? escape(key) : `${escape(key)}=${escape(value)}`).join("&");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatAutoMovieInspectorAddress.mjs","names":[],"sources":["../../src/inspector/formatAutoMovieInspectorAddress.ts"],"sourcesContent":["import type { IAutoMovieCapturePlanRequest } from \"@automovie/interface\";\nimport { formatAutoMovieCapturePlanRequest } from \"@automovie/render\";\n\n
|
|
1
|
+
{"version":3,"file":"formatAutoMovieInspectorAddress.mjs","names":[],"sources":["../../src/inspector/formatAutoMovieInspectorAddress.ts"],"sourcesContent":["import type { IAutoMovieCapturePlanRequest } from \"@automovie/interface\";\nimport { formatAutoMovieCapturePlanRequest } from \"@automovie/render\";\n\n/**\n * Characters the grammar writes that a query keeps readable: list, view, path,\n * focus, colour pair and cut separators.\n */\nconst READABLE: ReadonlyMap<string, string> = new Map<string, string>([\n [\"%2C\", \",\"],\n [\"%3A\", \":\"],\n [\"%3B\", \";\"],\n [\"%2F\", \"/\"],\n [\"%40\", \"@\"],\n [\"%3D\", \"=\"],\n]);\n\n/**\n * Write a request as the query text of an address, without the leading `?`, so\n * the address repeats the request and `readAutoMovieInspectorAddress` reads it\n * back equal.\n *\n * Keys and values come from `formatAutoMovieCapturePlanRequest`, in its order\n * and with absent values left out, so the request that asks for nothing is the\n * empty text. Each key and value is escaped by `encodeURIComponent`, then the\n * separators `,`, `:`, `;`, `/`, `@` and `=` are put back, because a query may\n * hold them as they are and `URLSearchParams` reads them unchanged (a pair\n * splits at its first `=`, and no key holds one), so\n * `parts=hero/torso&views=front@focus=hero&color=hero=ff8800` stays readable. A\n * key whose value is empty is written bare.\n */\nexport function formatAutoMovieInspectorAddress(\n request: IAutoMovieCapturePlanRequest,\n): string {\n return formatAutoMovieCapturePlanRequest(request)\n .map(([key, value]: [key: string, value: string]): string =>\n value === \"\" ? escape(key) : `${escape(key)}=${escape(value)}`,\n )\n .join(\"&\");\n}\n\n/** `encodeURIComponent` with the readable separators put back. */\nfunction escape(text: string): string {\n return encodeURIComponent(text).replace(\n /%2C|%3A|%3B|%2F|%40|%3D/gu,\n (code: string): string => READABLE.get(code)!,\n );\n}\n"],"mappings":";;;;;;AAOA,MAAM,2BAAwC,IAAI,IAAoB;CACpE,CAAC,OAAO,GAAG;CACX,CAAC,OAAO,GAAG;CACX,CAAC,OAAO,GAAG;CACX,CAAC,OAAO,GAAG;CACX,CAAC,OAAO,GAAG;CACX,CAAC,OAAO,GAAG;AACb,CAAC;;;;;;;;;;;;;;;AAgBD,SAAgB,gCACd,SACQ;CACR,OAAO,kCAAkC,OAAO,CAAC,CAC9C,KAAK,CAAC,KAAK,WACV,UAAU,KAAK,OAAO,GAAG,IAAI,GAAG,OAAO,GAAG,EAAE,GAAG,OAAO,KAAK,GAC7D,CAAC,CACA,KAAK,GAAG;AACb;;AAGA,SAAS,OAAO,MAAsB;CACpC,OAAO,mBAAmB,IAAI,CAAC,CAAC,QAC9B,8BACC,SAAyB,SAAS,IAAI,IAAI,CAC7C;AACF"}
|
|
@@ -1,26 +1,32 @@
|
|
|
1
1
|
import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
|
|
2
2
|
/**
|
|
3
|
-
* Write
|
|
3
|
+
* Write a capture request's option tokens and a shell command to copy.
|
|
4
4
|
*
|
|
5
|
-
* Every pair `formatAutoMovieCapturePlanRequest` writes becomes one
|
|
5
|
+
* Every pair `formatAutoMovieCapturePlanRequest` writes becomes one
|
|
6
|
+
* `--<key>=<value>` option, in its order. The `=` form is used for every
|
|
7
|
+
* option, so a value that starts with `-`, such as an axis cut `-x:0.2`, or
|
|
8
|
+
* that is empty stays the option's value. `readAutoMovieCaptureArguments` reads
|
|
9
|
+
* the options back to the same named values, so the command's reader gives an
|
|
10
|
+
* equal request.
|
|
6
11
|
*
|
|
7
|
-
* The text
|
|
12
|
+
* The text starts with the host's executable and arguments, or with `automovie
|
|
13
|
+
* capture` when the caller formats the request alone. The host supplies any
|
|
14
|
+
* options required to reproduce its subject and inputs. POSIX is the default.
|
|
15
|
+
* PowerShell also quotes commas so a script such as `pnpm` receives each list
|
|
16
|
+
* or plane as one argument.
|
|
8
17
|
*
|
|
9
18
|
* ```ts
|
|
10
19
|
* const { text } = formatAutoMovieInspectorCommand(request);
|
|
11
20
|
* ```
|
|
12
|
-
*
|
|
13
|
-
* @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.
|
|
14
|
-
* @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.
|
|
15
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One map to options and one join with quoting.
|
|
16
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No option is written by hand, so the command offers exactly what the address carries.
|
|
17
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Linear in the length of the written request.
|
|
18
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure conversion of one request.
|
|
19
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns fresh strings and keeps nothing.
|
|
20
21
|
*/
|
|
21
|
-
export declare function formatAutoMovieInspectorCommand(request: IAutoMovieCapturePlanRequest
|
|
22
|
-
/**
|
|
22
|
+
export declare function formatAutoMovieInspectorCommand(request: IAutoMovieCapturePlanRequest, props?: {
|
|
23
|
+
/** Executable and fixed arguments supplied by the capture host. */
|
|
24
|
+
command?: readonly [string, ...string[]];
|
|
25
|
+
/** The shell syntax used for the copied text. Defaults to POSIX. */
|
|
26
|
+
shell?: "posix" | "powershell";
|
|
27
|
+
}): {
|
|
28
|
+
/** The request's own options, one argument each. */
|
|
23
29
|
options: string[];
|
|
24
|
-
/** The
|
|
30
|
+
/** The command with the host and request arguments quoted for the shell. */
|
|
25
31
|
text: string;
|
|
26
32
|
};
|