@automovie/viewer 0.3.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -87
- package/lib/IAutoMovieViewerCompletedFrame.d.ts +19 -11
- package/lib/IAutoMovieViewerDisplayMetadata.d.ts +0 -5
- package/lib/IAutoMovieViewerHandle.d.ts +3 -25
- package/lib/IMountViewerOptions.d.ts +24 -38
- package/lib/IViewerCameraStateSnapshot.d.ts +0 -5
- package/lib/IViewerFrameTransfer.d.ts +11 -0
- package/lib/IViewerFrameTransfer.js +3 -0
- package/lib/IViewerFrameTransfer.js.map +1 -0
- package/lib/IViewerFrameTransfer.mjs +0 -0
- package/lib/applyCaptureCanvasSize.d.ts +9 -10
- package/lib/applyCaptureCanvasSize.js +7 -13
- package/lib/applyCaptureCanvasSize.js.map +1 -1
- package/lib/applyCaptureCanvasSize.mjs +7 -10
- package/lib/applyCaptureCanvasSize.mjs.map +1 -1
- package/lib/audio/IAutoMovieAudioCue.d.ts +3 -8
- package/lib/audio/planAutoMovieAudioPlayback.d.ts +8 -21
- package/lib/audio/planAutoMovieAudioPlayback.js +8 -14
- package/lib/audio/planAutoMovieAudioPlayback.js.map +1 -1
- package/lib/audio/planAutoMovieAudioPlayback.mjs +8 -14
- package/lib/audio/planAutoMovieAudioPlayback.mjs.map +1 -1
- package/lib/audio/playAutoMovieAudioCues.d.ts +4 -11
- package/lib/audio/playAutoMovieAudioCues.js +4 -11
- package/lib/audio/playAutoMovieAudioCues.js.map +1 -1
- package/lib/audio/playAutoMovieAudioCues.mjs +4 -11
- package/lib/audio/playAutoMovieAudioCues.mjs.map +1 -1
- package/lib/createViewerCameraState.d.ts +3 -11
- package/lib/createViewerCameraState.js +80 -121
- package/lib/createViewerCameraState.js.map +1 -1
- package/lib/createViewerCameraState.mjs +46 -98
- package/lib/createViewerCameraState.mjs.map +1 -1
- package/lib/createViewerDisplayClock.d.ts +2 -10
- package/lib/createViewerDisplayClock.js +4 -12
- package/lib/createViewerDisplayClock.js.map +1 -1
- package/lib/createViewerDisplayClock.mjs +3 -11
- package/lib/createViewerDisplayClock.mjs.map +1 -1
- package/lib/createViewerDisplayPublication.d.ts +7 -15
- package/lib/createViewerDisplayPublication.js +7 -15
- package/lib/createViewerDisplayPublication.js.map +1 -1
- package/lib/createViewerDisplayPublication.mjs +7 -15
- package/lib/createViewerDisplayPublication.mjs.map +1 -1
- package/lib/createViewerDisplaySave.d.ts +8 -16
- package/lib/createViewerDisplaySave.js +8 -16
- package/lib/createViewerDisplaySave.js.map +1 -1
- package/lib/createViewerDisplaySave.mjs +8 -16
- package/lib/createViewerDisplaySave.mjs.map +1 -1
- package/lib/createViewerFrameControl.d.ts +8 -10
- package/lib/createViewerFrameControl.js +3 -15
- package/lib/createViewerFrameControl.js.map +1 -1
- package/lib/createViewerFrameControl.mjs +3 -12
- package/lib/createViewerFrameControl.mjs.map +1 -1
- package/lib/createViewerViewportResize.d.ts +4 -12
- package/lib/createViewerViewportResize.js +7 -20
- package/lib/createViewerViewportResize.js.map +1 -1
- package/lib/createViewerViewportResize.mjs +6 -14
- package/lib/createViewerViewportResize.mjs.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +6 -1
- package/lib/inspector/AutoMovieInspector.d.ts +33 -13
- package/lib/inspector/AutoMovieInspector.js +110 -19
- package/lib/inspector/AutoMovieInspector.js.map +1 -1
- package/lib/inspector/AutoMovieInspector.mjs +121 -18
- package/lib/inspector/AutoMovieInspector.mjs.map +1 -1
- package/lib/inspector/AutoMovieInspectorBeauty.d.ts +41 -0
- package/lib/inspector/AutoMovieInspectorBeauty.js +56 -0
- package/lib/inspector/AutoMovieInspectorBeauty.js.map +1 -0
- package/lib/inspector/AutoMovieInspectorBeauty.mjs +55 -0
- package/lib/inspector/AutoMovieInspectorBeauty.mjs.map +1 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticLog.d.ts +48 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticLog.js +186 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticLog.js.map +1 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticLog.mjs +171 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticLog.mjs.map +1 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.d.ts +23 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.js +37 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.js.map +1 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.mjs +85 -0
- package/lib/inspector/AutoMovieInspectorDiagnosticsPanel.mjs.map +1 -0
- package/lib/inspector/AutoMovieInspectorMarksPanel.d.ts +4 -10
- package/lib/inspector/AutoMovieInspectorMarksPanel.js +18 -35
- package/lib/inspector/AutoMovieInspectorMarksPanel.js.map +1 -1
- package/lib/inspector/AutoMovieInspectorMarksPanel.mjs +32 -38
- package/lib/inspector/AutoMovieInspectorMarksPanel.mjs.map +1 -1
- package/lib/inspector/AutoMovieInspectorPlayhead.d.ts +35 -96
- package/lib/inspector/AutoMovieInspectorPlayhead.js +41 -101
- package/lib/inspector/AutoMovieInspectorPlayhead.js.map +1 -1
- package/lib/inspector/AutoMovieInspectorPlayhead.mjs +44 -98
- package/lib/inspector/AutoMovieInspectorPlayhead.mjs.map +1 -1
- package/lib/inspector/AutoMovieInspectorRequestPanel.d.ts +9 -10
- package/lib/inspector/AutoMovieInspectorRequestPanel.js +18 -12
- package/lib/inspector/AutoMovieInspectorRequestPanel.js.map +1 -1
- package/lib/inspector/AutoMovieInspectorRequestPanel.mjs +32 -14
- package/lib/inspector/AutoMovieInspectorRequestPanel.mjs.map +1 -1
- package/lib/inspector/AutoMovieInspectorSelectionPanel.d.ts +0 -8
- package/lib/inspector/AutoMovieInspectorSelectionPanel.js +0 -8
- package/lib/inspector/AutoMovieInspectorSelectionPanel.js.map +1 -1
- package/lib/inspector/AutoMovieInspectorSelectionPanel.mjs +0 -8
- package/lib/inspector/AutoMovieInspectorSelectionPanel.mjs.map +1 -1
- package/lib/inspector/AutoMovieInspectorShadePanel.d.ts +2 -9
- package/lib/inspector/AutoMovieInspectorShadePanel.js +18 -25
- package/lib/inspector/AutoMovieInspectorShadePanel.js.map +1 -1
- package/lib/inspector/AutoMovieInspectorShadePanel.mjs +18 -27
- package/lib/inspector/AutoMovieInspectorShadePanel.mjs.map +1 -1
- package/lib/inspector/AutoMovieInspectorTimePanel.d.ts +0 -8
- package/lib/inspector/AutoMovieInspectorTimePanel.js +0 -8
- package/lib/inspector/AutoMovieInspectorTimePanel.js.map +1 -1
- package/lib/inspector/AutoMovieInspectorTimePanel.mjs +0 -8
- package/lib/inspector/AutoMovieInspectorTimePanel.mjs.map +1 -1
- package/lib/inspector/AutoMovieInspectorTimeReadout.d.ts +0 -8
- package/lib/inspector/AutoMovieInspectorTimeReadout.js +4 -10
- package/lib/inspector/AutoMovieInspectorTimeReadout.js.map +1 -1
- package/lib/inspector/AutoMovieInspectorTimeReadout.mjs +3 -12
- package/lib/inspector/AutoMovieInspectorTimeReadout.mjs.map +1 -1
- package/lib/inspector/AutoMovieInspectorTransition.d.ts +79 -0
- package/lib/inspector/AutoMovieInspectorTransition.js +131 -0
- package/lib/inspector/AutoMovieInspectorTransition.js.map +1 -0
- package/lib/inspector/AutoMovieInspectorTransition.mjs +119 -0
- package/lib/inspector/AutoMovieInspectorTransition.mjs.map +1 -0
- package/lib/inspector/AutoMovieInspectorViewPanel.d.ts +0 -8
- package/lib/inspector/AutoMovieInspectorViewPanel.js +0 -8
- package/lib/inspector/AutoMovieInspectorViewPanel.js.map +1 -1
- package/lib/inspector/AutoMovieInspectorViewPanel.mjs +0 -8
- package/lib/inspector/AutoMovieInspectorViewPanel.mjs.map +1 -1
- package/lib/inspector/IAutoMovieInspectorAction.d.ts +54 -95
- package/lib/inspector/IAutoMovieInspectorLive.d.ts +43 -0
- package/lib/inspector/IAutoMovieInspectorLive.js +3 -0
- package/lib/inspector/IAutoMovieInspectorLive.js.map +1 -0
- package/lib/inspector/IAutoMovieInspectorLive.mjs +0 -0
- package/lib/inspector/IAutoMovieInspectorPathNode.d.ts +14 -9
- package/lib/inspector/IAutoMovieInspectorProps.d.ts +3 -14
- package/lib/inspector/IAutoMovieInspectorScene.d.ts +96 -100
- package/lib/inspector/IAutoMovieInspectorSceneHost.d.ts +37 -102
- package/lib/inspector/IAutoMovieInspectorState.d.ts +6 -7
- package/lib/inspector/assertAutoMovieInspectorRaster.d.ts +7 -0
- package/lib/inspector/assertAutoMovieInspectorRaster.js +19 -0
- package/lib/inspector/assertAutoMovieInspectorRaster.js.map +1 -0
- package/lib/inspector/assertAutoMovieInspectorRaster.mjs +17 -0
- package/lib/inspector/assertAutoMovieInspectorRaster.mjs.map +1 -0
- package/lib/inspector/buildAutoMovieInspectorPathTree.d.ts +9 -10
- package/lib/inspector/buildAutoMovieInspectorPathTree.js +9 -10
- package/lib/inspector/buildAutoMovieInspectorPathTree.js.map +1 -1
- package/lib/inspector/buildAutoMovieInspectorPathTree.mjs +9 -10
- package/lib/inspector/buildAutoMovieInspectorPathTree.mjs.map +1 -1
- package/lib/inspector/changesAutoMovieObservedScene.d.ts +16 -0
- package/lib/inspector/changesAutoMovieObservedScene.js +28 -0
- package/lib/inspector/changesAutoMovieObservedScene.js.map +1 -0
- package/lib/inspector/changesAutoMovieObservedScene.mjs +21 -0
- package/lib/inspector/changesAutoMovieObservedScene.mjs.map +1 -0
- package/lib/inspector/createAutoMovieInspectorAddressWriter.d.ts +13 -11
- package/lib/inspector/createAutoMovieInspectorAddressWriter.js +13 -11
- package/lib/inspector/createAutoMovieInspectorAddressWriter.js.map +1 -1
- package/lib/inspector/createAutoMovieInspectorAddressWriter.mjs +13 -11
- package/lib/inspector/createAutoMovieInspectorAddressWriter.mjs.map +1 -1
- package/lib/inspector/createAutoMovieInspectorCanvasHost.d.ts +7 -10
- package/lib/inspector/createAutoMovieInspectorCanvasHost.js +14 -11
- package/lib/inspector/createAutoMovieInspectorCanvasHost.js.map +1 -1
- package/lib/inspector/createAutoMovieInspectorCanvasHost.mjs +17 -14
- package/lib/inspector/createAutoMovieInspectorCanvasHost.mjs.map +1 -1
- package/lib/inspector/createAutoMovieInspectorState.d.ts +3 -9
- package/lib/inspector/createAutoMovieInspectorState.js +3 -9
- package/lib/inspector/createAutoMovieInspectorState.js.map +1 -1
- package/lib/inspector/createAutoMovieInspectorState.mjs +3 -9
- package/lib/inspector/createAutoMovieInspectorState.mjs.map +1 -1
- package/lib/inspector/firstAutoMovieInspectorSecond.d.ts +6 -0
- package/lib/inspector/firstAutoMovieInspectorSecond.js +13 -0
- package/lib/inspector/firstAutoMovieInspectorSecond.js.map +1 -0
- package/lib/inspector/firstAutoMovieInspectorSecond.mjs +11 -0
- package/lib/inspector/firstAutoMovieInspectorSecond.mjs.map +1 -0
- package/lib/inspector/followAutoMovieInspectorSize.d.ts +11 -0
- package/lib/inspector/followAutoMovieInspectorSize.js +26 -0
- package/lib/inspector/followAutoMovieInspectorSize.js.map +1 -0
- package/lib/inspector/followAutoMovieInspectorSize.mjs +26 -0
- package/lib/inspector/followAutoMovieInspectorSize.mjs.map +1 -0
- package/lib/inspector/formatAutoMovieInspectorAddress.d.ts +11 -10
- package/lib/inspector/formatAutoMovieInspectorAddress.js +15 -11
- package/lib/inspector/formatAutoMovieInspectorAddress.js.map +1 -1
- package/lib/inspector/formatAutoMovieInspectorAddress.mjs +15 -11
- package/lib/inspector/formatAutoMovieInspectorAddress.mjs.map +1 -1
- package/lib/inspector/formatAutoMovieInspectorCommand.d.ts +20 -14
- package/lib/inspector/formatAutoMovieInspectorCommand.js +33 -14
- package/lib/inspector/formatAutoMovieInspectorCommand.js.map +1 -1
- package/lib/inspector/formatAutoMovieInspectorCommand.mjs +26 -15
- package/lib/inspector/formatAutoMovieInspectorCommand.mjs.map +1 -1
- package/lib/inspector/handleAutoMovieInspectorKey.d.ts +24 -15
- package/lib/inspector/handleAutoMovieInspectorKey.js +27 -16
- package/lib/inspector/handleAutoMovieInspectorKey.js.map +1 -1
- package/lib/inspector/handleAutoMovieInspectorKey.mjs +27 -16
- package/lib/inspector/handleAutoMovieInspectorKey.mjs.map +1 -1
- package/lib/inspector/index.d.ts +5 -0
- package/lib/inspector/index.js +5 -0
- package/lib/inspector/index.js.map +1 -1
- package/lib/inspector/index.mjs +6 -1
- package/lib/inspector/inspectAutoMovieInspectorRequest.d.ts +19 -0
- package/lib/inspector/inspectAutoMovieInspectorRequest.js +20 -0
- package/lib/inspector/inspectAutoMovieInspectorRequest.js.map +1 -0
- package/lib/inspector/inspectAutoMovieInspectorRequest.mjs +20 -0
- package/lib/inspector/inspectAutoMovieInspectorRequest.mjs.map +1 -0
- package/lib/inspector/installAutoMovieInspectorRequest.d.ts +20 -0
- package/lib/inspector/installAutoMovieInspectorRequest.js +36 -0
- package/lib/inspector/installAutoMovieInspectorRequest.js.map +1 -0
- package/lib/inspector/installAutoMovieInspectorRequest.mjs +35 -0
- package/lib/inspector/installAutoMovieInspectorRequest.mjs.map +1 -0
- package/lib/inspector/locateAutoMovieInspectorFinding.d.ts +19 -0
- package/lib/inspector/locateAutoMovieInspectorFinding.js +34 -0
- package/lib/inspector/locateAutoMovieInspectorFinding.js.map +1 -0
- package/lib/inspector/locateAutoMovieInspectorFinding.mjs +37 -0
- package/lib/inspector/locateAutoMovieInspectorFinding.mjs.map +1 -0
- package/lib/inspector/messageOfAutoMovieInspectorError.d.ts +2 -0
- package/lib/inspector/messageOfAutoMovieInspectorError.js +8 -0
- package/lib/inspector/messageOfAutoMovieInspectorError.js.map +1 -0
- package/lib/inspector/messageOfAutoMovieInspectorError.mjs +8 -0
- package/lib/inspector/messageOfAutoMovieInspectorError.mjs.map +1 -0
- package/lib/inspector/mountAutoMovieInspectorPage.d.ts +5 -8
- package/lib/inspector/mountAutoMovieInspectorPage.js +3 -9
- package/lib/inspector/mountAutoMovieInspectorPage.js.map +1 -1
- package/lib/inspector/mountAutoMovieInspectorPage.mjs +4 -9
- package/lib/inspector/mountAutoMovieInspectorPage.mjs.map +1 -1
- package/lib/inspector/mountAutoMovieInspectorScene.d.ts +55 -12
- package/lib/inspector/mountAutoMovieInspectorScene.js +238 -164
- package/lib/inspector/mountAutoMovieInspectorScene.js.map +1 -1
- package/lib/inspector/mountAutoMovieInspectorScene.mjs +223 -149
- package/lib/inspector/mountAutoMovieInspectorScene.mjs.map +1 -1
- package/lib/inspector/placeAutoMovieInspectorLabels.d.ts +29 -0
- package/lib/inspector/placeAutoMovieInspectorLabels.js +33 -0
- package/lib/inspector/placeAutoMovieInspectorLabels.js.map +1 -0
- package/lib/inspector/placeAutoMovieInspectorLabels.mjs +32 -0
- package/lib/inspector/placeAutoMovieInspectorLabels.mjs.map +1 -0
- package/lib/inspector/readAutoMovieInspectorAddress.d.ts +8 -11
- package/lib/inspector/readAutoMovieInspectorAddress.js +8 -11
- package/lib/inspector/readAutoMovieInspectorAddress.js.map +1 -1
- package/lib/inspector/readAutoMovieInspectorAddress.mjs +8 -11
- package/lib/inspector/readAutoMovieInspectorAddress.mjs.map +1 -1
- package/lib/inspector/readAutoMovieInspectorFacts.d.ts +17 -0
- package/lib/inspector/readAutoMovieInspectorFacts.js +34 -0
- package/lib/inspector/readAutoMovieInspectorFacts.js.map +1 -0
- package/lib/inspector/readAutoMovieInspectorFacts.mjs +28 -0
- package/lib/inspector/readAutoMovieInspectorFacts.mjs.map +1 -0
- package/lib/inspector/readsAutoMovieInspectorPlacedScene.d.ts +9 -0
- package/lib/inspector/readsAutoMovieInspectorPlacedScene.js +14 -0
- package/lib/inspector/readsAutoMovieInspectorPlacedScene.js.map +1 -0
- package/lib/inspector/readsAutoMovieInspectorPlacedScene.mjs +14 -0
- package/lib/inspector/readsAutoMovieInspectorPlacedScene.mjs.map +1 -0
- package/lib/inspector/reduceAutoMovieInspectorState.d.ts +10 -10
- package/lib/inspector/reduceAutoMovieInspectorState.js +17 -11
- package/lib/inspector/reduceAutoMovieInspectorState.js.map +1 -1
- package/lib/inspector/reduceAutoMovieInspectorState.mjs +16 -11
- package/lib/inspector/reduceAutoMovieInspectorState.mjs.map +1 -1
- package/lib/inspector/releaseAutoMovieInspectorSteps.d.ts +6 -0
- package/lib/inspector/releaseAutoMovieInspectorSteps.js +23 -0
- package/lib/inspector/releaseAutoMovieInspectorSteps.js.map +1 -0
- package/lib/inspector/releaseAutoMovieInspectorSteps.mjs +19 -0
- package/lib/inspector/releaseAutoMovieInspectorSteps.mjs.map +1 -0
- package/lib/inspector/reportAutoMovieInspectorLabels.d.ts +21 -0
- package/lib/inspector/reportAutoMovieInspectorLabels.js +27 -0
- package/lib/inspector/reportAutoMovieInspectorLabels.js.map +1 -0
- package/lib/inspector/reportAutoMovieInspectorLabels.mjs +30 -0
- package/lib/inspector/reportAutoMovieInspectorLabels.mjs.map +1 -0
- package/lib/inspector/resolveAutoMovieInspectorCamera.d.ts +22 -0
- package/lib/inspector/resolveAutoMovieInspectorCamera.js +34 -0
- package/lib/inspector/resolveAutoMovieInspectorCamera.js.map +1 -0
- package/lib/inspector/resolveAutoMovieInspectorCamera.mjs +34 -0
- package/lib/inspector/resolveAutoMovieInspectorCamera.mjs.map +1 -0
- package/lib/inspector/showAutoMovieInspectorFinding.d.ts +25 -0
- package/lib/inspector/showAutoMovieInspectorFinding.js +26 -0
- package/lib/inspector/showAutoMovieInspectorFinding.js.map +1 -0
- package/lib/inspector/showAutoMovieInspectorFinding.mjs +26 -0
- package/lib/inspector/showAutoMovieInspectorFinding.mjs.map +1 -0
- package/lib/inspector/stopAutoMovieInspectorTime.d.ts +11 -0
- package/lib/inspector/stopAutoMovieInspectorTime.js +17 -0
- package/lib/inspector/stopAutoMovieInspectorTime.js.map +1 -0
- package/lib/inspector/stopAutoMovieInspectorTime.mjs +18 -0
- package/lib/inspector/stopAutoMovieInspectorTime.mjs.map +1 -0
- package/lib/inspector/writeAutoMovieInspectorInspection.d.ts +6 -0
- package/lib/inspector/writeAutoMovieInspectorInspection.js +12 -0
- package/lib/inspector/writeAutoMovieInspectorInspection.js.map +1 -0
- package/lib/inspector/writeAutoMovieInspectorInspection.mjs +12 -0
- package/lib/inspector/writeAutoMovieInspectorInspection.mjs.map +1 -0
- package/lib/internal.d.ts +7 -0
- package/lib/internal.js +25 -0
- package/lib/internal.js.map +1 -0
- package/lib/internal.mjs +8 -0
- package/lib/mountViewer.d.ts +16 -10
- package/lib/mountViewer.js +17 -14
- package/lib/mountViewer.js.map +1 -1
- package/lib/mountViewer.mjs +18 -12
- package/lib/mountViewer.mjs.map +1 -1
- package/lib/publishViewerCompletedFrame.d.ts +12 -10
- package/lib/publishViewerCompletedFrame.js +11 -9
- package/lib/publishViewerCompletedFrame.js.map +1 -1
- package/lib/publishViewerCompletedFrame.mjs +11 -9
- package/lib/publishViewerCompletedFrame.mjs.map +1 -1
- package/lib/redrawViewerCompletedFrame.d.ts +2 -10
- package/lib/redrawViewerCompletedFrame.js +4 -12
- package/lib/redrawViewerCompletedFrame.js.map +1 -1
- package/lib/redrawViewerCompletedFrame.mjs +3 -11
- package/lib/redrawViewerCompletedFrame.mjs.map +1 -1
- package/lib/releaseMountedViewer.d.ts +5 -9
- package/lib/releaseMountedViewer.js +5 -9
- package/lib/releaseMountedViewer.js.map +1 -1
- package/lib/releaseMountedViewer.mjs +5 -9
- package/lib/releaseMountedViewer.mjs.map +1 -1
- package/lib/transport/AutoMovieViewerTransport.d.ts +13 -122
- package/lib/transport/AutoMovieViewerTransport.js +10 -74
- package/lib/transport/AutoMovieViewerTransport.js.map +1 -1
- package/lib/transport/AutoMovieViewerTransport.mjs +10 -65
- package/lib/transport/AutoMovieViewerTransport.mjs.map +1 -1
- package/lib/transport/readAutoMovieReviewInterval.d.ts +3 -10
- package/lib/transport/readAutoMovieReviewInterval.js +11 -16
- package/lib/transport/readAutoMovieReviewInterval.js.map +1 -1
- package/lib/transport/readAutoMovieReviewInterval.mjs +8 -14
- package/lib/transport/readAutoMovieReviewInterval.mjs.map +1 -1
- package/package.json +12 -8
- package/src/IAutoMovieViewerCompletedFrame.ts +21 -11
- package/src/IAutoMovieViewerDisplayMetadata.ts +0 -5
- package/src/IAutoMovieViewerHandle.ts +3 -25
- package/src/IMountViewerOptions.ts +24 -38
- package/src/IViewerCameraStateSnapshot.ts +0 -5
- package/src/IViewerFrameTransfer.ts +13 -0
- package/src/applyCaptureCanvasSize.ts +9 -18
- package/src/audio/IAutoMovieAudioCue.ts +3 -8
- package/src/audio/planAutoMovieAudioPlayback.ts +9 -23
- package/src/audio/playAutoMovieAudioCues.ts +4 -11
- package/src/createViewerCameraState.ts +119 -175
- package/src/createViewerDisplayClock.ts +4 -12
- package/src/createViewerDisplayPublication.ts +7 -15
- package/src/createViewerDisplaySave.ts +8 -16
- package/src/createViewerFrameControl.ts +16 -24
- package/src/createViewerViewportResize.ts +7 -23
- package/src/index.ts +1 -0
- package/src/inspector/AutoMovieInspector.tsx +183 -20
- package/src/inspector/AutoMovieInspectorBeauty.ts +89 -0
- package/src/inspector/AutoMovieInspectorDiagnosticLog.ts +235 -0
- package/src/inspector/AutoMovieInspectorDiagnosticsPanel.tsx +118 -0
- package/src/inspector/AutoMovieInspectorMarksPanel.tsx +26 -34
- package/src/inspector/AutoMovieInspectorPlayhead.ts +53 -110
- package/src/inspector/AutoMovieInspectorRequestPanel.tsx +57 -29
- package/src/inspector/AutoMovieInspectorSelectionPanel.tsx +0 -8
- package/src/inspector/AutoMovieInspectorShadePanel.tsx +24 -29
- package/src/inspector/AutoMovieInspectorTimePanel.tsx +0 -8
- package/src/inspector/AutoMovieInspectorTimeReadout.tsx +4 -10
- package/src/inspector/AutoMovieInspectorTransition.ts +178 -0
- package/src/inspector/AutoMovieInspectorViewPanel.tsx +0 -8
- package/src/inspector/IAutoMovieInspectorAction.ts +57 -94
- package/src/inspector/IAutoMovieInspectorLive.ts +62 -0
- package/src/inspector/IAutoMovieInspectorPathNode.ts +14 -9
- package/src/inspector/IAutoMovieInspectorProps.ts +4 -14
- package/src/inspector/IAutoMovieInspectorScene.ts +104 -99
- package/src/inspector/IAutoMovieInspectorSceneHost.ts +43 -102
- package/src/inspector/IAutoMovieInspectorState.ts +6 -7
- package/src/inspector/assertAutoMovieInspectorRaster.ts +23 -0
- package/src/inspector/buildAutoMovieInspectorPathTree.ts +9 -10
- package/src/inspector/changesAutoMovieObservedScene.ts +30 -0
- package/src/inspector/createAutoMovieInspectorAddressWriter.ts +13 -11
- package/src/inspector/createAutoMovieInspectorCanvasHost.ts +14 -12
- package/src/inspector/createAutoMovieInspectorState.ts +3 -9
- package/src/inspector/firstAutoMovieInspectorSecond.ts +13 -0
- package/src/inspector/followAutoMovieInspectorSize.ts +32 -0
- package/src/inspector/formatAutoMovieInspectorAddress.ts +15 -11
- package/src/inspector/formatAutoMovieInspectorCommand.ts +44 -15
- package/src/inspector/handleAutoMovieInspectorKey.ts +27 -16
- package/src/inspector/index.ts +5 -0
- package/src/inspector/inspectAutoMovieInspectorRequest.ts +37 -0
- package/src/inspector/installAutoMovieInspectorRequest.ts +50 -0
- package/src/inspector/locateAutoMovieInspectorFinding.ts +40 -0
- package/src/inspector/messageOfAutoMovieInspectorError.ts +4 -0
- package/src/inspector/mountAutoMovieInspectorPage.tsx +7 -8
- package/src/inspector/mountAutoMovieInspectorScene.ts +290 -232
- package/src/inspector/placeAutoMovieInspectorLabels.ts +53 -0
- package/src/inspector/readAutoMovieInspectorAddress.ts +8 -11
- package/src/inspector/readAutoMovieInspectorFacts.ts +50 -0
- package/src/inspector/readsAutoMovieInspectorPlacedScene.ts +16 -0
- package/src/inspector/reduceAutoMovieInspectorState.ts +17 -11
- package/src/inspector/releaseAutoMovieInspectorSteps.ts +19 -0
- package/src/inspector/reportAutoMovieInspectorLabels.ts +45 -0
- package/src/inspector/resolveAutoMovieInspectorCamera.ts +50 -0
- package/src/inspector/showAutoMovieInspectorFinding.ts +40 -0
- package/src/inspector/stopAutoMovieInspectorTime.ts +19 -0
- package/src/inspector/writeAutoMovieInspectorInspection.ts +12 -0
- package/src/internal.ts +9 -0
- package/src/mountViewer.ts +17 -14
- package/src/publishViewerCompletedFrame.ts +14 -10
- package/src/redrawViewerCompletedFrame.ts +3 -12
- package/src/releaseMountedViewer.ts +5 -9
- package/src/transport/AutoMovieViewerTransport.ts +17 -144
- package/src/transport/readAutoMovieReviewInterval.ts +15 -16
|
@@ -1,30 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Set a capture canvas's CSS width and height to the supplied finite positive
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Performs two finite-positive checks and at most two style writes, with constant time and temporary string storage independent of frame pixel count.
|
|
9
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Creates no derived raster or cache; repeated writes target the same mutable DOM style and have no stored equivalence key.
|
|
10
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows the canvas during the call and retains no DOM reference, observer, renderer or task; installed CSS values remain owned by the host element.
|
|
2
|
+
* Set a capture canvas's CSS width and height to the supplied finite positive
|
|
3
|
+
* dimensions. Invalid dimensions leave both current styles unchanged, allowing
|
|
4
|
+
* an untouched interactive canvas to keep its responsive CSS. This adapter does
|
|
5
|
+
* not set the backing raster, device pixel ratio, screenshot bounds or encoded
|
|
6
|
+
* video size; the rendering and capture hosts own their agreement with these
|
|
7
|
+
* CSS dimensions.
|
|
11
8
|
*/
|
|
12
9
|
export const applyCaptureCanvasSize: (
|
|
13
|
-
canvas: HTMLCanvasElement,
|
|
10
|
+
canvas: { style: Pick<HTMLCanvasElement["style"], "width" | "height"> },
|
|
14
11
|
width: number,
|
|
15
12
|
height: number,
|
|
16
13
|
) => void = (
|
|
17
|
-
canvas: HTMLCanvasElement,
|
|
14
|
+
canvas: { style: Pick<HTMLCanvasElement["style"], "width" | "height"> },
|
|
18
15
|
width: number,
|
|
19
16
|
height: number,
|
|
20
17
|
): void => {
|
|
21
|
-
if (
|
|
22
|
-
!Number.isFinite(width) ||
|
|
23
|
-
width <= 0 ||
|
|
24
|
-
!Number.isFinite(height) ||
|
|
25
|
-
height <= 0
|
|
26
|
-
)
|
|
27
|
-
return;
|
|
18
|
+
if (width <= 0 || height <= 0) return;
|
|
28
19
|
canvas.style.width = `${width}px`;
|
|
29
20
|
canvas.style.height = `${height}px`;
|
|
30
21
|
};
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* One placed audio source excerpt on the film clock
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (One placed audio source excerpt on the film clock, the same shape the Render mixer (`mixAutoMovieAudioPcm`) sums, so Viewer playback and the exported soundtrack read one cue list) and documents 7 documented members as stated in this comment.
|
|
7
|
-
* @evidence contracts/development/design.md#principled-representation Represents One placed audio source excerpt on the film clock, the same shape the Render mixer (`mixAutoMovieAudioPcm`) sums, so Viewer playback and the exported soundtrack read one cue list: interface of 7 members (`asset`, `seconds`, `gain`, `pan`, `offsetSeconds`, `durationSeconds`, ...); units and frames named in its text: seconds, second. Optional members `pan`, `offsetSeconds`, `durationSeconds`, `rate` express documented absence, and the ranges its member docs state are left to runtime validation.
|
|
8
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `IAutoMovieAudioCue` in packages/viewer/src/audio/IAutoMovieAudioCue.ts; its surface is the 7 members listed and the text shows 6 other files naming it, mostly packages/interface (3), packages/viewer (3), so no member is declared for a presumed future need.
|
|
9
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts Scanning the declaration finds no `any`, no `unknown`, no index signature and no cast; 4 optional members (`pan`, `offsetSeconds`, `durationSeconds`, `rate`) are independent fields rather than alternatives of one another as far as their docs state; it duplicates no type that another owner declares as far as a name search shows.
|
|
2
|
+
* One placed audio source excerpt on the film clock. A film's master comes only
|
|
3
|
+
* from engine's `renderProductionSound`; to hear what the delivery encodes,
|
|
4
|
+
* play the film's mixed soundtrack as one cue at second 0 and unit gain.
|
|
10
5
|
*/
|
|
11
6
|
export interface IAutoMovieAudioCue {
|
|
12
7
|
/** Source id. */
|
|
@@ -3,24 +3,18 @@ import type { IAutoMovieAudioCue } from "./IAutoMovieAudioCue.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* Which cues sound when playback starts at a film instant and runs at a
|
|
5
5
|
* transport rate, and how each is started: a cue already sounding starts at
|
|
6
|
-
* once part-way into its excerpt, a later cue after its film delay divided
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
6
|
+
* once part-way into its excerpt, a later cue after its film delay divided by
|
|
7
|
+
* the transport rate, and an ended cue not at all. Source offsets advance by
|
|
8
|
+
* the cue's own rate times the elapsed film seconds, and the playback rate
|
|
9
|
+
* multiplies the cue rate by the transport rate. Pure, so a seek and a resume
|
|
10
|
+
* plan the same playback from the same instant.
|
|
11
11
|
*
|
|
12
12
|
* @param cues The cue list.
|
|
13
13
|
* @param seconds The film instant playback starts from.
|
|
14
14
|
* @param rate Film seconds per wall second; positive.
|
|
15
|
-
* @param lengths Source length in seconds by asset, for cues without a
|
|
15
|
+
* @param lengths Source length in seconds by asset, for cues without a
|
|
16
|
+
* duration.
|
|
16
17
|
* @returns One start per sounding cue, in cue order.
|
|
17
|
-
* @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Which cues sound when playback starts at a film instant and runs at a transport rate, and how each is started: a cue already sounding starts at once part-way into its excerpt, a later cue after its film delay divided by the transport rate, and an ended cue not at all) and documents parameters `cues`, `seconds`, `rate`, `lengths`, the returned value as stated in this comment.
|
|
18
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Which cues sound when playback starts at a film instant and runs at a transport rate, and how each is started: a cue already sounding starts at once part-way into its excerpt, a later cue after its film delay divided by the transport rate, and an ended cue not at all) directly over its typed inputs (`cues`, `seconds`, `rate`, `lengths`) as a single pass (for-of over cues), delegating to `Number.isFinite`, `Math.max`, `starts.push`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (2 throw sites). Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
19
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 25 lines and 4 top-level statements that reuses `Number.isFinite`, `Math.max`, `starts.push` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
|
|
20
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.
|
|
21
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `cues`, `seconds`, `rate`, `lengths`; the dominant cost is a single pass (for-of over cues), performed once per call with 4 allocation sites (literals and constructed values). No speedup is claimed and none is measured.
|
|
22
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
23
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 4 allocation sites become the returned value or die with the call, so nothing grows.
|
|
24
18
|
*/
|
|
25
19
|
export function planAutoMovieAudioPlayback(
|
|
26
20
|
cues: readonly IAutoMovieAudioCue[],
|
|
@@ -28,8 +22,7 @@ export function planAutoMovieAudioPlayback(
|
|
|
28
22
|
rate: number,
|
|
29
23
|
lengths: Readonly<Record<string, number>>,
|
|
30
24
|
): planAutoMovieAudioPlayback.IStart[] {
|
|
31
|
-
if (!(rate > 0)
|
|
32
|
-
throw new Error("Invalid audio playback instant or rate");
|
|
25
|
+
if (!(rate > 0)) throw new Error("Invalid audio playback instant or rate");
|
|
33
26
|
const starts: planAutoMovieAudioPlayback.IStart[] = [];
|
|
34
27
|
for (const cue of cues) {
|
|
35
28
|
const speed: number = cue.rate ?? 1;
|
|
@@ -52,14 +45,7 @@ export function planAutoMovieAudioPlayback(
|
|
|
52
45
|
}
|
|
53
46
|
return starts;
|
|
54
47
|
}
|
|
55
|
-
/**
|
|
56
|
-
* Companion types of {@link planAutoMovieAudioPlayback}.
|
|
57
|
-
*
|
|
58
|
-
* @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Companion types of ) and documents 1 documented member as stated in this comment.
|
|
59
|
-
* @evidence contracts/development/design.md#principled-representation Represents Companion types of : companion namespace of 1 member (`IStart`); units and frames named in its text: seconds, second. It has no optional member, so no absent-value state combines with another.
|
|
60
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `planAutoMovieAudioPlayback` in packages/viewer/src/audio/planAutoMovieAudioPlayback.ts; its surface is the 1 member listed and the text shows 3 other files naming it, mostly packages/viewer (2), test (1), so no member is declared for a presumed future need.
|
|
61
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts Scanning the declaration finds no `any`, no `unknown`, no index signature and no cast; it duplicates no type that another owner declares as far as a name search shows.
|
|
62
|
-
*/
|
|
48
|
+
/** Companion types of {@link planAutoMovieAudioPlayback}. */
|
|
63
49
|
export namespace planAutoMovieAudioPlayback {
|
|
64
50
|
/** One planned source start. */
|
|
65
51
|
export interface IStart {
|
|
@@ -2,10 +2,10 @@ import type { IAutoMovieAudioCue } from "./IAutoMovieAudioCue.js";
|
|
|
2
2
|
import { planAutoMovieAudioPlayback } from "./planAutoMovieAudioPlayback.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* Play a cue list through Web Audio from a film instant at a transport rate,
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* Play a cue list through Web Audio from a film instant at a transport rate, as
|
|
6
|
+
* {@link planAutoMovieAudioPlayback} plans it: one buffer source per sounding
|
|
7
|
+
* cue, through a gain and an equal-power stereo panner, started at the
|
|
8
|
+
* context's current time plus its delay. The returned stop releases every
|
|
9
9
|
* started source, so a pause, seek or rate change stops and replans.
|
|
10
10
|
*
|
|
11
11
|
* @param context The audio context.
|
|
@@ -14,13 +14,6 @@ import { planAutoMovieAudioPlayback } from "./planAutoMovieAudioPlayback.js";
|
|
|
14
14
|
* @param seconds The film instant to start from.
|
|
15
15
|
* @param rate Film seconds per wall second.
|
|
16
16
|
* @returns A function stopping every started source once.
|
|
17
|
-
* @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Play a cue list through Web Audio from a film instant at a transport rate, as plans it: one buffer source per sounding cue, through a gain and an equal-power stereo panner, started at the context's current time plus its delay) and documents parameters `context`, `decoded`, `cues`, `seconds`, `rate`, the returned value as stated in this comment.
|
|
18
|
-
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Play a cue list through Web Audio from a film instant at a transport rate, as plans it: one buffer source per sounding cue, through a gain and an equal-power stereo panner, started at the context's current time plus its delay) directly over its typed inputs (`context`, `decoded`, `cues`, `seconds`, `rate`) as 3 sequential passes (map over Object.entries(decoded); for-of over planAutoMovieAudioPlayback( cues, ; for-of over sources), delegating to `Object.fromEntries`, `Object.entries(decoded).map`, `Object.entries`, `planAutoMovieAudioPlayback`, `context.createBufferSource`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body performs no validation and relies on its callers. Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
19
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 46 lines and 6 top-level statements that reuses `Object.fromEntries`, `Object.entries(decoded).map`, `Object.entries`, `planAutoMovieAudioPlayback`, `context.createBufferSource` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
|
|
20
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The body contains 0 `any`, 0 type assertion(s), 1 non-null assertion(s); these are the remaining shortcuts and are not justified here.
|
|
21
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `context`, `decoded`, `cues`, `seconds`, `rate`; the dominant cost is 3 sequential passes (map over Object.entries(decoded); for-of over planAutoMovieAudioPlayback( cues, ; for-of over sources), performed once per call with 2 allocation sites (literals and constructed values). No speedup is claimed and none is measured.
|
|
22
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
23
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 2 allocation sites become the returned value or die with the call, so nothing grows.
|
|
24
17
|
*/
|
|
25
18
|
export function playAutoMovieAudioCues(
|
|
26
19
|
context: BaseAudioContext,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AutoMovieThreeKind } from "@automovie/render";
|
|
1
2
|
import * as THREE from "three";
|
|
2
3
|
|
|
3
4
|
import type { IViewerCameraStateSnapshot } from "./IViewerCameraStateSnapshot.js";
|
|
@@ -6,20 +7,12 @@ import type { IViewerCameraStateSnapshot } from "./IViewerCameraStateSnapshot.js
|
|
|
6
7
|
* Transfer detached, auto-updating Perspective/Orthographic cameras through
|
|
7
8
|
* their public native lens/transform API, including film and view offsets.
|
|
8
9
|
* Parented, manual-matrix and custom-projection cameras are explicitly refused:
|
|
9
|
-
* another owner must transfer those relationships rather than guess them.
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* @evidence contracts/development/implementation.md#principled-implementation Captures native detached auto-updating lens/TRS/view state and admits unknown input on a temporary camera clone, requiring finite dimensions, nondegenerate transforms and exact native projection parity before copy; custom/manual/parented cameras refuse, while non-unit quaternions are not normalized and only resulting finite invertibility is tested.
|
|
13
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Keeps capture and restore with the same native camera/lens owner, preserving view offsets/film settings instead of applying an unexplained raw matrix snapshot; a named transfer record describes existing fields without another projection solver.
|
|
14
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses actual native projection recomputation and exact parity rather than fixture lens defaults, patched matrix methods or tolerance-based acceptance of an unsupported custom projection.
|
|
15
|
-
* @evidence contracts/development/common.md#meaningful-documentation States detached/auto-updating supported classes, refused custom state and admission-before-mutation; the transfer record's field docs give vector/matrix conventions, layer mask and lens/view units.
|
|
16
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Each capture/restore reads fixed-size lens/vector/matrix state and one temporary camera clone, constant adapter work/storage; camera.clone is recursive by native default, so a camera with children may additionally clone its child subtree despite parentless admission.
|
|
17
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Capture/restore share native lens semantics and one borrowed camera identity; mutable lens/pose/view input requires new snapshots/candidate validation, with no cached custom projection or alternate math.
|
|
18
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned closures retain the borrowed camera and each capture transfers copied scalar/array/view state; temporary clones acquire no GPU handle themselves but may retain cloned child references until unreachable. The original camera/children remain host-owned and no task starts.
|
|
10
|
+
* another owner must transfer those relationships rather than guess them. A
|
|
11
|
+
* degenerate state is refused before the original camera is mutated.
|
|
19
12
|
*/
|
|
20
13
|
export function createViewerCameraState(camera: THREE.Camera): {
|
|
21
14
|
capture: () => IViewerCameraStateSnapshot;
|
|
22
|
-
restore: (state:
|
|
15
|
+
restore: (state: IViewerCameraStateSnapshot) => void;
|
|
23
16
|
} {
|
|
24
17
|
const supported: () =>
|
|
25
18
|
| THREE.PerspectiveCamera
|
|
@@ -28,8 +21,8 @@ export function createViewerCameraState(camera: THREE.Camera): {
|
|
|
28
21
|
| THREE.OrthographicCamera => {
|
|
29
22
|
if (
|
|
30
23
|
!(
|
|
31
|
-
camera
|
|
32
|
-
camera
|
|
24
|
+
AutoMovieThreeKind.isPerspectiveCamera(camera) ||
|
|
25
|
+
AutoMovieThreeKind.isOrthographicCamera(camera)
|
|
33
26
|
) ||
|
|
34
27
|
camera.parent !== null ||
|
|
35
28
|
!camera.matrixAutoUpdate ||
|
|
@@ -65,223 +58,174 @@ export function createViewerCameraState(camera: THREE.Camera): {
|
|
|
65
58
|
layers: owned.layers.mask,
|
|
66
59
|
projection: owned.projectionMatrix.toArray(),
|
|
67
60
|
view: owned.view === null ? null : { ...owned.view },
|
|
68
|
-
lens:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
},
|
|
61
|
+
lens: AutoMovieThreeKind.isPerspectiveCamera(owned)
|
|
62
|
+
? {
|
|
63
|
+
kind: "perspective",
|
|
64
|
+
fov: owned.fov,
|
|
65
|
+
aspect: owned.aspect,
|
|
66
|
+
near: owned.near,
|
|
67
|
+
far: owned.far,
|
|
68
|
+
zoom: owned.zoom,
|
|
69
|
+
filmGauge: owned.filmGauge,
|
|
70
|
+
filmOffset: owned.filmOffset,
|
|
71
|
+
focus: owned.focus,
|
|
72
|
+
}
|
|
73
|
+
: {
|
|
74
|
+
kind: "orthographic",
|
|
75
|
+
left: owned.left,
|
|
76
|
+
right: owned.right,
|
|
77
|
+
top: owned.top,
|
|
78
|
+
bottom: owned.bottom,
|
|
79
|
+
near: owned.near,
|
|
80
|
+
far: owned.far,
|
|
81
|
+
zoom: owned.zoom,
|
|
82
|
+
},
|
|
91
83
|
};
|
|
92
84
|
};
|
|
93
|
-
const restore: (state:
|
|
85
|
+
const restore: (state: IViewerCameraStateSnapshot) => void = (
|
|
86
|
+
state: IViewerCameraStateSnapshot,
|
|
87
|
+
): void => {
|
|
94
88
|
const owned: THREE.PerspectiveCamera | THREE.OrthographicCamera =
|
|
95
89
|
supported();
|
|
96
|
-
if (
|
|
97
|
-
state === null ||
|
|
98
|
-
typeof state !== "object" ||
|
|
99
|
-
Reflect.get(state, "type") !== owned.type
|
|
100
|
-
)
|
|
90
|
+
if (state.type !== owned.type)
|
|
101
91
|
throw new Error("Camera transfer changed camera type.");
|
|
102
|
-
const read: (name: string, length: number) => number[] = (
|
|
103
|
-
name: string,
|
|
104
|
-
length: number,
|
|
105
|
-
): number[] => {
|
|
106
|
-
const value: unknown = Reflect.get(state, name);
|
|
107
|
-
if (
|
|
108
|
-
!Array.isArray(value) ||
|
|
109
|
-
value.length !== length ||
|
|
110
|
-
!value.every(
|
|
111
|
-
(part: unknown): boolean =>
|
|
112
|
-
typeof part === "number" && Number.isFinite(part),
|
|
113
|
-
)
|
|
114
|
-
)
|
|
115
|
-
throw new Error("Camera transfer has no finite " + name + ".");
|
|
116
|
-
return value;
|
|
117
|
-
};
|
|
118
|
-
const position: number[] = read("position", 3),
|
|
119
|
-
quaternion: number[] = read("quaternion", 4);
|
|
120
|
-
const scale: number[] = read("scale", 3),
|
|
121
|
-
up: number[] = read("up", 3),
|
|
122
|
-
projection: number[] = read("projection", 16);
|
|
123
92
|
const determinant: number = new THREE.Matrix4()
|
|
124
|
-
.fromArray(projection)
|
|
93
|
+
.fromArray(state.projection)
|
|
125
94
|
.determinant();
|
|
95
|
+
// The rotation squares the quaternion, so one whose length overflows would
|
|
96
|
+
// turn the world transform into infinities less infinities.
|
|
97
|
+
const turn: number = Math.hypot(...state.quaternion);
|
|
98
|
+
// The world determinant is the scales' product; one that overflows or
|
|
99
|
+
// vanishes leaves no invertible transform.
|
|
100
|
+
const volume: number = state.scale[0] * state.scale[1] * state.scale[2];
|
|
126
101
|
if (
|
|
127
|
-
!(
|
|
128
|
-
|
|
129
|
-
|
|
102
|
+
!(turn > 0) ||
|
|
103
|
+
turn === Infinity ||
|
|
104
|
+
!(Math.hypot(...state.up) > 0) ||
|
|
105
|
+
volume === 0 ||
|
|
106
|
+
volume === Infinity ||
|
|
107
|
+
volume === -Infinity ||
|
|
130
108
|
determinant === 0 ||
|
|
131
|
-
|
|
109
|
+
determinant === Infinity ||
|
|
110
|
+
determinant === -Infinity
|
|
132
111
|
)
|
|
133
112
|
throw new Error("Camera transfer has a degenerate pose/projection.");
|
|
134
|
-
|
|
135
|
-
if (
|
|
136
|
-
typeof layers !== "number" ||
|
|
137
|
-
!Number.isInteger(layers) ||
|
|
138
|
-
layers < -2147483648 ||
|
|
139
|
-
layers > 4294967295
|
|
140
|
-
)
|
|
113
|
+
if (state.layers < -2147483648 || state.layers > 4294967295)
|
|
141
114
|
throw new Error("Camera transfer has no valid layer mask.");
|
|
142
|
-
const lens: unknown = Reflect.get(state, "lens");
|
|
143
|
-
if (lens === null || typeof lens !== "object")
|
|
144
|
-
throw new Error("Camera transfer has no lens.");
|
|
145
|
-
const number: (name: string) => number = (name: string): number => {
|
|
146
|
-
const value: unknown = Reflect.get(lens, name);
|
|
147
|
-
if (typeof value !== "number" || !Number.isFinite(value))
|
|
148
|
-
throw new Error("Camera transfer has no finite " + name + ".");
|
|
149
|
-
return value;
|
|
150
|
-
};
|
|
151
115
|
const candidate: THREE.PerspectiveCamera | THREE.OrthographicCamera =
|
|
152
116
|
owned.clone();
|
|
153
|
-
|
|
154
|
-
|
|
117
|
+
const lens: IViewerCameraStateSnapshot["lens"] = state.lens;
|
|
118
|
+
if (AutoMovieThreeKind.isPerspectiveCamera(candidate)) {
|
|
119
|
+
if (lens.kind !== "perspective")
|
|
155
120
|
throw new Error("Camera transfer changed projection type.");
|
|
156
|
-
const [
|
|
157
|
-
fov,
|
|
158
|
-
aspect,
|
|
159
|
-
near,
|
|
160
|
-
far,
|
|
161
|
-
zoom,
|
|
162
|
-
filmGauge,
|
|
163
|
-
filmOffset,
|
|
164
|
-
focus,
|
|
165
|
-
]: number[] = [
|
|
166
|
-
"fov",
|
|
167
|
-
"aspect",
|
|
168
|
-
"near",
|
|
169
|
-
"far",
|
|
170
|
-
"zoom",
|
|
171
|
-
"filmGauge",
|
|
172
|
-
"filmOffset",
|
|
173
|
-
"focus",
|
|
174
|
-
].map(number);
|
|
175
121
|
if (
|
|
176
122
|
!(
|
|
177
|
-
fov > 0 &&
|
|
178
|
-
fov < 180 &&
|
|
179
|
-
aspect > 0 &&
|
|
180
|
-
near > 0 &&
|
|
181
|
-
far > near &&
|
|
182
|
-
zoom > 0 &&
|
|
183
|
-
filmGauge > 0 &&
|
|
184
|
-
focus > 0
|
|
123
|
+
lens.fov > 0 &&
|
|
124
|
+
lens.fov < 180 &&
|
|
125
|
+
lens.aspect > 0 &&
|
|
126
|
+
lens.near > 0 &&
|
|
127
|
+
lens.far > lens.near &&
|
|
128
|
+
lens.zoom > 0 &&
|
|
129
|
+
lens.filmGauge > 0 &&
|
|
130
|
+
lens.focus > 0
|
|
185
131
|
)
|
|
186
132
|
)
|
|
187
133
|
throw new Error("Camera transfer lens is invalid.");
|
|
188
134
|
Object.assign(candidate, {
|
|
189
|
-
fov,
|
|
190
|
-
aspect,
|
|
191
|
-
near,
|
|
192
|
-
far,
|
|
193
|
-
zoom,
|
|
194
|
-
filmGauge,
|
|
195
|
-
filmOffset,
|
|
196
|
-
focus,
|
|
135
|
+
fov: lens.fov,
|
|
136
|
+
aspect: lens.aspect,
|
|
137
|
+
near: lens.near,
|
|
138
|
+
far: lens.far,
|
|
139
|
+
zoom: lens.zoom,
|
|
140
|
+
filmGauge: lens.filmGauge,
|
|
141
|
+
filmOffset: lens.filmOffset,
|
|
142
|
+
focus: lens.focus,
|
|
197
143
|
});
|
|
198
144
|
} else {
|
|
199
|
-
if (
|
|
145
|
+
if (lens.kind !== "orthographic")
|
|
200
146
|
throw new Error("Camera transfer changed projection type.");
|
|
201
|
-
const [left, right, top, bottom, near, far, zoom]: number[] = [
|
|
202
|
-
"left",
|
|
203
|
-
"right",
|
|
204
|
-
"top",
|
|
205
|
-
"bottom",
|
|
206
|
-
"near",
|
|
207
|
-
"far",
|
|
208
|
-
"zoom",
|
|
209
|
-
].map(number);
|
|
210
147
|
if (
|
|
211
|
-
!(
|
|
148
|
+
!(
|
|
149
|
+
lens.right > lens.left &&
|
|
150
|
+
lens.top > lens.bottom &&
|
|
151
|
+
lens.near >= 0 &&
|
|
152
|
+
lens.far > lens.near &&
|
|
153
|
+
lens.zoom > 0
|
|
154
|
+
)
|
|
212
155
|
)
|
|
213
156
|
throw new Error("Camera transfer lens is invalid.");
|
|
214
|
-
Object.assign(candidate, {
|
|
157
|
+
Object.assign(candidate, {
|
|
158
|
+
left: lens.left,
|
|
159
|
+
right: lens.right,
|
|
160
|
+
top: lens.top,
|
|
161
|
+
bottom: lens.bottom,
|
|
162
|
+
near: lens.near,
|
|
163
|
+
far: lens.far,
|
|
164
|
+
zoom: lens.zoom,
|
|
165
|
+
});
|
|
215
166
|
}
|
|
216
|
-
const view:
|
|
167
|
+
const view: IViewerCameraStateSnapshot["view"] = state.view;
|
|
217
168
|
if (view !== null) {
|
|
218
|
-
if (typeof view !== "object")
|
|
219
|
-
throw new Error("Camera transfer has no view offset.");
|
|
220
|
-
const enabled: unknown = Reflect.get(view, "enabled");
|
|
221
|
-
const values: number[] = [
|
|
222
|
-
"fullWidth",
|
|
223
|
-
"fullHeight",
|
|
224
|
-
"offsetX",
|
|
225
|
-
"offsetY",
|
|
226
|
-
"width",
|
|
227
|
-
"height",
|
|
228
|
-
].map((key: string): number => {
|
|
229
|
-
const value: unknown = Reflect.get(view, key);
|
|
230
|
-
if (typeof value !== "number" || !Number.isFinite(value))
|
|
231
|
-
throw new Error("Camera transfer has no finite view " + key + ".");
|
|
232
|
-
return value;
|
|
233
|
-
});
|
|
234
|
-
const [fullWidth, fullHeight, offsetX, offsetY, width, height]: number[] =
|
|
235
|
-
values;
|
|
236
169
|
if (
|
|
237
|
-
|
|
238
|
-
|
|
170
|
+
!(
|
|
171
|
+
view.fullWidth > 0 &&
|
|
172
|
+
view.fullHeight > 0 &&
|
|
173
|
+
view.width > 0 &&
|
|
174
|
+
view.height > 0
|
|
175
|
+
)
|
|
239
176
|
)
|
|
240
177
|
throw new Error("Camera transfer view dimensions are invalid.");
|
|
241
178
|
candidate.setViewOffset(
|
|
242
|
-
fullWidth,
|
|
243
|
-
fullHeight,
|
|
244
|
-
offsetX,
|
|
245
|
-
offsetY,
|
|
246
|
-
width,
|
|
247
|
-
height,
|
|
179
|
+
view.fullWidth,
|
|
180
|
+
view.fullHeight,
|
|
181
|
+
view.offsetX,
|
|
182
|
+
view.offsetY,
|
|
183
|
+
view.width,
|
|
184
|
+
view.height,
|
|
248
185
|
);
|
|
249
|
-
candidate.view!.enabled = enabled;
|
|
186
|
+
candidate.view!.enabled = view.enabled;
|
|
250
187
|
} else candidate.view = null;
|
|
251
188
|
// setViewOffset also writes Perspective.aspect. A later native resize may
|
|
252
189
|
// legitimately have changed that lens while preserving the crop window.
|
|
253
|
-
if (
|
|
254
|
-
|
|
190
|
+
if (
|
|
191
|
+
AutoMovieThreeKind.isPerspectiveCamera(candidate) &&
|
|
192
|
+
lens.kind === "perspective"
|
|
193
|
+
)
|
|
194
|
+
candidate.aspect = lens.aspect;
|
|
255
195
|
candidate.updateProjectionMatrix();
|
|
256
196
|
if (
|
|
257
197
|
!candidate.projectionMatrix.elements.every(
|
|
258
|
-
(value: number, index: number): boolean =>
|
|
198
|
+
(value: number, index: number): boolean =>
|
|
199
|
+
value === state.projection[index],
|
|
259
200
|
)
|
|
260
201
|
)
|
|
261
202
|
throw new Error(
|
|
262
203
|
"The projection does not match the transferred native lens.",
|
|
263
204
|
);
|
|
264
|
-
candidate.position.fromArray(position);
|
|
265
|
-
candidate.quaternion.fromArray(quaternion);
|
|
266
|
-
candidate.scale.fromArray(scale);
|
|
267
|
-
candidate.up.fromArray(up);
|
|
268
|
-
candidate.layers.mask = layers;
|
|
205
|
+
candidate.position.fromArray(state.position);
|
|
206
|
+
candidate.quaternion.fromArray(state.quaternion);
|
|
207
|
+
candidate.scale.fromArray(state.scale);
|
|
208
|
+
candidate.up.fromArray(state.up);
|
|
209
|
+
candidate.layers.mask = state.layers;
|
|
269
210
|
candidate.updateMatrixWorld(true);
|
|
270
211
|
const worldDeterminant: number = candidate.matrixWorld.determinant();
|
|
271
212
|
if (
|
|
272
|
-
|
|
213
|
+
candidate.matrixWorld.elements.some(
|
|
214
|
+
(value: number): boolean => value === Infinity || value === -Infinity,
|
|
215
|
+
) ||
|
|
273
216
|
worldDeterminant === 0 ||
|
|
274
|
-
|
|
217
|
+
worldDeterminant === Infinity ||
|
|
218
|
+
worldDeterminant === -Infinity
|
|
275
219
|
)
|
|
276
220
|
throw new Error("The transferred camera world transform is degenerate.");
|
|
277
221
|
if (
|
|
278
|
-
owned
|
|
279
|
-
candidate
|
|
222
|
+
AutoMovieThreeKind.isPerspectiveCamera(owned) &&
|
|
223
|
+
AutoMovieThreeKind.isPerspectiveCamera(candidate)
|
|
280
224
|
)
|
|
281
225
|
owned.copy(candidate, false);
|
|
282
226
|
else if (
|
|
283
|
-
owned
|
|
284
|
-
candidate
|
|
227
|
+
AutoMovieThreeKind.isOrthographicCamera(owned) &&
|
|
228
|
+
AutoMovieThreeKind.isOrthographicCamera(candidate)
|
|
285
229
|
)
|
|
286
230
|
owned.copy(candidate, false);
|
|
287
231
|
else throw new Error("The validated camera projection changed type.");
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Keep requested draw time separate from the last completed display clock.
|
|
3
|
-
*
|
|
2
|
+
* Keep requested draw time separate from the last completed display clock. A
|
|
3
|
+
* completion inherits its synchronous producer's time; an out-of-loop guide
|
|
4
4
|
* redraw preserves the displayed time unless its producer supplies a new one.
|
|
5
5
|
* Nested redraws restore the enclosing request after completion or refusal.
|
|
6
6
|
* Seconds must be finite and nonnegative before clock state changes.
|
|
7
|
-
*
|
|
8
|
-
* @evidence contracts/development/implementation.md#principled-implementation Separates a validated synchronous producing-time scope from last completed time; completion prefers explicit seconds, then nested producer time, then prior display, and finally restores the enclosing producer clock even after refusal. Async work must complete with explicit time because run's scope is synchronous.
|
|
9
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Keeps two scalar clock states and one admission rule instead of tying requested seek to displayed completion or advancing an accumulator each frame.
|
|
10
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No fixture seek time or dropped-frame estimate advances the display; negative/nonfinite requests refuse before mutation and failed producers do not overwrite the enclosing request state.
|
|
11
|
-
* @evidence contracts/development/common.md#meaningful-documentation Gives requested-versus-completed time, nested scope restoration, finite nonnegative seconds and out-of-loop completion precedence.
|
|
12
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Fixed-count scalar validation/assignment per request/completion, constant retained storage plus the actual synchronous call-stack depth of nested producers.
|
|
13
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses last completed time for out-of-loop redraws without a new authoritative timestamp; effectful producer callbacks are still invoked rather than skipped because their requested seconds match.
|
|
14
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds only displayed/producing scalars, borrows each synchronous callback for its invocation and starts no timer, worker or render task; no cancellation/resource handle is acquired.
|
|
15
7
|
*/
|
|
16
8
|
export function createViewerDisplayClock(): {
|
|
17
9
|
current: () => number;
|
|
@@ -21,9 +13,9 @@ export function createViewerDisplayClock(): {
|
|
|
21
13
|
let displayed: number = 0;
|
|
22
14
|
let producing: number | undefined;
|
|
23
15
|
const validate: (seconds: number) => void = (seconds: number): void => {
|
|
24
|
-
if (
|
|
16
|
+
if (seconds < 0)
|
|
25
17
|
throw new Error(
|
|
26
|
-
"A completed display clock requires
|
|
18
|
+
"A completed display clock requires nonnegative seconds.",
|
|
27
19
|
);
|
|
28
20
|
};
|
|
29
21
|
return {
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Stage an original completed snapshot without publishing its generation.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* @evidence contracts/development/implementation.md#principled-implementation Separates successful original bitmap copy from admitted session/generation and subsequent start; failed copy leaves prior identity/preparation intact, while disposal closes authority before releasing pending work. Caller supplies valid identity and transactional copy behavior; start failure occurs after identity commit and is not rolled back.
|
|
11
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One small publication state machine owns preparation/commit/change authority while caller ports own actual pixels, encoding/upload and pending bitmap release.
|
|
12
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Admission is actual copy success rather than a quiet watcher or fixture generation; closed/precommit branches follow lifecycle meaning, with no replacement native methods or fabricated persisted-frame success.
|
|
13
|
-
* @evidence contracts/development/common.md#meaningful-documentation Distinguishes original staging, identity commitment, start side effects, active availability and completed filesystem IO; disposal and failed-copy obligations are explicit.
|
|
14
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Coordinator uses constant scalar state and one optional identity record; real copy/start costs remain accounted by the supplied ports and are not reduced by this wrapper.
|
|
15
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work A successful prepare is reused by the next commit without another copy, while changed copies real current pixels under the committed identity; effectful repeated changes are not cached by identity alone.
|
|
16
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds one identity and prepared/closed flags while the caller owns one pending bitmap; dispose marks closed and invokes release once. A release throw is not retried or memoized as a repeated failure by this primitive, so native bitmap release uncertainty remains with its caller port.
|
|
2
|
+
* Stage an original completed snapshot without publishing its generation. The
|
|
3
|
+
* caller's copy port owns one latest bitmap and leaves it intact on a refused
|
|
4
|
+
* copy. Commit admits that prepared snapshot, or copies a direct active
|
|
5
|
+
* display; only then may the start port encode/upload it. Disposal releases the
|
|
6
|
+
* caller's pending bitmap and forbids further publication. The active query
|
|
7
|
+
* reports lifecycle availability, including uncommitted staging; it does not
|
|
8
|
+
* assert an admitted display or completed filesystem IO.
|
|
17
9
|
*/
|
|
18
10
|
export function createViewerDisplayPublication(props: {
|
|
19
11
|
copy: () => boolean;
|
|
@@ -2,22 +2,14 @@ import type { IAutoMovieViewerDisplayMetadata } from "./IAutoMovieViewerDisplayM
|
|
|
2
2
|
import { createViewerDisplayPublication } from "./createViewerDisplayPublication.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* Copy a completed display before asynchronously encoding and saving it.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* pending and published frame. Owned superseded surfaces are released.
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* @evidence contracts/development/implementation.md#principled-implementation Structured-clones completed metadata and copies original canvas pixels before PNG encoding, then posts the committed session/generation and monotone local sequence to the actual /display sink; copied facts/pixels must belong to one completed display, and synchronous success does not certify retain/encode/network completion.
|
|
15
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns browser bitmap/encoding/upload lifetime and delegates preparation/commit authority to createViewerDisplayPublication; optional paint and retain ports preserve existing visible-layer and graphics-recovery owners without a parallel render or solver.
|
|
16
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Saves actual copied pixels/metadata rather than a synthetic probe or fixture PNG; refused snapshot preserves the previous pending bitmap, and asynchronous failures are surfaced as AUTOMOVIE display-save warnings instead of a false saved receipt.
|
|
17
|
-
* @evidence contracts/development/common.md#meaningful-documentation Distinguishes provisional copy, committed upload, async failure and independent original-pixel retention; one-running/one-pending population and superseded-surface release are explicit.
|
|
18
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Copy/PNG/base64 serialization are O(frame pixels or encoded bytes plus cloned metadata); one encoder/upload runs while only latest pending bitmap survives, preventing a frame-per-draw backlog. Driver/browser serialization and network costs remain real work.
|
|
19
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Prepared original copy is reused by commit, successive pending copies replace superseded surfaces, and the running result is retained for graphics recovery; different completed pixels/facts require a new original snapshot rather than a metadata-only equivalence claim.
|
|
20
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Owns at most one running surface/blob/data URL and one pending surface/facts, bounded by their raster/encoded sizes. Release discards pending pixels, aborts the owned FileReader and fetch and closes publication authority. Native toBlob cannot be canceled; its callback is awaited without starting later work after disposal.
|
|
5
|
+
* Copy a completed display before asynchronously encoding and saving it. The
|
|
6
|
+
* caller owns completion, facts and commitment. One encoder/upload and one
|
|
7
|
+
* latest pending bitmap bound work; failed snapshots retain the previous
|
|
8
|
+
* pending and published frame. Owned superseded surfaces are released. Prepare
|
|
9
|
+
* copies a provisional visible frame without starting an upload; commit admits
|
|
10
|
+
* the same staged bitmap, or copies a direct active display. Commit/change
|
|
11
|
+
* return whether synchronous copying succeeded; asynchronous encoding or HTTP
|
|
12
|
+
* failures are reported separately and do not certify IO.
|
|
21
13
|
*/
|
|
22
14
|
export function createViewerDisplaySave(props: {
|
|
23
15
|
canvas: HTMLCanvasElement;
|