@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,520 @@
|
|
|
1
|
+
import { indexedDB as fakeIndexedDB } from 'fake-indexeddb';
|
|
2
|
+
import { Library } from './library';
|
|
3
|
+
import { IndexedDBBackend } from './indexedDBBackend';
|
|
4
|
+
import { seedAssetsManifest } from './seedAssetsManifest';
|
|
5
|
+
globalThis.indexedDB = fakeIndexedDB;
|
|
6
|
+
URL.createObjectURL = jest.fn(() => 'blob:mock-url');
|
|
7
|
+
URL.revokeObjectURL = jest.fn();
|
|
8
|
+
function memoryBackend() {
|
|
9
|
+
const entries = new Map();
|
|
10
|
+
const aliases = new Map();
|
|
11
|
+
return {
|
|
12
|
+
id: 'mock',
|
|
13
|
+
entries,
|
|
14
|
+
aliases,
|
|
15
|
+
listEntries: async (kind) => [...entries.values()].filter((e) => !kind || e.kind === kind),
|
|
16
|
+
getEntry: async (id) => entries.get(id),
|
|
17
|
+
putEntry: async (e) => void entries.set(e.id, e),
|
|
18
|
+
deleteEntry: async (id) => void entries.delete(id),
|
|
19
|
+
putBlob: async () => 'blob-x',
|
|
20
|
+
getBlobUrl: async () => 'blob:x',
|
|
21
|
+
deleteBlob: async () => { },
|
|
22
|
+
listBlobIds: async () => [],
|
|
23
|
+
getRigAliases: async () => [...aliases.entries()].map(([rig, name]) => ({ rig, name })),
|
|
24
|
+
putRigAlias: async ({ rig, name }) => void aliases.set(rig, name),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
const model = (id, name = id) => ({
|
|
28
|
+
id,
|
|
29
|
+
kind: 'model',
|
|
30
|
+
name,
|
|
31
|
+
rig: 'rig-x',
|
|
32
|
+
blobId: 'b',
|
|
33
|
+
contentHash: 'h',
|
|
34
|
+
boneCount: 1,
|
|
35
|
+
vertexCount: 1,
|
|
36
|
+
createdAt: 1,
|
|
37
|
+
});
|
|
38
|
+
describe('Library', () => {
|
|
39
|
+
it('putEntry/deleteEntry 触发订阅,renameEntry 只改名字', async () => {
|
|
40
|
+
const lib = new Library({ sources: [memoryBackend()] });
|
|
41
|
+
const seen = [];
|
|
42
|
+
const unsub = lib.subscribe(() => seen.push(1));
|
|
43
|
+
await lib.putEntry(model('m1'));
|
|
44
|
+
await lib.renameEntry('m1', '新名字');
|
|
45
|
+
await lib.deleteEntry('m1');
|
|
46
|
+
expect(seen.length).toBe(3);
|
|
47
|
+
unsub();
|
|
48
|
+
await lib.putEntry(model('m2'));
|
|
49
|
+
expect(seen.length).toBe(3); // 退订后不再触发
|
|
50
|
+
});
|
|
51
|
+
it('setRigAlias 写入并触发订阅', async () => {
|
|
52
|
+
const lib = new Library({ sources: [memoryBackend()] });
|
|
53
|
+
const events = [];
|
|
54
|
+
const unsub = lib.subscribe(() => events.push(1));
|
|
55
|
+
await lib.setRigAlias('rig-a', 'Mixamo');
|
|
56
|
+
unsub();
|
|
57
|
+
const aliases = await lib.getRigAliases();
|
|
58
|
+
expect(aliases).toContainEqual({ rig: 'rig-a', name: 'Mixamo' });
|
|
59
|
+
expect(events.length).toBe(1);
|
|
60
|
+
});
|
|
61
|
+
it('renameEntry 保留其它字段', async () => {
|
|
62
|
+
const backend = memoryBackend();
|
|
63
|
+
const lib = new Library({ sources: [backend] });
|
|
64
|
+
await lib.putEntry(model('m1', '旧'));
|
|
65
|
+
await lib.renameEntry('m1', '新');
|
|
66
|
+
expect(backend.entries.get('m1')).toMatchObject({ name: '新', rig: 'rig-x' });
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
describe('聚合器(多数据源)', () => {
|
|
70
|
+
const fakeSource = (id, entries, writable = false) => ({
|
|
71
|
+
id,
|
|
72
|
+
capabilities: { writable },
|
|
73
|
+
listEntries: async () => entries,
|
|
74
|
+
getEntry: async (eid) => entries.find((e) => e.id === eid),
|
|
75
|
+
getBlobUrl: async (b) => `${id}://${b}`,
|
|
76
|
+
});
|
|
77
|
+
test('聚合读:多源合并,id 冲突先注册者胜并告警', async () => {
|
|
78
|
+
const errors = [];
|
|
79
|
+
const lib = new Library({
|
|
80
|
+
sources: [
|
|
81
|
+
fakeSource('a', [{ id: 'x', name: 'A 的 x' }]),
|
|
82
|
+
fakeSource('b', [{ id: 'x', name: 'B 的 x' }, { id: 'y' }]),
|
|
83
|
+
],
|
|
84
|
+
onError: (e) => errors.push(e),
|
|
85
|
+
});
|
|
86
|
+
const entries = await lib.listEntries();
|
|
87
|
+
expect(entries.map((e) => e.id).sort()).toEqual(['x', 'y']);
|
|
88
|
+
expect((await lib.getEntry('x'))?.name).toBe('A 的 x');
|
|
89
|
+
expect(errors.some((e) => e.code === 'conflict')).toBe(true);
|
|
90
|
+
});
|
|
91
|
+
test('seed-* 前缀拒绝:可写源返回内置前缀条目被剔除并告警', async () => {
|
|
92
|
+
const errors = [];
|
|
93
|
+
const writable = {
|
|
94
|
+
...fakeSource('idb', [{ id: 'seed-pose-fake' }], true),
|
|
95
|
+
putEntry: async () => { },
|
|
96
|
+
deleteEntry: async () => { },
|
|
97
|
+
putBlob: async () => 'h',
|
|
98
|
+
deleteBlob: async () => { },
|
|
99
|
+
getRigAliases: async () => [],
|
|
100
|
+
putRigAlias: async () => { },
|
|
101
|
+
};
|
|
102
|
+
const lib = new Library({
|
|
103
|
+
sources: [writable],
|
|
104
|
+
onError: (e) => errors.push(e),
|
|
105
|
+
});
|
|
106
|
+
expect(await lib.listEntries()).toEqual([]);
|
|
107
|
+
expect(errors.some((e) => e.code === 'conflict')).toBe(true);
|
|
108
|
+
});
|
|
109
|
+
test('纯查看器模式:无可写源,写操作抛 auth;面板照常可读', async () => {
|
|
110
|
+
const lib = new Library({
|
|
111
|
+
sources: [fakeSource('catalog', [{ id: 'seed-pose-a' }])],
|
|
112
|
+
});
|
|
113
|
+
expect(lib.canWrite).toBe(false);
|
|
114
|
+
expect(await lib.listEntries()).toHaveLength(1);
|
|
115
|
+
await expect(lib.putEntry({ id: 'u1' })).rejects.toMatchObject({
|
|
116
|
+
code: 'auth',
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
test('blobId 路由:带源前缀走该源,裸 hash 走可写源', async () => {
|
|
120
|
+
const writable = {
|
|
121
|
+
...fakeSource('idb', [], true),
|
|
122
|
+
putEntry: async () => { },
|
|
123
|
+
deleteEntry: async () => { },
|
|
124
|
+
putBlob: async () => 'h',
|
|
125
|
+
deleteBlob: async () => { },
|
|
126
|
+
getRigAliases: async () => [],
|
|
127
|
+
putRigAlias: async () => { },
|
|
128
|
+
};
|
|
129
|
+
const lib = new Library({
|
|
130
|
+
sources: [fakeSource('catalog', []), writable],
|
|
131
|
+
});
|
|
132
|
+
expect(await lib.getBlobUrl('catalog:models/a.glb')).toBe('catalog://catalog:models/a.glb');
|
|
133
|
+
expect(await lib.getBlobUrl('abc123')).toBe('idb://abc123');
|
|
134
|
+
});
|
|
135
|
+
test('无 IndexedDB + 只给静态目录:降级只读可用,不白屏', async () => {
|
|
136
|
+
const lib = new Library({
|
|
137
|
+
sources: [fakeSource('catalog', [{ id: 'p1' }])],
|
|
138
|
+
});
|
|
139
|
+
expect(lib.canWrite).toBe(false);
|
|
140
|
+
expect(await lib.listEntries()).toHaveLength(1); // 目录照常
|
|
141
|
+
});
|
|
142
|
+
test('renameEntry 只读源守卫:内置条目不写影子副本,上告 conflict', async () => {
|
|
143
|
+
const errors = [];
|
|
144
|
+
const stored = new Map();
|
|
145
|
+
const putEntry = jest.fn(async (e) => void stored.set(e.id, e));
|
|
146
|
+
const writable = {
|
|
147
|
+
id: 'idb',
|
|
148
|
+
capabilities: { writable: true },
|
|
149
|
+
listEntries: async () => [...stored.values()],
|
|
150
|
+
getEntry: async (id) => stored.get(id),
|
|
151
|
+
getBlobUrl: async (b) => `idb://${b}`,
|
|
152
|
+
putEntry,
|
|
153
|
+
deleteEntry: async (id) => void stored.delete(id),
|
|
154
|
+
putBlob: async () => 'h',
|
|
155
|
+
deleteBlob: async () => { },
|
|
156
|
+
getRigAliases: async () => [],
|
|
157
|
+
putRigAlias: async () => { },
|
|
158
|
+
};
|
|
159
|
+
const lib = new Library({
|
|
160
|
+
sources: [
|
|
161
|
+
fakeSource('catalog', [{ id: 'seed-pose-a', name: '内置姿势' }]),
|
|
162
|
+
writable,
|
|
163
|
+
],
|
|
164
|
+
onError: (e) => errors.push(e),
|
|
165
|
+
});
|
|
166
|
+
await lib.listEntries(); // 建 id→源映射(守卫的依据)
|
|
167
|
+
await lib.renameEntry('seed-pose-a', '改名');
|
|
168
|
+
expect(putEntry).not.toHaveBeenCalled(); // 可写源无影子副本
|
|
169
|
+
expect(errors.some((e) => e.code === 'conflict')).toBe(true);
|
|
170
|
+
expect(await writable.getEntry('seed-pose-a')).toBeUndefined();
|
|
171
|
+
// 可写源自己的条目照常可改(守卫不误伤)
|
|
172
|
+
errors.length = 0;
|
|
173
|
+
await lib.putEntry({ id: 'u1', name: '用户条目' });
|
|
174
|
+
await lib.renameEntry('u1', '改名后');
|
|
175
|
+
expect(errors).toEqual([]);
|
|
176
|
+
expect((await writable.getEntry('u1'))?.name).toBe('改名后');
|
|
177
|
+
});
|
|
178
|
+
test('renameEntry 只读源守卫(冷会话):未 listEntries 探源命中回填映射,守卫不绕过', async () => {
|
|
179
|
+
// T9 顺带(T8 评审遗留):entrySourceMap 只在 listEntries 时重建;
|
|
180
|
+
// 冷会话里 getEntry 探源命中若不回填,getEntrySource 拿不到所属源,
|
|
181
|
+
// 内置条目会被写进可写源成影子副本
|
|
182
|
+
const errors = [];
|
|
183
|
+
const stored = new Map();
|
|
184
|
+
const putEntry = jest.fn(async (e) => void stored.set(e.id, e));
|
|
185
|
+
const writable = {
|
|
186
|
+
id: 'idb',
|
|
187
|
+
capabilities: { writable: true },
|
|
188
|
+
listEntries: async () => [...stored.values()],
|
|
189
|
+
getEntry: async (id) => stored.get(id),
|
|
190
|
+
getBlobUrl: async (b) => `idb://${b}`,
|
|
191
|
+
putEntry,
|
|
192
|
+
deleteEntry: async (id) => void stored.delete(id),
|
|
193
|
+
putBlob: async () => 'h',
|
|
194
|
+
deleteBlob: async () => { },
|
|
195
|
+
getRigAliases: async () => [],
|
|
196
|
+
putRigAlias: async () => { },
|
|
197
|
+
};
|
|
198
|
+
const lib = new Library({
|
|
199
|
+
sources: [
|
|
200
|
+
fakeSource('catalog', [{ id: 'seed-pose-a', name: '内置姿势' }]),
|
|
201
|
+
writable,
|
|
202
|
+
],
|
|
203
|
+
onError: (e) => errors.push(e),
|
|
204
|
+
});
|
|
205
|
+
// 关键:不 listEntries——冷映射会话直接 rename 内置条目
|
|
206
|
+
await lib.renameEntry('seed-pose-a', '改名');
|
|
207
|
+
expect(putEntry).not.toHaveBeenCalled(); // 不写影子副本
|
|
208
|
+
expect(errors.some((e) => e.code === 'conflict')).toBe(true);
|
|
209
|
+
expect(await writable.getEntry('seed-pose-a')).toBeUndefined();
|
|
210
|
+
// 冷命中已回填映射:来源可查,且再次 rename 守卫依旧拦
|
|
211
|
+
expect(lib.getEntrySource('seed-pose-a')?.id).toBe('catalog');
|
|
212
|
+
errors.length = 0;
|
|
213
|
+
await lib.renameEntry('seed-pose-a', '再改');
|
|
214
|
+
expect(putEntry).not.toHaveBeenCalled();
|
|
215
|
+
expect(errors.some((e) => e.code === 'conflict')).toBe(true);
|
|
216
|
+
});
|
|
217
|
+
test('模型按 contentHash 去重:可写源副本优先,两个 id 都能 getEntry', async () => {
|
|
218
|
+
// 场景:旧浏览器 IDB 里已播种 Y Bot(随机管线 id),目录源又提供
|
|
219
|
+
// 同一模型(seed-model-<contentHash>)。列表只出一个且是可写源的 id
|
|
220
|
+
// (用户的条目,场景引用不断);目录条目不删数据,getEntry 两个 id
|
|
221
|
+
// 都仍解析。姿势/动画不按 contentHash 去重,维持 id 规则。
|
|
222
|
+
const sameHash = 'hash-ybot';
|
|
223
|
+
const userCopy = model('user-ybot-random-id', 'Y Bot');
|
|
224
|
+
userCopy.contentHash = sameHash;
|
|
225
|
+
const catalogCopy = model('seed-model-' + sameHash, 'Y Bot');
|
|
226
|
+
catalogCopy.contentHash = sameHash;
|
|
227
|
+
// 可写源注册在后,证明优先级不看注册顺序而看 writable 身份
|
|
228
|
+
const lib = new Library({
|
|
229
|
+
sources: [
|
|
230
|
+
fakeSource('catalog', [catalogCopy]),
|
|
231
|
+
{
|
|
232
|
+
...fakeSource('idb', [userCopy], true),
|
|
233
|
+
putEntry: async () => { },
|
|
234
|
+
deleteEntry: async () => { },
|
|
235
|
+
putBlob: async () => 'h',
|
|
236
|
+
deleteBlob: async () => { },
|
|
237
|
+
getRigAliases: async () => [],
|
|
238
|
+
putRigAlias: async () => { },
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
});
|
|
242
|
+
const listed = await lib.listEntries('model');
|
|
243
|
+
expect(listed.map((e) => e.id)).toEqual(['user-ybot-random-id']);
|
|
244
|
+
// 不删数据:两个 id 都仍解析
|
|
245
|
+
expect((await lib.getEntry('user-ybot-random-id'))?.name).toBe('Y Bot');
|
|
246
|
+
expect((await lib.getEntry('seed-model-' + sameHash))?.name).toBe('Y Bot');
|
|
247
|
+
});
|
|
248
|
+
test('模型 contentHash 去重不殃及:不同 hash 并存;无 contentHash 不去重;姿势同 hash 不去重', async () => {
|
|
249
|
+
const a = model('m-a');
|
|
250
|
+
a.contentHash = 'h1';
|
|
251
|
+
const b = model('m-b');
|
|
252
|
+
b.contentHash = 'h2'; // 不同 hash → 并存
|
|
253
|
+
// 两个无 contentHash 的模型条目:哈希去重以 contentHash 为键,缺
|
|
254
|
+
// undefined 守卫会在 'undefined' 键上相撞、第二个被静默丢弃——护栏
|
|
255
|
+
// 须名副其实:两者都该照常列出。
|
|
256
|
+
const noHash1 = model('m-nohash-1');
|
|
257
|
+
delete noHash1.contentHash;
|
|
258
|
+
const noHash2 = model('m-nohash-2');
|
|
259
|
+
delete noHash2.contentHash;
|
|
260
|
+
const pose = {
|
|
261
|
+
id: 'seed-pose-x',
|
|
262
|
+
kind: 'pose',
|
|
263
|
+
name: 'p',
|
|
264
|
+
rig: 'rig-x',
|
|
265
|
+
bones: {},
|
|
266
|
+
createdAt: 1,
|
|
267
|
+
};
|
|
268
|
+
const lib = new Library({
|
|
269
|
+
sources: [fakeSource('catalog', [a, b, noHash1, noHash2, pose])],
|
|
270
|
+
});
|
|
271
|
+
const ids = (await lib.listEntries()).map((e) => e.id).sort();
|
|
272
|
+
expect(ids).toEqual([
|
|
273
|
+
'm-a',
|
|
274
|
+
'm-b',
|
|
275
|
+
'm-nohash-1',
|
|
276
|
+
'm-nohash-2',
|
|
277
|
+
'seed-pose-x',
|
|
278
|
+
]);
|
|
279
|
+
});
|
|
280
|
+
test('数据源 id 撞名(含撞内置保留名):上告 conflict 一次,先注册者胜不换源', async () => {
|
|
281
|
+
// 终审 M-5:宿主源起名 'catalog'/'idb' 与内置源相撞——上告 conflict,
|
|
282
|
+
// 行为维持先注册者胜(blobId 前缀路由 find 首个匹配),不抛、不换源
|
|
283
|
+
const mkSource = (name) => ({
|
|
284
|
+
id: 'catalog', // 撞内置保留名
|
|
285
|
+
capabilities: { writable: false },
|
|
286
|
+
listEntries: async () => [{ id: `${name}-m`, name }],
|
|
287
|
+
getEntry: async (id) => id === `${name}-m` ? { id: `${name}-m`, name } : undefined,
|
|
288
|
+
getBlobUrl: async (b) => `${name}://${b}`,
|
|
289
|
+
});
|
|
290
|
+
const builtin = mkSource('builtin');
|
|
291
|
+
const host = mkSource('host');
|
|
292
|
+
const errors = [];
|
|
293
|
+
const lib = new Library({
|
|
294
|
+
sources: [builtin, host],
|
|
295
|
+
onError: (e) => errors.push(e),
|
|
296
|
+
});
|
|
297
|
+
expect(errors.filter((e) => e.code === 'conflict')).toHaveLength(1);
|
|
298
|
+
expect(errors[0].message).toContain('catalog');
|
|
299
|
+
expect(lib.sources).toHaveLength(2); // 不换源
|
|
300
|
+
// 先注册者胜:同前缀 blobId 路由仍走第一个源
|
|
301
|
+
expect(await lib.getBlobUrl('catalog:x')).toBe('builtin://catalog:x');
|
|
302
|
+
// 两源条目照常聚合(条目层 id 不撞就不裁)
|
|
303
|
+
const ids = (await lib.listEntries()).map((e) => e.id).sort();
|
|
304
|
+
expect(ids).toEqual(['builtin-m', 'host-m']);
|
|
305
|
+
});
|
|
306
|
+
test('getEntry 映射源已删该 id:落回探源循环解析目录条目(升级首启清理竞态)', async () => {
|
|
307
|
+
// 终审 I-2:冷会话 getEntry 探源先命中可写源并回填映射(同 id 目录
|
|
308
|
+
// 条目注册在后);随后启动清理把可写源里该 id 删了,映射重建前的
|
|
309
|
+
// 毫秒窗口内再来 getEntry——修复前直接返回 undefined,姿势预取
|
|
310
|
+
// (模块级缓存、不重试)整会话解析失败
|
|
311
|
+
const stored = new Map([
|
|
312
|
+
['seed-pose-x', { id: 'seed-pose-x', name: '旧播种副本' }],
|
|
313
|
+
]);
|
|
314
|
+
// 闸门挡住构造器 refreshSnapshot 的 listEntries:确定性冷映射会话
|
|
315
|
+
// (否则快照先重建映射,把 seed-pose-x 指向目录,窗口就合不上了)
|
|
316
|
+
let releaseList;
|
|
317
|
+
const listGate = new Promise((r) => (releaseList = r));
|
|
318
|
+
const gatedList = (entries) => async () => {
|
|
319
|
+
await listGate;
|
|
320
|
+
return entries;
|
|
321
|
+
};
|
|
322
|
+
const writable = {
|
|
323
|
+
id: 'idb',
|
|
324
|
+
capabilities: { writable: true },
|
|
325
|
+
listEntries: gatedList([...stored.values()]),
|
|
326
|
+
getEntry: async (id) => stored.get(id),
|
|
327
|
+
getBlobUrl: async (b) => `idb://${b}`,
|
|
328
|
+
putEntry: async (e) => void stored.set(e.id, e),
|
|
329
|
+
deleteEntry: async (id) => void stored.delete(id),
|
|
330
|
+
putBlob: async () => 'h',
|
|
331
|
+
deleteBlob: async () => { },
|
|
332
|
+
getRigAliases: async () => [],
|
|
333
|
+
putRigAlias: async () => { },
|
|
334
|
+
};
|
|
335
|
+
const catalogEntries = [{ id: 'seed-pose-x', name: '目录条目' }];
|
|
336
|
+
const lib = new Library({
|
|
337
|
+
sources: [
|
|
338
|
+
writable,
|
|
339
|
+
{
|
|
340
|
+
id: 'catalog',
|
|
341
|
+
capabilities: { writable: false },
|
|
342
|
+
listEntries: gatedList(catalogEntries),
|
|
343
|
+
getEntry: async (id) => catalogEntries.find((e) => e.id === id),
|
|
344
|
+
getBlobUrl: async (b) => `catalog://${b}`,
|
|
345
|
+
},
|
|
346
|
+
],
|
|
347
|
+
});
|
|
348
|
+
// 冷映射:探源先命中可写源(注册序在先)并回填映射
|
|
349
|
+
expect((await lib.getEntry('seed-pose-x'))?.name).toBe('旧播种副本');
|
|
350
|
+
expect(lib.getEntrySource('seed-pose-x')?.id).toBe('idb');
|
|
351
|
+
// 升级首启清理删掉可写源副本(直调源自身,不发变更事件;映射仍指
|
|
352
|
+
// idb、下次 listEntries 重建前的窗口)
|
|
353
|
+
await writable.deleteEntry('seed-pose-x');
|
|
354
|
+
const resolved = await lib.getEntry('seed-pose-x');
|
|
355
|
+
expect(resolved?.name).toBe('目录条目'); // 落回探源,不卡 undefined
|
|
356
|
+
expect(lib.getEntrySource('seed-pose-x')?.id).toBe('catalog'); // 映射照旧回填
|
|
357
|
+
releaseList();
|
|
358
|
+
});
|
|
359
|
+
});
|
|
360
|
+
describe('骨架族别名并集读(终审 M-4)', () => {
|
|
361
|
+
// 内置默认别名的事实源 = seedAssetsManifest(与 ensureBuiltinRigAlias
|
|
362
|
+
// 共用 BUILTIN_RIG_ALIASES);测试取清单首个模型的 rig
|
|
363
|
+
const manifestRig = seedAssetsManifest.models[0].rig;
|
|
364
|
+
const readOnlySource = (entries = []) => ({
|
|
365
|
+
id: 'catalog',
|
|
366
|
+
capabilities: { writable: false },
|
|
367
|
+
listEntries: async () => entries,
|
|
368
|
+
getEntry: async (id) => entries.find((e) => e.id === id),
|
|
369
|
+
getBlobUrl: async (b) => `catalog://${b}`,
|
|
370
|
+
});
|
|
371
|
+
test('纯查看器(无可写源)也返回内置 Mixamo 族名', async () => {
|
|
372
|
+
const lib = new Library({
|
|
373
|
+
sources: [readOnlySource([{ id: 'p1' }])],
|
|
374
|
+
});
|
|
375
|
+
const aliases = await lib.getRigAliases();
|
|
376
|
+
expect(aliases).toEqual([{ rig: manifestRig, name: 'Mixamo' }]);
|
|
377
|
+
});
|
|
378
|
+
test('可写源覆盖同名族时优先;可写源新增别名并存', async () => {
|
|
379
|
+
const writable = {
|
|
380
|
+
id: 'idb',
|
|
381
|
+
capabilities: { writable: true },
|
|
382
|
+
listEntries: async () => [],
|
|
383
|
+
getEntry: async () => undefined,
|
|
384
|
+
getBlobUrl: async (b) => `idb://${b}`,
|
|
385
|
+
putEntry: async () => { },
|
|
386
|
+
deleteEntry: async () => { },
|
|
387
|
+
putBlob: async () => 'h',
|
|
388
|
+
deleteBlob: async () => { },
|
|
389
|
+
getRigAliases: async () => [
|
|
390
|
+
{ rig: manifestRig, name: '自定义族名' },
|
|
391
|
+
{ rig: 'rig-other', name: '其它' },
|
|
392
|
+
],
|
|
393
|
+
putRigAlias: async () => { },
|
|
394
|
+
};
|
|
395
|
+
const lib = new Library({ sources: [writable] });
|
|
396
|
+
const aliases = await lib.getRigAliases();
|
|
397
|
+
expect(aliases.find((a) => a.rig === manifestRig)?.name).toBe('自定义族名');
|
|
398
|
+
expect(aliases.find((a) => a.rig === 'rig-other')?.name).toBe('其它');
|
|
399
|
+
expect(aliases.filter((a) => a.rig === manifestRig)).toHaveLength(1);
|
|
400
|
+
});
|
|
401
|
+
});
|
|
402
|
+
describe('blob 生命周期', () => {
|
|
403
|
+
test('deleteEntryDeep: 缩略图被两个模型共享时,删一个不删 blob', async () => {
|
|
404
|
+
const lib = new Library({ sources: [new IndexedDBBackend()] });
|
|
405
|
+
const thumbId = await lib.putBlob(new Blob(['thumb']));
|
|
406
|
+
const model = (id) => ({
|
|
407
|
+
id,
|
|
408
|
+
kind: 'model',
|
|
409
|
+
name: id,
|
|
410
|
+
rig: 'static',
|
|
411
|
+
blobId: 'b-' + id,
|
|
412
|
+
contentHash: 'h-' + id,
|
|
413
|
+
thumbnailId: thumbId,
|
|
414
|
+
boneCount: 0,
|
|
415
|
+
vertexCount: 1,
|
|
416
|
+
createdAt: 1,
|
|
417
|
+
});
|
|
418
|
+
await lib.putEntry(model('m1'));
|
|
419
|
+
await lib.putEntry(model('m2'));
|
|
420
|
+
await lib.deleteEntryDeep('m1');
|
|
421
|
+
// 共享缩略图仍在;m1 自己的模型 blob 不在本次放入(不影响断言)
|
|
422
|
+
expect(await lib.listBlobIds()).toContain(thumbId);
|
|
423
|
+
});
|
|
424
|
+
test('deleteEntryDeep: 独占 blob 随条目删除', async () => {
|
|
425
|
+
const lib = new Library({ sources: [new IndexedDBBackend()] });
|
|
426
|
+
const blobId = await lib.putBlob(new Blob(['glb']));
|
|
427
|
+
await lib.putEntry({
|
|
428
|
+
id: 'm1',
|
|
429
|
+
kind: 'model',
|
|
430
|
+
name: 'm1',
|
|
431
|
+
rig: 'static',
|
|
432
|
+
blobId,
|
|
433
|
+
contentHash: 'h',
|
|
434
|
+
boneCount: 0,
|
|
435
|
+
vertexCount: 1,
|
|
436
|
+
createdAt: 1,
|
|
437
|
+
});
|
|
438
|
+
await lib.deleteEntryDeep('m1');
|
|
439
|
+
expect(await lib.listBlobIds()).not.toContain(blobId);
|
|
440
|
+
});
|
|
441
|
+
test('sweepOrphanBlobs: 清掉无引用 blob,保留有引用的', async () => {
|
|
442
|
+
const lib = new Library({ sources: [new IndexedDBBackend()] });
|
|
443
|
+
const used = await lib.putBlob(new Blob(['used']));
|
|
444
|
+
const orphan = await lib.putBlob(new Blob(['orphan']));
|
|
445
|
+
await lib.putEntry({
|
|
446
|
+
id: 'a1',
|
|
447
|
+
kind: 'animation',
|
|
448
|
+
name: 'a1',
|
|
449
|
+
rig: 'r',
|
|
450
|
+
blobId: used,
|
|
451
|
+
contentHash: 'h',
|
|
452
|
+
duration: 1,
|
|
453
|
+
createdAt: 1,
|
|
454
|
+
});
|
|
455
|
+
expect(await lib.sweepOrphanBlobs()).toBe(1);
|
|
456
|
+
const ids = await lib.listBlobIds();
|
|
457
|
+
expect(ids).toContain(used);
|
|
458
|
+
expect(ids).not.toContain(orphan);
|
|
459
|
+
});
|
|
460
|
+
test('并发导入与孤儿清理: blob 与条目都保留', async () => {
|
|
461
|
+
const lib = new Library({ sources: [new IndexedDBBackend()] });
|
|
462
|
+
const data = new Blob(['concurrent-sweep-import']);
|
|
463
|
+
let importedBlobId = '';
|
|
464
|
+
await Promise.all([
|
|
465
|
+
lib.sweepOrphanBlobs(),
|
|
466
|
+
lib.putBlobWithEntry(data, (blobId) => {
|
|
467
|
+
importedBlobId = blobId;
|
|
468
|
+
return {
|
|
469
|
+
id: 'a-concurrent-sweep',
|
|
470
|
+
kind: 'animation',
|
|
471
|
+
name: 'a-concurrent-sweep',
|
|
472
|
+
rig: 'r',
|
|
473
|
+
blobId,
|
|
474
|
+
contentHash: 'h-concurrent-sweep',
|
|
475
|
+
duration: 1,
|
|
476
|
+
createdAt: 1,
|
|
477
|
+
};
|
|
478
|
+
}),
|
|
479
|
+
]);
|
|
480
|
+
expect(await lib.listBlobIds()).toContain(importedBlobId);
|
|
481
|
+
const entry = await lib.getEntry('a-concurrent-sweep');
|
|
482
|
+
expect(entry).toBeTruthy();
|
|
483
|
+
expect(entry?.kind).toBe('animation');
|
|
484
|
+
});
|
|
485
|
+
test('并发删除与同哈希导入: 新条目与新 blob 都保留', async () => {
|
|
486
|
+
const lib = new Library({ sources: [new IndexedDBBackend()] });
|
|
487
|
+
const data = new Blob(['shared-hash']);
|
|
488
|
+
let blobId = '';
|
|
489
|
+
await lib.putBlobWithEntry(data, (id) => {
|
|
490
|
+
blobId = id;
|
|
491
|
+
return {
|
|
492
|
+
id: 'm-delete-original',
|
|
493
|
+
kind: 'model',
|
|
494
|
+
name: 'm-delete-original',
|
|
495
|
+
rig: 'static',
|
|
496
|
+
blobId: id,
|
|
497
|
+
contentHash: 'h-shared-hash',
|
|
498
|
+
boneCount: 0,
|
|
499
|
+
vertexCount: 1,
|
|
500
|
+
createdAt: 1,
|
|
501
|
+
};
|
|
502
|
+
});
|
|
503
|
+
await Promise.all([
|
|
504
|
+
lib.deleteEntryDeep('m-delete-original'),
|
|
505
|
+
lib.putBlobWithEntry(data, (id) => ({
|
|
506
|
+
id: 'm-delete-reimport',
|
|
507
|
+
kind: 'model',
|
|
508
|
+
name: 'm-delete-reimport',
|
|
509
|
+
rig: 'static',
|
|
510
|
+
blobId: id,
|
|
511
|
+
contentHash: 'h-shared-hash',
|
|
512
|
+
boneCount: 0,
|
|
513
|
+
vertexCount: 1,
|
|
514
|
+
createdAt: 1,
|
|
515
|
+
})),
|
|
516
|
+
]);
|
|
517
|
+
expect(await lib.listBlobIds()).toContain(blobId);
|
|
518
|
+
expect(await lib.getEntry('m-delete-reimport')).toBeTruthy();
|
|
519
|
+
});
|
|
520
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { LibraryEntry } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* 动作/姿势下拉选项:值是库条目 id(与放置模型属性里存的值一致),
|
|
4
|
+
* 标签是条目名,另带一个空值选项表示"不挂"。
|
|
5
|
+
* 模型条目 id 能解析出骨架族时只列同族条目(别的族的动作/姿势挂不上);
|
|
6
|
+
* 解析不了(本地 FBX 来源、快照尚未就绪)时不设限,列出全部。
|
|
7
|
+
*/
|
|
8
|
+
export declare function entryOptions(entries: readonly LibraryEntry[], kind: 'animation' | 'pose', modelEntryId: string | undefined): Record<string, string>;
|
|
9
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/assetLibrary/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,SAAS,CAAA;AAEzC;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,SAAS,YAAY,EAAE,EAChC,IAAI,EAAE,WAAW,GAAG,MAAM,EAC1B,YAAY,EAAE,MAAM,GAAG,SAAS,GAC/B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAWxB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 动作/姿势下拉选项:值是库条目 id(与放置模型属性里存的值一致),
|
|
3
|
+
* 标签是条目名,另带一个空值选项表示"不挂"。
|
|
4
|
+
* 模型条目 id 能解析出骨架族时只列同族条目(别的族的动作/姿势挂不上);
|
|
5
|
+
* 解析不了(本地 FBX 来源、快照尚未就绪)时不设限,列出全部。
|
|
6
|
+
*/
|
|
7
|
+
export function entryOptions(entries, kind, modelEntryId) {
|
|
8
|
+
const rig = modelEntryId
|
|
9
|
+
? entries.find((e) => e.id === modelEntryId && e.kind === 'model')?.rig
|
|
10
|
+
: undefined;
|
|
11
|
+
const options = { '': '(无)' };
|
|
12
|
+
for (const e of entries) {
|
|
13
|
+
if (e.kind !== kind)
|
|
14
|
+
continue;
|
|
15
|
+
if (rig && e.rig !== rig)
|
|
16
|
+
continue;
|
|
17
|
+
options[e.id] = e.name;
|
|
18
|
+
}
|
|
19
|
+
return options;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.test.d.ts","sourceRoot":"","sources":["../../src/assetLibrary/options.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { entryOptions } from './options';
|
|
2
|
+
const model = (id, rig) => ({
|
|
3
|
+
id,
|
|
4
|
+
kind: 'model',
|
|
5
|
+
name: '模型' + id,
|
|
6
|
+
rig,
|
|
7
|
+
blobId: 'b-' + id,
|
|
8
|
+
contentHash: 'h-' + id,
|
|
9
|
+
boneCount: 1,
|
|
10
|
+
vertexCount: 1,
|
|
11
|
+
createdAt: 1,
|
|
12
|
+
});
|
|
13
|
+
const animation = (id, rig) => ({
|
|
14
|
+
id,
|
|
15
|
+
kind: 'animation',
|
|
16
|
+
name: '动作' + id,
|
|
17
|
+
rig,
|
|
18
|
+
blobId: 'b-' + id,
|
|
19
|
+
contentHash: 'h-' + id,
|
|
20
|
+
duration: 1,
|
|
21
|
+
createdAt: 1,
|
|
22
|
+
});
|
|
23
|
+
const pose = (id, rig) => ({
|
|
24
|
+
id,
|
|
25
|
+
kind: 'pose',
|
|
26
|
+
name: '姿势' + id,
|
|
27
|
+
rig,
|
|
28
|
+
bones: {},
|
|
29
|
+
createdAt: 1,
|
|
30
|
+
});
|
|
31
|
+
describe('entryOptions', () => {
|
|
32
|
+
const entries = [
|
|
33
|
+
model('m1', 'rig-a'),
|
|
34
|
+
model('m2', 'rig-b'),
|
|
35
|
+
animation('a1', 'rig-a'),
|
|
36
|
+
animation('a2', 'rig-b'),
|
|
37
|
+
pose('p1', 'rig-a'),
|
|
38
|
+
pose('p2', 'rig-b'),
|
|
39
|
+
];
|
|
40
|
+
it('模型条目可解析时只列同族动作,并带空值选项', () => {
|
|
41
|
+
expect(entryOptions(entries, 'animation', 'm1')).toEqual({
|
|
42
|
+
'': '(无)',
|
|
43
|
+
a1: '动作a1',
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
it('姿势与动作互不混入', () => {
|
|
47
|
+
expect(entryOptions(entries, 'pose', 'm2')).toEqual({
|
|
48
|
+
'': '(无)',
|
|
49
|
+
p2: '姿势p2',
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
it('模型条目 id 解析不了(本地来源/快照未就绪)时不设限', () => {
|
|
53
|
+
expect(entryOptions(entries, 'animation', undefined)).toEqual({
|
|
54
|
+
'': '(无)',
|
|
55
|
+
a1: '动作a1',
|
|
56
|
+
a2: '动作a2',
|
|
57
|
+
});
|
|
58
|
+
// id 给了但快照里还没有(快照差一拍)同样列全部,不给用户一个空下拉
|
|
59
|
+
expect(entryOptions(entries, 'animation', 'm-ghost')).toEqual({
|
|
60
|
+
'': '(无)',
|
|
61
|
+
a1: '动作a1',
|
|
62
|
+
a2: '动作a2',
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
it('库里没有该种类时只剩空值选项', () => {
|
|
66
|
+
expect(entryOptions([model('m1', 'rig-a')], 'animation', 'm1')).toEqual({
|
|
67
|
+
'': '(无)',
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Object3D } from 'three';
|
|
2
|
+
import type { PoseEntry } from './types';
|
|
3
|
+
/** 抓取骨骼树当前状态为姿势数据:按骨骼名记录四元数与位置 */
|
|
4
|
+
export declare function capturePose(root: Object3D): PoseEntry['bones'];
|
|
5
|
+
/** 语义别名:实例刚克隆出来时的 capture 即绑定姿势,用于"无姿势"时还原 */
|
|
6
|
+
export declare const captureBindPose: typeof capturePose;
|
|
7
|
+
/**
|
|
8
|
+
* 把姿势数据按骨骼名写回骨骼树。实例里没有的骨骼名跳过并计入
|
|
9
|
+
* missed(跨族套用由调用方先过滤,这里只兜底)。
|
|
10
|
+
*/
|
|
11
|
+
export declare function applyPose(root: Object3D, bones: PoseEntry['bones']): {
|
|
12
|
+
applied: number;
|
|
13
|
+
missed: string[];
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=pose.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pose.d.ts","sourceRoot":"","sources":["../../src/assetLibrary/pose.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAA;AACnC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,SAAS,CAAA;AAEtC,kCAAkC;AAClC,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC,OAAO,CAAC,CAW9D;AAED,8CAA8C;AAC9C,eAAO,MAAM,eAAe,oBAAc,CAAA;AAE1C;;;GAGG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,GACxB;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAC,CAkBrC"}
|