@dreamerbird/camera-studio 0.0.0-stage → 0.1.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/assets/models/Y Bot.glb +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-base-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-base-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-point-relaxed-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-point-relaxed-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-point-straight-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-point-straight-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-01-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-01-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-02-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-02-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-03-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-03-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-04-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-04-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-05-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-05-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-06-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-06-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-bowl-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-bowl-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-card-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-card-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-claw-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-claw-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-fist-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-fist-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-grip-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-grip-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-ko-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-ko-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-nail-check-01-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-nail-check-01-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-nail-check-02-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-nail-check-02-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-offer-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-offer-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-push-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-push-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-push-the-button-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-push-the-button-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-scratch-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-scratch-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-spread-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-spread-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-write-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-write-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-cobblepot-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-cobblepot-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-fingers-crossed-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-fingers-crossed-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-five-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-five-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-four-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-four-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-four-ring-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-four-ring-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-fu-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-fu-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-index-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-index-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-martian-reactor-switch-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-martian-reactor-switch-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-one-does-not-simply-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-one-does-not-simply-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-peace-flipped-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-peace-flipped.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-peace-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-peace-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-perfect-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-perfect-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-pinky-swear-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-pinky-swear-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-rock-out-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-rock-out-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-scout-salute-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-scout-salute-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-spock-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-spock-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-stop-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-stop-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-surf-s-up-flipped-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-surf-s-up-flipped-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-surf-s-up-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-surf-s-up-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-three-hicox-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-three-hicox-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-three-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-three-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-three-ring-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-three-ring-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-thumbs-up-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-thumbs-up-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-detonator-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-detonator-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-grip-sword-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-grip-sword-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-gun-01-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-gun-01-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-gun-02-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-gun-02-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-gun-03-l-cock-the-hammer.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-gun-03-r-cock-the-hammer.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-hadoken-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-hadoken-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-pistol-double-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-pistol-double-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-pistol-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-pistol-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-throw-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-throw-r.png +0 -0
- package/dist/Anchors.d.ts +11 -0
- package/dist/Anchors.d.ts.map +1 -0
- package/dist/Anchors.js +315 -0
- package/dist/App.hostFlows.test.d.ts +2 -0
- package/dist/App.hostFlows.test.d.ts.map +1 -0
- package/dist/App.hostFlows.test.js +48 -0
- package/dist/CameraPath.d.ts +130 -0
- package/dist/CameraPath.d.ts.map +1 -0
- package/dist/CameraPath.js +920 -0
- package/dist/CameraScene.d.ts +45 -0
- package/dist/CameraScene.d.ts.map +1 -0
- package/dist/CameraScene.js +1716 -0
- package/dist/CameraScene.test.d.ts +2 -0
- package/dist/CameraScene.test.d.ts.map +1 -0
- package/dist/CameraScene.test.js +259 -0
- package/dist/PathPresetDropRig.d.ts +27 -0
- package/dist/PathPresetDropRig.d.ts.map +1 -0
- package/dist/PathPresetDropRig.js +192 -0
- package/dist/PathPresetThumb.d.ts +11 -0
- package/dist/PathPresetThumb.d.ts.map +1 -0
- package/dist/PathPresetThumb.js +85 -0
- package/dist/PipCameraSelector.d.ts +15 -0
- package/dist/PipCameraSelector.d.ts.map +1 -0
- package/dist/PipCameraSelector.js +92 -0
- package/dist/PlacementManager.d.ts +252 -0
- package/dist/PlacementManager.d.ts.map +1 -0
- package/dist/PlacementManager.js +1525 -0
- package/dist/ShotCamera.d.ts +21 -0
- package/dist/ShotCamera.d.ts.map +1 -0
- package/dist/ShotCamera.js +568 -0
- package/dist/TopToolbar.d.ts +43 -0
- package/dist/TopToolbar.d.ts.map +1 -0
- package/dist/TopToolbar.js +167 -0
- package/dist/TopToolbar.test.d.ts +2 -0
- package/dist/TopToolbar.test.d.ts.map +1 -0
- package/dist/TopToolbar.test.js +107 -0
- package/dist/agent/api.d.ts +95 -0
- package/dist/agent/api.d.ts.map +1 -0
- package/dist/agent/api.js +337 -0
- package/dist/agent/api.test.d.ts +2 -0
- package/dist/agent/api.test.d.ts.map +1 -0
- package/dist/agent/api.test.js +907 -0
- package/dist/agent/bridgeClient.d.ts +62 -0
- package/dist/agent/bridgeClient.d.ts.map +1 -0
- package/dist/agent/bridgeClient.js +277 -0
- package/dist/agent/bridgeClient.test.d.ts +2 -0
- package/dist/agent/bridgeClient.test.d.ts.map +1 -0
- package/dist/agent/bridgeClient.test.js +413 -0
- package/dist/agent/bridgeFiles.d.ts +33 -0
- package/dist/agent/bridgeFiles.d.ts.map +1 -0
- package/dist/agent/bridgeFiles.js +193 -0
- package/dist/agent/bridgeFiles.test.d.ts +2 -0
- package/dist/agent/bridgeFiles.test.d.ts.map +1 -0
- package/dist/agent/bridgeFiles.test.js +220 -0
- package/dist/agent/commands/anchors.d.ts +43 -0
- package/dist/agent/commands/anchors.d.ts.map +1 -0
- package/dist/agent/commands/anchors.js +331 -0
- package/dist/agent/commands/anchors.test.d.ts +2 -0
- package/dist/agent/commands/anchors.test.d.ts.map +1 -0
- package/dist/agent/commands/anchors.test.js +447 -0
- package/dist/agent/commands/animations.d.ts +47 -0
- package/dist/agent/commands/animations.d.ts.map +1 -0
- package/dist/agent/commands/animations.js +245 -0
- package/dist/agent/commands/animations.test.d.ts +2 -0
- package/dist/agent/commands/animations.test.d.ts.map +1 -0
- package/dist/agent/commands/animations.test.js +426 -0
- package/dist/agent/commands/assets.d.ts +34 -0
- package/dist/agent/commands/assets.d.ts.map +1 -0
- package/dist/agent/commands/assets.js +367 -0
- package/dist/agent/commands/assets.test.d.ts +2 -0
- package/dist/agent/commands/assets.test.d.ts.map +1 -0
- package/dist/agent/commands/assets.test.js +405 -0
- package/dist/agent/commands/bindings.realStudio.test.d.ts +21 -0
- package/dist/agent/commands/bindings.realStudio.test.d.ts.map +1 -0
- package/dist/agent/commands/bindings.realStudio.test.js +281 -0
- package/dist/agent/commands/cameras.d.ts +65 -0
- package/dist/agent/commands/cameras.d.ts.map +1 -0
- package/dist/agent/commands/cameras.js +498 -0
- package/dist/agent/commands/cameras.test.d.ts +2 -0
- package/dist/agent/commands/cameras.test.d.ts.map +1 -0
- package/dist/agent/commands/cameras.test.js +560 -0
- package/dist/agent/commands/delete.test.d.ts +2 -0
- package/dist/agent/commands/delete.test.d.ts.map +1 -0
- package/dist/agent/commands/delete.test.js +518 -0
- package/dist/agent/commands/exports.d.ts +12 -0
- package/dist/agent/commands/exports.d.ts.map +1 -0
- package/dist/agent/commands/exports.js +132 -0
- package/dist/agent/commands/exports.test.d.ts +2 -0
- package/dist/agent/commands/exports.test.d.ts.map +1 -0
- package/dist/agent/commands/exports.test.js +402 -0
- package/dist/agent/commands/history.d.ts +17 -0
- package/dist/agent/commands/history.d.ts.map +1 -0
- package/dist/agent/commands/history.js +96 -0
- package/dist/agent/commands/history.test.d.ts +2 -0
- package/dist/agent/commands/history.test.d.ts.map +1 -0
- package/dist/agent/commands/history.test.js +140 -0
- package/dist/agent/commands/jobs.d.ts +23 -0
- package/dist/agent/commands/jobs.d.ts.map +1 -0
- package/dist/agent/commands/jobs.js +66 -0
- package/dist/agent/commands/keyframes.d.ts +42 -0
- package/dist/agent/commands/keyframes.d.ts.map +1 -0
- package/dist/agent/commands/keyframes.js +310 -0
- package/dist/agent/commands/keyframes.realStudio.test.d.ts +11 -0
- package/dist/agent/commands/keyframes.realStudio.test.d.ts.map +1 -0
- package/dist/agent/commands/keyframes.realStudio.test.js +95 -0
- package/dist/agent/commands/keyframes.test.d.ts +2 -0
- package/dist/agent/commands/keyframes.test.d.ts.map +1 -0
- package/dist/agent/commands/keyframes.test.js +474 -0
- package/dist/agent/commands/models.d.ts +34 -0
- package/dist/agent/commands/models.d.ts.map +1 -0
- package/dist/agent/commands/models.js +137 -0
- package/dist/agent/commands/models.test.d.ts +2 -0
- package/dist/agent/commands/models.test.d.ts.map +1 -0
- package/dist/agent/commands/models.test.js +268 -0
- package/dist/agent/commands/objects.d.ts +4 -0
- package/dist/agent/commands/objects.d.ts.map +1 -0
- package/dist/agent/commands/objects.js +182 -0
- package/dist/agent/commands/objects.test.d.ts +2 -0
- package/dist/agent/commands/objects.test.d.ts.map +1 -0
- package/dist/agent/commands/objects.test.js +316 -0
- package/dist/agent/commands/paths.d.ts +111 -0
- package/dist/agent/commands/paths.d.ts.map +1 -0
- package/dist/agent/commands/paths.js +576 -0
- package/dist/agent/commands/paths.test.d.ts +2 -0
- package/dist/agent/commands/paths.test.d.ts.map +1 -0
- package/dist/agent/commands/paths.test.js +773 -0
- package/dist/agent/commands/poses.d.ts +101 -0
- package/dist/agent/commands/poses.d.ts.map +1 -0
- package/dist/agent/commands/poses.js +500 -0
- package/dist/agent/commands/poses.realStudio.test.d.ts +15 -0
- package/dist/agent/commands/poses.realStudio.test.d.ts.map +1 -0
- package/dist/agent/commands/poses.realStudio.test.js +161 -0
- package/dist/agent/commands/poses.test.d.ts +2 -0
- package/dist/agent/commands/poses.test.d.ts.map +1 -0
- package/dist/agent/commands/poses.test.js +735 -0
- package/dist/agent/commands/project.d.ts +12 -0
- package/dist/agent/commands/project.d.ts.map +1 -0
- package/dist/agent/commands/project.js +42 -0
- package/dist/agent/commands/project.test.d.ts +2 -0
- package/dist/agent/commands/project.test.d.ts.map +1 -0
- package/dist/agent/commands/project.test.js +125 -0
- package/dist/agent/commands/revision.realStudio.test.d.ts +14 -0
- package/dist/agent/commands/revision.realStudio.test.d.ts.map +1 -0
- package/dist/agent/commands/revision.realStudio.test.js +129 -0
- package/dist/agent/commands/scene.d.ts +32 -0
- package/dist/agent/commands/scene.d.ts.map +1 -0
- package/dist/agent/commands/scene.js +100 -0
- package/dist/agent/commands/scene.test.d.ts +2 -0
- package/dist/agent/commands/scene.test.d.ts.map +1 -0
- package/dist/agent/commands/scene.test.js +147 -0
- package/dist/agent/commands/selection.d.ts +21 -0
- package/dist/agent/commands/selection.d.ts.map +1 -0
- package/dist/agent/commands/selection.js +101 -0
- package/dist/agent/commands/selection.test.d.ts +2 -0
- package/dist/agent/commands/selection.test.d.ts.map +1 -0
- package/dist/agent/commands/selection.test.js +173 -0
- package/dist/agent/commands/sequence.d.ts +25 -0
- package/dist/agent/commands/sequence.d.ts.map +1 -0
- package/dist/agent/commands/sequence.js +174 -0
- package/dist/agent/commands/sequence.test.d.ts +2 -0
- package/dist/agent/commands/sequence.test.d.ts.map +1 -0
- package/dist/agent/commands/sequence.test.js +264 -0
- package/dist/agent/commands/ui.d.ts +40 -0
- package/dist/agent/commands/ui.d.ts.map +1 -0
- package/dist/agent/commands/ui.js +166 -0
- package/dist/agent/commands/view.d.ts +61 -0
- package/dist/agent/commands/view.d.ts.map +1 -0
- package/dist/agent/commands/view.js +229 -0
- package/dist/agent/commands/view.test.d.ts +2 -0
- package/dist/agent/commands/view.test.d.ts.map +1 -0
- package/dist/agent/commands/view.test.js +347 -0
- package/dist/agent/contractCoverage.test.d.ts +2 -0
- package/dist/agent/contractCoverage.test.d.ts.map +1 -0
- package/dist/agent/contractCoverage.test.js +87 -0
- package/dist/agent/deleteHandlers.d.ts +61 -0
- package/dist/agent/deleteHandlers.d.ts.map +1 -0
- package/dist/agent/deleteHandlers.js +41 -0
- package/dist/agent/errors.d.ts +24 -0
- package/dist/agent/errors.d.ts.map +1 -0
- package/dist/agent/errors.js +59 -0
- package/dist/agent/errors.test.d.ts +2 -0
- package/dist/agent/errors.test.d.ts.map +1 -0
- package/dist/agent/errors.test.js +25 -0
- package/dist/agent/expectedCommands.d.ts +9 -0
- package/dist/agent/expectedCommands.d.ts.map +1 -0
- package/dist/agent/expectedCommands.js +79 -0
- package/dist/agent/jobs.d.ts +52 -0
- package/dist/agent/jobs.d.ts.map +1 -0
- package/dist/agent/jobs.js +175 -0
- package/dist/agent/jobs.test.d.ts +2 -0
- package/dist/agent/jobs.test.d.ts.map +1 -0
- package/dist/agent/jobs.test.js +281 -0
- package/dist/agent/keyframeTracks.d.ts +57 -0
- package/dist/agent/keyframeTracks.d.ts.map +1 -0
- package/dist/agent/keyframeTracks.js +127 -0
- package/dist/agent/objectIds.d.ts +7 -0
- package/dist/agent/objectIds.d.ts.map +1 -0
- package/dist/agent/objectIds.js +20 -0
- package/dist/agent/objectIds.test.d.ts +2 -0
- package/dist/agent/objectIds.test.d.ts.map +1 -0
- package/dist/agent/objectIds.test.js +10 -0
- package/dist/agent/objectResolver.d.ts +34 -0
- package/dist/agent/objectResolver.d.ts.map +1 -0
- package/dist/agent/objectResolver.js +112 -0
- package/dist/agent/pathCommands.d.ts +78 -0
- package/dist/agent/pathCommands.d.ts.map +1 -0
- package/dist/agent/pathCommands.js +240 -0
- package/dist/agent/propAccess.d.ts +42 -0
- package/dist/agent/propAccess.d.ts.map +1 -0
- package/dist/agent/propAccess.js +181 -0
- package/dist/agent/registerCommands.d.ts +9 -0
- package/dist/agent/registerCommands.d.ts.map +1 -0
- package/dist/agent/registerCommands.js +77 -0
- package/dist/agent/registry.d.ts +33 -0
- package/dist/agent/registry.d.ts.map +1 -0
- package/dist/agent/registry.js +55 -0
- package/dist/agent/registry.test.d.ts +2 -0
- package/dist/agent/registry.test.d.ts.map +1 -0
- package/dist/agent/registry.test.js +106 -0
- package/dist/agent/runtime/animationStatus.d.ts +25 -0
- package/dist/agent/runtime/animationStatus.d.ts.map +1 -0
- package/dist/agent/runtime/animationStatus.js +13 -0
- package/dist/agent/runtime/cameraLifecycle.d.ts +37 -0
- package/dist/agent/runtime/cameraLifecycle.d.ts.map +1 -0
- package/dist/agent/runtime/cameraLifecycle.js +112 -0
- package/dist/agent/runtime/directorView.d.ts +42 -0
- package/dist/agent/runtime/directorView.d.ts.map +1 -0
- package/dist/agent/runtime/directorView.js +27 -0
- package/dist/agent/runtime/exportRuntime.d.ts +95 -0
- package/dist/agent/runtime/exportRuntime.d.ts.map +1 -0
- package/dist/agent/runtime/exportRuntime.js +227 -0
- package/dist/agent/runtime/objectRuntime.d.ts +26 -0
- package/dist/agent/runtime/objectRuntime.d.ts.map +1 -0
- package/dist/agent/runtime/objectRuntime.js +29 -0
- package/dist/agent/runtime/pathRuntime.d.ts +21 -0
- package/dist/agent/runtime/pathRuntime.d.ts.map +1 -0
- package/dist/agent/runtime/pathRuntime.js +13 -0
- package/dist/agent/runtime/placementLifecycle.d.ts +34 -0
- package/dist/agent/runtime/placementLifecycle.d.ts.map +1 -0
- package/dist/agent/runtime/placementLifecycle.js +63 -0
- package/dist/agent/runtime/placementLifecycle.test.d.ts +2 -0
- package/dist/agent/runtime/placementLifecycle.test.d.ts.map +1 -0
- package/dist/agent/runtime/placementLifecycle.test.js +68 -0
- package/dist/agent/runtime/poseSessionRuntime.d.ts +17 -0
- package/dist/agent/runtime/poseSessionRuntime.d.ts.map +1 -0
- package/dist/agent/runtime/poseSessionRuntime.js +64 -0
- package/dist/agent/runtime.d.ts +67 -0
- package/dist/agent/runtime.d.ts.map +1 -0
- package/dist/agent/runtime.js +214 -0
- package/dist/agent/runtime.test.d.ts +2 -0
- package/dist/agent/runtime.test.d.ts.map +1 -0
- package/dist/agent/runtime.test.js +142 -0
- package/dist/agent/sequenceLength.d.ts +20 -0
- package/dist/agent/sequenceLength.d.ts.map +1 -0
- package/dist/agent/sequenceLength.js +18 -0
- package/dist/agent/types.d.ts +70 -0
- package/dist/agent/types.d.ts.map +1 -0
- package/dist/agent/types.js +6 -0
- package/dist/agent/validation.d.ts +7 -0
- package/dist/agent/validation.d.ts.map +1 -0
- package/dist/agent/validation.js +39 -0
- package/dist/aimTargets.d.ts +128 -0
- package/dist/aimTargets.d.ts.map +1 -0
- package/dist/aimTargets.js +367 -0
- package/dist/aimTargets.test.d.ts +2 -0
- package/dist/aimTargets.test.d.ts.map +1 -0
- package/dist/aimTargets.test.js +84 -0
- package/dist/anchorParenting.test.d.ts +2 -0
- package/dist/anchorParenting.test.d.ts.map +1 -0
- package/dist/anchorParenting.test.js +87 -0
- package/dist/anchorsRegistry.d.ts +45 -0
- package/dist/anchorsRegistry.d.ts.map +1 -0
- package/dist/anchorsRegistry.js +101 -0
- package/dist/anchorsRegistry.test.d.ts +2 -0
- package/dist/anchorsRegistry.test.d.ts.map +1 -0
- package/dist/anchorsRegistry.test.js +29 -0
- package/dist/assetLibrary/AssetLibraryPanel.d.ts +35 -0
- package/dist/assetLibrary/AssetLibraryPanel.d.ts.map +1 -0
- package/dist/assetLibrary/AssetLibraryPanel.js +544 -0
- package/dist/assetLibrary/AssetLibraryPanel.viewer.test.d.ts +2 -0
- package/dist/assetLibrary/AssetLibraryPanel.viewer.test.d.ts.map +1 -0
- package/dist/assetLibrary/AssetLibraryPanel.viewer.test.js +133 -0
- package/dist/assetLibrary/ModelPickerSlot.d.ts +24 -0
- package/dist/assetLibrary/ModelPickerSlot.d.ts.map +1 -0
- package/dist/assetLibrary/ModelPickerSlot.js +32 -0
- package/dist/assetLibrary/catalogThumbs.d.ts +7 -0
- package/dist/assetLibrary/catalogThumbs.d.ts.map +1 -0
- package/dist/assetLibrary/catalogThumbs.js +75 -0
- package/dist/assetLibrary/classify.d.ts +14 -0
- package/dist/assetLibrary/classify.d.ts.map +1 -0
- package/dist/assetLibrary/classify.js +43 -0
- package/dist/assetLibrary/classify.test.d.ts +2 -0
- package/dist/assetLibrary/classify.test.d.ts.map +1 -0
- package/dist/assetLibrary/classify.test.js +44 -0
- package/dist/assetLibrary/contract.indexeddb.test.d.ts +2 -0
- package/dist/assetLibrary/contract.indexeddb.test.d.ts.map +1 -0
- package/dist/assetLibrary/contract.indexeddb.test.js +10 -0
- package/dist/assetLibrary/contractTests.d.ts +12 -0
- package/dist/assetLibrary/contractTests.d.ts.map +1 -0
- package/dist/assetLibrary/contractTests.js +51 -0
- package/dist/assetLibrary/dispose.d.ts +4 -0
- package/dist/assetLibrary/dispose.d.ts.map +1 -0
- package/dist/assetLibrary/dispose.js +21 -0
- package/dist/assetLibrary/draco.d.ts +6 -0
- package/dist/assetLibrary/draco.d.ts.map +1 -0
- package/dist/assetLibrary/draco.js +45 -0
- package/dist/assetLibrary/draco.test.d.ts +2 -0
- package/dist/assetLibrary/draco.test.d.ts.map +1 -0
- package/dist/assetLibrary/draco.test.js +93 -0
- package/dist/assetLibrary/exportGLB.d.ts +20 -0
- package/dist/assetLibrary/exportGLB.d.ts.map +1 -0
- package/dist/assetLibrary/exportGLB.js +83 -0
- package/dist/assetLibrary/exportGLB.test.d.ts +2 -0
- package/dist/assetLibrary/exportGLB.test.d.ts.map +1 -0
- package/dist/assetLibrary/exportGLB.test.js +73 -0
- package/dist/assetLibrary/gltfLoader.d.ts +8 -0
- package/dist/assetLibrary/gltfLoader.d.ts.map +1 -0
- package/dist/assetLibrary/gltfLoader.js +11 -0
- package/dist/assetLibrary/hash.d.ts +7 -0
- package/dist/assetLibrary/hash.d.ts.map +1 -0
- package/dist/assetLibrary/hash.js +17 -0
- package/dist/assetLibrary/importModelFile.d.ts +5 -0
- package/dist/assetLibrary/importModelFile.d.ts.map +1 -0
- package/dist/assetLibrary/importModelFile.js +19 -0
- package/dist/assetLibrary/importModelFile.test.d.ts +2 -0
- package/dist/assetLibrary/importModelFile.test.d.ts.map +1 -0
- package/dist/assetLibrary/importModelFile.test.js +77 -0
- package/dist/assetLibrary/importPipeline.d.ts +61 -0
- package/dist/assetLibrary/importPipeline.d.ts.map +1 -0
- package/dist/assetLibrary/importPipeline.js +253 -0
- package/dist/assetLibrary/importPipeline.test.d.ts +2 -0
- package/dist/assetLibrary/importPipeline.test.d.ts.map +1 -0
- package/dist/assetLibrary/importPipeline.test.js +188 -0
- package/dist/assetLibrary/indexedDBBackend.d.ts +31 -0
- package/dist/assetLibrary/indexedDBBackend.d.ts.map +1 -0
- package/dist/assetLibrary/indexedDBBackend.js +134 -0
- package/dist/assetLibrary/indexedDBBackend.test.d.ts +2 -0
- package/dist/assetLibrary/indexedDBBackend.test.d.ts.map +1 -0
- package/dist/assetLibrary/indexedDBBackend.test.js +148 -0
- package/dist/assetLibrary/legacySeedCleanup.d.ts +19 -0
- package/dist/assetLibrary/legacySeedCleanup.d.ts.map +1 -0
- package/dist/assetLibrary/legacySeedCleanup.js +50 -0
- package/dist/assetLibrary/legacySeedCleanup.test.d.ts +2 -0
- package/dist/assetLibrary/legacySeedCleanup.test.d.ts.map +1 -0
- package/dist/assetLibrary/legacySeedCleanup.test.js +74 -0
- package/dist/assetLibrary/library.d.ts +122 -0
- package/dist/assetLibrary/library.d.ts.map +1 -0
- package/dist/assetLibrary/library.js +424 -0
- package/dist/assetLibrary/library.test.d.ts +2 -0
- package/dist/assetLibrary/library.test.d.ts.map +1 -0
- package/dist/assetLibrary/library.test.js +520 -0
- package/dist/assetLibrary/options.d.ts +9 -0
- package/dist/assetLibrary/options.d.ts.map +1 -0
- package/dist/assetLibrary/options.js +20 -0
- package/dist/assetLibrary/options.test.d.ts +2 -0
- package/dist/assetLibrary/options.test.d.ts.map +1 -0
- package/dist/assetLibrary/options.test.js +70 -0
- package/dist/assetLibrary/pose.d.ts +15 -0
- package/dist/assetLibrary/pose.d.ts.map +1 -0
- package/dist/assetLibrary/pose.js +41 -0
- package/dist/assetLibrary/pose.test.d.ts +2 -0
- package/dist/assetLibrary/pose.test.d.ts.map +1 -0
- package/dist/assetLibrary/pose.test.js +45 -0
- package/dist/assetLibrary/poseThumbnail.d.ts +30 -0
- package/dist/assetLibrary/poseThumbnail.d.ts.map +1 -0
- package/dist/assetLibrary/poseThumbnail.js +144 -0
- package/dist/assetLibrary/poseThumbnail.test.d.ts +2 -0
- package/dist/assetLibrary/poseThumbnail.test.d.ts.map +1 -0
- package/dist/assetLibrary/poseThumbnail.test.js +111 -0
- package/dist/assetLibrary/rig.d.ts +14 -0
- package/dist/assetLibrary/rig.d.ts.map +1 -0
- package/dist/assetLibrary/rig.js +33 -0
- package/dist/assetLibrary/rig.test.d.ts +2 -0
- package/dist/assetLibrary/rig.test.d.ts.map +1 -0
- package/dist/assetLibrary/rig.test.js +55 -0
- package/dist/assetLibrary/seedAssetsManifest.d.ts +24 -0
- package/dist/assetLibrary/seedAssetsManifest.d.ts.map +1 -0
- package/dist/assetLibrary/seedAssetsManifest.js +347 -0
- package/dist/assetLibrary/seedBuiltinPoses.d.ts +29 -0
- package/dist/assetLibrary/seedBuiltinPoses.d.ts.map +1 -0
- package/dist/assetLibrary/seedBuiltinPoses.js +114 -0
- package/dist/assetLibrary/seedBuiltinPoses.test.d.ts +2 -0
- package/dist/assetLibrary/seedBuiltinPoses.test.d.ts.map +1 -0
- package/dist/assetLibrary/seedBuiltinPoses.test.js +176 -0
- package/dist/assetLibrary/seedPoses.d.ts +8 -0
- package/dist/assetLibrary/seedPoses.d.ts.map +1 -0
- package/dist/assetLibrary/seedPoses.js +2414 -0
- package/dist/assetLibrary/seedPosesDpl.d.ts +8 -0
- package/dist/assetLibrary/seedPosesDpl.d.ts.map +1 -0
- package/dist/assetLibrary/seedPosesDpl.js +11660 -0
- package/dist/assetLibrary/seedPosesQbx.d.ts +8 -0
- package/dist/assetLibrary/seedPosesQbx.d.ts.map +1 -0
- package/dist/assetLibrary/seedPosesQbx.js +5612 -0
- package/dist/assetLibrary/seedPosesQbx.test.d.ts +2 -0
- package/dist/assetLibrary/seedPosesQbx.test.d.ts.map +1 -0
- package/dist/assetLibrary/seedPosesQbx.test.js +181 -0
- package/dist/assetLibrary/source.d.ts +45 -0
- package/dist/assetLibrary/source.d.ts.map +1 -0
- package/dist/assetLibrary/source.js +11 -0
- package/dist/assetLibrary/source.test.d.ts +2 -0
- package/dist/assetLibrary/source.test.d.ts.map +1 -0
- package/dist/assetLibrary/source.test.js +28 -0
- package/dist/assetLibrary/staticCatalogSource.d.ts +48 -0
- package/dist/assetLibrary/staticCatalogSource.d.ts.map +1 -0
- package/dist/assetLibrary/staticCatalogSource.js +140 -0
- package/dist/assetLibrary/staticCatalogSource.test.d.ts +2 -0
- package/dist/assetLibrary/staticCatalogSource.test.d.ts.map +1 -0
- package/dist/assetLibrary/staticCatalogSource.test.js +154 -0
- package/dist/assetLibrary/thumbnail.d.ts +14 -0
- package/dist/assetLibrary/thumbnail.d.ts.map +1 -0
- package/dist/assetLibrary/thumbnail.js +70 -0
- package/dist/assetLibrary/types.d.ts +54 -0
- package/dist/assetLibrary/types.d.ts.map +1 -0
- package/dist/assetLibrary/types.js +1 -0
- package/dist/assetLibrary/useModelThumbUrl.d.ts +10 -0
- package/dist/assetLibrary/useModelThumbUrl.d.ts.map +1 -0
- package/dist/assetLibrary/useModelThumbUrl.js +56 -0
- package/dist/boneAnchorWiring.test.d.ts +2 -0
- package/dist/boneAnchorWiring.test.d.ts.map +1 -0
- package/dist/boneAnchorWiring.test.js +173 -0
- package/dist/boneAnchors.d.ts +30 -0
- package/dist/boneAnchors.d.ts.map +1 -0
- package/dist/boneAnchors.js +111 -0
- package/dist/boneAnchors.test.d.ts +2 -0
- package/dist/boneAnchors.test.d.ts.map +1 -0
- package/dist/boneAnchors.test.js +98 -0
- package/dist/bootstrap.d.ts +37 -0
- package/dist/bootstrap.d.ts.map +1 -0
- package/dist/bootstrap.js +394 -0
- package/dist/bootstrap.test.d.ts +2 -0
- package/dist/bootstrap.test.d.ts.map +1 -0
- package/dist/bootstrap.test.js +647 -0
- package/dist/cameraRegistry.d.ts +65 -0
- package/dist/cameraRegistry.d.ts.map +1 -0
- package/dist/cameraRegistry.js +151 -0
- package/dist/cameraRegistry.test.d.ts +2 -0
- package/dist/cameraRegistry.test.d.ts.map +1 -0
- package/dist/cameraRegistry.test.js +68 -0
- package/dist/config.d.ts +92 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +1 -0
- package/dist/contextMenu.d.ts +16 -0
- package/dist/contextMenu.d.ts.map +1 -0
- package/dist/contextMenu.js +10 -0
- package/dist/dropPoint.d.ts +61 -0
- package/dist/dropPoint.d.ts.map +1 -0
- package/dist/dropPoint.js +97 -0
- package/dist/dropPoint.test.d.ts +2 -0
- package/dist/dropPoint.test.d.ts.map +1 -0
- package/dist/dropPoint.test.js +174 -0
- package/dist/editorOnly.d.ts +6 -0
- package/dist/editorOnly.d.ts.map +1 -0
- package/dist/editorOnly.js +32 -0
- package/dist/errors.d.ts +24 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +13 -0
- package/dist/gestureProps.d.ts +99 -0
- package/dist/gestureProps.d.ts.map +1 -0
- package/dist/gestureProps.js +118 -0
- package/dist/gestureProps.test.d.ts +2 -0
- package/dist/gestureProps.test.d.ts.map +1 -0
- package/dist/gestureProps.test.js +182 -0
- package/dist/gesturePropsEditor.d.ts +27 -0
- package/dist/gesturePropsEditor.d.ts.map +1 -0
- package/dist/gesturePropsEditor.js +121 -0
- package/dist/getDeep.d.ts +8 -0
- package/dist/getDeep.d.ts.map +1 -0
- package/dist/getDeep.js +15 -0
- package/dist/gizmoRegistry.test.d.ts +2 -0
- package/dist/gizmoRegistry.test.d.ts.map +1 -0
- package/dist/gizmoRegistry.test.js +40 -0
- package/dist/hostFlows.d.ts +55 -0
- package/dist/hostFlows.d.ts.map +1 -0
- package/dist/hostFlows.js +77 -0
- package/dist/hostFlows.test.d.ts +2 -0
- package/dist/hostFlows.test.d.ts.map +1 -0
- package/dist/hostFlows.test.js +191 -0
- package/dist/i18n.d.ts +26 -0
- package/dist/i18n.d.ts.map +1 -0
- package/dist/i18n.js +271 -0
- package/dist/i18n.test.d.ts +2 -0
- package/dist/i18n.test.d.ts.map +1 -0
- package/dist/i18n.test.js +41 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/menuModel.d.ts +51 -0
- package/dist/menuModel.d.ts.map +1 -0
- package/dist/menuModel.js +111 -0
- package/dist/menuModel.test.d.ts +2 -0
- package/dist/menuModel.test.d.ts.map +1 -0
- package/dist/menuModel.test.js +197 -0
- package/dist/modalGrab.d.ts +29 -0
- package/dist/modalGrab.d.ts.map +1 -0
- package/dist/modalGrab.js +127 -0
- package/dist/outlineObjectMenu.d.ts +41 -0
- package/dist/outlineObjectMenu.d.ts.map +1 -0
- package/dist/outlineObjectMenu.js +58 -0
- package/dist/outlineObjectMenu.test.d.ts +2 -0
- package/dist/outlineObjectMenu.test.d.ts.map +1 -0
- package/dist/outlineObjectMenu.test.js +83 -0
- package/dist/pathBinding.d.ts +16 -0
- package/dist/pathBinding.d.ts.map +1 -0
- package/dist/pathBinding.js +19 -0
- package/dist/pathBinding.test.d.ts +2 -0
- package/dist/pathBinding.test.d.ts.map +1 -0
- package/dist/pathBinding.test.js +14 -0
- package/dist/pathModel.d.ts +123 -0
- package/dist/pathModel.d.ts.map +1 -0
- package/dist/pathModel.js +343 -0
- package/dist/pathModel.test.d.ts +2 -0
- package/dist/pathModel.test.d.ts.map +1 -0
- package/dist/pathModel.test.js +394 -0
- package/dist/pathPresets.d.ts +38 -0
- package/dist/pathPresets.d.ts.map +1 -0
- package/dist/pathPresets.js +180 -0
- package/dist/pathPresets.test.d.ts +2 -0
- package/dist/pathPresets.test.d.ts.map +1 -0
- package/dist/pathPresets.test.js +154 -0
- package/dist/pathRegistry.d.ts +46 -0
- package/dist/pathRegistry.d.ts.map +1 -0
- package/dist/pathRegistry.js +105 -0
- package/dist/pathRegistry.test.d.ts +2 -0
- package/dist/pathRegistry.test.d.ts.map +1 -0
- package/dist/pathRegistry.test.js +23 -0
- package/dist/pickerRegistry.d.ts +49 -0
- package/dist/pickerRegistry.d.ts.map +1 -0
- package/dist/pickerRegistry.js +17 -0
- package/dist/pickerRegistry.test.d.ts +2 -0
- package/dist/pickerRegistry.test.d.ts.map +1 -0
- package/dist/pickerRegistry.test.js +31 -0
- package/dist/pipLayout.d.ts +7 -0
- package/dist/pipLayout.d.ts.map +1 -0
- package/dist/pipLayout.js +58 -0
- package/dist/placementKey.test.d.ts +2 -0
- package/dist/placementKey.test.d.ts.map +1 -0
- package/dist/placementKey.test.js +32 -0
- package/dist/placementPoseProps.d.ts +29 -0
- package/dist/placementPoseProps.d.ts.map +1 -0
- package/dist/placementPoseProps.js +43 -0
- package/dist/placementPoseProps.test.d.ts +2 -0
- package/dist/placementPoseProps.test.d.ts.map +1 -0
- package/dist/placementPoseProps.test.js +35 -0
- package/dist/poseMode/PoseModeBar.d.ts +18 -0
- package/dist/poseMode/PoseModeBar.d.ts.map +1 -0
- package/dist/poseMode/PoseModeBar.js +127 -0
- package/dist/poseMode/PoseModeRig.d.ts +9 -0
- package/dist/poseMode/PoseModeRig.d.ts.map +1 -0
- package/dist/poseMode/PoseModeRig.js +300 -0
- package/dist/poseMode/PosePickerFrame.d.ts +42 -0
- package/dist/poseMode/PosePickerFrame.d.ts.map +1 -0
- package/dist/poseMode/PosePickerFrame.js +164 -0
- package/dist/poseMode/PosePropEditor.d.ts +30 -0
- package/dist/poseMode/PosePropEditor.d.ts.map +1 -0
- package/dist/poseMode/PosePropEditor.js +139 -0
- package/dist/poseMode/controlSpec.d.ts +26 -0
- package/dist/poseMode/controlSpec.d.ts.map +1 -0
- package/dist/poseMode/controlSpec.js +157 -0
- package/dist/poseMode/controlSpec.test.d.ts +2 -0
- package/dist/poseMode/controlSpec.test.d.ts.map +1 -0
- package/dist/poseMode/controlSpec.test.js +196 -0
- package/dist/poseMode/dragState.d.ts +16 -0
- package/dist/poseMode/dragState.d.ts.map +1 -0
- package/dist/poseMode/dragState.js +15 -0
- package/dist/poseMode/dragState.test.d.ts +2 -0
- package/dist/poseMode/dragState.test.d.ts.map +1 -0
- package/dist/poseMode/dragState.test.js +23 -0
- package/dist/poseMode/poseDisplayText.d.ts +18 -0
- package/dist/poseMode/poseDisplayText.d.ts.map +1 -0
- package/dist/poseMode/poseDisplayText.js +13 -0
- package/dist/poseMode/poseDisplayText.test.d.ts +2 -0
- package/dist/poseMode/poseDisplayText.test.d.ts.map +1 -0
- package/dist/poseMode/poseDisplayText.test.js +35 -0
- package/dist/poseMode/poseExitGuard.d.ts +8 -0
- package/dist/poseMode/poseExitGuard.d.ts.map +1 -0
- package/dist/poseMode/poseExitGuard.js +13 -0
- package/dist/poseMode/poseExitGuard.test.d.ts +2 -0
- package/dist/poseMode/poseExitGuard.test.d.ts.map +1 -0
- package/dist/poseMode/poseExitGuard.test.js +41 -0
- package/dist/poseMode/poseFrame.d.ts +11 -0
- package/dist/poseMode/poseFrame.d.ts.map +1 -0
- package/dist/poseMode/poseFrame.js +7 -0
- package/dist/poseMode/poseFrame.test.d.ts +2 -0
- package/dist/poseMode/poseFrame.test.d.ts.map +1 -0
- package/dist/poseMode/poseFrame.test.js +25 -0
- package/dist/poseMode/poseInterpolate.d.ts +4 -0
- package/dist/poseMode/poseInterpolate.d.ts.map +1 -0
- package/dist/poseMode/poseInterpolate.js +75 -0
- package/dist/poseMode/poseInterpolate.test.d.ts +2 -0
- package/dist/poseMode/poseInterpolate.test.d.ts.map +1 -0
- package/dist/poseMode/poseInterpolate.test.js +61 -0
- package/dist/poseMode/poseLibResolve.d.ts +9 -0
- package/dist/poseMode/poseLibResolve.d.ts.map +1 -0
- package/dist/poseMode/poseLibResolve.js +49 -0
- package/dist/poseMode/poseLibResolve.test.d.ts +2 -0
- package/dist/poseMode/poseLibResolve.test.d.ts.map +1 -0
- package/dist/poseMode/poseLibResolve.test.js +59 -0
- package/dist/poseMode/poseMigration.d.ts +5 -0
- package/dist/poseMode/poseMigration.d.ts.map +1 -0
- package/dist/poseMode/poseMigration.js +16 -0
- package/dist/poseMode/poseMigration.test.d.ts +2 -0
- package/dist/poseMode/poseMigration.test.d.ts.map +1 -0
- package/dist/poseMode/poseMigration.test.js +25 -0
- package/dist/poseMode/poseOptions.d.ts +45 -0
- package/dist/poseMode/poseOptions.d.ts.map +1 -0
- package/dist/poseMode/poseOptions.js +39 -0
- package/dist/poseMode/poseOptions.test.d.ts +2 -0
- package/dist/poseMode/poseOptions.test.d.ts.map +1 -0
- package/dist/poseMode/poseOptions.test.js +83 -0
- package/dist/poseMode/poseOverride.d.ts +13 -0
- package/dist/poseMode/poseOverride.d.ts.map +1 -0
- package/dist/poseMode/poseOverride.js +26 -0
- package/dist/poseMode/poseOverride.test.d.ts +2 -0
- package/dist/poseMode/poseOverride.test.d.ts.map +1 -0
- package/dist/poseMode/poseOverride.test.js +23 -0
- package/dist/poseMode/poseRetarget.d.ts +17 -0
- package/dist/poseMode/poseRetarget.d.ts.map +1 -0
- package/dist/poseMode/poseRetarget.js +53 -0
- package/dist/poseMode/poseRetarget.test.d.ts +2 -0
- package/dist/poseMode/poseRetarget.test.d.ts.map +1 -0
- package/dist/poseMode/poseRetarget.test.js +88 -0
- package/dist/poseMode/poseSession.d.ts +58 -0
- package/dist/poseMode/poseSession.d.ts.map +1 -0
- package/dist/poseMode/poseSession.js +183 -0
- package/dist/poseMode/poseSession.test.d.ts +2 -0
- package/dist/poseMode/poseSession.test.d.ts.map +1 -0
- package/dist/poseMode/poseSession.test.js +159 -0
- package/dist/poseMode/poseSessionHooks.test.d.ts +2 -0
- package/dist/poseMode/poseSessionHooks.test.d.ts.map +1 -0
- package/dist/poseMode/poseSessionHooks.test.js +49 -0
- package/dist/poseMode/poseTrack.d.ts +30 -0
- package/dist/poseMode/poseTrack.d.ts.map +1 -0
- package/dist/poseMode/poseTrack.js +155 -0
- package/dist/poseMode/poseTrack.test.d.ts +2 -0
- package/dist/poseMode/poseTrack.test.d.ts.map +1 -0
- package/dist/poseMode/poseTrack.test.js +84 -0
- package/dist/poseMode/poseValue.d.ts +22 -0
- package/dist/poseMode/poseValue.d.ts.map +1 -0
- package/dist/poseMode/poseValue.js +73 -0
- package/dist/poseMode/poseValue.test.d.ts +2 -0
- package/dist/poseMode/poseValue.test.d.ts.map +1 -0
- package/dist/poseMode/poseValue.test.js +62 -0
- package/dist/poseMode/savePose.d.ts +23 -0
- package/dist/poseMode/savePose.d.ts.map +1 -0
- package/dist/poseMode/savePose.js +29 -0
- package/dist/poseMode/selectionModes.d.ts +14 -0
- package/dist/poseMode/selectionModes.d.ts.map +1 -0
- package/dist/poseMode/selectionModes.js +39 -0
- package/dist/poseMode/selectionModes.test.d.ts +2 -0
- package/dist/poseMode/selectionModes.test.d.ts.map +1 -0
- package/dist/poseMode/selectionModes.test.js +91 -0
- package/dist/poseNameMessages.d.ts +13 -0
- package/dist/poseNameMessages.d.ts.map +1 -0
- package/dist/poseNameMessages.js +370 -0
- package/dist/poseNames.d.ts +14 -0
- package/dist/poseNames.d.ts.map +1 -0
- package/dist/poseNames.js +21 -0
- package/dist/poseNames.test.d.ts +2 -0
- package/dist/poseNames.test.d.ts.map +1 -0
- package/dist/poseNames.test.js +41 -0
- package/dist/poseStatusText.d.ts +2 -0
- package/dist/poseStatusText.d.ts.map +1 -0
- package/dist/poseStatusText.js +11 -0
- package/dist/poseStatusText.test.d.ts +2 -0
- package/dist/poseStatusText.test.d.ts.map +1 -0
- package/dist/poseStatusText.test.js +21 -0
- package/dist/presetThumbGeometry.d.ts +26 -0
- package/dist/presetThumbGeometry.d.ts.map +1 -0
- package/dist/presetThumbGeometry.js +103 -0
- package/dist/presetThumbGeometry.test.d.ts +2 -0
- package/dist/presetThumbGeometry.test.d.ts.map +1 -0
- package/dist/presetThumbGeometry.test.js +83 -0
- package/dist/selectionOutline.d.ts +42 -0
- package/dist/selectionOutline.d.ts.map +1 -0
- package/dist/selectionOutline.js +174 -0
- package/dist/selectionOutline.test.d.ts +2 -0
- package/dist/selectionOutline.test.d.ts.map +1 -0
- package/dist/selectionOutline.test.js +58 -0
- package/dist/smoke.test.d.ts +1 -0
- package/dist/smoke.test.d.ts.map +1 -0
- package/dist/smoke.test.js +17 -0
- package/dist/uiConfig.d.ts +16 -0
- package/dist/uiConfig.d.ts.map +1 -0
- package/dist/uiConfig.js +13 -0
- package/dist/uiConfig.test.d.ts +2 -0
- package/dist/uiConfig.test.d.ts.map +1 -0
- package/dist/uiConfig.test.js +98 -0
- package/dist/undoShortcuts.d.ts +28 -0
- package/dist/undoShortcuts.d.ts.map +1 -0
- package/dist/undoShortcuts.js +59 -0
- package/dist/undoShortcuts.test.d.ts +2 -0
- package/dist/undoShortcuts.test.d.ts.map +1 -0
- package/dist/undoShortcuts.test.js +37 -0
- package/dist/useCameraStudio.d.ts +3 -0
- package/dist/useCameraStudio.d.ts.map +1 -0
- package/dist/useCameraStudio.js +86 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +11 -0
- package/dist/videoExport/BlobCollectSink.d.ts +25 -0
- package/dist/videoExport/BlobCollectSink.d.ts.map +1 -0
- package/dist/videoExport/BlobCollectSink.js +56 -0
- package/dist/videoExport/BlobCollectSink.test.d.ts +2 -0
- package/dist/videoExport/BlobCollectSink.test.d.ts.map +1 -0
- package/dist/videoExport/BlobCollectSink.test.js +78 -0
- package/dist/videoExport/encoder.d.ts +34 -0
- package/dist/videoExport/encoder.d.ts.map +1 -0
- package/dist/videoExport/encoder.js +61 -0
- package/dist/videoExport/encoder.test.d.ts +2 -0
- package/dist/videoExport/encoder.test.d.ts.map +1 -0
- package/dist/videoExport/encoder.test.js +21 -0
- package/dist/videoExport/exporter.d.ts +24 -0
- package/dist/videoExport/exporter.d.ts.map +1 -0
- package/dist/videoExport/exporter.js +74 -0
- package/dist/videoExport/sinks.d.ts +55 -0
- package/dist/videoExport/sinks.d.ts.map +1 -0
- package/dist/videoExport/sinks.js +69 -0
- package/package.json +59 -3
- package/README.md +0 -3
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { AgentApiError } from '../errors';
|
|
2
|
+
import { getDirectorView } from '../runtime/directorView';
|
|
3
|
+
import { requireBoolean, requireFiniteNumber, requireObject } from '../validation';
|
|
4
|
+
const emptyInput = { type: 'object', additionalProperties: false };
|
|
5
|
+
const voidOutput = { type: 'object', additionalProperties: false };
|
|
6
|
+
const getStateOutput = {
|
|
7
|
+
type: 'object',
|
|
8
|
+
properties: {
|
|
9
|
+
activeCameraKey: {
|
|
10
|
+
type: 'string',
|
|
11
|
+
description: '活动相机 key;无活动相机为 null',
|
|
12
|
+
},
|
|
13
|
+
shotView: { type: 'boolean' },
|
|
14
|
+
pipVisible: { type: 'boolean' },
|
|
15
|
+
editingPath: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
description: '正在编辑的路径 key;未编辑为 null',
|
|
18
|
+
},
|
|
19
|
+
gizmoMode: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
enum: ['select', 'translate', 'rotate', 'scale'],
|
|
22
|
+
},
|
|
23
|
+
studioHidden: { type: 'boolean' },
|
|
24
|
+
},
|
|
25
|
+
required: [
|
|
26
|
+
'activeCameraKey',
|
|
27
|
+
'shotView',
|
|
28
|
+
'pipVisible',
|
|
29
|
+
'editingPath',
|
|
30
|
+
'gizmoMode',
|
|
31
|
+
'studioHidden',
|
|
32
|
+
],
|
|
33
|
+
};
|
|
34
|
+
function noArgs(value) {
|
|
35
|
+
if (value === undefined || value === null)
|
|
36
|
+
return {};
|
|
37
|
+
return requireObject(value);
|
|
38
|
+
}
|
|
39
|
+
function requireStudio(runtime) {
|
|
40
|
+
const studio = runtime.getStudio();
|
|
41
|
+
if (!studio) {
|
|
42
|
+
throw new AgentApiError('SCENE_UNAVAILABLE', 'Studio 不可用');
|
|
43
|
+
}
|
|
44
|
+
return studio;
|
|
45
|
+
}
|
|
46
|
+
/** 已注册的导演控制器;未注册 API_NOT_READY(MainOrbitControls 未挂载) */
|
|
47
|
+
function requireDirectorView() {
|
|
48
|
+
const controller = getDirectorView();
|
|
49
|
+
if (!controller) {
|
|
50
|
+
throw new AgentApiError('API_NOT_READY', '导演视角控制器未注册(场景轨道控制器尚未挂载)');
|
|
51
|
+
}
|
|
52
|
+
return controller;
|
|
53
|
+
}
|
|
54
|
+
function requireViewHandlers(runtime) {
|
|
55
|
+
const handlers = runtime.handlers;
|
|
56
|
+
if (!handlers.getViewState ||
|
|
57
|
+
!handlers.setShotView ||
|
|
58
|
+
!handlers.setPipVisible) {
|
|
59
|
+
throw new AgentApiError('SCENE_UNAVAILABLE', 'Scene Runtime 未绑定视图 handler,无法读写视图会话态');
|
|
60
|
+
}
|
|
61
|
+
return handlers;
|
|
62
|
+
}
|
|
63
|
+
export function registerViewCommands(registry, runtime) {
|
|
64
|
+
registry.register({
|
|
65
|
+
name: 'view.getState',
|
|
66
|
+
kind: 'query',
|
|
67
|
+
stateDomain: 'session',
|
|
68
|
+
undoable: 'none',
|
|
69
|
+
inputSchema: emptyInput,
|
|
70
|
+
outputSchema: getStateOutput,
|
|
71
|
+
errorCodes: ['API_DISPOSED', 'INVALID_ARGUMENT', 'SCENE_UNAVAILABLE'],
|
|
72
|
+
validate: noArgs,
|
|
73
|
+
execute: async () => {
|
|
74
|
+
runtime.assertActive();
|
|
75
|
+
const handlers = requireViewHandlers(runtime);
|
|
76
|
+
const studio = requireStudio(runtime);
|
|
77
|
+
return { ...handlers.getViewState(), studioHidden: studio.ui.isHidden };
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
registry.register({
|
|
81
|
+
name: 'view.setShotView',
|
|
82
|
+
kind: 'mutation',
|
|
83
|
+
stateDomain: 'session',
|
|
84
|
+
undoable: 'none',
|
|
85
|
+
inputSchema: {
|
|
86
|
+
type: 'object',
|
|
87
|
+
properties: {
|
|
88
|
+
on: {
|
|
89
|
+
type: 'boolean',
|
|
90
|
+
description: 'true = 进入镜头视角,false = 回到导演视角',
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
required: ['on'],
|
|
94
|
+
additionalProperties: false,
|
|
95
|
+
},
|
|
96
|
+
outputSchema: voidOutput,
|
|
97
|
+
errorCodes: ['API_DISPOSED', 'INVALID_ARGUMENT', 'SCENE_UNAVAILABLE'],
|
|
98
|
+
validate: (value) => ({ on: requireBoolean(requireObject(value), 'on') }),
|
|
99
|
+
execute: async (args) => {
|
|
100
|
+
runtime.assertActive();
|
|
101
|
+
requireViewHandlers(runtime).setShotView({ on: args.on });
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
registry.register({
|
|
105
|
+
name: 'view.setPipVisible',
|
|
106
|
+
kind: 'mutation',
|
|
107
|
+
stateDomain: 'session',
|
|
108
|
+
undoable: 'none',
|
|
109
|
+
inputSchema: {
|
|
110
|
+
type: 'object',
|
|
111
|
+
properties: {
|
|
112
|
+
visible: { type: 'boolean', description: '画中画是否可见' },
|
|
113
|
+
},
|
|
114
|
+
required: ['visible'],
|
|
115
|
+
additionalProperties: false,
|
|
116
|
+
},
|
|
117
|
+
outputSchema: voidOutput,
|
|
118
|
+
errorCodes: ['API_DISPOSED', 'INVALID_ARGUMENT', 'SCENE_UNAVAILABLE'],
|
|
119
|
+
validate: (value) => ({
|
|
120
|
+
visible: requireBoolean(requireObject(value), 'visible'),
|
|
121
|
+
}),
|
|
122
|
+
execute: async (args) => {
|
|
123
|
+
runtime.assertActive();
|
|
124
|
+
requireViewHandlers(runtime).setPipVisible({ visible: args.visible });
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
registry.register({
|
|
128
|
+
name: 'view.orbit',
|
|
129
|
+
kind: 'mutation',
|
|
130
|
+
stateDomain: 'session',
|
|
131
|
+
undoable: 'none',
|
|
132
|
+
inputSchema: {
|
|
133
|
+
type: 'object',
|
|
134
|
+
properties: {
|
|
135
|
+
deltaTheta: {
|
|
136
|
+
type: 'number',
|
|
137
|
+
description: '方位角增量(弧度,正值绕瞄准点逆时针,俯视)',
|
|
138
|
+
},
|
|
139
|
+
deltaPhi: {
|
|
140
|
+
type: 'number',
|
|
141
|
+
description: '极角增量(弧度,正值向水平方向下压)',
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
required: ['deltaTheta', 'deltaPhi'],
|
|
145
|
+
additionalProperties: false,
|
|
146
|
+
},
|
|
147
|
+
outputSchema: voidOutput,
|
|
148
|
+
errorCodes: ['API_DISPOSED', 'INVALID_ARGUMENT', 'API_NOT_READY'],
|
|
149
|
+
validate: (value) => {
|
|
150
|
+
const args = requireObject(value);
|
|
151
|
+
return {
|
|
152
|
+
deltaTheta: requireFiniteNumber(args.deltaTheta, 'deltaTheta'),
|
|
153
|
+
deltaPhi: requireFiniteNumber(args.deltaPhi, 'deltaPhi'),
|
|
154
|
+
};
|
|
155
|
+
},
|
|
156
|
+
execute: async (args) => {
|
|
157
|
+
runtime.assertActive();
|
|
158
|
+
requireDirectorView().orbit(args);
|
|
159
|
+
},
|
|
160
|
+
});
|
|
161
|
+
registry.register({
|
|
162
|
+
name: 'view.pan',
|
|
163
|
+
kind: 'mutation',
|
|
164
|
+
stateDomain: 'session',
|
|
165
|
+
undoable: 'none',
|
|
166
|
+
inputSchema: {
|
|
167
|
+
type: 'object',
|
|
168
|
+
properties: {
|
|
169
|
+
deltaX: { type: 'number', description: '沿相机右方向平移(世界单位)' },
|
|
170
|
+
deltaY: { type: 'number', description: '沿相机上方向平移(世界单位)' },
|
|
171
|
+
},
|
|
172
|
+
required: ['deltaX', 'deltaY'],
|
|
173
|
+
additionalProperties: false,
|
|
174
|
+
},
|
|
175
|
+
outputSchema: voidOutput,
|
|
176
|
+
errorCodes: ['API_DISPOSED', 'INVALID_ARGUMENT', 'API_NOT_READY'],
|
|
177
|
+
validate: (value) => {
|
|
178
|
+
const args = requireObject(value);
|
|
179
|
+
return {
|
|
180
|
+
deltaX: requireFiniteNumber(args.deltaX, 'deltaX'),
|
|
181
|
+
deltaY: requireFiniteNumber(args.deltaY, 'deltaY'),
|
|
182
|
+
};
|
|
183
|
+
},
|
|
184
|
+
execute: async (args) => {
|
|
185
|
+
runtime.assertActive();
|
|
186
|
+
requireDirectorView().pan(args);
|
|
187
|
+
},
|
|
188
|
+
});
|
|
189
|
+
registry.register({
|
|
190
|
+
name: 'view.dolly',
|
|
191
|
+
kind: 'mutation',
|
|
192
|
+
stateDomain: 'session',
|
|
193
|
+
undoable: 'none',
|
|
194
|
+
inputSchema: {
|
|
195
|
+
type: 'object',
|
|
196
|
+
properties: {
|
|
197
|
+
delta: {
|
|
198
|
+
type: 'number',
|
|
199
|
+
description: '沿视线的距离增量(正值 = 靠近瞄准点,负值 = 拉远)',
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
required: ['delta'],
|
|
203
|
+
additionalProperties: false,
|
|
204
|
+
},
|
|
205
|
+
outputSchema: voidOutput,
|
|
206
|
+
errorCodes: ['API_DISPOSED', 'INVALID_ARGUMENT', 'API_NOT_READY'],
|
|
207
|
+
validate: (value) => ({
|
|
208
|
+
delta: requireFiniteNumber(requireObject(value).delta, 'delta'),
|
|
209
|
+
}),
|
|
210
|
+
execute: async (args) => {
|
|
211
|
+
runtime.assertActive();
|
|
212
|
+
requireDirectorView().dolly(args);
|
|
213
|
+
},
|
|
214
|
+
});
|
|
215
|
+
registry.register({
|
|
216
|
+
name: 'view.reset',
|
|
217
|
+
kind: 'mutation',
|
|
218
|
+
stateDomain: 'session',
|
|
219
|
+
undoable: 'none',
|
|
220
|
+
inputSchema: emptyInput,
|
|
221
|
+
outputSchema: voidOutput,
|
|
222
|
+
errorCodes: ['API_DISPOSED', 'INVALID_ARGUMENT', 'API_NOT_READY'],
|
|
223
|
+
validate: noArgs,
|
|
224
|
+
execute: async () => {
|
|
225
|
+
runtime.assertActive();
|
|
226
|
+
requireDirectorView().reset();
|
|
227
|
+
},
|
|
228
|
+
});
|
|
229
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.test.d.ts","sourceRoot":"","sources":["../../../src/agent/commands/view.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* view / ui 命令(2026-10-17,Task 12):
|
|
3
|
+
* view.getState / setShotView / setPipVisible / orbit / pan / dolly / reset
|
|
4
|
+
* + ui.hide / restore / setLeftStripHidden / openPanel / closePanel /
|
|
5
|
+
* setGizmoMode。
|
|
6
|
+
*
|
|
7
|
+
* 全部 session 域、undoable:none(spec 9 view/ui 行 + 8.6.4:视图/UI 会话
|
|
8
|
+
* 操作不进撤销)。视图会话态与面板/gizmo 经 Scene Runtime handler
|
|
9
|
+
* (生产由 CameraScene 绑定,Task 15 接线;测试用假 handler,形状与接线
|
|
10
|
+
* 后的绑定一致);orbit/pan/dolly/reset 转发到 directorView 模块注册的
|
|
11
|
+
* 导演控制器(MainOrbitControls 挂载时登记),未注册返回 API_NOT_READY,
|
|
12
|
+
* 不静默成功。studio 显隐走公开 studio.ui 方法。
|
|
13
|
+
*
|
|
14
|
+
* 布景同 selection.test.ts:真实 core project/sheet + 注入式假 studio
|
|
15
|
+
* (runtime.getStudio),node 环境,无需 doMock。
|
|
16
|
+
*/
|
|
17
|
+
import { getProject } from '@dreamerbird/core';
|
|
18
|
+
import { AgentCommandRegistry } from '../registry';
|
|
19
|
+
import { createAgentRuntime } from '../runtime';
|
|
20
|
+
import { getDirectorView, registerDirectorView } from '../runtime/directorView';
|
|
21
|
+
import { registerUiCommands } from './ui';
|
|
22
|
+
import { registerViewCommands } from './view';
|
|
23
|
+
let projectSeq = 0;
|
|
24
|
+
const cleanups = [];
|
|
25
|
+
afterEach(() => {
|
|
26
|
+
while (cleanups.length)
|
|
27
|
+
cleanups.pop()();
|
|
28
|
+
});
|
|
29
|
+
const ctx = () => ({
|
|
30
|
+
requestId: 'test',
|
|
31
|
+
signal: new AbortController().signal,
|
|
32
|
+
});
|
|
33
|
+
function makeScene({ withStudio = true } = {}) {
|
|
34
|
+
const project = getProject(`agent-view-${++projectSeq}`);
|
|
35
|
+
const sheet = project.sheet('Scene');
|
|
36
|
+
const ui = {
|
|
37
|
+
hide: jest.fn(),
|
|
38
|
+
restore: jest.fn(),
|
|
39
|
+
isHidden: false,
|
|
40
|
+
setLeftStripHidden: jest.fn(),
|
|
41
|
+
};
|
|
42
|
+
const studio = { ui };
|
|
43
|
+
const runtime = createAgentRuntime({
|
|
44
|
+
project,
|
|
45
|
+
sheet,
|
|
46
|
+
library: {},
|
|
47
|
+
getStudio: () => (withStudio ? studio : undefined),
|
|
48
|
+
subscribeHistoric: () => () => { },
|
|
49
|
+
});
|
|
50
|
+
const registry = new AgentCommandRegistry();
|
|
51
|
+
registerViewCommands(registry, runtime);
|
|
52
|
+
registerUiCommands(registry, runtime);
|
|
53
|
+
cleanups.push(() => runtime.dispose());
|
|
54
|
+
return { project, sheet, registry, runtime, ui };
|
|
55
|
+
}
|
|
56
|
+
/** 绑定 CameraScene 侧的视图会话 handler(假实现,形状同生产绑定) */
|
|
57
|
+
function bindViewHandlers(runtime, state) {
|
|
58
|
+
const setShotView = jest.fn();
|
|
59
|
+
const setPipVisible = jest.fn();
|
|
60
|
+
cleanups.push(runtime.bindHandlers({
|
|
61
|
+
getViewState: () => state,
|
|
62
|
+
setShotView,
|
|
63
|
+
setPipVisible,
|
|
64
|
+
}));
|
|
65
|
+
return { setShotView, setPipVisible };
|
|
66
|
+
}
|
|
67
|
+
/** 登记导演控制器假实现(MainOrbitControls 生产登记的同形状替身) */
|
|
68
|
+
function registerFakeController() {
|
|
69
|
+
const controller = {
|
|
70
|
+
orbit: jest.fn(),
|
|
71
|
+
pan: jest.fn(),
|
|
72
|
+
dolly: jest.fn(),
|
|
73
|
+
reset: jest.fn(),
|
|
74
|
+
};
|
|
75
|
+
cleanups.push(registerDirectorView(controller));
|
|
76
|
+
return controller;
|
|
77
|
+
}
|
|
78
|
+
// ── view.getState ──────────────────────────────────────────────
|
|
79
|
+
test('view.getState 返回活动相机/镜头视角/PIP/路径编辑/gizmo/studio 显隐', async () => {
|
|
80
|
+
const { registry, runtime, ui } = makeScene();
|
|
81
|
+
ui.isHidden = true;
|
|
82
|
+
bindViewHandlers(runtime, {
|
|
83
|
+
activeCameraKey: 'Cam 1',
|
|
84
|
+
shotView: true,
|
|
85
|
+
pipVisible: false,
|
|
86
|
+
editingPath: 'Fly Around',
|
|
87
|
+
gizmoMode: 'rotate',
|
|
88
|
+
});
|
|
89
|
+
const state = await registry.execute('view.getState', {}, ctx());
|
|
90
|
+
expect(state).toEqual({
|
|
91
|
+
activeCameraKey: 'Cam 1',
|
|
92
|
+
shotView: true,
|
|
93
|
+
pipVisible: false,
|
|
94
|
+
editingPath: 'Fly Around',
|
|
95
|
+
gizmoMode: 'rotate',
|
|
96
|
+
studioHidden: true,
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
test('view.getState 无活动相机/未编辑路径时回 null 字段', async () => {
|
|
100
|
+
const { registry, runtime } = makeScene();
|
|
101
|
+
bindViewHandlers(runtime, {
|
|
102
|
+
activeCameraKey: null,
|
|
103
|
+
shotView: false,
|
|
104
|
+
pipVisible: true,
|
|
105
|
+
editingPath: null,
|
|
106
|
+
gizmoMode: 'select',
|
|
107
|
+
});
|
|
108
|
+
const state = await registry.execute('view.getState', {}, ctx());
|
|
109
|
+
expect(state).toEqual({
|
|
110
|
+
activeCameraKey: null,
|
|
111
|
+
shotView: false,
|
|
112
|
+
pipVisible: true,
|
|
113
|
+
editingPath: null,
|
|
114
|
+
gizmoMode: 'select',
|
|
115
|
+
studioHidden: false,
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
test('view.getState 视图 handler 未绑定返回 SCENE_UNAVAILABLE', async () => {
|
|
119
|
+
const { registry } = makeScene();
|
|
120
|
+
await expect(registry.execute('view.getState', {}, ctx())).rejects.toMatchObject({
|
|
121
|
+
code: 'SCENE_UNAVAILABLE',
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
test('view.getState Studio 不可用返回 SCENE_UNAVAILABLE', async () => {
|
|
125
|
+
const { registry, runtime } = makeScene({ withStudio: false });
|
|
126
|
+
bindViewHandlers(runtime, {
|
|
127
|
+
activeCameraKey: null,
|
|
128
|
+
shotView: false,
|
|
129
|
+
pipVisible: true,
|
|
130
|
+
editingPath: null,
|
|
131
|
+
gizmoMode: 'select',
|
|
132
|
+
});
|
|
133
|
+
await expect(registry.execute('view.getState', {}, ctx())).rejects.toMatchObject({
|
|
134
|
+
code: 'SCENE_UNAVAILABLE',
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
// ── view.setShotView / setPipVisible ───────────────────────────
|
|
138
|
+
test('view.setShotView 转发到 Scene Runtime handler', async () => {
|
|
139
|
+
const { registry, runtime } = makeScene();
|
|
140
|
+
const { setShotView } = bindViewHandlers(runtime, {
|
|
141
|
+
activeCameraKey: null,
|
|
142
|
+
shotView: false,
|
|
143
|
+
pipVisible: true,
|
|
144
|
+
editingPath: null,
|
|
145
|
+
gizmoMode: 'select',
|
|
146
|
+
});
|
|
147
|
+
await registry.execute('view.setShotView', { on: true }, ctx());
|
|
148
|
+
expect(setShotView).toHaveBeenCalledWith({ on: true });
|
|
149
|
+
});
|
|
150
|
+
test('view.setPipVisible 转发到 Scene Runtime handler', async () => {
|
|
151
|
+
const { registry, runtime } = makeScene();
|
|
152
|
+
const { setPipVisible } = bindViewHandlers(runtime, {
|
|
153
|
+
activeCameraKey: null,
|
|
154
|
+
shotView: false,
|
|
155
|
+
pipVisible: true,
|
|
156
|
+
editingPath: null,
|
|
157
|
+
gizmoMode: 'select',
|
|
158
|
+
});
|
|
159
|
+
await registry.execute('view.setPipVisible', { visible: false }, ctx());
|
|
160
|
+
expect(setPipVisible).toHaveBeenCalledWith({ visible: false });
|
|
161
|
+
});
|
|
162
|
+
test('view.setShotView 非布尔参数返回 INVALID_ARGUMENT,不触达 handler', async () => {
|
|
163
|
+
const { registry, runtime } = makeScene();
|
|
164
|
+
const { setShotView } = bindViewHandlers(runtime, {
|
|
165
|
+
activeCameraKey: null,
|
|
166
|
+
shotView: false,
|
|
167
|
+
pipVisible: true,
|
|
168
|
+
editingPath: null,
|
|
169
|
+
gizmoMode: 'select',
|
|
170
|
+
});
|
|
171
|
+
await expect(registry.execute('view.setShotView', { on: 'yes' }, ctx())).rejects.toMatchObject({ code: 'INVALID_ARGUMENT' });
|
|
172
|
+
expect(setShotView).not.toHaveBeenCalled();
|
|
173
|
+
});
|
|
174
|
+
test('view.setPipVisible handler 未绑定返回 SCENE_UNAVAILABLE', async () => {
|
|
175
|
+
const { registry } = makeScene();
|
|
176
|
+
await expect(registry.execute('view.setPipVisible', { visible: true }, ctx())).rejects.toMatchObject({ code: 'SCENE_UNAVAILABLE' });
|
|
177
|
+
});
|
|
178
|
+
// ── view.orbit / pan / dolly / reset ───────────────────────────
|
|
179
|
+
test('view.orbit 转发到已注册导演控制器', async () => {
|
|
180
|
+
const { registry } = makeScene();
|
|
181
|
+
const controller = registerFakeController();
|
|
182
|
+
await registry.execute('view.orbit', { deltaTheta: 0.3, deltaPhi: -0.1 }, ctx());
|
|
183
|
+
expect(controller.orbit).toHaveBeenCalledWith({
|
|
184
|
+
deltaTheta: 0.3,
|
|
185
|
+
deltaPhi: -0.1,
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
test('view.pan / dolly / reset 转发到已注册导演控制器', async () => {
|
|
189
|
+
const { registry } = makeScene();
|
|
190
|
+
const controller = registerFakeController();
|
|
191
|
+
await registry.execute('view.pan', { deltaX: 1.5, deltaY: -2 }, ctx());
|
|
192
|
+
await registry.execute('view.dolly', { delta: 3 }, ctx());
|
|
193
|
+
await registry.execute('view.reset', {}, ctx());
|
|
194
|
+
expect(controller.pan).toHaveBeenCalledWith({ deltaX: 1.5, deltaY: -2 });
|
|
195
|
+
expect(controller.dolly).toHaveBeenCalledWith({ delta: 3 });
|
|
196
|
+
expect(controller.reset).toHaveBeenCalledTimes(1);
|
|
197
|
+
});
|
|
198
|
+
test('导演控制器未注册时 orbit/pan/dolly/reset 返回 API_NOT_READY', async () => {
|
|
199
|
+
const { registry } = makeScene();
|
|
200
|
+
expect(getDirectorView()).toBeUndefined();
|
|
201
|
+
await expect(registry.execute('view.orbit', { deltaTheta: 0.1, deltaPhi: 0 }, ctx())).rejects.toMatchObject({ code: 'API_NOT_READY' });
|
|
202
|
+
await expect(registry.execute('view.pan', { deltaX: 1, deltaY: 0 }, ctx())).rejects.toMatchObject({ code: 'API_NOT_READY' });
|
|
203
|
+
await expect(registry.execute('view.dolly', { delta: 1 }, ctx())).rejects.toMatchObject({ code: 'API_NOT_READY' });
|
|
204
|
+
await expect(registry.execute('view.reset', {}, ctx())).rejects.toMatchObject({
|
|
205
|
+
code: 'API_NOT_READY',
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
test('orbit/pan/dolly 拒绝非有限数字,不触达控制器', async () => {
|
|
209
|
+
const { registry } = makeScene();
|
|
210
|
+
const controller = registerFakeController();
|
|
211
|
+
await expect(registry.execute('view.orbit', { deltaTheta: NaN, deltaPhi: 0 }, ctx())).rejects.toMatchObject({ code: 'INVALID_ARGUMENT' });
|
|
212
|
+
await expect(registry.execute('view.orbit', { deltaTheta: 0, deltaPhi: Infinity }, ctx())).rejects.toMatchObject({ code: 'INVALID_ARGUMENT' });
|
|
213
|
+
await expect(registry.execute('view.pan', { deltaX: 0, deltaY: -Infinity }, ctx())).rejects.toMatchObject({ code: 'INVALID_ARGUMENT' });
|
|
214
|
+
await expect(registry.execute('view.dolly', { delta: Number.NaN }, ctx())).rejects.toMatchObject({ code: 'INVALID_ARGUMENT' });
|
|
215
|
+
expect(controller.orbit).not.toHaveBeenCalled();
|
|
216
|
+
expect(controller.pan).not.toHaveBeenCalled();
|
|
217
|
+
expect(controller.dolly).not.toHaveBeenCalled();
|
|
218
|
+
});
|
|
219
|
+
// ── ui.hide / restore / setLeftStripHidden ─────────────────────
|
|
220
|
+
test('ui.hide / restore / setLeftStripHidden 走公开 studio.ui 方法', async () => {
|
|
221
|
+
const { registry, ui } = makeScene();
|
|
222
|
+
await registry.execute('ui.hide', {}, ctx());
|
|
223
|
+
await registry.execute('ui.restore', {}, ctx());
|
|
224
|
+
await registry.execute('ui.setLeftStripHidden', { hidden: true }, ctx());
|
|
225
|
+
expect(ui.hide).toHaveBeenCalledTimes(1);
|
|
226
|
+
expect(ui.restore).toHaveBeenCalledTimes(1);
|
|
227
|
+
expect(ui.setLeftStripHidden).toHaveBeenCalledWith(true);
|
|
228
|
+
});
|
|
229
|
+
test('Studio 不可用时 ui.hide / restore / setLeftStripHidden 返回 SCENE_UNAVAILABLE', async () => {
|
|
230
|
+
const { registry } = makeScene({ withStudio: false });
|
|
231
|
+
await expect(registry.execute('ui.hide', {}, ctx())).rejects.toMatchObject({
|
|
232
|
+
code: 'SCENE_UNAVAILABLE',
|
|
233
|
+
});
|
|
234
|
+
await expect(registry.execute('ui.restore', {}, ctx())).rejects.toMatchObject({
|
|
235
|
+
code: 'SCENE_UNAVAILABLE',
|
|
236
|
+
});
|
|
237
|
+
await expect(registry.execute('ui.setLeftStripHidden', { hidden: true }, ctx())).rejects.toMatchObject({ code: 'SCENE_UNAVAILABLE' });
|
|
238
|
+
});
|
|
239
|
+
test('ui.setLeftStripHidden 非布尔参数返回 INVALID_ARGUMENT', async () => {
|
|
240
|
+
const { registry, ui } = makeScene();
|
|
241
|
+
await expect(registry.execute('ui.setLeftStripHidden', { hidden: 1 }, ctx())).rejects.toMatchObject({ code: 'INVALID_ARGUMENT' });
|
|
242
|
+
expect(ui.setLeftStripHidden).not.toHaveBeenCalled();
|
|
243
|
+
});
|
|
244
|
+
// ── ui.openPanel / closePanel ──────────────────────────────────
|
|
245
|
+
test('ui.openPanel / closePanel 转发 model|pose|animation|path 到 handler', async () => {
|
|
246
|
+
const { registry, runtime } = makeScene();
|
|
247
|
+
const openPanel = jest.fn();
|
|
248
|
+
const closePanel = jest.fn();
|
|
249
|
+
cleanups.push(runtime.bindHandlers({ openPanel, closePanel }));
|
|
250
|
+
for (const panel of ['model', 'pose', 'animation', 'path']) {
|
|
251
|
+
await registry.execute('ui.openPanel', { panel }, ctx());
|
|
252
|
+
await registry.execute('ui.closePanel', { panel }, ctx());
|
|
253
|
+
}
|
|
254
|
+
expect(openPanel.mock.calls).toEqual([
|
|
255
|
+
[{ panel: 'model' }],
|
|
256
|
+
[{ panel: 'pose' }],
|
|
257
|
+
[{ panel: 'animation' }],
|
|
258
|
+
[{ panel: 'path' }],
|
|
259
|
+
]);
|
|
260
|
+
expect(closePanel.mock.calls).toEqual([
|
|
261
|
+
[{ panel: 'model' }],
|
|
262
|
+
[{ panel: 'pose' }],
|
|
263
|
+
[{ panel: 'animation' }],
|
|
264
|
+
[{ panel: 'path' }],
|
|
265
|
+
]);
|
|
266
|
+
});
|
|
267
|
+
test('ui.openPanel / closePanel 拒绝未知面板名', async () => {
|
|
268
|
+
const { registry, runtime } = makeScene();
|
|
269
|
+
const openPanel = jest.fn();
|
|
270
|
+
const closePanel = jest.fn();
|
|
271
|
+
cleanups.push(runtime.bindHandlers({ openPanel, closePanel }));
|
|
272
|
+
await expect(registry.execute('ui.openPanel', { panel: 'assets' }, ctx())).rejects.toMatchObject({ code: 'INVALID_ARGUMENT' });
|
|
273
|
+
await expect(registry.execute('ui.closePanel', { panel: '' }, ctx())).rejects.toMatchObject({ code: 'INVALID_ARGUMENT' });
|
|
274
|
+
expect(openPanel).not.toHaveBeenCalled();
|
|
275
|
+
expect(closePanel).not.toHaveBeenCalled();
|
|
276
|
+
});
|
|
277
|
+
test('ui.openPanel handler 未绑定返回 SCENE_UNAVAILABLE', async () => {
|
|
278
|
+
const { registry } = makeScene();
|
|
279
|
+
await expect(registry.execute('ui.openPanel', { panel: 'model' }, ctx())).rejects.toMatchObject({ code: 'SCENE_UNAVAILABLE' });
|
|
280
|
+
});
|
|
281
|
+
// ── ui.setGizmoMode ────────────────────────────────────────────
|
|
282
|
+
test('ui.setGizmoMode 接受 select|translate|rotate|scale 并转发', async () => {
|
|
283
|
+
const { registry, runtime } = makeScene();
|
|
284
|
+
const setGizmoMode = jest.fn();
|
|
285
|
+
cleanups.push(runtime.bindHandlers({ setGizmoMode }));
|
|
286
|
+
for (const mode of ['select', 'translate', 'rotate', 'scale']) {
|
|
287
|
+
await registry.execute('ui.setGizmoMode', { mode }, ctx());
|
|
288
|
+
}
|
|
289
|
+
expect(setGizmoMode.mock.calls).toEqual([
|
|
290
|
+
[{ mode: 'select' }],
|
|
291
|
+
[{ mode: 'translate' }],
|
|
292
|
+
[{ mode: 'rotate' }],
|
|
293
|
+
[{ mode: 'scale' }],
|
|
294
|
+
]);
|
|
295
|
+
});
|
|
296
|
+
test('ui.setGizmoMode 拒绝未知模式,不触达 handler', async () => {
|
|
297
|
+
const { registry, runtime } = makeScene();
|
|
298
|
+
const setGizmoMode = jest.fn();
|
|
299
|
+
cleanups.push(runtime.bindHandlers({ setGizmoMode }));
|
|
300
|
+
await expect(registry.execute('ui.setGizmoMode', { mode: 'fly' }, ctx())).rejects.toMatchObject({ code: 'INVALID_ARGUMENT' });
|
|
301
|
+
expect(setGizmoMode).not.toHaveBeenCalled();
|
|
302
|
+
});
|
|
303
|
+
test('ui.setGizmoMode handler 未绑定返回 SCENE_UNAVAILABLE', async () => {
|
|
304
|
+
const { registry } = makeScene();
|
|
305
|
+
await expect(registry.execute('ui.setGizmoMode', { mode: 'select' }, ctx())).rejects.toMatchObject({ code: 'SCENE_UNAVAILABLE' });
|
|
306
|
+
});
|
|
307
|
+
// ── 会话销毁与元数据 ───────────────────────────────────────────
|
|
308
|
+
test('会话销毁后 view/ui 命令返回 API_DISPOSED', async () => {
|
|
309
|
+
const { registry, runtime } = makeScene();
|
|
310
|
+
registerFakeController();
|
|
311
|
+
runtime.dispose();
|
|
312
|
+
await expect(registry.execute('view.getState', {}, ctx())).rejects.toMatchObject({
|
|
313
|
+
code: 'API_DISPOSED',
|
|
314
|
+
});
|
|
315
|
+
await expect(registry.execute('view.orbit', { deltaTheta: 0.1, deltaPhi: 0 }, ctx())).rejects.toMatchObject({ code: 'API_DISPOSED' });
|
|
316
|
+
await expect(registry.execute('ui.hide', {}, ctx())).rejects.toMatchObject({
|
|
317
|
+
code: 'API_DISPOSED',
|
|
318
|
+
});
|
|
319
|
+
});
|
|
320
|
+
test('describe() 中 view/ui 命令全部 session 域、undoable:none', () => {
|
|
321
|
+
const { registry } = makeScene();
|
|
322
|
+
const byName = new Map(registry.describe().commands.map((c) => [c.name, c]));
|
|
323
|
+
const expected = {
|
|
324
|
+
'view.getState': 'query',
|
|
325
|
+
'view.setShotView': 'mutation',
|
|
326
|
+
'view.setPipVisible': 'mutation',
|
|
327
|
+
'view.orbit': 'mutation',
|
|
328
|
+
'view.pan': 'mutation',
|
|
329
|
+
'view.dolly': 'mutation',
|
|
330
|
+
'view.reset': 'mutation',
|
|
331
|
+
'ui.hide': 'mutation',
|
|
332
|
+
'ui.restore': 'mutation',
|
|
333
|
+
'ui.setLeftStripHidden': 'mutation',
|
|
334
|
+
'ui.openPanel': 'mutation',
|
|
335
|
+
'ui.closePanel': 'mutation',
|
|
336
|
+
'ui.setGizmoMode': 'mutation',
|
|
337
|
+
};
|
|
338
|
+
for (const [name, kind] of Object.entries(expected)) {
|
|
339
|
+
const command = byName.get(name);
|
|
340
|
+
expect(command).toBeDefined();
|
|
341
|
+
expect(command).toMatchObject({
|
|
342
|
+
kind,
|
|
343
|
+
stateDomain: 'session',
|
|
344
|
+
undoable: 'none',
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contractCoverage.test.d.ts","sourceRoot":"","sources":["../../src/agent/contractCoverage.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 契约覆盖测试(2026-10-19,Task 16,spec §9):
|
|
3
|
+
* registerAllAgentCommands 的注册面与 EXPECTED_AGENT_COMMANDS 完全一致
|
|
4
|
+
* ——缺少与多出都失败,失败输出点名具体命令,不许通过删预期命令变绿。
|
|
5
|
+
*
|
|
6
|
+
* 元数据完备性(与命令注册同一份 describe() 快照):
|
|
7
|
+
* - 每个命令:非空 input/output schema;
|
|
8
|
+
* - 每个项目 mutation(stateDomain:project 且 kind:mutation):completion、
|
|
9
|
+
* 非空 errorCodes,且 acceptsExpectedRevision 为 true(spec 8.7);
|
|
10
|
+
* - 每个 job(kind:job):cancelable、completion、非空 jobResultSchema。
|
|
11
|
+
*
|
|
12
|
+
* 注册路径不触达 runtime(命令闭包到 execute 才用),用空对象占位即可。
|
|
13
|
+
*/
|
|
14
|
+
import { AgentCommandRegistry } from './registry';
|
|
15
|
+
import { registerAllAgentCommands } from './registerCommands';
|
|
16
|
+
import { EXPECTED_AGENT_COMMANDS } from './expectedCommands';
|
|
17
|
+
function describeAll() {
|
|
18
|
+
const registry = new AgentCommandRegistry();
|
|
19
|
+
registerAllAgentCommands(registry, {});
|
|
20
|
+
return registry.describe();
|
|
21
|
+
}
|
|
22
|
+
test('命令清单与 spec §9 完全一致:缺少与多出都失败', () => {
|
|
23
|
+
const actual = describeAll().commands.map((command) => command.name);
|
|
24
|
+
const expected = [...EXPECTED_AGENT_COMMANDS].sort();
|
|
25
|
+
const missing = expected.filter((name) => !actual.includes(name));
|
|
26
|
+
const extra = actual.filter((name) => !expected.includes(name));
|
|
27
|
+
// 先给点名清单(缺口定位),再给全量比对(顺序即 describe() 排序)
|
|
28
|
+
expect({ missing, extra }).toEqual({ missing: [], extra: [] });
|
|
29
|
+
expect(actual).toEqual(expected);
|
|
30
|
+
expect(new Set(actual).size).toBe(actual.length);
|
|
31
|
+
});
|
|
32
|
+
test('每个命令都有非空 input/output schema', () => {
|
|
33
|
+
const problems = [];
|
|
34
|
+
for (const command of describeAll().commands) {
|
|
35
|
+
if (!command.inputSchema ||
|
|
36
|
+
typeof command.inputSchema !== 'object' ||
|
|
37
|
+
Object.keys(command.inputSchema).length === 0) {
|
|
38
|
+
problems.push(`${command.name}: inputSchema 为空`);
|
|
39
|
+
}
|
|
40
|
+
if (!command.outputSchema ||
|
|
41
|
+
typeof command.outputSchema !== 'object' ||
|
|
42
|
+
Object.keys(command.outputSchema).length === 0) {
|
|
43
|
+
problems.push(`${command.name}: outputSchema 为空`);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
expect(problems).toEqual([]);
|
|
47
|
+
});
|
|
48
|
+
test('项目 mutation 元数据完备:undoable/completion/errorCodes/acceptsExpectedRevision', () => {
|
|
49
|
+
const problems = [];
|
|
50
|
+
for (const command of describeAll().commands) {
|
|
51
|
+
if (command.kind !== 'mutation' || command.stateDomain !== 'project') {
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
if (command.undoable !== 'single-step' && command.undoable !== 'none') {
|
|
55
|
+
problems.push(`${command.name}: undoable 未声明`);
|
|
56
|
+
}
|
|
57
|
+
if (!command.completion) {
|
|
58
|
+
problems.push(`${command.name}: 项目 mutation 缺 completion`);
|
|
59
|
+
}
|
|
60
|
+
if (!command.errorCodes || command.errorCodes.length === 0) {
|
|
61
|
+
problems.push(`${command.name}: 项目 mutation 缺 errorCodes`);
|
|
62
|
+
}
|
|
63
|
+
if (command.acceptsExpectedRevision !== true) {
|
|
64
|
+
problems.push(`${command.name}: 项目 mutation 应接受 expectedRevision`);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
expect(problems).toEqual([]);
|
|
68
|
+
});
|
|
69
|
+
test('job 元数据完备:cancelable/completion/jobResultSchema', () => {
|
|
70
|
+
const problems = [];
|
|
71
|
+
for (const command of describeAll().commands) {
|
|
72
|
+
if (command.kind !== 'job')
|
|
73
|
+
continue;
|
|
74
|
+
if (typeof command.cancelable !== 'boolean') {
|
|
75
|
+
problems.push(`${command.name}: job 缺 cancelable 声明`);
|
|
76
|
+
}
|
|
77
|
+
if (!command.completion) {
|
|
78
|
+
problems.push(`${command.name}: job 缺 completion`);
|
|
79
|
+
}
|
|
80
|
+
if (!command.jobResultSchema ||
|
|
81
|
+
typeof command.jobResultSchema !== 'object' ||
|
|
82
|
+
Object.keys(command.jobResultSchema).length === 0) {
|
|
83
|
+
problems.push(`${command.name}: job 缺非空 jobResultSchema`);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
expect(problems).toEqual([]);
|
|
87
|
+
});
|