@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,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.installAutoMovieInspectorRequest = installAutoMovieInspectorRequest;
|
|
4
|
+
const inspectAutoMovieInspectorRequest_js_1 = require("./inspectAutoMovieInspectorRequest.js");
|
|
5
|
+
/**
|
|
6
|
+
* Install a request's inspection on the mount's subject with the marks of the
|
|
7
|
+
* placed second; when the scene refuses it, install the applied request again,
|
|
8
|
+
* so the preceding inspection stays in force, and hand the refusal to
|
|
9
|
+
* `refused`.
|
|
10
|
+
*
|
|
11
|
+
* @returns Whether the request's own inspection was installed.
|
|
12
|
+
*/
|
|
13
|
+
function installAutoMovieInspectorRequest(props) {
|
|
14
|
+
const { now } = props;
|
|
15
|
+
const base = {
|
|
16
|
+
instance: now.instance,
|
|
17
|
+
renderer: now.renderer,
|
|
18
|
+
marks: now.instance.marks?.(props.seconds),
|
|
19
|
+
};
|
|
20
|
+
try {
|
|
21
|
+
now.inspection = (0, inspectAutoMovieInspectorRequest_js_1.inspectAutoMovieInspectorRequest)({
|
|
22
|
+
...base,
|
|
23
|
+
request: props.request,
|
|
24
|
+
});
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
now.inspection = (0, inspectAutoMovieInspectorRequest_js_1.inspectAutoMovieInspectorRequest)({
|
|
29
|
+
...base,
|
|
30
|
+
request: now.applied,
|
|
31
|
+
});
|
|
32
|
+
props.refused(error);
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=installAutoMovieInspectorRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"installAutoMovieInspectorRequest.js","sourceRoot":"","sources":["../../src/inspector/installAutoMovieInspectorRequest.ts"],"names":[],"mappings":";;;AAGA,+FAAyF;AAEzF;;;;;;;GAOG;AACH,0CAAiD,KAYhD;IACC,MAAM,EAAE,GAAG,EAAE,GAAiB,KAAK,CAAC;IACpC,MAAM,IAAI,GAGN;QACF,QAAQ,EAAE,GAAG,CAAC,QAAQ;QACtB,QAAQ,EAAE,GAAG,CAAC,QAAQ;QACtB,KAAK,EAAE,GAAG,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;KAC3C,CAAC;IACF,IAAI,CAAC;QACH,GAAG,CAAC,UAAU,GAAG,IAAA,sEAAgC,EAAC;YAChD,GAAG,IAAI;YACP,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,GAAG,CAAC,UAAU,GAAG,IAAA,sEAAgC,EAAC;YAChD,GAAG,IAAI;YACP,OAAO,EAAE,GAAG,CAAC,OAAO;SACrB,CAAC,CAAC;QACH,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { inspectAutoMovieInspectorRequest } from "./inspectAutoMovieInspectorRequest.mjs";
|
|
2
|
+
// src/inspector/installAutoMovieInspectorRequest.ts
|
|
3
|
+
/**
|
|
4
|
+
* Install a request's inspection on the mount's subject with the marks of the
|
|
5
|
+
* placed second; when the scene refuses it, install the applied request again,
|
|
6
|
+
* so the preceding inspection stays in force, and hand the refusal to
|
|
7
|
+
* `refused`.
|
|
8
|
+
*
|
|
9
|
+
* @returns Whether the request's own inspection was installed.
|
|
10
|
+
*/
|
|
11
|
+
function installAutoMovieInspectorRequest(props) {
|
|
12
|
+
const { now } = props;
|
|
13
|
+
const base = {
|
|
14
|
+
instance: now.instance,
|
|
15
|
+
renderer: now.renderer,
|
|
16
|
+
marks: now.instance.marks?.(props.seconds)
|
|
17
|
+
};
|
|
18
|
+
try {
|
|
19
|
+
now.inspection = inspectAutoMovieInspectorRequest({
|
|
20
|
+
...base,
|
|
21
|
+
request: props.request
|
|
22
|
+
});
|
|
23
|
+
return true;
|
|
24
|
+
} catch (error) {
|
|
25
|
+
now.inspection = inspectAutoMovieInspectorRequest({
|
|
26
|
+
...base,
|
|
27
|
+
request: now.applied
|
|
28
|
+
});
|
|
29
|
+
props.refused(error);
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export { installAutoMovieInspectorRequest };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=installAutoMovieInspectorRequest.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"installAutoMovieInspectorRequest.mjs","names":[],"sources":["../../src/inspector/installAutoMovieInspectorRequest.ts"],"sourcesContent":["import type { IAutoMovieCapturePlanRequest } from \"@automovie/interface\";\n\nimport type { IAutoMovieInspectorLive } from \"./IAutoMovieInspectorLive.js\";\nimport { inspectAutoMovieInspectorRequest } from \"./inspectAutoMovieInspectorRequest.js\";\n\n/**\n * Install a request's inspection on the mount's subject with the marks of the\n * placed second; when the scene refuses it, install the applied request again,\n * so the preceding inspection stays in force, and hand the refusal to\n * `refused`.\n *\n * @returns Whether the request's own inspection was installed.\n */\nexport function installAutoMovieInspectorRequest(props: {\n /** The mount's live state, whose inspection this replaces. */\n now: IAutoMovieInspectorLive;\n\n /** The request to install. */\n request: IAutoMovieCapturePlanRequest;\n\n /** The placed second, whose marks the inspection draws. */\n seconds: number;\n\n /** Told the refusal's error when the request is refused. */\n refused: (error: unknown) => void;\n}): boolean {\n const { now }: typeof props = props;\n const base: Omit<\n Parameters<typeof inspectAutoMovieInspectorRequest>[0],\n \"request\"\n > = {\n instance: now.instance,\n renderer: now.renderer,\n marks: now.instance.marks?.(props.seconds),\n };\n try {\n now.inspection = inspectAutoMovieInspectorRequest({\n ...base,\n request: props.request,\n });\n return true;\n } catch (error) {\n now.inspection = inspectAutoMovieInspectorRequest({\n ...base,\n request: now.applied,\n });\n props.refused(error);\n return false;\n }\n}\n"],"mappings":";;;;;;;;;;AAaA,SAAgB,iCAAiC,OAYrC;CACV,MAAM,EAAE,QAAsB;CAC9B,MAAM,OAGF;EACF,UAAU,IAAI;EACd,UAAU,IAAI;EACd,OAAO,IAAI,SAAS,QAAQ,MAAM,OAAO;CAC3C;CACA,IAAI;EACF,IAAI,aAAa,iCAAiC;GAChD,GAAG;GACH,SAAS,MAAM;EACjB,CAAC;EACD,OAAO;CACT,SAAS,OAAO;EACd,IAAI,aAAa,iCAAiC;GAChD,GAAG;GACH,SAAS,IAAI;EACf,CAAC;EACD,MAAM,QAAQ,KAAK;EACnB,OAAO;CACT;AACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IAutoMovieInspectionDiagnostics } from "@automovie/interface";
|
|
2
|
+
import type { IAutoMovieInspectorAction } from "./IAutoMovieInspectorAction.js";
|
|
3
|
+
/**
|
|
4
|
+
* The edit that shows one observation: the picture at its witness second, with
|
|
5
|
+
* its entities labelled.
|
|
6
|
+
*
|
|
7
|
+
* A finding's paths name drawn objects, or parts a checker addresses below them
|
|
8
|
+
* such as a formation slot (`/slot/<n>`), a cord segment (`/segment/<n>`), a
|
|
9
|
+
* batch instance (`#<n>`) or a transform field (`.children[<n>].matrixWorld`).
|
|
10
|
+
* Each path is labelled by the nearest drawn path that equals it or contains
|
|
11
|
+
* it, so the label lands on the object the part belongs to; a path with no
|
|
12
|
+
* drawn owner is left unlabelled, because the scene refuses a label pattern
|
|
13
|
+
* that matches nothing.
|
|
14
|
+
*
|
|
15
|
+
* @param observation The witness to show.
|
|
16
|
+
* @param drawn The identity paths the scene draws, as the mount lists them.
|
|
17
|
+
* @returns A `locate` action for the inspector's reducer.
|
|
18
|
+
*/
|
|
19
|
+
export declare function locateAutoMovieInspectorFinding(observation: IAutoMovieInspectionDiagnostics.IObservation, drawn: readonly string[]): IAutoMovieInspectorAction.ILocate;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.locateAutoMovieInspectorFinding = locateAutoMovieInspectorFinding;
|
|
4
|
+
/**
|
|
5
|
+
* The edit that shows one observation: the picture at its witness second, with
|
|
6
|
+
* its entities labelled.
|
|
7
|
+
*
|
|
8
|
+
* A finding's paths name drawn objects, or parts a checker addresses below them
|
|
9
|
+
* such as a formation slot (`/slot/<n>`), a cord segment (`/segment/<n>`), a
|
|
10
|
+
* batch instance (`#<n>`) or a transform field (`.children[<n>].matrixWorld`).
|
|
11
|
+
* Each path is labelled by the nearest drawn path that equals it or contains
|
|
12
|
+
* it, so the label lands on the object the part belongs to; a path with no
|
|
13
|
+
* drawn owner is left unlabelled, because the scene refuses a label pattern
|
|
14
|
+
* that matches nothing.
|
|
15
|
+
*
|
|
16
|
+
* @param observation The witness to show.
|
|
17
|
+
* @param drawn The identity paths the scene draws, as the mount lists them.
|
|
18
|
+
* @returns A `locate` action for the inspector's reducer.
|
|
19
|
+
*/
|
|
20
|
+
function locateAutoMovieInspectorFinding(observation, drawn) {
|
|
21
|
+
const known = new Set(drawn);
|
|
22
|
+
const label = [];
|
|
23
|
+
for (const path of observation.finding.paths) {
|
|
24
|
+
let owner = path;
|
|
25
|
+
while (owner !== undefined && !known.has(owner)) {
|
|
26
|
+
const cut = Math.max(owner.lastIndexOf("/"), owner.lastIndexOf("#"), owner.lastIndexOf("."));
|
|
27
|
+
owner = cut <= 0 ? undefined : owner.slice(0, cut);
|
|
28
|
+
}
|
|
29
|
+
if (owner !== undefined && !label.includes(owner))
|
|
30
|
+
label.push(owner);
|
|
31
|
+
}
|
|
32
|
+
return { type: "locate", seconds: observation.time.filmSeconds, label };
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=locateAutoMovieInspectorFinding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locateAutoMovieInspectorFinding.js","sourceRoot":"","sources":["../../src/inspector/locateAutoMovieInspectorFinding.ts"],"names":[],"mappings":";;;AAIA;;;;;;;;;;;;;;;GAeG;AACH,yCACE,WAAyD,EACzD,KAAwB;IAExB,MAAM,KAAK,GAAgB,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;IAC1C,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,MAAM,IAAI,IAAI,WAAW,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QAC7C,IAAI,KAAK,GAAuB,IAAI,CAAC;QACrC,OAAO,KAAK,KAAK,SAAS,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YAChD,MAAM,GAAG,GAAW,IAAI,CAAC,GAAG,CAC1B,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,EACtB,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,EACtB,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CACvB,CAAC;YACF,KAAK,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;QACrD,CAAC;QACD,IAAI,KAAK,KAAK,SAAS,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;YAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACvE,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,EAAE,CAAC;AAC1E,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// src/inspector/locateAutoMovieInspectorFinding.ts
|
|
2
|
+
/**
|
|
3
|
+
* The edit that shows one observation: the picture at its witness second, with
|
|
4
|
+
* its entities labelled.
|
|
5
|
+
*
|
|
6
|
+
* A finding's paths name drawn objects, or parts a checker addresses below them
|
|
7
|
+
* such as a formation slot (`/slot/<n>`), a cord segment (`/segment/<n>`), a
|
|
8
|
+
* batch instance (`#<n>`) or a transform field (`.children[<n>].matrixWorld`).
|
|
9
|
+
* Each path is labelled by the nearest drawn path that equals it or contains
|
|
10
|
+
* it, so the label lands on the object the part belongs to; a path with no
|
|
11
|
+
* drawn owner is left unlabelled, because the scene refuses a label pattern
|
|
12
|
+
* that matches nothing.
|
|
13
|
+
*
|
|
14
|
+
* @param observation The witness to show.
|
|
15
|
+
* @param drawn The identity paths the scene draws, as the mount lists them.
|
|
16
|
+
* @returns A `locate` action for the inspector's reducer.
|
|
17
|
+
*/
|
|
18
|
+
function locateAutoMovieInspectorFinding(observation, drawn) {
|
|
19
|
+
const known = new Set(drawn);
|
|
20
|
+
const label = [];
|
|
21
|
+
for (const path of observation.finding.paths) {
|
|
22
|
+
let owner = path;
|
|
23
|
+
while (owner !== void 0 && !known.has(owner)) {
|
|
24
|
+
const cut = Math.max(owner.lastIndexOf("/"), owner.lastIndexOf("#"), owner.lastIndexOf("."));
|
|
25
|
+
owner = cut <= 0 ? void 0 : owner.slice(0, cut);
|
|
26
|
+
}
|
|
27
|
+
if (owner !== void 0 && !label.includes(owner)) label.push(owner);
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
type: "locate",
|
|
31
|
+
seconds: observation.time.filmSeconds,
|
|
32
|
+
label
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export { locateAutoMovieInspectorFinding };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=locateAutoMovieInspectorFinding.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locateAutoMovieInspectorFinding.mjs","names":[],"sources":["../../src/inspector/locateAutoMovieInspectorFinding.ts"],"sourcesContent":["import type { IAutoMovieInspectionDiagnostics } from \"@automovie/interface\";\n\nimport type { IAutoMovieInspectorAction } from \"./IAutoMovieInspectorAction.js\";\n\n/**\n * The edit that shows one observation: the picture at its witness second, with\n * its entities labelled.\n *\n * A finding's paths name drawn objects, or parts a checker addresses below them\n * such as a formation slot (`/slot/<n>`), a cord segment (`/segment/<n>`), a\n * batch instance (`#<n>`) or a transform field (`.children[<n>].matrixWorld`).\n * Each path is labelled by the nearest drawn path that equals it or contains\n * it, so the label lands on the object the part belongs to; a path with no\n * drawn owner is left unlabelled, because the scene refuses a label pattern\n * that matches nothing.\n *\n * @param observation The witness to show.\n * @param drawn The identity paths the scene draws, as the mount lists them.\n * @returns A `locate` action for the inspector's reducer.\n */\nexport function locateAutoMovieInspectorFinding(\n observation: IAutoMovieInspectionDiagnostics.IObservation,\n drawn: readonly string[],\n): IAutoMovieInspectorAction.ILocate {\n const known: Set<string> = new Set(drawn);\n const label: string[] = [];\n for (const path of observation.finding.paths) {\n let owner: string | undefined = path;\n while (owner !== undefined && !known.has(owner)) {\n const cut: number = Math.max(\n owner.lastIndexOf(\"/\"),\n owner.lastIndexOf(\"#\"),\n owner.lastIndexOf(\".\"),\n );\n owner = cut <= 0 ? undefined : owner.slice(0, cut);\n }\n if (owner !== undefined && !label.includes(owner)) label.push(owner);\n }\n return { type: \"locate\", seconds: observation.time.filmSeconds, label };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAoBA,SAAgB,gCACd,aACA,OACmC;CACnC,MAAM,QAAqB,IAAI,IAAI,KAAK;CACxC,MAAM,QAAkB,CAAC;CACzB,KAAK,MAAM,QAAQ,YAAY,QAAQ,OAAO;EAC5C,IAAI,QAA4B;EAChC,OAAO,UAAU,KAAA,KAAa,CAAC,MAAM,IAAI,KAAK,GAAG;GAC/C,MAAM,MAAc,KAAK,IACvB,MAAM,YAAY,GAAG,GACrB,MAAM,YAAY,GAAG,GACrB,MAAM,YAAY,GAAG,CACvB;GACA,QAAQ,OAAO,IAAI,KAAA,IAAY,MAAM,MAAM,GAAG,GAAG;EACnD;EACA,IAAI,UAAU,KAAA,KAAa,CAAC,MAAM,SAAS,KAAK,GAAG,MAAM,KAAK,KAAK;CACrE;CACA,OAAO;EAAE,MAAM;EAAU,SAAS,YAAY,KAAK;EAAa;CAAM;AACxE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.messageOfAutoMovieInspectorError = messageOfAutoMovieInspectorError;
|
|
4
|
+
/** The text the inspector reports for a thrown value. */
|
|
5
|
+
function messageOfAutoMovieInspectorError(error) {
|
|
6
|
+
return error instanceof Error ? error.message : String(error);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=messageOfAutoMovieInspectorError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messageOfAutoMovieInspectorError.js","sourceRoot":"","sources":["../../src/inspector/messageOfAutoMovieInspectorError.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,0CAAiD,KAAc;IAC7D,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// src/inspector/messageOfAutoMovieInspectorError.ts
|
|
2
|
+
/** The text the inspector reports for a thrown value. */
|
|
3
|
+
function messageOfAutoMovieInspectorError(error) {
|
|
4
|
+
return error instanceof Error ? error.message : String(error);
|
|
5
|
+
}
|
|
6
|
+
export { messageOfAutoMovieInspectorError };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=messageOfAutoMovieInspectorError.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messageOfAutoMovieInspectorError.mjs","names":[],"sources":["../../src/inspector/messageOfAutoMovieInspectorError.ts"],"sourcesContent":["/** The text the inspector reports for a thrown value. */\nexport function messageOfAutoMovieInspectorError(error: unknown): string {\n return error instanceof Error ? error.message : String(error);\n}\n"],"mappings":";;AACA,SAAgB,iCAAiC,OAAwB;CACvE,OAAO,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;AAC9D"}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
import type { IAutoMovieDrawSubject } from "@automovie/render";
|
|
2
|
+
import type { IAutoMovieInspectorProps } from "./IAutoMovieInspectorProps.js";
|
|
2
3
|
/**
|
|
3
4
|
* Mount the inspector as a whole page in one call: render `AutoMovieInspector` into `root` under StrictMode, opening on the request `location`'s query names and keeping that query equal to the request through `history`.
|
|
4
5
|
*
|
|
5
6
|
* `location` and `history` are the host's, passed in rather than read from `window`, so the page's address is the only global state the inspector writes and a host decides which. The returned `unmount` disposes the scene and its renderer through the component's effect cleanup.
|
|
6
7
|
*
|
|
8
|
+
* A host that can reproduce its subjects in a terminal also supplies `captureCommand`.
|
|
9
|
+
*
|
|
7
10
|
* ```ts
|
|
8
11
|
* mountAutoMovieInspectorPage({ root: document.getElementById("root")!, subjects, location, history });
|
|
9
12
|
* ```
|
|
10
|
-
*
|
|
11
|
-
* @evidence contracts/development/common.md#meaningful-documentation States what is rendered, where the first request comes from, how the address follows it, that nothing global is read, and what `unmount` releases.
|
|
12
|
-
* @evidence contracts/development/implementation.md#principled-implementation `createRoot` is React 19's client entry, and StrictMode runs the canvas effect twice in development, which the scene mount is built to survive, so a page always exercises that path.
|
|
13
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Three steps: build the address writer, create the root, render the component with the address's query.
|
|
14
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No subject, request or address is chosen here; they are the host's.
|
|
15
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant work beyond React's own render.
|
|
16
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A page is mounted once.
|
|
17
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The React root owns the component tree until `unmount`, which unmounts it and so releases the scene, renderer and frame loop the component holds.
|
|
18
13
|
*/
|
|
19
14
|
export declare function mountAutoMovieInspectorPage(props: {
|
|
20
15
|
/** The element the page renders into. */
|
|
@@ -25,6 +20,8 @@ export declare function mountAutoMovieInspectorPage(props: {
|
|
|
25
20
|
location: Pick<Location, "pathname" | "search" | "hash">;
|
|
26
21
|
/** The page's history, whose current entry follows the request. */
|
|
27
22
|
history: Pick<History, "replaceState" | "state">;
|
|
23
|
+
/** Executable and fixed capture arguments from the host, when available. */
|
|
24
|
+
captureCommand?: IAutoMovieInspectorProps["captureCommand"];
|
|
28
25
|
}): {
|
|
29
26
|
/** Unmount the page and release everything it holds. */
|
|
30
27
|
unmount: () => void;
|
|
@@ -11,17 +11,11 @@ const createAutoMovieInspectorAddressWriter_js_1 = require("./createAutoMovieIns
|
|
|
11
11
|
*
|
|
12
12
|
* `location` and `history` are the host's, passed in rather than read from `window`, so the page's address is the only global state the inspector writes and a host decides which. The returned `unmount` disposes the scene and its renderer through the component's effect cleanup.
|
|
13
13
|
*
|
|
14
|
+
* A host that can reproduce its subjects in a terminal also supplies `captureCommand`.
|
|
15
|
+
*
|
|
14
16
|
* ```ts
|
|
15
17
|
* mountAutoMovieInspectorPage({ root: document.getElementById("root")!, subjects, location, history });
|
|
16
18
|
* ```
|
|
17
|
-
*
|
|
18
|
-
* @evidence contracts/development/common.md#meaningful-documentation States what is rendered, where the first request comes from, how the address follows it, that nothing global is read, and what `unmount` releases.
|
|
19
|
-
* @evidence contracts/development/implementation.md#principled-implementation `createRoot` is React 19's client entry, and StrictMode runs the canvas effect twice in development, which the scene mount is built to survive, so a page always exercises that path.
|
|
20
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Three steps: build the address writer, create the root, render the component with the address's query.
|
|
21
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No subject, request or address is chosen here; they are the host's.
|
|
22
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant work beyond React's own render.
|
|
23
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A page is mounted once.
|
|
24
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The React root owns the component tree until `unmount`, which unmounts it and so releases the scene, renderer and frame loop the component holds.
|
|
25
19
|
*/
|
|
26
20
|
function mountAutoMovieInspectorPage(props) {
|
|
27
21
|
const onRequestChange = (0, createAutoMovieInspectorAddressWriter_js_1.createAutoMovieInspectorAddressWriter)({
|
|
@@ -29,7 +23,7 @@ function mountAutoMovieInspectorPage(props) {
|
|
|
29
23
|
history: props.history,
|
|
30
24
|
});
|
|
31
25
|
const root = (0, client_1.createRoot)(props.root);
|
|
32
|
-
root.render((0, jsx_runtime_1.jsx)(react_1.StrictMode, { children: (0, jsx_runtime_1.jsx)(AutoMovieInspector_js_1.AutoMovieInspector, { subjects: props.subjects, initialText: props.location.search, onRequestChange: onRequestChange }) }));
|
|
26
|
+
root.render((0, jsx_runtime_1.jsx)(react_1.StrictMode, { children: (0, jsx_runtime_1.jsx)(AutoMovieInspector_js_1.AutoMovieInspector, { subjects: props.subjects, initialText: props.location.search, onRequestChange: onRequestChange, captureCommand: props.captureCommand }) }));
|
|
33
27
|
return { unmount: () => root.unmount() };
|
|
34
28
|
}
|
|
35
29
|
//# sourceMappingURL=mountAutoMovieInspectorPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mountAutoMovieInspectorPage.js","sourceRoot":"","sources":["../../src/inspector/mountAutoMovieInspectorPage.tsx"],"names":[],"mappings":";;;;AACA,iCAAmC;AACnC,6CAAyD;AAEzD,mEAA6D;
|
|
1
|
+
{"version":3,"file":"mountAutoMovieInspectorPage.js","sourceRoot":"","sources":["../../src/inspector/mountAutoMovieInspectorPage.tsx"],"names":[],"mappings":";;;;AACA,iCAAmC;AACnC,6CAAyD;AAEzD,mEAA6D;AAE7D,yGAAmG;AAEnG;;;;;;;;;;GAUG;AACH,qCAA4C,KAe3C;IAIC,MAAM,eAAe,GACnB,IAAA,gFAAqC,EAAC;QACpC,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,OAAO,EAAE,KAAK,CAAC,OAAO;KACvB,CAAC,CAAC;IACL,MAAM,IAAI,GAAS,IAAA,mBAAU,EAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1C,IAAI,CAAC,MAAM,CACT,uBAAC,kBAAU,cACT,uBAAC,0CAAkB,IACjB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM,EAClC,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,KAAK,CAAC,cAAc,GACpC,GACS,CACd,CAAC;IACF,OAAO,EAAE,OAAO,EAAE,GAAS,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;AACjD,CAAC"}
|
|
@@ -9,17 +9,11 @@ import { createRoot } from "react-dom/client";
|
|
|
9
9
|
*
|
|
10
10
|
* `location` and `history` are the host's, passed in rather than read from `window`, so the page's address is the only global state the inspector writes and a host decides which. The returned `unmount` disposes the scene and its renderer through the component's effect cleanup.
|
|
11
11
|
*
|
|
12
|
+
* A host that can reproduce its subjects in a terminal also supplies `captureCommand`.
|
|
13
|
+
*
|
|
12
14
|
* ```ts
|
|
13
15
|
* mountAutoMovieInspectorPage({ root: document.getElementById("root")!, subjects, location, history });
|
|
14
16
|
* ```
|
|
15
|
-
*
|
|
16
|
-
* @evidence contracts/development/common.md#meaningful-documentation States what is rendered, where the first request comes from, how the address follows it, that nothing global is read, and what `unmount` releases.
|
|
17
|
-
* @evidence contracts/development/implementation.md#principled-implementation `createRoot` is React 19's client entry, and StrictMode runs the canvas effect twice in development, which the scene mount is built to survive, so a page always exercises that path.
|
|
18
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Three steps: build the address writer, create the root, render the component with the address's query.
|
|
19
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No subject, request or address is chosen here; they are the host's.
|
|
20
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Constant work beyond React's own render.
|
|
21
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A page is mounted once.
|
|
22
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The React root owns the component tree until `unmount`, which unmounts it and so releases the scene, renderer and frame loop the component holds.
|
|
23
17
|
*/
|
|
24
18
|
function mountAutoMovieInspectorPage(props) {
|
|
25
19
|
const onRequestChange = createAutoMovieInspectorAddressWriter({
|
|
@@ -30,7 +24,8 @@ function mountAutoMovieInspectorPage(props) {
|
|
|
30
24
|
root.render(/* @__PURE__ */ jsx(StrictMode, { children: /* @__PURE__ */ jsx(AutoMovieInspector, {
|
|
31
25
|
subjects: props.subjects,
|
|
32
26
|
initialText: props.location.search,
|
|
33
|
-
onRequestChange
|
|
27
|
+
onRequestChange,
|
|
28
|
+
captureCommand: props.captureCommand
|
|
34
29
|
}) }));
|
|
35
30
|
return { unmount: () => root.unmount() };
|
|
36
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mountAutoMovieInspectorPage.mjs","names":[],"sources":["../../src/inspector/mountAutoMovieInspectorPage.tsx"],"sourcesContent":["import type { IAutoMovieDrawSubject } from \"@automovie/render\";\nimport { StrictMode } from \"react\";\nimport { type Root, createRoot } from \"react-dom/client\";\n\nimport { AutoMovieInspector } from \"./AutoMovieInspector.js\";\nimport { createAutoMovieInspectorAddressWriter } from \"./createAutoMovieInspectorAddressWriter.js\";\n\n/**\n * Mount the inspector as a whole page in one call: render `AutoMovieInspector` into `root` under StrictMode, opening on the request `location`'s query names and keeping that query equal to the request through `history`.\n *\n * `location` and `history` are the host's, passed in rather than read from `window`, so the page's address is the only global state the inspector writes and a host decides which. The returned `unmount` disposes the scene and its renderer through the component's effect cleanup.\n *\n * ```ts\n * mountAutoMovieInspectorPage({ root: document.getElementById(\"root\")!, subjects, location, history });\n * ```\n
|
|
1
|
+
{"version":3,"file":"mountAutoMovieInspectorPage.mjs","names":[],"sources":["../../src/inspector/mountAutoMovieInspectorPage.tsx"],"sourcesContent":["import type { IAutoMovieDrawSubject } from \"@automovie/render\";\nimport { StrictMode } from \"react\";\nimport { type Root, createRoot } from \"react-dom/client\";\n\nimport { AutoMovieInspector } from \"./AutoMovieInspector.js\";\nimport type { IAutoMovieInspectorProps } from \"./IAutoMovieInspectorProps.js\";\nimport { createAutoMovieInspectorAddressWriter } from \"./createAutoMovieInspectorAddressWriter.js\";\n\n/**\n * Mount the inspector as a whole page in one call: render `AutoMovieInspector` into `root` under StrictMode, opening on the request `location`'s query names and keeping that query equal to the request through `history`.\n *\n * `location` and `history` are the host's, passed in rather than read from `window`, so the page's address is the only global state the inspector writes and a host decides which. The returned `unmount` disposes the scene and its renderer through the component's effect cleanup.\n *\n * A host that can reproduce its subjects in a terminal also supplies `captureCommand`.\n *\n * ```ts\n * mountAutoMovieInspectorPage({ root: document.getElementById(\"root\")!, subjects, location, history });\n * ```\n */\nexport function mountAutoMovieInspectorPage(props: {\n /** The element the page renders into. */\n root: Element;\n\n /** The subjects offered by name; create the record once, since each subject's identity keys the canvas mount. */\n subjects: Readonly<Record<string, IAutoMovieDrawSubject>>;\n\n /** The page's location: its query is the first request, and its path and fragment are kept. */\n location: Pick<Location, \"pathname\" | \"search\" | \"hash\">;\n\n /** The page's history, whose current entry follows the request. */\n history: Pick<History, \"replaceState\" | \"state\">;\n\n /** Executable and fixed capture arguments from the host, when available. */\n captureCommand?: IAutoMovieInspectorProps[\"captureCommand\"];\n}): {\n /** Unmount the page and release everything it holds. */\n unmount: () => void;\n} {\n const onRequestChange: (text: string) => void =\n createAutoMovieInspectorAddressWriter({\n location: props.location,\n history: props.history,\n });\n const root: Root = createRoot(props.root);\n root.render(\n <StrictMode>\n <AutoMovieInspector\n subjects={props.subjects}\n initialText={props.location.search}\n onRequestChange={onRequestChange}\n captureCommand={props.captureCommand}\n />\n </StrictMode>,\n );\n return { unmount: (): void => root.unmount() };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAmBA,SAAgB,4BAA4B,OAkB1C;CACA,MAAM,kBACJ,sCAAsC;EACpC,UAAU,MAAM;EAChB,SAAS,MAAM;CACjB,CAAC;CACH,MAAM,OAAa,WAAW,MAAM,IAAI;CACxC,KAAK,OACH,oBAAC,YAAD,EAAA,UACE,oBAAC,oBAAD;EACE,UAAU,MAAM;EAChB,aAAa,MAAM,SAAS;EACX;EACjB,gBAAgB,MAAM;CACvB,CAAA,EACS,CAAA,CACd;CACA,OAAO,EAAE,eAAqB,KAAK,QAAQ,EAAE;AAC/C"}
|
|
@@ -4,26 +4,69 @@ import type { AutoMovieInspectorPlayhead } from "./AutoMovieInspectorPlayhead.js
|
|
|
4
4
|
import type { IAutoMovieInspectorScene } from "./IAutoMovieInspectorScene.js";
|
|
5
5
|
import type { IAutoMovieInspectorSceneHost } from "./IAutoMovieInspectorSceneHost.js";
|
|
6
6
|
/**
|
|
7
|
-
* Mount a subject on the inspector's canvas: build an instance, apply the
|
|
7
|
+
* Mount a subject on the inspector's canvas: build an instance, apply the
|
|
8
|
+
* request's inspection, and draw it every animation frame at the playhead's
|
|
9
|
+
* second through the request's first view.
|
|
8
10
|
*
|
|
9
|
-
* The instance is created at once and arrives later. When it arrives the mount
|
|
11
|
+
* The instance is created at once and arrives later. When it arrives the mount
|
|
12
|
+
* checks its clock and raster, seeks it to the request's first second and waits
|
|
13
|
+
* until it is ready there, lists its paths and the marks of its first second,
|
|
14
|
+
* applies the inspection of the newest request (or, when the scene refuses it,
|
|
15
|
+
* of the request that asks for nothing, reported through `refused`), sets the
|
|
16
|
+
* playhead's duration and second, reports `ready` and schedules the first
|
|
17
|
+
* frame. Each frame advances a playing playhead by the wall time since the last
|
|
18
|
+
* frame, follows the host's size, and redraws when the playhead's snapshot or
|
|
19
|
+
* the request changed: place the instance and, once it is ready, run the
|
|
20
|
+
* subject's `beforeDraw` on a WebGL renderer, as the draw host does, so its
|
|
21
|
+
* surface feeds show the second drawn with the scene's own materials, then
|
|
22
|
+
* update the inspection with the second's marks, resolve the view and render.
|
|
23
|
+
* An inspection that changes the scene's materials or layers is lifted around
|
|
24
|
+
* the seek of a subject with `beforeDraw` or `inspectPlaced` and applied again
|
|
25
|
+
* after them. Beauty pictures draw through `AutoMovieInspectorBeauty`, the
|
|
26
|
+
* subject's optics and indirect shading as delivery draws one sample. While a
|
|
27
|
+
* seek is pending no other is started, and the next frame seeks the newest
|
|
28
|
+
* second, so a slow subject drops intermediate seconds instead of queueing
|
|
29
|
+
* them. A drawing error pauses playback and is reported once until a frame
|
|
30
|
+
* draws again.
|
|
10
31
|
*
|
|
11
|
-
* The picture's aspect is the subject's raster, not the canvas's, so a view
|
|
32
|
+
* The picture's aspect is the subject's raster, not the canvas's, so a view
|
|
33
|
+
* frames what a capture of the same subject frames; the page gives the canvas
|
|
34
|
+
* that aspect. The mount adds no listener and holds at most one pending frame,
|
|
35
|
+
* so a mount, dispose and mount again on one canvas, as React's StrictMode runs
|
|
36
|
+
* an effect, leaves one renderer and one frame loop; a mount disposed before
|
|
37
|
+
* its instance arrives or is ready disposes the instance then and creates no
|
|
38
|
+
* renderer, and a seek that resolves after dispose draws nothing.
|
|
12
39
|
*
|
|
13
|
-
*
|
|
40
|
+
* An opted-in subject is observed at the second actually placed, before the
|
|
41
|
+
* inspection changes the scene: an inspection that changes layers, materials,
|
|
42
|
+
* mark geometry or clipping is restored before the seek and re-applied after
|
|
43
|
+
* the observation, while one that changes none of them, as the default request,
|
|
44
|
+
* stays applied and only updates its marks, as for any subject. Its findings
|
|
45
|
+
* reach the report and the diagnostic log with the playhead's playing flag and
|
|
46
|
+
* jump count, so uninterrupted playback can join painted samples into an
|
|
47
|
+
* observed span. Its witness cubes are drawn under the beauty shade unless
|
|
48
|
+
* `overlay(false)` hid them; hiding them stops no check and no report.
|
|
14
49
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
50
|
+
* `AutoMovieInspectorTransition` places the subject, the shown shot last, so
|
|
51
|
+
* diagnostics, marks, camera and inspection pictures follow it as in the draw
|
|
52
|
+
* page; a plain beauty transition paints and holds its other layers first and
|
|
53
|
+
* composites them by their `playbackLayersAt` weights, under the witness cubes
|
|
54
|
+
* at full strength, so a dissolve and a fade match delivery.
|
|
55
|
+
*
|
|
56
|
+
* The page draws the first view and the first pass of the request; the capture
|
|
57
|
+
* command draws them all. While paused, the labels the request asks for are
|
|
58
|
+
* placed by the inspection on the picture's pixels, with the stamp's font pixel
|
|
59
|
+
* at least one CSS pixel of the canvas as a capture keeps it at least one sheet
|
|
60
|
+
* pixel, and reported in CSS pixels; a named view with a focus is framed on
|
|
61
|
+
* what the focus selects.
|
|
22
62
|
*/
|
|
23
63
|
export declare function mountAutoMovieInspectorScene(props: {
|
|
24
64
|
/** The subject to build. */
|
|
25
65
|
subject: IAutoMovieDrawSubject;
|
|
26
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* The subject's name, as the request's `subject` key and the refusals name
|
|
68
|
+
* it.
|
|
69
|
+
*/
|
|
27
70
|
name: string;
|
|
28
71
|
/** The request in force when the mount starts. */
|
|
29
72
|
request: IAutoMovieCapturePlanRequest;
|