@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
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// src/inspector/releaseAutoMovieInspectorSteps.ts
|
|
2
|
+
/**
|
|
3
|
+
* Run every release step of an inspector mount in order, then throw every
|
|
4
|
+
* failure together: the one failure as it was, several as one `AggregateError`,
|
|
5
|
+
* so a failed step never keeps a later resource alive.
|
|
6
|
+
*/
|
|
7
|
+
function releaseAutoMovieInspectorSteps(steps) {
|
|
8
|
+
const failures = [];
|
|
9
|
+
for (const step of steps) try {
|
|
10
|
+
step();
|
|
11
|
+
} catch (error) {
|
|
12
|
+
failures.push(error);
|
|
13
|
+
}
|
|
14
|
+
if (failures.length === 1) throw failures[0];
|
|
15
|
+
if (failures.length > 1) throw new AggregateError(failures, "The inspector mount failed to release");
|
|
16
|
+
}
|
|
17
|
+
export { releaseAutoMovieInspectorSteps };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=releaseAutoMovieInspectorSteps.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"releaseAutoMovieInspectorSteps.mjs","names":[],"sources":["../../src/inspector/releaseAutoMovieInspectorSteps.ts"],"sourcesContent":["/**\n * Run every release step of an inspector mount in order, then throw every\n * failure together: the one failure as it was, several as one `AggregateError`,\n * so a failed step never keeps a later resource alive.\n */\nexport function releaseAutoMovieInspectorSteps(\n steps: readonly (() => void)[],\n): void {\n const failures: unknown[] = [];\n for (const step of steps)\n try {\n step();\n } catch (error) {\n failures.push(error);\n }\n if (failures.length === 1) throw failures[0];\n if (failures.length > 1)\n throw new AggregateError(failures, \"The inspector mount failed to release\");\n}\n"],"mappings":";;;;;;AAKA,SAAgB,+BACd,OACM;CACN,MAAM,WAAsB,CAAC;CAC7B,KAAK,MAAM,QAAQ,OACjB,IAAI;EACF,KAAK;CACP,SAAS,OAAO;EACd,SAAS,KAAK,KAAK;CACrB;CACF,IAAI,SAAS,WAAW,GAAG,MAAM,SAAS;CAC1C,IAAI,SAAS,SAAS,GACpB,MAAM,IAAI,eAAe,UAAU,uCAAuC;AAC9E"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IAutoMovieInspectionLegendEntry } from "@automovie/interface";
|
|
2
|
+
import type * as THREE from "three";
|
|
3
|
+
import type { IAutoMovieInspectorLive } from "./IAutoMovieInspectorLive.js";
|
|
4
|
+
import type { IAutoMovieInspectorScene } from "./IAutoMovieInspectorScene.js";
|
|
5
|
+
/**
|
|
6
|
+
* Report a painted picture's legend and labels: while paused, the inspection's
|
|
7
|
+
* legend with the witness legend and the labels placed on the picture's pixels;
|
|
8
|
+
* while playing, no labels, cleared once when the picture had some.
|
|
9
|
+
*/
|
|
10
|
+
export declare function reportAutoMovieInspectorLabels(props: {
|
|
11
|
+
/** The mount's live state, whose `labelled` flag this keeps. */
|
|
12
|
+
now: IAutoMovieInspectorLive;
|
|
13
|
+
/** Where the mount reports. */
|
|
14
|
+
report: IAutoMovieInspectorScene.IReport;
|
|
15
|
+
/** The camera the picture was drawn through. */
|
|
16
|
+
camera: THREE.Camera;
|
|
17
|
+
/** The witness cubes' legend of this picture. */
|
|
18
|
+
diagnosticLegend: readonly IAutoMovieInspectionLegendEntry[];
|
|
19
|
+
/** Whether the playhead is playing. */
|
|
20
|
+
playing: boolean;
|
|
21
|
+
}): void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reportAutoMovieInspectorLabels = reportAutoMovieInspectorLabels;
|
|
4
|
+
const placeAutoMovieInspectorLabels_js_1 = require("./placeAutoMovieInspectorLabels.js");
|
|
5
|
+
/**
|
|
6
|
+
* Report a painted picture's legend and labels: while paused, the inspection's
|
|
7
|
+
* legend with the witness legend and the labels placed on the picture's pixels;
|
|
8
|
+
* while playing, no labels, cleared once when the picture had some.
|
|
9
|
+
*/
|
|
10
|
+
function reportAutoMovieInspectorLabels(props) {
|
|
11
|
+
const { now, report } = props;
|
|
12
|
+
if (!props.playing) {
|
|
13
|
+
report.legend([...now.inspection.legend, ...props.diagnosticLegend]);
|
|
14
|
+
report.labels((0, placeAutoMovieInspectorLabels_js_1.placeAutoMovieInspectorLabels)({
|
|
15
|
+
inspection: now.inspection,
|
|
16
|
+
camera: props.camera,
|
|
17
|
+
raster: now.instance,
|
|
18
|
+
shown: now.size,
|
|
19
|
+
}));
|
|
20
|
+
now.labelled = true;
|
|
21
|
+
}
|
|
22
|
+
else if (now.labelled) {
|
|
23
|
+
report.labels({ labels: [], lineHeight: 0, dropped: 0 });
|
|
24
|
+
now.labelled = false;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=reportAutoMovieInspectorLabels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reportAutoMovieInspectorLabels.js","sourceRoot":"","sources":["../../src/inspector/reportAutoMovieInspectorLabels.ts"],"names":[],"mappings":";;;AAKA,yFAAmF;AAEnF;;;;GAIG;AACH,wCAA+C,KAe9C;IACC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAiB,KAAK,CAAC;IAC5C,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;QACnB,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC;QACrE,MAAM,CAAC,MAAM,CACX,IAAA,gEAA6B,EAAC;YAC5B,UAAU,EAAE,GAAG,CAAC,UAAU;YAC1B,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,MAAM,EAAE,GAAG,CAAC,QAAQ;YACpB,KAAK,EAAE,GAAG,CAAC,IAAK;SACjB,CAAC,CACH,CAAC;QACF,GAAG,CAAC,QAAQ,GAAG,IAAI,CAAC;IACtB,CAAC;SAAM,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;QACxB,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;QACzD,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;IACvB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { placeAutoMovieInspectorLabels } from "./placeAutoMovieInspectorLabels.mjs";
|
|
2
|
+
// src/inspector/reportAutoMovieInspectorLabels.ts
|
|
3
|
+
/**
|
|
4
|
+
* Report a painted picture's legend and labels: while paused, the inspection's
|
|
5
|
+
* legend with the witness legend and the labels placed on the picture's pixels;
|
|
6
|
+
* while playing, no labels, cleared once when the picture had some.
|
|
7
|
+
*/
|
|
8
|
+
function reportAutoMovieInspectorLabels(props) {
|
|
9
|
+
const { now, report } = props;
|
|
10
|
+
if (!props.playing) {
|
|
11
|
+
report.legend([...now.inspection.legend, ...props.diagnosticLegend]);
|
|
12
|
+
report.labels(placeAutoMovieInspectorLabels({
|
|
13
|
+
inspection: now.inspection,
|
|
14
|
+
camera: props.camera,
|
|
15
|
+
raster: now.instance,
|
|
16
|
+
shown: now.size
|
|
17
|
+
}));
|
|
18
|
+
now.labelled = true;
|
|
19
|
+
} else if (now.labelled) {
|
|
20
|
+
report.labels({
|
|
21
|
+
labels: [],
|
|
22
|
+
lineHeight: 0,
|
|
23
|
+
dropped: 0
|
|
24
|
+
});
|
|
25
|
+
now.labelled = false;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export { reportAutoMovieInspectorLabels };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=reportAutoMovieInspectorLabels.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reportAutoMovieInspectorLabels.mjs","names":[],"sources":["../../src/inspector/reportAutoMovieInspectorLabels.ts"],"sourcesContent":["import type { IAutoMovieInspectionLegendEntry } from \"@automovie/interface\";\nimport type * as THREE from \"three\";\n\nimport type { IAutoMovieInspectorLive } from \"./IAutoMovieInspectorLive.js\";\nimport type { IAutoMovieInspectorScene } from \"./IAutoMovieInspectorScene.js\";\nimport { placeAutoMovieInspectorLabels } from \"./placeAutoMovieInspectorLabels.js\";\n\n/**\n * Report a painted picture's legend and labels: while paused, the inspection's\n * legend with the witness legend and the labels placed on the picture's pixels;\n * while playing, no labels, cleared once when the picture had some.\n */\nexport function reportAutoMovieInspectorLabels(props: {\n /** The mount's live state, whose `labelled` flag this keeps. */\n now: IAutoMovieInspectorLive;\n\n /** Where the mount reports. */\n report: IAutoMovieInspectorScene.IReport;\n\n /** The camera the picture was drawn through. */\n camera: THREE.Camera;\n\n /** The witness cubes' legend of this picture. */\n diagnosticLegend: readonly IAutoMovieInspectionLegendEntry[];\n\n /** Whether the playhead is playing. */\n playing: boolean;\n}): void {\n const { now, report }: typeof props = props;\n if (!props.playing) {\n report.legend([...now.inspection.legend, ...props.diagnosticLegend]);\n report.labels(\n placeAutoMovieInspectorLabels({\n inspection: now.inspection,\n camera: props.camera,\n raster: now.instance,\n shown: now.size!,\n }),\n );\n now.labelled = true;\n } else if (now.labelled) {\n report.labels({ labels: [], lineHeight: 0, dropped: 0 });\n now.labelled = false;\n }\n}\n"],"mappings":";;;;;;;AAYA,SAAgB,+BAA+B,OAetC;CACP,MAAM,EAAE,KAAK,WAAyB;CACtC,IAAI,CAAC,MAAM,SAAS;EAClB,OAAO,OAAO,CAAC,GAAG,IAAI,WAAW,QAAQ,GAAG,MAAM,gBAAgB,CAAC;EACnE,OAAO,OACL,8BAA8B;GAC5B,YAAY,IAAI;GAChB,QAAQ,MAAM;GACd,QAAQ,IAAI;GACZ,OAAO,IAAI;EACb,CAAC,CACH;EACA,IAAI,WAAW;CACjB,OAAO,IAAI,IAAI,UAAU;EACvB,OAAO,OAAO;GAAE,QAAQ,CAAC;GAAG,YAAY;GAAG,SAAS;EAAE,CAAC;EACvD,IAAI,WAAW;CACjB;AACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type IAutoMovieDrawScene, type IAutoMovieInspectionHandle } from "@automovie/render";
|
|
2
|
+
import type * as THREE from "three";
|
|
3
|
+
/**
|
|
4
|
+
* The camera the inspector draws a placed second through: the request's view,
|
|
5
|
+
* written as `text`, resolved against the subject's delivery camera and named
|
|
6
|
+
* views at `seconds`, a named view with a focus framed on what the inspection
|
|
7
|
+
* selects.
|
|
8
|
+
*
|
|
9
|
+
* The delivery camera first takes the subject raster's aspect, as a capture of
|
|
10
|
+
* the subject sets it, so a view frames what a capture of the same view frames
|
|
11
|
+
* whatever the canvas's shape.
|
|
12
|
+
*/
|
|
13
|
+
export declare function resolveAutoMovieInspectorCamera(props: {
|
|
14
|
+
/** The created subject, placed at `seconds`. */
|
|
15
|
+
instance: IAutoMovieDrawScene;
|
|
16
|
+
/** The view's text, the request's first view. */
|
|
17
|
+
text: string;
|
|
18
|
+
/** The applied inspection, whose bounds frame a focused named view. */
|
|
19
|
+
inspection: IAutoMovieInspectionHandle;
|
|
20
|
+
/** The placed second. */
|
|
21
|
+
seconds: number;
|
|
22
|
+
}): THREE.Camera;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveAutoMovieInspectorCamera = resolveAutoMovieInspectorCamera;
|
|
4
|
+
const render_1 = require("@automovie/render");
|
|
5
|
+
/**
|
|
6
|
+
* The camera the inspector draws a placed second through: the request's view,
|
|
7
|
+
* written as `text`, resolved against the subject's delivery camera and named
|
|
8
|
+
* views at `seconds`, a named view with a focus framed on what the inspection
|
|
9
|
+
* selects.
|
|
10
|
+
*
|
|
11
|
+
* The delivery camera first takes the subject raster's aspect, as a capture of
|
|
12
|
+
* the subject sets it, so a view frames what a capture of the same view frames
|
|
13
|
+
* whatever the canvas's shape.
|
|
14
|
+
*/
|
|
15
|
+
function resolveAutoMovieInspectorCamera(props) {
|
|
16
|
+
const { instance, text } = props;
|
|
17
|
+
const aspect = instance.width / instance.height;
|
|
18
|
+
if (instance.camera.aspect !== aspect) {
|
|
19
|
+
instance.camera.aspect = aspect;
|
|
20
|
+
instance.camera.updateProjectionMatrix();
|
|
21
|
+
}
|
|
22
|
+
const view = (0, render_1.parseAutoMovieInspectionView)(text);
|
|
23
|
+
return (0, render_1.resolveAutoMovieInspectionView)({
|
|
24
|
+
view,
|
|
25
|
+
text,
|
|
26
|
+
bounds: view.type === "named" ? props.inspection.bounds(view.focus) : null,
|
|
27
|
+
camera: instance.camera,
|
|
28
|
+
...(instance.views === undefined ? {} : { views: instance.views }),
|
|
29
|
+
seconds: props.seconds,
|
|
30
|
+
width: instance.width,
|
|
31
|
+
height: instance.height,
|
|
32
|
+
}).camera;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=resolveAutoMovieInspectorCamera.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveAutoMovieInspectorCamera.js","sourceRoot":"","sources":["../../src/inspector/resolveAutoMovieInspectorCamera.ts"],"names":[],"mappings":";;;AACA,8CAK2B;AAG3B;;;;;;;;;GASG;AACH,yCAAgD,KAY/C;IACC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAiB,KAAK,CAAC;IAC/C,MAAM,MAAM,GAAW,QAAQ,CAAC,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC;IACxD,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;QACtC,QAAQ,CAAC,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;QAChC,QAAQ,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC;IAC3C,CAAC;IACD,MAAM,IAAI,GAA6B,IAAA,qCAA4B,EAAC,IAAI,CAAC,CAAC;IAC1E,OAAO,IAAA,uCAA8B,EAAC;QACpC,IAAI;QACJ,IAAI;QACJ,MAAM,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI;QAC1E,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,GAAG,CAAC,QAAQ,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC;QAClE,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,KAAK,EAAE,QAAQ,CAAC,KAAK;QACrB,MAAM,EAAE,QAAQ,CAAC,MAAM;KACxB,CAAC,CAAC,MAAM,CAAC;AACZ,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { parseAutoMovieInspectionView, resolveAutoMovieInspectionView } from "@automovie/render";
|
|
2
|
+
// src/inspector/resolveAutoMovieInspectorCamera.ts
|
|
3
|
+
/**
|
|
4
|
+
* The camera the inspector draws a placed second through: the request's view,
|
|
5
|
+
* written as `text`, resolved against the subject's delivery camera and named
|
|
6
|
+
* views at `seconds`, a named view with a focus framed on what the inspection
|
|
7
|
+
* selects.
|
|
8
|
+
*
|
|
9
|
+
* The delivery camera first takes the subject raster's aspect, as a capture of
|
|
10
|
+
* the subject sets it, so a view frames what a capture of the same view frames
|
|
11
|
+
* whatever the canvas's shape.
|
|
12
|
+
*/
|
|
13
|
+
function resolveAutoMovieInspectorCamera(props) {
|
|
14
|
+
const { instance, text } = props;
|
|
15
|
+
const aspect = instance.width / instance.height;
|
|
16
|
+
if (instance.camera.aspect !== aspect) {
|
|
17
|
+
instance.camera.aspect = aspect;
|
|
18
|
+
instance.camera.updateProjectionMatrix();
|
|
19
|
+
}
|
|
20
|
+
const view = parseAutoMovieInspectionView(text);
|
|
21
|
+
return resolveAutoMovieInspectionView({
|
|
22
|
+
view,
|
|
23
|
+
text,
|
|
24
|
+
bounds: view.type === "named" ? props.inspection.bounds(view.focus) : null,
|
|
25
|
+
camera: instance.camera,
|
|
26
|
+
...instance.views === void 0 ? {} : { views: instance.views },
|
|
27
|
+
seconds: props.seconds,
|
|
28
|
+
width: instance.width,
|
|
29
|
+
height: instance.height
|
|
30
|
+
}).camera;
|
|
31
|
+
}
|
|
32
|
+
export { resolveAutoMovieInspectorCamera };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=resolveAutoMovieInspectorCamera.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveAutoMovieInspectorCamera.mjs","names":[],"sources":["../../src/inspector/resolveAutoMovieInspectorCamera.ts"],"sourcesContent":["import type { IAutoMovieInspectionView } from \"@automovie/interface\";\nimport {\n type IAutoMovieDrawScene,\n type IAutoMovieInspectionHandle,\n parseAutoMovieInspectionView,\n resolveAutoMovieInspectionView,\n} from \"@automovie/render\";\nimport type * as THREE from \"three\";\n\n/**\n * The camera the inspector draws a placed second through: the request's view,\n * written as `text`, resolved against the subject's delivery camera and named\n * views at `seconds`, a named view with a focus framed on what the inspection\n * selects.\n *\n * The delivery camera first takes the subject raster's aspect, as a capture of\n * the subject sets it, so a view frames what a capture of the same view frames\n * whatever the canvas's shape.\n */\nexport function resolveAutoMovieInspectorCamera(props: {\n /** The created subject, placed at `seconds`. */\n instance: IAutoMovieDrawScene;\n\n /** The view's text, the request's first view. */\n text: string;\n\n /** The applied inspection, whose bounds frame a focused named view. */\n inspection: IAutoMovieInspectionHandle;\n\n /** The placed second. */\n seconds: number;\n}): THREE.Camera {\n const { instance, text }: typeof props = props;\n const aspect: number = instance.width / instance.height;\n if (instance.camera.aspect !== aspect) {\n instance.camera.aspect = aspect;\n instance.camera.updateProjectionMatrix();\n }\n const view: IAutoMovieInspectionView = parseAutoMovieInspectionView(text);\n return resolveAutoMovieInspectionView({\n view,\n text,\n bounds: view.type === \"named\" ? props.inspection.bounds(view.focus) : null,\n camera: instance.camera,\n ...(instance.views === undefined ? {} : { views: instance.views }),\n seconds: props.seconds,\n width: instance.width,\n height: instance.height,\n }).camera;\n}\n"],"mappings":";;;;;;;;;;;;AAmBA,SAAgB,gCAAgC,OAY/B;CACf,MAAM,EAAE,UAAU,SAAuB;CACzC,MAAM,SAAiB,SAAS,QAAQ,SAAS;CACjD,IAAI,SAAS,OAAO,WAAW,QAAQ;EACrC,SAAS,OAAO,SAAS;EACzB,SAAS,OAAO,uBAAuB;CACzC;CACA,MAAM,OAAiC,6BAA6B,IAAI;CACxE,OAAO,+BAA+B;EACpC;EACA;EACA,QAAQ,KAAK,SAAS,UAAU,MAAM,WAAW,OAAO,KAAK,KAAK,IAAI;EACtE,QAAQ,SAAS;EACjB,GAAI,SAAS,UAAU,KAAA,IAAY,CAAC,IAAI,EAAE,OAAO,SAAS,MAAM;EAChE,SAAS,MAAM;EACf,OAAO,SAAS;EAChB,QAAQ,SAAS;CACnB,CAAC,CAAC,CAAC;AACL"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IAutoMovieInspectionDiagnostics } from "@automovie/interface";
|
|
2
|
+
import type { AutoMovieInspectorPlayhead } from "./AutoMovieInspectorPlayhead.js";
|
|
3
|
+
import type { IAutoMovieInspectorAction } from "./IAutoMovieInspectorAction.js";
|
|
4
|
+
/**
|
|
5
|
+
* Stop the inspector at one finding's witness: move the playhead there, stop
|
|
6
|
+
* it, and locate the request there.
|
|
7
|
+
*
|
|
8
|
+
* Stopping playback makes the time readout write the stopped second into the
|
|
9
|
+
* request, so the playhead is moved to the witness before it stops: the stopped
|
|
10
|
+
* second and the located second are then the same, whichever edit the reducer
|
|
11
|
+
* receives last.
|
|
12
|
+
*
|
|
13
|
+
* @param props The witness, the drawn paths, the playhead and the request's
|
|
14
|
+
* dispatch.
|
|
15
|
+
*/
|
|
16
|
+
export declare function showAutoMovieInspectorFinding(props: {
|
|
17
|
+
/** The witness to show. */
|
|
18
|
+
observation: IAutoMovieInspectionDiagnostics.IObservation;
|
|
19
|
+
/** The identity paths the scene draws. */
|
|
20
|
+
paths: readonly string[];
|
|
21
|
+
/** The inspector's playhead. */
|
|
22
|
+
playhead: AutoMovieInspectorPlayhead;
|
|
23
|
+
/** Where the request edit goes. */
|
|
24
|
+
dispatch: (action: IAutoMovieInspectorAction) => void;
|
|
25
|
+
}): void;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.showAutoMovieInspectorFinding = showAutoMovieInspectorFinding;
|
|
4
|
+
const locateAutoMovieInspectorFinding_js_1 = require("./locateAutoMovieInspectorFinding.js");
|
|
5
|
+
/**
|
|
6
|
+
* Stop the inspector at one finding's witness: move the playhead there, stop
|
|
7
|
+
* it, and locate the request there.
|
|
8
|
+
*
|
|
9
|
+
* Stopping playback makes the time readout write the stopped second into the
|
|
10
|
+
* request, so the playhead is moved to the witness before it stops: the stopped
|
|
11
|
+
* second and the located second are then the same, whichever edit the reducer
|
|
12
|
+
* receives last.
|
|
13
|
+
*
|
|
14
|
+
* @param props The witness, the drawn paths, the playhead and the request's
|
|
15
|
+
* dispatch.
|
|
16
|
+
*/
|
|
17
|
+
function showAutoMovieInspectorFinding(props) {
|
|
18
|
+
const action = (0, locateAutoMovieInspectorFinding_js_1.locateAutoMovieInspectorFinding)(props.observation, props.paths);
|
|
19
|
+
props.playhead.seek(action.seconds);
|
|
20
|
+
props.playhead.pause();
|
|
21
|
+
props.dispatch({
|
|
22
|
+
...action,
|
|
23
|
+
seconds: props.playhead.getSnapshot().seconds,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=showAutoMovieInspectorFinding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"showAutoMovieInspectorFinding.js","sourceRoot":"","sources":["../../src/inspector/showAutoMovieInspectorFinding.ts"],"names":[],"mappings":";;;AAIA,6FAAuF;AAEvF;;;;;;;;;;;GAWG;AACH,uCAA8C,KAY7C;IACC,MAAM,MAAM,GACV,IAAA,oEAA+B,EAAC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAClE,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACpC,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;IACvB,KAAK,CAAC,QAAQ,CAAC;QACb,GAAG,MAAM;QACT,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,OAAO;KAC9C,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { locateAutoMovieInspectorFinding } from "./locateAutoMovieInspectorFinding.mjs";
|
|
2
|
+
// src/inspector/showAutoMovieInspectorFinding.ts
|
|
3
|
+
/**
|
|
4
|
+
* Stop the inspector at one finding's witness: move the playhead there, stop
|
|
5
|
+
* it, and locate the request there.
|
|
6
|
+
*
|
|
7
|
+
* Stopping playback makes the time readout write the stopped second into the
|
|
8
|
+
* request, so the playhead is moved to the witness before it stops: the stopped
|
|
9
|
+
* second and the located second are then the same, whichever edit the reducer
|
|
10
|
+
* receives last.
|
|
11
|
+
*
|
|
12
|
+
* @param props The witness, the drawn paths, the playhead and the request's
|
|
13
|
+
* dispatch.
|
|
14
|
+
*/
|
|
15
|
+
function showAutoMovieInspectorFinding(props) {
|
|
16
|
+
const action = locateAutoMovieInspectorFinding(props.observation, props.paths);
|
|
17
|
+
props.playhead.seek(action.seconds);
|
|
18
|
+
props.playhead.pause();
|
|
19
|
+
props.dispatch({
|
|
20
|
+
...action,
|
|
21
|
+
seconds: props.playhead.getSnapshot().seconds
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export { showAutoMovieInspectorFinding };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=showAutoMovieInspectorFinding.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"showAutoMovieInspectorFinding.mjs","names":[],"sources":["../../src/inspector/showAutoMovieInspectorFinding.ts"],"sourcesContent":["import type { IAutoMovieInspectionDiagnostics } from \"@automovie/interface\";\n\nimport type { AutoMovieInspectorPlayhead } from \"./AutoMovieInspectorPlayhead.js\";\nimport type { IAutoMovieInspectorAction } from \"./IAutoMovieInspectorAction.js\";\nimport { locateAutoMovieInspectorFinding } from \"./locateAutoMovieInspectorFinding.js\";\n\n/**\n * Stop the inspector at one finding's witness: move the playhead there, stop\n * it, and locate the request there.\n *\n * Stopping playback makes the time readout write the stopped second into the\n * request, so the playhead is moved to the witness before it stops: the stopped\n * second and the located second are then the same, whichever edit the reducer\n * receives last.\n *\n * @param props The witness, the drawn paths, the playhead and the request's\n * dispatch.\n */\nexport function showAutoMovieInspectorFinding(props: {\n /** The witness to show. */\n observation: IAutoMovieInspectionDiagnostics.IObservation;\n\n /** The identity paths the scene draws. */\n paths: readonly string[];\n\n /** The inspector's playhead. */\n playhead: AutoMovieInspectorPlayhead;\n\n /** Where the request edit goes. */\n dispatch: (action: IAutoMovieInspectorAction) => void;\n}): void {\n const action: IAutoMovieInspectorAction.ILocate =\n locateAutoMovieInspectorFinding(props.observation, props.paths);\n props.playhead.seek(action.seconds);\n props.playhead.pause();\n props.dispatch({\n ...action,\n seconds: props.playhead.getSnapshot().seconds,\n });\n}\n"],"mappings":";;;;;;;;;;;;;;AAkBA,SAAgB,8BAA8B,OAYrC;CACP,MAAM,SACJ,gCAAgC,MAAM,aAAa,MAAM,KAAK;CAChE,MAAM,SAAS,KAAK,OAAO,OAAO;CAClC,MAAM,SAAS,MAAM;CACrB,MAAM,SAAS;EACb,GAAG;EACH,SAAS,MAAM,SAAS,YAAY,CAAC,CAAC;CACxC,CAAC;AACH"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AutoMovieInspectorPlayhead } from "./AutoMovieInspectorPlayhead.js";
|
|
2
|
+
import type { IAutoMovieInspectorAction } from "./IAutoMovieInspectorAction.js";
|
|
3
|
+
/**
|
|
4
|
+
* The request edit a playhead change implies: when playback stops, by a pause
|
|
5
|
+
* or at the end, the stopped second becomes the request's.
|
|
6
|
+
*
|
|
7
|
+
* @param playing Whether the playhead played at the previous snapshot.
|
|
8
|
+
* @param snapshot The current snapshot.
|
|
9
|
+
* @returns The `time` edit for a stop, or null when playback did not stop.
|
|
10
|
+
*/
|
|
11
|
+
export declare function stopAutoMovieInspectorTime(playing: boolean, snapshot: AutoMovieInspectorPlayhead.ISnapshot): IAutoMovieInspectorAction.ITime | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stopAutoMovieInspectorTime = stopAutoMovieInspectorTime;
|
|
4
|
+
/**
|
|
5
|
+
* The request edit a playhead change implies: when playback stops, by a pause
|
|
6
|
+
* or at the end, the stopped second becomes the request's.
|
|
7
|
+
*
|
|
8
|
+
* @param playing Whether the playhead played at the previous snapshot.
|
|
9
|
+
* @param snapshot The current snapshot.
|
|
10
|
+
* @returns The `time` edit for a stop, or null when playback did not stop.
|
|
11
|
+
*/
|
|
12
|
+
function stopAutoMovieInspectorTime(playing, snapshot) {
|
|
13
|
+
return playing && !snapshot.playing
|
|
14
|
+
? { type: "time", seconds: snapshot.seconds }
|
|
15
|
+
: null;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=stopAutoMovieInspectorTime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stopAutoMovieInspectorTime.js","sourceRoot":"","sources":["../../src/inspector/stopAutoMovieInspectorTime.ts"],"names":[],"mappings":";;;AAGA;;;;;;;GAOG;AACH,oCACE,OAAgB,EAChB,QAA8C;IAE9C,OAAO,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO;QACjC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,OAAO,EAAE;QAC7C,CAAC,CAAC,IAAI,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/inspector/stopAutoMovieInspectorTime.ts
|
|
2
|
+
/**
|
|
3
|
+
* The request edit a playhead change implies: when playback stops, by a pause
|
|
4
|
+
* or at the end, the stopped second becomes the request's.
|
|
5
|
+
*
|
|
6
|
+
* @param playing Whether the playhead played at the previous snapshot.
|
|
7
|
+
* @param snapshot The current snapshot.
|
|
8
|
+
* @returns The `time` edit for a stop, or null when playback did not stop.
|
|
9
|
+
*/
|
|
10
|
+
function stopAutoMovieInspectorTime(playing, snapshot) {
|
|
11
|
+
return playing && !snapshot.playing ? {
|
|
12
|
+
type: "time",
|
|
13
|
+
seconds: snapshot.seconds
|
|
14
|
+
} : null;
|
|
15
|
+
}
|
|
16
|
+
export { stopAutoMovieInspectorTime };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=stopAutoMovieInspectorTime.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stopAutoMovieInspectorTime.mjs","names":[],"sources":["../../src/inspector/stopAutoMovieInspectorTime.ts"],"sourcesContent":["import type { AutoMovieInspectorPlayhead } from \"./AutoMovieInspectorPlayhead.js\";\nimport type { IAutoMovieInspectorAction } from \"./IAutoMovieInspectorAction.js\";\n\n/**\n * The request edit a playhead change implies: when playback stops, by a pause\n * or at the end, the stopped second becomes the request's.\n *\n * @param playing Whether the playhead played at the previous snapshot.\n * @param snapshot The current snapshot.\n * @returns The `time` edit for a stop, or null when playback did not stop.\n */\nexport function stopAutoMovieInspectorTime(\n playing: boolean,\n snapshot: AutoMovieInspectorPlayhead.ISnapshot,\n): IAutoMovieInspectorAction.ITime | null {\n return playing && !snapshot.playing\n ? { type: \"time\", seconds: snapshot.seconds }\n : null;\n}\n"],"mappings":";;;;;;;;;AAWA,SAAgB,2BACd,SACA,UACwC;CACxC,OAAO,WAAW,CAAC,SAAS,UACxB;EAAE,MAAM;EAAQ,SAAS,SAAS;CAAQ,IAC1C;AACN"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IAutoMovieCapturePlanRequest } from "@automovie/interface";
|
|
2
|
+
/**
|
|
3
|
+
* A request's inspection as the text it writes: the identity by which the
|
|
4
|
+
* inspector reuses an applied inspection instead of applying it again.
|
|
5
|
+
*/
|
|
6
|
+
export declare function writeAutoMovieInspectorInspection(request: Pick<IAutoMovieCapturePlanRequest, "inspection">): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.writeAutoMovieInspectorInspection = writeAutoMovieInspectorInspection;
|
|
4
|
+
const render_1 = require("@automovie/render");
|
|
5
|
+
/**
|
|
6
|
+
* A request's inspection as the text it writes: the identity by which the
|
|
7
|
+
* inspector reuses an applied inspection instead of applying it again.
|
|
8
|
+
*/
|
|
9
|
+
function writeAutoMovieInspectorInspection(request) {
|
|
10
|
+
return JSON.stringify((0, render_1.formatAutoMovieInspectionRequest)(request.inspection));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=writeAutoMovieInspectorInspection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeAutoMovieInspectorInspection.js","sourceRoot":"","sources":["../../src/inspector/writeAutoMovieInspectorInspection.ts"],"names":[],"mappings":";;;AACA,8CAAqE;AAErE;;;GAGG;AACH,2CACE,OAAyD;IAEzD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAA,yCAAgC,EAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { formatAutoMovieInspectionRequest } from "@automovie/render";
|
|
2
|
+
// src/inspector/writeAutoMovieInspectorInspection.ts
|
|
3
|
+
/**
|
|
4
|
+
* A request's inspection as the text it writes: the identity by which the
|
|
5
|
+
* inspector reuses an applied inspection instead of applying it again.
|
|
6
|
+
*/
|
|
7
|
+
function writeAutoMovieInspectorInspection(request) {
|
|
8
|
+
return JSON.stringify(formatAutoMovieInspectionRequest(request.inspection));
|
|
9
|
+
}
|
|
10
|
+
export { writeAutoMovieInspectorInspection };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=writeAutoMovieInspectorInspection.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeAutoMovieInspectorInspection.mjs","names":[],"sources":["../../src/inspector/writeAutoMovieInspectorInspection.ts"],"sourcesContent":["import type { IAutoMovieCapturePlanRequest } from \"@automovie/interface\";\nimport { formatAutoMovieInspectionRequest } from \"@automovie/render\";\n\n/**\n * A request's inspection as the text it writes: the identity by which the\n * inspector reuses an applied inspection instead of applying it again.\n */\nexport function writeAutoMovieInspectorInspection(\n request: Pick<IAutoMovieCapturePlanRequest, \"inspection\">,\n): string {\n return JSON.stringify(formatAutoMovieInspectionRequest(request.inspection));\n}\n"],"mappings":";;;;;;AAOA,SAAgB,kCACd,SACQ;CACR,OAAO,KAAK,UAAU,iCAAiC,QAAQ,UAAU,CAAC;AAC5E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./applyCaptureCanvasSize.js";
|
|
2
|
+
export * from "./inspector/assertAutoMovieInspectorRaster.js";
|
|
3
|
+
export * from "./inspector/changesAutoMovieObservedScene.js";
|
|
4
|
+
export * from "./inspector/firstAutoMovieInspectorSecond.js";
|
|
5
|
+
export * from "./inspector/messageOfAutoMovieInspectorError.js";
|
|
6
|
+
export * from "./inspector/readsAutoMovieInspectorPlacedScene.js";
|
|
7
|
+
export * from "./inspector/writeAutoMovieInspectorInspection.js";
|
package/lib/internal.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// The applied-inspection and canvas helpers the test programme reads directly. They are not part of the public surface: a host reaches them through the inspector and the mount of the main entry.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(require("./applyCaptureCanvasSize.js"), exports);
|
|
19
|
+
__exportStar(require("./inspector/assertAutoMovieInspectorRaster.js"), exports);
|
|
20
|
+
__exportStar(require("./inspector/changesAutoMovieObservedScene.js"), exports);
|
|
21
|
+
__exportStar(require("./inspector/firstAutoMovieInspectorSecond.js"), exports);
|
|
22
|
+
__exportStar(require("./inspector/messageOfAutoMovieInspectorError.js"), exports);
|
|
23
|
+
__exportStar(require("./inspector/readsAutoMovieInspectorPlacedScene.js"), exports);
|
|
24
|
+
__exportStar(require("./inspector/writeAutoMovieInspectorInspection.js"), exports);
|
|
25
|
+
//# sourceMappingURL=internal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":";AAAA,mMAAmM;;;;;;;;;;;;;;;;AAEnM,8DAA4C;AAC5C,gFAA8D;AAC9D,+EAA6D;AAC7D,+EAA6D;AAC7D,kFAAgE;AAChE,oFAAkE;AAClE,mFAAiE"}
|
package/lib/internal.mjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { applyCaptureCanvasSize } from "./applyCaptureCanvasSize.mjs";
|
|
2
|
+
import { assertAutoMovieInspectorRaster } from "./inspector/assertAutoMovieInspectorRaster.mjs";
|
|
3
|
+
import { changesAutoMovieObservedScene } from "./inspector/changesAutoMovieObservedScene.mjs";
|
|
4
|
+
import { firstAutoMovieInspectorSecond } from "./inspector/firstAutoMovieInspectorSecond.mjs";
|
|
5
|
+
import { messageOfAutoMovieInspectorError } from "./inspector/messageOfAutoMovieInspectorError.mjs";
|
|
6
|
+
import { readsAutoMovieInspectorPlacedScene } from "./inspector/readsAutoMovieInspectorPlacedScene.mjs";
|
|
7
|
+
import { writeAutoMovieInspectorInspection } from "./inspector/writeAutoMovieInspectorInspection.mjs";
|
|
8
|
+
export { applyCaptureCanvasSize, assertAutoMovieInspectorRaster, changesAutoMovieObservedScene, firstAutoMovieInspectorSecond, messageOfAutoMovieInspectorError, readsAutoMovieInspectorPlacedScene, writeAutoMovieInspectorInspection };
|
package/lib/mountViewer.d.ts
CHANGED
|
@@ -4,17 +4,23 @@ import type { IMountViewerOptions } from "./IMountViewerOptions.js";
|
|
|
4
4
|
/** A synchronous producer may report a handled draw or discard its return. */
|
|
5
5
|
type ViewerFrameProducer = ((elapsedSeconds: number) => boolean) | ((elapsedSeconds: number) => void);
|
|
6
6
|
/**
|
|
7
|
-
* Mount a render loop onto a canvas: create a `WebGLRenderer`, drive
|
|
7
|
+
* Mount a render loop onto a canvas: create a `WebGLRenderer`, drive
|
|
8
|
+
* `onFrame(elapsedSeconds)` each animation frame, then render `scene` from
|
|
9
|
+
* `camera`.
|
|
8
10
|
*
|
|
9
|
-
* This is the one browser-only entry point. `onFrame` is where a
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
11
|
+
* This is the one browser-only entry point. `onFrame` is where a
|
|
12
|
+
* {@link AutoMoviePlayer} advances: the viewer stays a thin shell around the
|
|
13
|
+
* deterministic engine. `elapsedSeconds` is measured from the first frame. If
|
|
14
|
+
* `onFrame` returns `true` it has **already drawn** the frame itself (e.g. a
|
|
15
|
+
* multi-pass cross-dissolve composite), so the loop skips its own default
|
|
16
|
+
* `render`; returning `undefined`/`false` keeps the plain single-pass render.
|
|
17
|
+
* External seek/guide producers call the returned `completeFrame` immediately
|
|
18
|
+
* after their original draw, before an unpreserved native buffer can clear. A
|
|
19
|
+
* manual guide retains the completed clock; a seek supplies its own seconds.
|
|
20
|
+
* Freezes suppress animation producer calls; explicit redraw/restoration still
|
|
21
|
+
* uses the original producer. Independently advancing source clocks or audio
|
|
22
|
+
* supply `freezeCompleted` and restore their source time through
|
|
23
|
+
* `redrawCompleted`.
|
|
18
24
|
*/
|
|
19
25
|
export declare const mountViewer: (canvas: HTMLCanvasElement, scene: THREE.Scene, camera: THREE.PerspectiveCamera, onFrame: ViewerFrameProducer, options?: IMountViewerOptions) => IAutoMovieViewerHandle;
|
|
20
26
|
export {};
|
package/lib/mountViewer.js
CHANGED
|
@@ -43,17 +43,23 @@ const publishViewerCompletedFrame_js_1 = require("./publishViewerCompletedFrame.
|
|
|
43
43
|
const redrawViewerCompletedFrame_js_1 = require("./redrawViewerCompletedFrame.js");
|
|
44
44
|
const releaseMountedViewer_js_1 = require("./releaseMountedViewer.js");
|
|
45
45
|
/**
|
|
46
|
-
* Mount a render loop onto a canvas: create a `WebGLRenderer`, drive
|
|
46
|
+
* Mount a render loop onto a canvas: create a `WebGLRenderer`, drive
|
|
47
|
+
* `onFrame(elapsedSeconds)` each animation frame, then render `scene` from
|
|
48
|
+
* `camera`.
|
|
47
49
|
*
|
|
48
|
-
* This is the one browser-only entry point. `onFrame` is where a
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
50
|
+
* This is the one browser-only entry point. `onFrame` is where a
|
|
51
|
+
* {@link AutoMoviePlayer} advances: the viewer stays a thin shell around the
|
|
52
|
+
* deterministic engine. `elapsedSeconds` is measured from the first frame. If
|
|
53
|
+
* `onFrame` returns `true` it has **already drawn** the frame itself (e.g. a
|
|
54
|
+
* multi-pass cross-dissolve composite), so the loop skips its own default
|
|
55
|
+
* `render`; returning `undefined`/`false` keeps the plain single-pass render.
|
|
56
|
+
* External seek/guide producers call the returned `completeFrame` immediately
|
|
57
|
+
* after their original draw, before an unpreserved native buffer can clear. A
|
|
58
|
+
* manual guide retains the completed clock; a seek supplies its own seconds.
|
|
59
|
+
* Freezes suppress animation producer calls; explicit redraw/restoration still
|
|
60
|
+
* uses the original producer. Independently advancing source clocks or audio
|
|
61
|
+
* supply `freezeCompleted` and restore their source time through
|
|
62
|
+
* `redrawCompleted`.
|
|
57
63
|
*/
|
|
58
64
|
const mountViewer = (canvas, scene, camera, onFrame, options) => {
|
|
59
65
|
const renderer = new THREE.WebGLRenderer({
|
|
@@ -67,10 +73,7 @@ const mountViewer = (canvas, scene, camera, onFrame, options) => {
|
|
|
67
73
|
try {
|
|
68
74
|
const resize = (0, createViewerViewportResize_js_1.createViewerViewportResize)(renderer, camera);
|
|
69
75
|
const synchronizeViewport = () => resize(canvas.clientWidth || 1, canvas.clientHeight || 1, options?.pixelRatio ??
|
|
70
|
-
(
|
|
71
|
-
window.devicePixelRatio > 0
|
|
72
|
-
? window.devicePixelRatio
|
|
73
|
-
: 1));
|
|
76
|
+
(window.devicePixelRatio > 0 ? window.devicePixelRatio : 1));
|
|
74
77
|
synchronizeViewport();
|
|
75
78
|
let startMs = null;
|
|
76
79
|
const clock = (0, createViewerDisplayClock_js_1.createViewerDisplayClock)();
|
package/lib/mountViewer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mountViewer.js","sourceRoot":"","sources":["../src/mountVi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