@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,245 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* animations 命令(2026-10-17,Task 9):apply / clear / getStatus。
|
|
3
|
+
*
|
|
4
|
+
* apply:验证 AnimationEntry 存在且与模型骨架族兼容(库模型条目 rig 优先——
|
|
5
|
+
* GLB 导出洗骨骼名,实例重算可能不一致;本地 FBX 回退实例 rigIdOf;静态骨架
|
|
6
|
+
* INVALID_STATE),再按静态语义写 props.animation(propAccess 形状 + 建轨
|
|
7
|
+
* 校验;已建轨 INVALID_STATE,打帧走 keyframes.*)。clear 写空值。
|
|
8
|
+
*
|
|
9
|
+
* getStatus(会话域查询):loaded/error 只读 PlacementManager 的运行时登记
|
|
10
|
+
* (agent/runtime/animationStatus,加载 effect 登记、cleanup 删除),绝不从
|
|
11
|
+
* props 猜测——props 有值但无登记 = 加载中;登记的 assetId 与当前 props
|
|
12
|
+
* 不符 = 陈旧登记,按加载中报。
|
|
13
|
+
*/
|
|
14
|
+
import { val } from '@dreamerbird/core';
|
|
15
|
+
import { AgentApiError } from '../errors';
|
|
16
|
+
import { resolveSceneSheetObject } from '../objectResolver';
|
|
17
|
+
import { parseSceneObjectId } from '../objectIds';
|
|
18
|
+
import { assertStaticPropsWritable, setStaticProps } from '../propAccess';
|
|
19
|
+
import { getAnimationLoadStatus } from '../runtime/animationStatus';
|
|
20
|
+
import { requireFiniteNumber, requireObject, requireString } from '../validation';
|
|
21
|
+
import { rigIdOf } from '../../assetLibrary/rig';
|
|
22
|
+
const objectIdProperty = {
|
|
23
|
+
type: 'string',
|
|
24
|
+
description: '带类型场景对象 ID(模型),如 model:Y Bot',
|
|
25
|
+
};
|
|
26
|
+
const expectedRevisionProperty = {
|
|
27
|
+
type: 'number',
|
|
28
|
+
description: '乐观并发:读取场景时的 revision',
|
|
29
|
+
};
|
|
30
|
+
const revisionOutput = {
|
|
31
|
+
type: 'object',
|
|
32
|
+
properties: { revision: { type: 'number' } },
|
|
33
|
+
required: ['revision'],
|
|
34
|
+
};
|
|
35
|
+
const statusOutput = {
|
|
36
|
+
type: 'object',
|
|
37
|
+
properties: {
|
|
38
|
+
assetId: { type: 'string' },
|
|
39
|
+
loaded: { type: 'boolean' },
|
|
40
|
+
error: {
|
|
41
|
+
type: 'object',
|
|
42
|
+
properties: {
|
|
43
|
+
code: { type: 'string' },
|
|
44
|
+
message: { type: 'string' },
|
|
45
|
+
retryable: { type: 'boolean' },
|
|
46
|
+
},
|
|
47
|
+
required: ['code', 'message', 'retryable'],
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
required: ['loaded'],
|
|
51
|
+
};
|
|
52
|
+
function optionalExpectedRevision(value) {
|
|
53
|
+
if (value === undefined)
|
|
54
|
+
return undefined;
|
|
55
|
+
return requireFiniteNumber(value, 'expectedRevision');
|
|
56
|
+
}
|
|
57
|
+
function resolveMountedModel(runtime, objectId) {
|
|
58
|
+
const sheetObject = resolveSceneSheetObject(runtime.sheet, objectId, 'model');
|
|
59
|
+
if (!sheetObject) {
|
|
60
|
+
throw new AgentApiError('INVALID_STATE', `对象未挂载,无法操作: ${objectId}`, { details: { objectId } });
|
|
61
|
+
}
|
|
62
|
+
return sheetObject;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* 模型骨架族:库模型条目 rig 优先,回退实例 rigIdOf。
|
|
66
|
+
* handler 未绑定 SCENE_UNAVAILABLE;实例未挂载 INVALID_STATE;
|
|
67
|
+
* 静态骨架(null)由调用方拒绝。
|
|
68
|
+
*/
|
|
69
|
+
async function resolveModelRig(runtime, objectId) {
|
|
70
|
+
const getModelPlacement = runtime.handlers.getModelPlacement;
|
|
71
|
+
if (!getModelPlacement) {
|
|
72
|
+
throw new AgentApiError('SCENE_UNAVAILABLE', 'Scene Runtime 未绑定 getModelPlacement,无法验证骨架兼容性');
|
|
73
|
+
}
|
|
74
|
+
const { key } = parseSceneObjectId(objectId);
|
|
75
|
+
const placement = getModelPlacement({ key });
|
|
76
|
+
if (!placement) {
|
|
77
|
+
throw new AgentApiError('INVALID_STATE', `模型实例未挂载: ${objectId}`, {
|
|
78
|
+
details: { objectId },
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
if (placement.entry.libraryEntryId) {
|
|
82
|
+
const libEntry = await runtime.library.getEntry(placement.entry.libraryEntryId);
|
|
83
|
+
if (libEntry?.kind === 'model')
|
|
84
|
+
return libEntry.rig;
|
|
85
|
+
}
|
|
86
|
+
const rig = rigIdOf(placement.instance);
|
|
87
|
+
return rig === 'static' ? null : rig;
|
|
88
|
+
}
|
|
89
|
+
export function registerAnimationCommands(registry, runtime) {
|
|
90
|
+
registry.register({
|
|
91
|
+
name: 'animations.apply',
|
|
92
|
+
kind: 'mutation',
|
|
93
|
+
stateDomain: 'project',
|
|
94
|
+
undoable: 'single-step',
|
|
95
|
+
completion: 'committed',
|
|
96
|
+
inputSchema: {
|
|
97
|
+
type: 'object',
|
|
98
|
+
properties: {
|
|
99
|
+
objectId: objectIdProperty,
|
|
100
|
+
assetId: { type: 'string', description: '动画资产条目 id' },
|
|
101
|
+
expectedRevision: expectedRevisionProperty,
|
|
102
|
+
},
|
|
103
|
+
required: ['objectId', 'assetId'],
|
|
104
|
+
additionalProperties: false,
|
|
105
|
+
},
|
|
106
|
+
outputSchema: revisionOutput,
|
|
107
|
+
errorCodes: [
|
|
108
|
+
'API_DISPOSED',
|
|
109
|
+
'INVALID_ARGUMENT',
|
|
110
|
+
'INVALID_ID_KIND',
|
|
111
|
+
'OBJECT_NOT_FOUND',
|
|
112
|
+
'INVALID_STATE',
|
|
113
|
+
'ASSET_NOT_FOUND',
|
|
114
|
+
'REVISION_CONFLICT',
|
|
115
|
+
'SCENE_UNAVAILABLE',
|
|
116
|
+
],
|
|
117
|
+
validate: (value) => {
|
|
118
|
+
const args = requireObject(value);
|
|
119
|
+
return {
|
|
120
|
+
objectId: requireString(args, 'objectId'),
|
|
121
|
+
assetId: requireString(args, 'assetId'),
|
|
122
|
+
expectedRevision: optionalExpectedRevision(args.expectedRevision),
|
|
123
|
+
};
|
|
124
|
+
},
|
|
125
|
+
execute: async (args) => {
|
|
126
|
+
runtime.assertActive();
|
|
127
|
+
const sheetObject = resolveMountedModel(runtime, args.objectId);
|
|
128
|
+
const entry = await runtime.library.getEntry(args.assetId);
|
|
129
|
+
if (!entry) {
|
|
130
|
+
throw new AgentApiError('ASSET_NOT_FOUND', `资产不存在: ${args.assetId}`, {
|
|
131
|
+
details: { assetId: args.assetId },
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
if (entry.kind !== 'animation') {
|
|
135
|
+
throw new AgentApiError('INVALID_ARGUMENT', `资产 ${args.assetId} 不是动画(kind: ${entry.kind})`, { details: { assetId: args.assetId, kind: entry.kind } });
|
|
136
|
+
}
|
|
137
|
+
// 骨架族兼容校验(UI 选择框对异族条目置灰,同一规则)
|
|
138
|
+
const modelRig = await resolveModelRig(runtime, args.objectId);
|
|
139
|
+
if (modelRig === null) {
|
|
140
|
+
throw new AgentApiError('INVALID_STATE', `静态骨架模型不能应用动画: ${args.objectId}`, { details: { objectId: args.objectId } });
|
|
141
|
+
}
|
|
142
|
+
if (entry.rig !== modelRig) {
|
|
143
|
+
throw new AgentApiError('INVALID_ARGUMENT', `动画 ${args.assetId} 的骨架族(${entry.rig})与模型(${modelRig})不兼容`, {
|
|
144
|
+
details: {
|
|
145
|
+
assetId: args.assetId,
|
|
146
|
+
assetRig: entry.rig,
|
|
147
|
+
modelRig,
|
|
148
|
+
},
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
// 建轨预检先于乐观并发与事务(同 objects.update)
|
|
152
|
+
assertStaticPropsWritable(sheetObject, { animation: args.assetId });
|
|
153
|
+
if (args.expectedRevision !== undefined) {
|
|
154
|
+
runtime.assertRevision(args.expectedRevision);
|
|
155
|
+
}
|
|
156
|
+
setStaticProps(sheetObject, { animation: args.assetId });
|
|
157
|
+
return { revision: await runtime.nextRevision() };
|
|
158
|
+
},
|
|
159
|
+
});
|
|
160
|
+
registry.register({
|
|
161
|
+
name: 'animations.clear',
|
|
162
|
+
kind: 'mutation',
|
|
163
|
+
stateDomain: 'project',
|
|
164
|
+
undoable: 'single-step',
|
|
165
|
+
completion: 'committed',
|
|
166
|
+
inputSchema: {
|
|
167
|
+
type: 'object',
|
|
168
|
+
properties: {
|
|
169
|
+
objectId: objectIdProperty,
|
|
170
|
+
expectedRevision: expectedRevisionProperty,
|
|
171
|
+
},
|
|
172
|
+
required: ['objectId'],
|
|
173
|
+
additionalProperties: false,
|
|
174
|
+
},
|
|
175
|
+
outputSchema: revisionOutput,
|
|
176
|
+
errorCodes: [
|
|
177
|
+
'API_DISPOSED',
|
|
178
|
+
'INVALID_ARGUMENT',
|
|
179
|
+
'INVALID_ID_KIND',
|
|
180
|
+
'OBJECT_NOT_FOUND',
|
|
181
|
+
'INVALID_STATE',
|
|
182
|
+
'REVISION_CONFLICT',
|
|
183
|
+
'SCENE_UNAVAILABLE',
|
|
184
|
+
],
|
|
185
|
+
validate: (value) => {
|
|
186
|
+
const args = requireObject(value);
|
|
187
|
+
return {
|
|
188
|
+
objectId: requireString(args, 'objectId'),
|
|
189
|
+
expectedRevision: optionalExpectedRevision(args.expectedRevision),
|
|
190
|
+
};
|
|
191
|
+
},
|
|
192
|
+
execute: async (args) => {
|
|
193
|
+
runtime.assertActive();
|
|
194
|
+
const sheetObject = resolveMountedModel(runtime, args.objectId);
|
|
195
|
+
assertStaticPropsWritable(sheetObject, { animation: '' });
|
|
196
|
+
if (args.expectedRevision !== undefined) {
|
|
197
|
+
runtime.assertRevision(args.expectedRevision);
|
|
198
|
+
}
|
|
199
|
+
setStaticProps(sheetObject, { animation: '' });
|
|
200
|
+
return { revision: await runtime.nextRevision() };
|
|
201
|
+
},
|
|
202
|
+
});
|
|
203
|
+
registry.register({
|
|
204
|
+
name: 'animations.getStatus',
|
|
205
|
+
kind: 'query',
|
|
206
|
+
stateDomain: 'session',
|
|
207
|
+
undoable: 'none',
|
|
208
|
+
inputSchema: {
|
|
209
|
+
type: 'object',
|
|
210
|
+
properties: { objectId: objectIdProperty },
|
|
211
|
+
required: ['objectId'],
|
|
212
|
+
additionalProperties: false,
|
|
213
|
+
},
|
|
214
|
+
outputSchema: statusOutput,
|
|
215
|
+
errorCodes: [
|
|
216
|
+
'API_DISPOSED',
|
|
217
|
+
'INVALID_ARGUMENT',
|
|
218
|
+
'INVALID_ID_KIND',
|
|
219
|
+
'OBJECT_NOT_FOUND',
|
|
220
|
+
'INVALID_STATE',
|
|
221
|
+
],
|
|
222
|
+
validate: (value) => ({
|
|
223
|
+
objectId: requireString(requireObject(value), 'objectId'),
|
|
224
|
+
}),
|
|
225
|
+
execute: async (args) => {
|
|
226
|
+
runtime.assertActive();
|
|
227
|
+
const sheetObject = resolveMountedModel(runtime, args.objectId);
|
|
228
|
+
const current = val(sheetObject.props.animation) ?? '';
|
|
229
|
+
// 未设置
|
|
230
|
+
if (!current)
|
|
231
|
+
return { loaded: false };
|
|
232
|
+
const { key } = parseSceneObjectId(args.objectId);
|
|
233
|
+
const status = getAnimationLoadStatus(key);
|
|
234
|
+
// 无登记(加载中)或登记陈旧(assetId 对不上):如实报加载中
|
|
235
|
+
if (!status || status.assetId !== current) {
|
|
236
|
+
return { assetId: current, loaded: false };
|
|
237
|
+
}
|
|
238
|
+
return {
|
|
239
|
+
assetId: current,
|
|
240
|
+
loaded: status.loaded,
|
|
241
|
+
...(status.error ? { error: status.error } : {}),
|
|
242
|
+
};
|
|
243
|
+
},
|
|
244
|
+
});
|
|
245
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animations.test.d.ts","sourceRoot":"","sources":["../../../src/agent/commands/animations.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
let projectSeq = 0;
|
|
2
|
+
/** 晚绑定:doMock 工厂只跑一次,getStudioSync 读取当前 setup 的 studio */
|
|
3
|
+
let activeFakeStudio;
|
|
4
|
+
jest.doMock('@dreamerbird/core', () => ({
|
|
5
|
+
...jest.requireActual('@dreamerbird/core'),
|
|
6
|
+
getStudioSync: () => activeFakeStudio,
|
|
7
|
+
}));
|
|
8
|
+
const cleanups = [];
|
|
9
|
+
afterEach(() => {
|
|
10
|
+
while (cleanups.length)
|
|
11
|
+
cleanups.pop()();
|
|
12
|
+
});
|
|
13
|
+
const ctx = () => ({
|
|
14
|
+
requestId: 'test',
|
|
15
|
+
signal: new AbortController().signal,
|
|
16
|
+
});
|
|
17
|
+
function setup(options = {}) {
|
|
18
|
+
const { getPointerParts } = require('@dreamerbird/dataverse');
|
|
19
|
+
const core = require('@dreamerbird/core');
|
|
20
|
+
const { globals } = require('@dreamerbird/core/globals');
|
|
21
|
+
const { AgentCommandRegistry } = require('../registry');
|
|
22
|
+
const { createAgentRuntime } = require('../runtime');
|
|
23
|
+
const objectRuntime = require('../runtime/objectRuntime');
|
|
24
|
+
const animationStatus = require('../runtime/animationStatus');
|
|
25
|
+
const { registerAnimationCommands } = require('./animations');
|
|
26
|
+
const { PLACEMENTS_REGISTRY_KEY } = require('../../PlacementManager');
|
|
27
|
+
const { rigIdOf } = require('../../assetLibrary/rig');
|
|
28
|
+
const three = require('three');
|
|
29
|
+
const calls = [];
|
|
30
|
+
const fakeStudio = {
|
|
31
|
+
transaction: jest.fn((fn) => fn({
|
|
32
|
+
set: (pointer, value) => {
|
|
33
|
+
const { path } = getPointerParts(pointer);
|
|
34
|
+
calls.push({ op: 'set', path: path.join('.'), value });
|
|
35
|
+
},
|
|
36
|
+
})),
|
|
37
|
+
};
|
|
38
|
+
activeFakeStudio = fakeStudio;
|
|
39
|
+
cleanups.push(() => {
|
|
40
|
+
activeFakeStudio = undefined;
|
|
41
|
+
});
|
|
42
|
+
const state = {
|
|
43
|
+
definitionVersion: globals.currentProjectStateDefinitionVersion,
|
|
44
|
+
sheetsById: {
|
|
45
|
+
Scene: {
|
|
46
|
+
staticOverrides: { byObject: {} },
|
|
47
|
+
sequence: {
|
|
48
|
+
type: 'PositionalSequence',
|
|
49
|
+
length: 10,
|
|
50
|
+
subUnitsPerUnit: 30,
|
|
51
|
+
tracksByObject: options.tracks
|
|
52
|
+
? {
|
|
53
|
+
Foo: {
|
|
54
|
+
trackIdByPropPath: { '["animation"]': 'track-anim' },
|
|
55
|
+
trackData: {
|
|
56
|
+
'track-anim': {
|
|
57
|
+
type: 'BasicKeyframedTrack',
|
|
58
|
+
keyframes: {
|
|
59
|
+
byId: {
|
|
60
|
+
kf1: {
|
|
61
|
+
id: 'kf1',
|
|
62
|
+
position: 0,
|
|
63
|
+
connectedRight: true,
|
|
64
|
+
handles: [0.5, 0.5, 0.5, 0.5],
|
|
65
|
+
value: '',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
allIds: { kf1: true },
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
}
|
|
74
|
+
: {},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
const project = core.getProject(`agent-anims-${++projectSeq}`, {
|
|
80
|
+
state: state,
|
|
81
|
+
});
|
|
82
|
+
const sheet = project.sheet('Scene');
|
|
83
|
+
const animEntry = {
|
|
84
|
+
id: 'anim-1',
|
|
85
|
+
kind: 'animation',
|
|
86
|
+
name: '走路',
|
|
87
|
+
rig: 'mixamo',
|
|
88
|
+
blobId: 'blob-a1',
|
|
89
|
+
contentHash: 'hash-a1',
|
|
90
|
+
duration: 1.5,
|
|
91
|
+
createdAt: 10,
|
|
92
|
+
};
|
|
93
|
+
const animOtherRig = { ...animEntry, id: 'anim-2', name: '异族', rig: 'other' };
|
|
94
|
+
const modelEntry = {
|
|
95
|
+
id: 'model-1',
|
|
96
|
+
kind: 'model',
|
|
97
|
+
name: 'Y Bot',
|
|
98
|
+
rig: 'mixamo',
|
|
99
|
+
blobId: 'blob-1',
|
|
100
|
+
contentHash: 'hash-1',
|
|
101
|
+
boneCount: 65,
|
|
102
|
+
vertexCount: 1000,
|
|
103
|
+
createdAt: 0,
|
|
104
|
+
};
|
|
105
|
+
const poseEntry = {
|
|
106
|
+
id: 'pose-1',
|
|
107
|
+
kind: 'pose',
|
|
108
|
+
name: '坐姿',
|
|
109
|
+
rig: 'mixamo',
|
|
110
|
+
bones: {},
|
|
111
|
+
createdAt: 1,
|
|
112
|
+
};
|
|
113
|
+
const entries = new Map([animEntry, animOtherRig, modelEntry, poseEntry].map((entry) => [
|
|
114
|
+
entry.id,
|
|
115
|
+
entry,
|
|
116
|
+
]));
|
|
117
|
+
const library = {
|
|
118
|
+
getEntry: jest.fn(async (id) => entries.get(id)),
|
|
119
|
+
};
|
|
120
|
+
let notifyHistoric = () => { };
|
|
121
|
+
const runtime = createAgentRuntime({
|
|
122
|
+
project,
|
|
123
|
+
sheet,
|
|
124
|
+
library: library,
|
|
125
|
+
getStudio: () => fakeStudio,
|
|
126
|
+
subscribeHistoric: (listener) => {
|
|
127
|
+
notifyHistoric = listener;
|
|
128
|
+
return () => { };
|
|
129
|
+
},
|
|
130
|
+
});
|
|
131
|
+
const registry = new AgentCommandRegistry();
|
|
132
|
+
registerAnimationCommands(registry, runtime);
|
|
133
|
+
/** Scene Runtime handler:当前 Foo 的放置条目 + Three 实例(逐用例可换) */
|
|
134
|
+
let placementForFoo;
|
|
135
|
+
const getModelPlacement = jest.fn(({ key }) => key === 'Foo' ? placementForFoo : undefined);
|
|
136
|
+
cleanups.push(runtime.bindHandlers({ getModelPlacement }));
|
|
137
|
+
function registerMounted(id, obj) {
|
|
138
|
+
objectRuntime.registerSceneSheetObject(id, obj);
|
|
139
|
+
cleanups.push(() => objectRuntime.unregisterSceneSheetObject(id, obj));
|
|
140
|
+
}
|
|
141
|
+
/** 布景:注册表写 'Foo' 条目并把 SheetObject 登记为 model:Foo */
|
|
142
|
+
function mountFoo() {
|
|
143
|
+
const t = core.types;
|
|
144
|
+
const registryObj = sheet.object(PLACEMENTS_REGISTRY_KEY, { list: t.string('[]') }, { hideFromOutline: true });
|
|
145
|
+
registryObj.initialValue = {
|
|
146
|
+
list: JSON.stringify([
|
|
147
|
+
{ key: 'Foo', libraryEntryId: 'model-1', position: { x: 0, y: 0, z: 0 } },
|
|
148
|
+
]),
|
|
149
|
+
};
|
|
150
|
+
const obj = sheet.object('Foo', {
|
|
151
|
+
position: t.compound({
|
|
152
|
+
x: t.number(0),
|
|
153
|
+
y: t.number(0),
|
|
154
|
+
z: t.number(0),
|
|
155
|
+
}),
|
|
156
|
+
pose: t.string(''),
|
|
157
|
+
animation: t.string(''),
|
|
158
|
+
});
|
|
159
|
+
registerMounted('model:Foo', obj);
|
|
160
|
+
return obj;
|
|
161
|
+
}
|
|
162
|
+
/** 带骨骼的 Three 实例(rigIdOf 回退路径用) */
|
|
163
|
+
function boneInstance() {
|
|
164
|
+
const group = new three.Group();
|
|
165
|
+
const hips = new three.Bone();
|
|
166
|
+
hips.name = 'mixamorigHips';
|
|
167
|
+
group.add(hips);
|
|
168
|
+
return group;
|
|
169
|
+
}
|
|
170
|
+
return {
|
|
171
|
+
core,
|
|
172
|
+
project,
|
|
173
|
+
sheet,
|
|
174
|
+
registry,
|
|
175
|
+
runtime,
|
|
176
|
+
fakeStudio,
|
|
177
|
+
calls,
|
|
178
|
+
library,
|
|
179
|
+
mountFoo,
|
|
180
|
+
boneInstance,
|
|
181
|
+
rigIdOf,
|
|
182
|
+
animationStatus,
|
|
183
|
+
setPlacementForFoo: (p) => {
|
|
184
|
+
placementForFoo = p;
|
|
185
|
+
},
|
|
186
|
+
getModelPlacement,
|
|
187
|
+
notifyHistoric: () => notifyHistoric(),
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
const COMMAND_NAMES = [
|
|
191
|
+
'animations.apply',
|
|
192
|
+
'animations.clear',
|
|
193
|
+
'animations.getStatus',
|
|
194
|
+
];
|
|
195
|
+
describe('animations 命令注册', () => {
|
|
196
|
+
test('三个命令全部注册', () => {
|
|
197
|
+
const { registry } = setup();
|
|
198
|
+
for (const name of COMMAND_NAMES) {
|
|
199
|
+
expect(registry.has(name)).toBe(true);
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
test('元数据:apply/clear 为项目单步命令且接受 expectedRevision;getStatus 为会话域查询', () => {
|
|
203
|
+
const { registry } = setup();
|
|
204
|
+
const described = new Map(registry.describe().commands.map((c) => [c.name, c]));
|
|
205
|
+
for (const name of ['animations.apply', 'animations.clear']) {
|
|
206
|
+
expect(described.get(name)).toMatchObject({
|
|
207
|
+
kind: 'mutation',
|
|
208
|
+
stateDomain: 'project',
|
|
209
|
+
undoable: 'single-step',
|
|
210
|
+
completion: 'committed',
|
|
211
|
+
acceptsExpectedRevision: true,
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
expect(described.get('animations.getStatus')).toMatchObject({
|
|
215
|
+
kind: 'query',
|
|
216
|
+
acceptsExpectedRevision: false,
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
describe('animations.apply', () => {
|
|
221
|
+
test('动画条目与模型兼容:单事务写 props.animation 静态值', async () => {
|
|
222
|
+
const { registry, fakeStudio, calls, mountFoo, boneInstance, setPlacementForFoo, } = setup();
|
|
223
|
+
mountFoo();
|
|
224
|
+
setPlacementForFoo({
|
|
225
|
+
entry: {
|
|
226
|
+
key: 'Foo',
|
|
227
|
+
libraryEntryId: 'model-1',
|
|
228
|
+
position: { x: 0, y: 0, z: 0 },
|
|
229
|
+
},
|
|
230
|
+
instance: boneInstance(),
|
|
231
|
+
});
|
|
232
|
+
const result = await registry.execute('animations.apply', { objectId: 'model:Foo', assetId: 'anim-1' }, ctx());
|
|
233
|
+
expect(fakeStudio.transaction).toHaveBeenCalledTimes(1);
|
|
234
|
+
expect(calls).toEqual([{ op: 'set', path: 'animation', value: 'anim-1' }]);
|
|
235
|
+
expect(result).toEqual({ revision: 1 });
|
|
236
|
+
});
|
|
237
|
+
test('资产不存在 ASSET_NOT_FOUND;非动画条目 INVALID_ARGUMENT', async () => {
|
|
238
|
+
const { registry, fakeStudio, mountFoo, boneInstance, setPlacementForFoo } = setup();
|
|
239
|
+
mountFoo();
|
|
240
|
+
setPlacementForFoo({
|
|
241
|
+
entry: {
|
|
242
|
+
key: 'Foo',
|
|
243
|
+
libraryEntryId: 'model-1',
|
|
244
|
+
position: { x: 0, y: 0, z: 0 },
|
|
245
|
+
},
|
|
246
|
+
instance: boneInstance(),
|
|
247
|
+
});
|
|
248
|
+
await expect(registry.execute('animations.apply', { objectId: 'model:Foo', assetId: 'nope' }, ctx())).rejects.toMatchObject({ code: 'ASSET_NOT_FOUND' });
|
|
249
|
+
await expect(registry.execute('animations.apply', { objectId: 'model:Foo', assetId: 'pose-1' }, ctx())).rejects.toMatchObject({ code: 'INVALID_ARGUMENT' });
|
|
250
|
+
expect(fakeStudio.transaction).not.toHaveBeenCalled();
|
|
251
|
+
});
|
|
252
|
+
test('骨架族不符 INVALID_ARGUMENT,不写', async () => {
|
|
253
|
+
const { registry, fakeStudio, mountFoo, boneInstance, setPlacementForFoo } = setup();
|
|
254
|
+
mountFoo();
|
|
255
|
+
setPlacementForFoo({
|
|
256
|
+
entry: {
|
|
257
|
+
key: 'Foo',
|
|
258
|
+
libraryEntryId: 'model-1',
|
|
259
|
+
position: { x: 0, y: 0, z: 0 },
|
|
260
|
+
},
|
|
261
|
+
instance: boneInstance(),
|
|
262
|
+
});
|
|
263
|
+
await expect(registry.execute('animations.apply', { objectId: 'model:Foo', assetId: 'anim-2' }, ctx())).rejects.toMatchObject({ code: 'INVALID_ARGUMENT' });
|
|
264
|
+
expect(fakeStudio.transaction).not.toHaveBeenCalled();
|
|
265
|
+
});
|
|
266
|
+
test('无库条目时回退实例 rigIdOf;静态骨架 INVALID_STATE', async () => {
|
|
267
|
+
// 回退路径:放置条目无 libraryEntryId,模型 rig 由实例骨骼计算
|
|
268
|
+
const s2 = setup();
|
|
269
|
+
s2.mountFoo();
|
|
270
|
+
const instance2 = s2.boneInstance();
|
|
271
|
+
s2.setPlacementForFoo({
|
|
272
|
+
entry: { key: 'Foo', position: { x: 0, y: 0, z: 0 } },
|
|
273
|
+
instance: instance2,
|
|
274
|
+
});
|
|
275
|
+
const fallbackEntry = {
|
|
276
|
+
id: 'anim-rig',
|
|
277
|
+
kind: 'animation',
|
|
278
|
+
name: '实例族',
|
|
279
|
+
rig: s2.rigIdOf(instance2),
|
|
280
|
+
blobId: 'b',
|
|
281
|
+
contentHash: 'h',
|
|
282
|
+
duration: 1,
|
|
283
|
+
createdAt: 11,
|
|
284
|
+
};
|
|
285
|
+
s2.library.getEntry.mockImplementation(async (id) => id === 'anim-rig' ? fallbackEntry : undefined);
|
|
286
|
+
await s2.registry.execute('animations.apply', { objectId: 'model:Foo', assetId: 'anim-rig' }, ctx());
|
|
287
|
+
expect(s2.calls).toEqual([
|
|
288
|
+
{ op: 'set', path: 'animation', value: 'anim-rig' },
|
|
289
|
+
]);
|
|
290
|
+
// 静态骨架:无骨骼实例且无库 rig → INVALID_STATE
|
|
291
|
+
const s3 = setup();
|
|
292
|
+
s3.mountFoo();
|
|
293
|
+
s3.setPlacementForFoo({
|
|
294
|
+
entry: { key: 'Foo', position: { x: 0, y: 0, z: 0 } },
|
|
295
|
+
instance: new (require('three').Group)(),
|
|
296
|
+
});
|
|
297
|
+
s3.library.getEntry.mockImplementation(async (id) => id === 'anim-1'
|
|
298
|
+
? {
|
|
299
|
+
id: 'anim-1',
|
|
300
|
+
kind: 'animation',
|
|
301
|
+
name: '走路',
|
|
302
|
+
rig: 'mixamo',
|
|
303
|
+
blobId: 'blob-a1',
|
|
304
|
+
contentHash: 'hash-a1',
|
|
305
|
+
duration: 1.5,
|
|
306
|
+
createdAt: 10,
|
|
307
|
+
}
|
|
308
|
+
: undefined);
|
|
309
|
+
await expect(s3.registry.execute('animations.apply', { objectId: 'model:Foo', assetId: 'anim-1' }, ctx())).rejects.toMatchObject({ code: 'INVALID_STATE' });
|
|
310
|
+
});
|
|
311
|
+
test('animation 已建轨返回 INVALID_STATE,不写', async () => {
|
|
312
|
+
const { registry, fakeStudio, mountFoo, boneInstance, setPlacementForFoo } = setup({ tracks: true });
|
|
313
|
+
mountFoo();
|
|
314
|
+
setPlacementForFoo({
|
|
315
|
+
entry: {
|
|
316
|
+
key: 'Foo',
|
|
317
|
+
libraryEntryId: 'model-1',
|
|
318
|
+
position: { x: 0, y: 0, z: 0 },
|
|
319
|
+
},
|
|
320
|
+
instance: boneInstance(),
|
|
321
|
+
});
|
|
322
|
+
await expect(registry.execute('animations.apply', { objectId: 'model:Foo', assetId: 'anim-1' }, ctx())).rejects.toMatchObject({ code: 'INVALID_STATE' });
|
|
323
|
+
expect(fakeStudio.transaction).not.toHaveBeenCalled();
|
|
324
|
+
});
|
|
325
|
+
test('expectedRevision 冲突 REVISION_CONFLICT;Scene Runtime 未绑定 SCENE_UNAVAILABLE', async () => {
|
|
326
|
+
const { registry, fakeStudio, mountFoo, boneInstance, setPlacementForFoo, notifyHistoric, } = setup();
|
|
327
|
+
mountFoo();
|
|
328
|
+
setPlacementForFoo({
|
|
329
|
+
entry: {
|
|
330
|
+
key: 'Foo',
|
|
331
|
+
libraryEntryId: 'model-1',
|
|
332
|
+
position: { x: 0, y: 0, z: 0 },
|
|
333
|
+
},
|
|
334
|
+
instance: boneInstance(),
|
|
335
|
+
});
|
|
336
|
+
notifyHistoric();
|
|
337
|
+
await expect(registry.execute('animations.apply', { objectId: 'model:Foo', assetId: 'anim-1', expectedRevision: 1 }, ctx())).rejects.toMatchObject({ code: 'REVISION_CONFLICT' });
|
|
338
|
+
expect(fakeStudio.transaction).not.toHaveBeenCalled();
|
|
339
|
+
});
|
|
340
|
+
});
|
|
341
|
+
describe('animations.clear', () => {
|
|
342
|
+
test('写空值(单事务),返回 revision', async () => {
|
|
343
|
+
const { registry, calls, mountFoo } = setup();
|
|
344
|
+
mountFoo();
|
|
345
|
+
const result = await registry.execute('animations.clear', { objectId: 'model:Foo' }, ctx());
|
|
346
|
+
expect(calls).toEqual([{ op: 'set', path: 'animation', value: '' }]);
|
|
347
|
+
expect(result).toEqual({ revision: 1 });
|
|
348
|
+
});
|
|
349
|
+
test('已建轨 INVALID_STATE;expectedRevision 冲突 REVISION_CONFLICT', async () => {
|
|
350
|
+
const { registry, fakeStudio, mountFoo } = setup({ tracks: true });
|
|
351
|
+
mountFoo();
|
|
352
|
+
await expect(registry.execute('animations.clear', { objectId: 'model:Foo' }, ctx())).rejects.toMatchObject({ code: 'INVALID_STATE' });
|
|
353
|
+
expect(fakeStudio.transaction).not.toHaveBeenCalled();
|
|
354
|
+
});
|
|
355
|
+
});
|
|
356
|
+
describe('animations.getStatus', () => {
|
|
357
|
+
test('未设置动画:{loaded:false} 且无 assetId', async () => {
|
|
358
|
+
const { registry, mountFoo } = setup();
|
|
359
|
+
mountFoo();
|
|
360
|
+
await expect(registry.execute('animations.getStatus', { objectId: 'model:Foo' }, ctx())).resolves.toEqual({ loaded: false });
|
|
361
|
+
});
|
|
362
|
+
test('已设置但未登记:加载中 {assetId, loaded:false}', async () => {
|
|
363
|
+
const { registry, mountFoo } = setup();
|
|
364
|
+
const obj = mountFoo();
|
|
365
|
+
obj.initialValue = { animation: 'anim-1' };
|
|
366
|
+
await expect(registry.execute('animations.getStatus', { objectId: 'model:Foo' }, ctx())).resolves.toEqual({ assetId: 'anim-1', loaded: false });
|
|
367
|
+
});
|
|
368
|
+
test('运行时登记 loaded:true → 已加载;登记 error → 加载失败', async () => {
|
|
369
|
+
const { registry, mountFoo, animationStatus } = setup();
|
|
370
|
+
const obj = mountFoo();
|
|
371
|
+
obj.initialValue = { animation: 'anim-1' };
|
|
372
|
+
animationStatus.setAnimationLoadStatus('Foo', {
|
|
373
|
+
assetId: 'anim-1',
|
|
374
|
+
loaded: true,
|
|
375
|
+
});
|
|
376
|
+
cleanups.push(() => animationStatus.clearAnimationLoadStatus('Foo'));
|
|
377
|
+
await expect(registry.execute('animations.getStatus', { objectId: 'model:Foo' }, ctx())).resolves.toEqual({ assetId: 'anim-1', loaded: true });
|
|
378
|
+
animationStatus.setAnimationLoadStatus('Foo', {
|
|
379
|
+
assetId: 'anim-1',
|
|
380
|
+
loaded: false,
|
|
381
|
+
error: {
|
|
382
|
+
code: 'RESOURCE_LOAD_FAILED',
|
|
383
|
+
message: 'GLB 解析失败',
|
|
384
|
+
retryable: true,
|
|
385
|
+
},
|
|
386
|
+
});
|
|
387
|
+
await expect(registry.execute('animations.getStatus', { objectId: 'model:Foo' }, ctx())).resolves.toEqual({
|
|
388
|
+
assetId: 'anim-1',
|
|
389
|
+
loaded: false,
|
|
390
|
+
error: {
|
|
391
|
+
code: 'RESOURCE_LOAD_FAILED',
|
|
392
|
+
message: 'GLB 解析失败',
|
|
393
|
+
retryable: true,
|
|
394
|
+
},
|
|
395
|
+
});
|
|
396
|
+
});
|
|
397
|
+
test('登记的是旧 assetId(props 已换):按加载中报,不读陈旧 loaded', async () => {
|
|
398
|
+
const { registry, mountFoo, animationStatus } = setup();
|
|
399
|
+
const obj = mountFoo();
|
|
400
|
+
obj.initialValue = { animation: 'anim-2' };
|
|
401
|
+
animationStatus.setAnimationLoadStatus('Foo', {
|
|
402
|
+
assetId: 'anim-1',
|
|
403
|
+
loaded: true,
|
|
404
|
+
});
|
|
405
|
+
cleanups.push(() => animationStatus.clearAnimationLoadStatus('Foo'));
|
|
406
|
+
await expect(registry.execute('animations.getStatus', { objectId: 'model:Foo' }, ctx())).resolves.toEqual({ assetId: 'anim-2', loaded: false });
|
|
407
|
+
});
|
|
408
|
+
test('对象不存在 OBJECT_NOT_FOUND;未挂载 INVALID_STATE', async () => {
|
|
409
|
+
const { registry, mountFoo } = setup();
|
|
410
|
+
await expect(registry.execute('animations.getStatus', { objectId: 'model:Nope' }, ctx())).rejects.toMatchObject({ code: 'OBJECT_NOT_FOUND' });
|
|
411
|
+
const obj = mountFoo();
|
|
412
|
+
const objectRuntime = require('../runtime/objectRuntime');
|
|
413
|
+
objectRuntime.unregisterSceneSheetObject('model:Foo', obj);
|
|
414
|
+
await expect(registry.execute('animations.getStatus', { objectId: 'model:Foo' }, ctx())).rejects.toMatchObject({ code: 'INVALID_STATE' });
|
|
415
|
+
});
|
|
416
|
+
});
|
|
417
|
+
describe('会话生命周期', () => {
|
|
418
|
+
test('dispose 后命令拒绝 API_DISPOSED', async () => {
|
|
419
|
+
const { registry, runtime, mountFoo } = setup();
|
|
420
|
+
mountFoo();
|
|
421
|
+
runtime.dispose();
|
|
422
|
+
await expect(registry.execute('animations.getStatus', { objectId: 'model:Foo' }, ctx())).rejects.toMatchObject({ code: 'API_DISPOSED' });
|
|
423
|
+
await expect(registry.execute('animations.apply', { objectId: 'model:Foo', assetId: 'anim-1' }, ctx())).rejects.toMatchObject({ code: 'API_DISPOSED' });
|
|
424
|
+
});
|
|
425
|
+
});
|
|
426
|
+
export {};
|