@volter/game-editor 0.5.112 → 0.5.114

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.
Files changed (299) hide show
  1. package/BUNDLED_NOTICES +22 -22
  2. package/catalog/entries/blender.json +2 -2
  3. package/catalog/entries/music.json +2 -2
  4. package/dist/.vite/manifest.json +2148 -2148
  5. package/dist/assets/{AssetBudgetPanel-CS7ZI_fl.js → AssetBudgetPanel-C2cPjuBg.js} +3 -3
  6. package/dist/assets/{AudioViewer-CY9_Kan-.js → AudioViewer-Bpo_jpIi.js} +1 -1
  7. package/dist/assets/{CanvasBoardDocument-BjZoTK6D.js → CanvasBoardDocument-DwBIeMZ4.js} +1 -1
  8. package/dist/assets/{CanvasSceneViewport-DeR3_1AA.js → CanvasSceneViewport-BNdmWk-Z.js} +1 -1
  9. package/dist/assets/{ColorInput-cUgzv-Yb.js → ColorInput-BDfmeGV7.js} +1 -1
  10. package/dist/assets/{ColorPicker-t_gPuWp3.js → ColorPicker-CirredSr.js} +1 -1
  11. package/dist/assets/{EntityModelDocument-DD20VRB1.js → EntityModelDocument-CVSuhql6.js} +1 -1
  12. package/dist/assets/{EnvironmentAssetDocument-DPP31WlD.js → EnvironmentAssetDocument-zoSJqmVn.js} +1 -1
  13. package/dist/assets/{GameplaySessionTimeline-B7GUZ-hT.js → GameplaySessionTimeline-CXuEu0EC.js} +1 -1
  14. package/dist/assets/{ImageViewer-DoGiU35U.js → ImageViewer-BlwxCH_J.js} +1 -1
  15. package/dist/assets/InspectorObjectPreview-BIP7icp4.js +1 -0
  16. package/dist/assets/{JsonAssetDocument-D60ZsaMt.js → JsonAssetDocument-Bca1OEvU.js} +1 -1
  17. package/dist/assets/{LiveModuleDocument-DgATfffN.js → LiveModuleDocument-BKw3vGr0.js} +1 -1
  18. package/dist/assets/{LutAssetDocument-TqkOwza4.js → LutAssetDocument-Cg-37y7Y.js} +1 -1
  19. package/dist/assets/{ModelAssetDocument-CQYaSgxx.js → ModelAssetDocument-DMj74VoY.js} +1 -1
  20. package/dist/assets/{NonThreeAuthoringBootstrap-C_-L79eQ.js → NonThreeAuthoringBootstrap-CTZ5QGOi.js} +1 -1
  21. package/dist/assets/{Object3DDocumentToolbar-qIMDecnO.js → Object3DDocumentToolbar-YqAXNX73.js} +1 -1
  22. package/dist/assets/Object3DDocumentViewport-BAFF8tXA.js +2 -0
  23. package/dist/assets/{Object3DPreview-CZgMSJQY.js → Object3DPreview-DhldNd5m.js} +1 -1
  24. package/dist/assets/{OnlineAssetDetail-ZHJxugJF.js → OnlineAssetDetail-ClT4eFxW.js} +1 -1
  25. package/dist/assets/{PlayBar-DHlWPuDt.js → PlayBar-Siahnvsw.js} +1 -1
  26. package/dist/assets/{QuarksAssetDocument-DYhJk658.js → QuarksAssetDocument-BCJCpXzv.js} +1 -1
  27. package/dist/assets/{ReactCanvasControls-Ce-agzJD.js → ReactCanvasControls-C2Dg7PAS.js} +1 -1
  28. package/dist/assets/{RootSelectionOverlay-D3xZf8h-.js → RootSelectionOverlay-B76QTxXQ.js} +1 -1
  29. package/dist/assets/{ShaderAssetDocument-DEs2FP13.js → ShaderAssetDocument-BC_bMDIb.js} +1 -1
  30. package/dist/assets/{ShadowEditor-DlOYuGTo.js → ShadowEditor-BmMIsUKh.js} +1 -1
  31. package/dist/assets/{SourceAssetViewer-Du1oHWvc.js → SourceAssetViewer-Cq0O9fPd.js} +1 -1
  32. package/dist/assets/{StageHost-CUd0YsCX.js → StageHost-DL-rn1xw.js} +2 -2
  33. package/dist/assets/{StoryPreviewMount-DP-ZfmY0.js → StoryPreviewMount-Bb6bAFFD.js} +1 -1
  34. package/dist/assets/{ThreeBoardDocument-9PCg7zJ6.js → ThreeBoardDocument-DVKtb195.js} +2 -2
  35. package/dist/assets/{ThreeIsolationSceneContent-B-SvHGhu.js → ThreeIsolationSceneContent-Cgn5gNZK.js} +1 -1
  36. package/dist/assets/{ToolObject3DPreview-C34aT5oQ.js → ToolObject3DPreview-CC6zmX0_.js} +1 -1
  37. package/dist/assets/{Toolbar-BpZsr2pY.js → Toolbar-CtuKETND.js} +1 -1
  38. package/dist/assets/{TransientHint-CUErZ8FD.js → TransientHint-BznxmBhK.js} +1 -1
  39. package/dist/assets/{VideoViewer-DzzNCYKb.js → VideoViewer-Bf8CFBye.js} +1 -1
  40. package/dist/assets/{ViewportShadingMenu-X3qf9Hi-.js → ViewportShadingMenu-CHI1Ybps.js} +1 -1
  41. package/dist/assets/{active-ingest-DF5-9w3C.js → active-ingest-CdkBLhUn.js} +2 -2
  42. package/dist/assets/{animation-clock-BKPEWto9.js → animation-clock-iXNr3pAB.js} +1 -1
  43. package/dist/assets/{animation-mixers.service-CVTFDk6U.js → animation-mixers.service-44VFyY6S.js} +1 -1
  44. package/dist/assets/{animation-timeline.utility-YBGv194P.js → animation-timeline.utility-Dc7J3kL7.js} +1 -1
  45. package/dist/assets/{asset-budget-asset.menu-CczhHlQi.js → asset-budget-asset.menu-2A17aYDp.js} +1 -1
  46. package/dist/assets/{asset-budget.action-CSVqpVst.js → asset-budget.action-D5zTxlwK.js} +1 -1
  47. package/dist/assets/{asset-budget.document-IGdh6nQk.js → asset-budget.document-BnfZWG-Z.js} +1 -1
  48. package/dist/assets/{asset-budget.menu-kCjwqAsZ.js → asset-budget.menu-B80Zj_Gc.js} +1 -1
  49. package/dist/assets/{asset-editor-persistence-Ci4EpN5C.js → asset-editor-persistence-CDltpHCs.js} +1 -1
  50. package/dist/assets/{asset-loaders-C6ObO9GN.js → asset-loaders-CNaS8TZG.js} +1 -1
  51. package/dist/assets/{asset-preview-OCdcmead.js → asset-preview-DJuOkxhj.js} +1 -1
  52. package/dist/assets/{audio-unlock.service-BuHPJHzd.js → audio-unlock.service-BrBhpJMC.js} +1 -1
  53. package/dist/assets/{audio.utility-BnRaN02j.js → audio.utility-B4-eoTPZ.js} +1 -1
  54. package/dist/assets/autoplay.service-CFvofovm.js +1 -0
  55. package/dist/assets/{babylon-authoring-adapter-2CpWwj18.js → babylon-authoring-adapter-vZdL2Gto.js} +1 -1
  56. package/dist/assets/{binding-resolver-sJUPnlmt.js → binding-resolver-OJ_J6yIE.js} +2 -2
  57. package/dist/assets/blender-emscripten-engine-CRz1C2s0.js +2 -0
  58. package/dist/assets/{blender-node-editor.document-BzxU2yPF.js → blender-node-editor.document-BDczfFxt.js} +1 -1
  59. package/dist/assets/{blender-properties-tab-DqwlnB4h.js → blender-properties-tab-CjgK0Bbk.js} +1 -1
  60. package/dist/assets/{blender-runtime-host-FT4zUerb.js → blender-runtime-host-Dlc9w0Zh.js} +2 -2
  61. package/dist/assets/{blender-runtime-skin-B9EzZYzy.js → blender-runtime-skin-D1UM12LE.js} +1 -1
  62. package/dist/assets/{blender-runtime.document-DGyaIS95.js → blender-runtime.document-CCV5Y9OE.js} +1 -1
  63. package/dist/assets/{blender-screenshot.menu-CFSAUaXM.js → blender-screenshot.menu-C36rWtiC.js} +1 -1
  64. package/dist/assets/{blender-timeline.document-BRwMmxud.js → blender-timeline.document-lk_PIJob.js} +1 -1
  65. package/dist/assets/{blender-uv-editor.document-DC6azebM.js → blender-uv-editor.document-CTmIU4Kh.js} +1 -1
  66. package/dist/assets/{blender-version.status-B_XeE25m.js → blender-version.status-DJlu7qr4.js} +1 -1
  67. package/dist/assets/{blender-wali-engine-BI5dGBuY.js → blender-wali-engine-BmVwcYs-.js} +1 -1
  68. package/dist/assets/{blender.command-B6Xsvgk-.js → blender.command-DzCCQQOZ.js} +1 -1
  69. package/dist/assets/{board-guides-DeE34w2f.js → board-guides-BlBRZmTQ.js} +1 -1
  70. package/dist/assets/{bridge.command-D1fDSd-y.js → bridge.command-ClY9S8Un.js} +3 -3
  71. package/dist/assets/{browserAll-CkIz4Usm.js → browserAll-Mv9lBgrZ.js} +1 -1
  72. package/dist/assets/{build-player.document-mhapyzFw.js → build-player.document-Cy7MEpas.js} +1 -1
  73. package/dist/assets/{build-profiles.document-C9tqgW2N.js → build-profiles.document-WaCFbiLP.js} +1 -1
  74. package/dist/assets/{build-progress.status-B-6wgBYl.js → build-progress.status-DTcmGi_P.js} +1 -1
  75. package/dist/assets/{build-session-zss_dsN6.js → build-session-DbpKkNJV.js} +1 -1
  76. package/dist/assets/{build.action-kn5_JNp6.js → build.action-C2j5_dxu.js} +1 -1
  77. package/dist/assets/{build.command-B-kLNXtL.js → build.command-DioIRVgu.js} +1 -1
  78. package/dist/assets/{build.header-z4kVTqas.js → build.header-BzewhRVE.js} +1 -1
  79. package/dist/assets/{build.menu-CAHSlu8I.js → build.menu-BzXblcjm.js} +1 -1
  80. package/dist/assets/{build.service-D78ycPY6.js → build.service-nY7pgo8P.js} +1 -1
  81. package/dist/assets/{camera-BFXEOyzN.js → camera-C4iahwRu.js} +1 -1
  82. package/dist/assets/{camera-runtime.inspector-vDtwgr9q.js → camera-runtime.inspector-0hl6Lpc7.js} +1 -1
  83. package/dist/assets/{canvas-design-mount-pYTxi6Tf.js → canvas-design-mount-ZR59B_S-.js} +3 -3
  84. package/dist/assets/{canvas-entry-runtime-BQ96Hfic.js → canvas-entry-runtime-DfwjEnac.js} +2 -2
  85. package/dist/assets/{canvas-preview-frames-DbRCTACs.js → canvas-preview-frames-BK9lbVhI.js} +1 -1
  86. package/dist/assets/{canvas-story-capture.service-DcUFRvDV.js → canvas-story-capture.service-BB37SSiy.js} +2 -2
  87. package/dist/assets/{capability-coverage-CIZYoMxx.js → capability-coverage-BbGACSQ7.js} +1 -1
  88. package/dist/assets/{collaboration-presence-DjXNSi22.js → collaboration-presence-Bsr8DNTC.js} +1 -1
  89. package/dist/assets/{collider-9ZEPrzF2.js → collider-CNgw-tJm.js} +1 -1
  90. package/dist/assets/{component-board.service-CaSa-D7M.js → component-board.service-ABJTCD9U.js} +2 -2
  91. package/dist/assets/{component-board.service-B1OgIIgM.js → component-board.service-BkvLOF6E.js} +2 -2
  92. package/dist/assets/{component-board.service-Bro2VYuK.js → component-board.service-DrGTgtOW.js} +2 -2
  93. package/dist/assets/{component-contracts.service-C3HArGNL.js → component-contracts.service-AJNTJQUd.js} +1 -1
  94. package/dist/assets/{component-instance-root-CSxVbFxZ.js → component-instance-root-DSo9btvO.js} +1 -1
  95. package/dist/assets/{component-verbs.command-OLMgi8Wm.js → component-verbs.command-DAZikwtn.js} +1 -1
  96. package/dist/assets/{component-verbs.service-D0v3hXfp.js → component-verbs.service-CbmTNwUC.js} +1 -1
  97. package/dist/assets/{config-DrdlIQsH.js → config-ByW2y5rs.js} +2 -2
  98. package/dist/assets/{configurations-Jl5IODND.js → configurations-LzOt_ui9.js} +1 -1
  99. package/dist/assets/{connection.status-ykEJcQf4.js → connection.status-fh7qO4aP.js} +1 -1
  100. package/dist/assets/{constraints.inspector-DgjEYgnn.js → constraints.inspector-BILU-OeN.js} +1 -1
  101. package/dist/assets/{content-bounds-Bu-Q6apF.js → content-bounds-kt7VKpcn.js} +1 -1
  102. package/dist/assets/{contract-system-adapters-B6eqb9n_.js → contract-system-adapters-Cozx6nCn.js} +1 -1
  103. package/dist/assets/{coverage.service-CxeNaEHo.js → coverage.service-CswPRFnJ.js} +1 -1
  104. package/dist/assets/{create-runtime-CsLlOfpz.js → create-runtime-CNEjmtin.js} +1 -1
  105. package/dist/assets/{curve-BokfkJEd.js → curve-BKb_W-u_.js} +1 -1
  106. package/dist/assets/{data-asset-DFywc4eI.js → data-asset-C39Y1A_d.js} +1 -1
  107. package/dist/assets/{data-ref-C28YL2QH.js → data-ref-tKY-R3JG.js} +1 -1
  108. package/dist/assets/{debug-bridge-Clli9FXl.js → debug-bridge-CLBVU34P.js} +1 -1
  109. package/dist/assets/{debug-registry-qBwZnzAK.js → debug-registry-PtCg-gAQ.js} +1 -1
  110. package/dist/assets/{deferred-ingest-play-5TJ3EX3-.js → deferred-ingest-play-DlgkyiVk.js} +2 -2
  111. package/dist/assets/{design-time-canvas-mount-C-Sgmncv.js → design-time-canvas-mount-DlS15mlk.js} +2 -2
  112. package/dist/assets/{design-time-layers-3WbCfh8m.js → design-time-layers-BSk9iy6A.js} +1 -1
  113. package/dist/assets/{design-time-mount.service-BRSrgijn.js → design-time-mount.service-bV28BtPG.js} +2 -2
  114. package/dist/assets/{design-time-mount.service-Cqnd96xc.js → design-time-mount.service-yeuApmeU.js} +2 -2
  115. package/dist/assets/{design-time-react-mount-tfrs7iak.js → design-time-react-mount-7EgUpZDW.js} +1 -1
  116. package/dist/assets/{document-preview-three-Db6R6gQi.js → document-preview-three-DcVcoC1y.js} +1 -1
  117. package/dist/assets/{dom-authoring-adapter-DZzbuOO3.js → dom-authoring-adapter-Dnjvh9yG.js} +1 -1
  118. package/dist/assets/{draco3d-Czugbe_O.js → draco3d-3EapKinA.js} +1 -1
  119. package/dist/assets/{edit-mode-audio.service-BeqIdnXi.js → edit-mode-audio.service-ffiNgJwH.js} +1 -1
  120. package/dist/assets/{edit-mode-authoring-9JCc-tmi.js → edit-mode-authoring-BEqEkXIT.js} +1 -1
  121. package/dist/assets/{edit-mode-networking.service-Ce7-Dimc.js → edit-mode-networking.service-9uQLb9Fc.js} +1 -1
  122. package/dist/assets/{editor-api-DJHTUJU8.js → editor-api-TexfN2js.js} +1 -1
  123. package/dist/assets/{editor-layers-G1sSDqkZ.js → editor-layers-DB9_uFyw.js} +1 -1
  124. package/dist/assets/{editor-shell-store-COqthmhH.js → editor-shell-store-DAFZw7de.js} +1 -1
  125. package/dist/assets/{entity-object-NNBB_27h.js → entity-object-CG32Sh-D.js} +1 -1
  126. package/dist/assets/{extend-D1vXQ0I3.js → extend-BJCYmdCg.js} +1 -1
  127. package/dist/assets/{fork-menu-Cmvt4hG1.js → fork-menu-B0CAnsQ0.js} +1 -1
  128. package/dist/assets/{frame-debugger-store-BKPuWqqo.js → frame-debugger-store-DRPBji06.js} +1 -1
  129. package/dist/assets/{game-contract-seams-hCeLHp_F.js → game-contract-seams-D3jp9kfH.js} +1 -1
  130. package/dist/assets/{game-css-scope-transform-D5ZBSyAS.js → game-css-scope-transform-CNq9C0a8.js} +1 -1
  131. package/dist/assets/{game-document.service-CtaIz0B3.js → game-document.service-Ikp3u-8X.js} +1 -1
  132. package/dist/assets/{game-eval.command-BwnCBWgL.js → game-eval.command-DR0dtfPa.js} +1 -1
  133. package/dist/assets/{game-module-access-BaoHzqz9.js → game-module-access-DceYIduW.js} +1 -1
  134. package/dist/assets/{game-network-Wrv2_SU7.js → game-network-DOCCFwtp.js} +3 -3
  135. package/dist/assets/{gameplay-export-DJszZP0E.js → gameplay-export-BfVqSEgT.js} +1 -1
  136. package/dist/assets/{gameplay-replay-C2RzNnue.js → gameplay-replay-D9quLJQt.js} +1 -1
  137. package/dist/assets/{gameplay.command-DAYIk5M8.js → gameplay.command-CVuLo_kD.js} +1 -1
  138. package/dist/assets/{generation-jobs-DfQDSsoI.js → generation-jobs-dFYEPPwC.js} +1 -1
  139. package/dist/assets/{generation.service-D5QfoQ-i.js → generation.service-DtP2HZFd.js} +1 -1
  140. package/dist/assets/{generations-DEibFD1b.js → generations-BqaARHQz.js} +1 -1
  141. package/dist/assets/{generations.status-BK-TCO78.js → generations.status-DpyocrDb.js} +1 -1
  142. package/dist/assets/{hierarchy-marks-h4VpO3kJ.js → hierarchy-marks-Ducimsnh.js} +1 -1
  143. package/dist/assets/{hosted-asset-materialization-DBuwc0IQ.js → hosted-asset-materialization-CibGdw61.js} +1 -1
  144. package/dist/assets/{index-DM2Q_NCo.js → index-4Vg6KHJs.js} +1 -1
  145. package/dist/assets/{index-ND4SO5al.js → index-BMshF0VP.js} +1 -1
  146. package/dist/assets/{index-BTWJgxhy.js → index-BaM5nplw.js} +1 -1
  147. package/dist/assets/{index-DrdQBy-G.js → index-CKoL9Z8h.js} +1 -1
  148. package/dist/assets/{index-BtHKXtaM.js → index-Cs_hnykK.js} +8 -8
  149. package/dist/assets/{index-MT_--_xJ.js → index-CyN2UjMe.js} +1 -1
  150. package/dist/assets/{index-DE_7syhj.js → index-DMA-GnGs.js} +1 -1
  151. package/dist/assets/{index-gAgw9-nn.js → index-Df0th-r3.js} +1 -1
  152. package/dist/assets/{index-Csfe5jM_.js → index-M1-SoN0U.js} +2 -2
  153. package/dist/assets/{inference-diagnostics-BQL1PsrA.js → inference-diagnostics-aOHTUQ5I.js} +1 -1
  154. package/dist/assets/{ingest-boot-viewport-PiZJrSff.js → ingest-boot-viewport-J9SqqmBi.js} +1 -1
  155. package/dist/assets/{ingest-siblings-CBFovixA.js → ingest-siblings-DI-4N8EJ.js} +1 -1
  156. package/dist/assets/{ingest-source-persistence-PtmAk0XP.js → ingest-source-persistence-BlQ86Ezy.js} +1 -1
  157. package/dist/assets/{ingest.service-Dj7vHa0S.js → ingest.service-DGJl6Kg1.js} +1 -1
  158. package/dist/assets/{inspect-5CiZi9Fe.js → inspect-CSzAyD3t.js} +1 -1
  159. package/dist/assets/instances.command-DCKGMDy5.js +1 -0
  160. package/dist/assets/{json-history-resource-DVZTZBEI.js → json-history-resource-C5lzztrI.js} +1 -1
  161. package/dist/assets/{layered-pick-D16c7649.js → layered-pick-Da3YPGWE.js} +1 -1
  162. package/dist/assets/{light-RLn_u9nj.js → light-D9BNM9LO.js} +1 -1
  163. package/dist/assets/{live-project-verbs-DAqM2TEV.js → live-project-verbs-CeLmddwY.js} +1 -1
  164. package/dist/assets/{machine.document-1Pyec5Pa.js → machine.document-D9RIS2J1.js} +1 -1
  165. package/dist/assets/{machines.finder-AR1csJ4o.js → machines.finder-B_-K7mbg.js} +1 -1
  166. package/dist/assets/{material-CbAhx7b0.js → material-Di4_5UR9.js} +1 -1
  167. package/dist/assets/{material-factory-_2cVLgWp.js → material-factory-Cdk5ozUy.js} +1 -1
  168. package/dist/assets/{mesh-BsIfE30r.js → mesh-B3l7POsp.js} +1 -1
  169. package/dist/assets/{model-asset-sections.service-y4vzx4AO.js → model-asset-sections.service-wBLLtK1P.js} +1 -1
  170. package/dist/assets/{model-inspection-CF65KROh.js → model-inspection-QwuuTlfj.js} +1 -1
  171. package/dist/assets/{model-thumbnail-DrTWM9U2.js → model-thumbnail-BXNwjwVQ.js} +1 -1
  172. package/dist/assets/{models.finder-BcSV8mtS.js → models.finder-BlvEy8zN.js} +1 -1
  173. package/dist/assets/{module-mode-_u8oyIyA.js → module-mode-DJJCSruV.js} +2 -2
  174. package/dist/assets/{mount-canvas-ingest-root-C_aM-VbZ.js → mount-canvas-ingest-root-BKB4WIx_.js} +2 -2
  175. package/dist/assets/{mount-dom-ingest-root-CgUdURHO.js → mount-dom-ingest-root-PRkBWUWu.js} +2 -2
  176. package/dist/assets/{mount-ingest-root-eVQIQKsK.js → mount-ingest-root-CQLOfg6j.js} +2 -2
  177. package/dist/assets/{mount-manifest-CX_NmRV8.js → mount-manifest-GP2eO4t9.js} +1 -1
  178. package/dist/assets/{mount-three-ingest-root-DAiKCFQL.js → mount-three-ingest-root-T3wn7mca.js} +1 -1
  179. package/dist/assets/{mounted-authoring-BS6EFeEC.js → mounted-authoring-Db9gY4N3.js} +1 -1
  180. package/dist/assets/{mounted-story-viewport-source-DyODLBUp.js → mounted-story-viewport-source-C9HGOm_J.js} +1 -1
  181. package/dist/assets/{native-debug-module-n6JKSj78.js → native-debug-module-QRchsh2v.js} +1 -1
  182. package/dist/assets/{navigation-CTPtBc3X.js → navigation-C-8TPzHJ.js} +1 -1
  183. package/dist/assets/{navmesh.menu-B9usrrET.js → navmesh.menu-D0aY0A-x.js} +1 -1
  184. package/dist/assets/{navmesh.service-CFVngRKP.js → navmesh.service-CZ7uSgkz.js} +1 -1
  185. package/dist/assets/network-observer.service-CD9z9tBp.js +1 -0
  186. package/dist/assets/{network.utility-CEVHCC-T.js → network.utility-BOHNhfSD.js} +1 -1
  187. package/dist/assets/{object3d-document-session-registry-BD9lZKTC.js → object3d-document-session-registry-PE-4fjz1.js} +2 -2
  188. package/dist/assets/{oid-transform-ChoYb7se.js → oid-transform-B32kPrkS.js} +1 -1
  189. package/dist/assets/{particles-D1k_uYOX.js → particles-DkCd4wzc.js} +1 -1
  190. package/dist/assets/{pixi-authoring-adapter-Bcr97UEH.js → pixi-authoring-adapter-Cz6GKyRX.js} +1 -1
  191. package/dist/assets/{pixi-live-write-target-C4pMf1zd.js → pixi-live-write-target-Dvo0ZrpJ.js} +1 -1
  192. package/dist/assets/{play.command-CBDjMxJA.js → play.command-jRmgmt62.js} +2 -2
  193. package/dist/assets/{presentation-B__NA0OV.js → presentation-BWLM0Zst.js} +1 -1
  194. package/dist/assets/{product-DqjQLeDp.js → product-NPUDoYQp.js} +1 -1
  195. package/dist/assets/{profiler.action-Bn_bRMzI.js → profiler.action-BdEeMmlP.js} +1 -1
  196. package/dist/assets/{profiler.menu-D32ofOXP.js → profiler.menu-DmaIMEQp.js} +1 -1
  197. package/dist/assets/{profiler.utility-CcVo_nj3.js → profiler.utility-BqCXFtf4.js} +1 -1
  198. package/dist/assets/{project-authoring-session-Ii_9aeKq.js → project-authoring-session-DWdfTjb4.js} +2 -2
  199. package/dist/assets/{properties-bone-constraints.inspector-BwLwy_UY.js → properties-bone-constraints.inspector-Do18oyXm.js} +1 -1
  200. package/dist/assets/{properties-bone.inspector-CBEwOhSA.js → properties-bone.inspector-DHRW9Zdy.js} +1 -1
  201. package/dist/assets/{properties-collection.inspector-Wahf0FZg.js → properties-collection.inspector-B_ZqDhIB.js} +1 -1
  202. package/dist/assets/{properties-constraints.inspector-DqMhNk_O.js → properties-constraints.inspector-DGUezsPF.js} +1 -1
  203. package/dist/assets/{properties-data.inspector-NVNCDhx-.js → properties-data.inspector-DW6_t8_e.js} +1 -1
  204. package/dist/assets/{properties-material.inspector-JfwRrUdy.js → properties-material.inspector-CjK7oKK4.js} +1 -1
  205. package/dist/assets/{properties-modifiers.inspector-Tk3IilPm.js → properties-modifiers.inspector-BzIR7FjM.js} +1 -1
  206. package/dist/assets/{properties-object.inspector-Cw4CUuAF.js → properties-object.inspector-3fsVkAFS.js} +1 -1
  207. package/dist/assets/{properties-output.inspector-C_wjNYov.js → properties-output.inspector-D1zWlLWX.js} +1 -1
  208. package/dist/assets/{properties-particles.inspector-Buo2ZpHN.js → properties-particles.inspector-CwNWZhyR.js} +1 -1
  209. package/dist/assets/{properties-physics.inspector-ByZi8Or5.js → properties-physics.inspector-BnmFQq_i.js} +1 -1
  210. package/dist/assets/{properties-render.inspector-BDfZbd_W.js → properties-render.inspector-Di2qTS4q.js} +1 -1
  211. package/dist/assets/{properties-scene.inspector-BPxDKg8t.js → properties-scene.inspector-1UZaXfw2.js} +1 -1
  212. package/dist/assets/{properties-texture.inspector-CZinkXCt.js → properties-texture.inspector-BaV5U-Qu.js} +1 -1
  213. package/dist/assets/{properties-view-layer.inspector-edNGGTIE.js → properties-view-layer.inspector-DxW9C8im.js} +1 -1
  214. package/dist/assets/{properties-world.inspector-tybDOQ6m.js → properties-world.inspector-Cb8cuI2F.js} +1 -1
  215. package/dist/assets/{r3f-design-session-DWqMahmm.js → r3f-design-session-kg4aFo9v.js} +2 -2
  216. package/dist/assets/{r3f-physics-binding-DJWWVb2L.js → r3f-physics-binding-C37YJGMW.js} +1 -1
  217. package/dist/assets/{r3f-source-authoring-adapter-DvsbKTqD.js → r3f-source-authoring-adapter-ZKBMZbYR.js} +1 -1
  218. package/dist/assets/{react-canvas-navigation-Ci7wZxOU.js → react-canvas-navigation-DgndsFAo.js} +1 -1
  219. package/dist/assets/{react-inspector.service-vd4Nv39L.js → react-inspector.service-9bE0o_8D.js} +1 -1
  220. package/dist/assets/{react-story-board-D5JuJe6T.js → react-story-board-CCITskgO.js} +1 -1
  221. package/dist/assets/{react-three-rapier.esm-C07hrtTz.js → react-three-rapier.esm-CIOYSgKg.js} +1 -1
  222. package/dist/assets/{react-world-authoring-adapter--B_eNa53.js → react-world-authoring-adapter-DK4jMqyN.js} +1 -1
  223. package/dist/assets/{realm-services-BufVaH0e.js → realm-services-BAZP9e8H.js} +1 -1
  224. package/dist/assets/{reflection-probe-capture.inspector-CrcJgFmm.js → reflection-probe-capture.inspector-BOCEOfun.js} +1 -1
  225. package/dist/assets/{registry-n6zpDtMt.js → registry-PeJ-uX3W.js} +1 -1
  226. package/dist/assets/{relative-import-specifier-DeO_c8Rd.js → relative-import-specifier-BfGfJFJZ.js} +1 -1
  227. package/dist/assets/{render-env-DPBJB_Zs.js → render-env-ChDPR7QW.js} +1 -1
  228. package/dist/assets/{render-features-OSq2gvE-.js → render-features-BIgyjcOC.js} +1 -1
  229. package/dist/assets/{render-settings-DI6s6dkY.js → render-settings-C7hqpFnK.js} +1 -1
  230. package/dist/assets/{resolve-three-aaZ0_3_R.js → resolve-three-Dpd-fg3k.js} +3 -3
  231. package/dist/assets/{root-seam-contract-DetyPFnV.js → root-seam-contract-Crgu32u5.js} +1 -1
  232. package/dist/assets/{run-selection-Du9C46du.js → run-selection-xpSMOXG0.js} +1 -1
  233. package/dist/assets/{scene-capture-R9tSJXya.js → scene-capture-D1sFvwyj.js} +1 -1
  234. package/dist/assets/{scene-document.service-DOepV8nF.js → scene-document.service-BM50fy1J.js} +2 -2
  235. package/dist/assets/{scene-framing-DF5fdjup.js → scene-framing-BX1UTrnD.js} +1 -1
  236. package/dist/assets/{seeded-random-ClUBbE4z.js → seeded-random-C85bEVkS.js} +1 -1
  237. package/dist/assets/{setup-renderer-e3Gw3GCt.js → setup-renderer-DcKuhISr.js} +1 -1
  238. package/dist/assets/{source-object3d-authoring-adapter-C-ZF3osD.js → source-object3d-authoring-adapter-h3b7vPiK.js} +1 -1
  239. package/dist/assets/{source-persistence-backend-CgzJz-Nd.js → source-persistence-backend-DgTsuLXb.js} +1 -1
  240. package/dist/assets/{stage-keyboard-BeVDWo3u.js → stage-keyboard-BI4HOf1S.js} +1 -1
  241. package/dist/assets/{stage-overlay-set-CN_VJVOD.js → stage-overlay-set-Cssqqj_A.js} +1 -1
  242. package/dist/assets/{stage-presence-markers-D3YOz3QD.js → stage-presence-markers-7odF6Jqg.js} +1 -1
  243. package/dist/assets/{stage-transform-tools-i3abixoE.js → stage-transform-tools-CtyYmuLT.js} +1 -1
  244. package/dist/assets/{standard-viewport-dressing-g7JaXFSz.js → standard-viewport-dressing-C0D_Lkzi.js} +1 -1
  245. package/dist/assets/{state-watch.action-CMNQTE_k.js → state-watch.action-BjfXq_IH.js} +1 -1
  246. package/dist/assets/{state-watch.menu-mDeNuWPA.js → state-watch.menu-BRJo7Z-c.js} +1 -1
  247. package/dist/assets/{state-watch.utility-D3ffYxH0.js → state-watch.utility-D_swl2pz.js} +1 -1
  248. package/dist/assets/{story-capture-A7ucdmi7.js → story-capture-CMY7BKUL.js} +1 -1
  249. package/dist/assets/{story-documents-CpHqzA2E.js → story-documents-BwW_Ypnc.js} +1 -1
  250. package/dist/assets/{story-documents.service-DUzmFkmA.js → story-documents.service-B6YGoAas.js} +1 -1
  251. package/dist/assets/{story-documents.service-Bx3MD6eL.js → story-documents.service-DpNKV5ve.js} +1 -1
  252. package/dist/assets/{story-media-presence-C95sCmez.js → story-media-presence-DgTM3l4X.js} +1 -1
  253. package/dist/assets/{story-pixi-preview-DbFtKMCD.js → story-pixi-preview-anB4NVfT.js} +1 -1
  254. package/dist/assets/{story-presentation-DYqHAZtU.js → story-presentation-Cm5Vl6Oh.js} +1 -1
  255. package/dist/assets/{story-three-preview-CjX3xQGB.js → story-three-preview-BOD7-hxP.js} +2 -2
  256. package/dist/assets/{studio-environment-CGs1x_nY.js → studio-environment-Bg-I7fM-.js} +1 -1
  257. package/dist/assets/{surface-state-JGVYDKMD.js → surface-state-DUwBtx3k.js} +1 -1
  258. package/dist/assets/{syntactic-prop-specs-BdiNUmPv.js → syntactic-prop-specs-Bmxu19np.js} +1 -1
  259. package/dist/assets/{team-playtest.service-DInVIyoo.js → team-playtest.service-CGh7mX2E.js} +1 -1
  260. package/dist/assets/{three-CJS1cirl.js → three-CWmJa1qe.js} +1 -1
  261. package/dist/assets/{three-authoring-adapter-ByfM7SyY.js → three-authoring-adapter-CwQ2Hl3O.js} +1 -1
  262. package/dist/assets/three-authoring.service-CSdBG8i-.js +2 -0
  263. package/dist/assets/{three-ingest-runtime-DVG3znKA.js → three-ingest-runtime-Drh7DqsE.js} +1 -1
  264. package/dist/assets/{three-integration-DJnFy0Cl.js → three-integration-D9SLXYnU.js} +2 -2
  265. package/dist/assets/three-integration.service-W2S36XB9.js +1 -0
  266. package/dist/assets/{three-projection-core-CMkmMelq.js → three-projection-core-BxrVlHmD.js} +1 -1
  267. package/dist/assets/{three-state-DmHIPM-S.js → three-state-kIB-8XUB.js} +1 -1
  268. package/dist/assets/{three-story-capture.service-CZuvnzF1.js → three-story-capture.service-C8l6znQN.js} +2 -2
  269. package/dist/assets/{three-story-model-pj_bgW6q.js → three-story-model-DzqvFyFn.js} +1 -1
  270. package/dist/assets/{three-viewport-presentation-CpAAmxco.js → three-viewport-presentation-2yL9mtBn.js} +1 -1
  271. package/dist/assets/{transform-mode-request-BfzK1zvK.js → transform-mode-request-CwuDcUbZ.js} +1 -1
  272. package/dist/assets/{transport-strip-BwiOBZmO.js → transport-strip-BK2izTHN.js} +1 -1
  273. package/dist/assets/transport.header-BB3O8i1G.js +1 -0
  274. package/dist/assets/{tuples-BC2McJBb.js → tuples-DBc-K60w.js} +1 -1
  275. package/dist/assets/{ui-board-document-BJ1Jg2vO.js → ui-board-document-DM7FjXkv.js} +2 -2
  276. package/dist/assets/{user-data-Bs7kEKQL.js → user-data-B0afWRON.js} +1 -1
  277. package/dist/assets/{utility-view-state-DTBJVdax.js → utility-view-state-BqtZzIZO.js} +1 -1
  278. package/dist/assets/{viewport-door-BUBAxV2L.js → viewport-door-DXf2BTtM.js} +1 -1
  279. package/dist/assets/{viewport-root-presentation-BXafmwmW.js → viewport-root-presentation-DMXg0y2c.js} +1 -1
  280. package/dist/assets/{viewport-surface-status-BwUnSN5n.js → viewport-surface-status-Cb9tNbMn.js} +1 -1
  281. package/dist/assets/{webworkerAll-CHyvX6z5.js → webworkerAll-SNqnnw8n.js} +1 -1
  282. package/dist/assets/worker-BXLmYZTK.js +2 -0
  283. package/dist/assets/{workspace-arrangement-BvzC4AGK.js → workspace-arrangement-4Fa_8tpk.js} +1 -1
  284. package/dist/assets/{world-documents-DJBVXKeD.js → world-documents-D_jW5Rdo.js} +1 -1
  285. package/dist/assets/{world-root-stage-binding-BTcrTX0_.js → world-root-stage-binding-jICg_fta.js} +1 -1
  286. package/dist/assets/{xstate-animation-binding-LT8ofYof.js → xstate-animation-binding-D99r_COR.js} +1 -1
  287. package/dist/assets/{xstate-animation-meta-D22igH0b.js → xstate-animation-meta-DKGLnaIK.js} +1 -1
  288. package/dist-node/cli.js +367 -102
  289. package/package.json +16 -16
  290. package/dist/assets/InspectorObjectPreview-BQlnDG4E.js +0 -1
  291. package/dist/assets/Object3DDocumentViewport-DrDZRf2L.js +0 -2
  292. package/dist/assets/autoplay.service-CQlRBjxq.js +0 -1
  293. package/dist/assets/blender-emscripten-engine-DLuEIFE4.js +0 -2
  294. package/dist/assets/instances.command-CUn5hmvz.js +0 -1
  295. package/dist/assets/network-observer.service-B6NW-U1D.js +0 -1
  296. package/dist/assets/three-authoring.service-DVwuHTMg.js +0 -2
  297. package/dist/assets/three-integration.service-CJGC8wFY.js +0 -1
  298. package/dist/assets/transport.header-DvOge8Mb.js +0 -1
  299. package/dist/assets/worker-CQkYvnTL.js +0 -2
@@ -1 +1 @@
1
- import{collectMachineAnimationMeta as V,clipNamesOf as L,isBlendTreeAnimationMeta as S,asBlendTreeDef as z}from"./xstate-animation-meta-D22igH0b.js";import{cW as J,p as Z,c as _,cQ as ee,l as te,dk as ne,cf as ie,cd as oe}from"./three.core-3arARmh6.js";import"./index-BtHKXtaM.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";class M extends Error{constructor(i,c){super(i),this.stateId=c,this.name="AnimationBindingError"}}function ae(n){const i=n.logic;if(i?.root)return i;const c=n.getSnapshot();if(c?.machine?.root)return c.machine;throw new M("[bindXStateAnimation] the actor exposes no state machine — only a state-machine actor carries the `meta.animation` this binder reads")}const W=n=>n.layer??"base",B=n=>n.weight??1,I=n=>n.blendMode??"override";function T(n){try{return ne.parseTrackName(n.name).nodeName??""}catch{const i=n.name.indexOf(".");return i<0?n.name:n.name.slice(0,i)}}function C(n,i,c){const o=new Set,l=[];for(const f of i){let u=!1;n.traverse(m=>{m.name===f&&(u=!0,m.traverse(d=>{d.name&&o.add(d.name)}))}),c.has(f)&&(u=!0,o.add(f)),u||l.push(f)}return{names:o,missing:l}}function se(n,i,c,o){const l=new Set(n.tracks.map(T)),f=i.include?C(c,i.include,l):void 0,u=i.exclude?C(c,i.exclude,l):void 0,m=[...f?.missing??[],...u?.missing??[]];if(m.length)throw new M(`[bindXStateAnimation] state "${o}" boneMask names unknown bones/objects: ${m.join(", ")}`,o);const d=n.tracks.filter(p=>{const w=T(p);return(!f||f.names.has(w))&&!u?.names.has(w)});if(d.length===0)throw new M(`[bindXStateAnimation] state "${o}" boneMask removes every track from clip "${n.name}"`,o);return new te(n.name,n.duration,d.map(p=>p.clone()))}function re(n){return n.reduce((i,c)=>c.weight>i.weight?c:i,n[0])}function Se(n,i,c,o={}){const l=i.getRoot(),f=o.root??(l instanceof J?l:void 0);if(!f)throw new M("[bindXStateAnimation] a THREE.Object3D `root` option is required when the mixer uses AnimationObjectGroup");const u=ae(n).root,m=V(u),d=new Map(m.map(t=>[t.stateId,t.meta]));for(const t of m)for(const e of L(t.meta))if(!c.has(e))throw new M(`[bindXStateAnimation] state "${t.stateId}" references clip "${e}", which is not present in the supplied clips map. Known clips: ${[...c.keys()].join(", ")||"(none)"}`,t.stateId);const p=new Map;function w(t,e,s){return W(e)!=="base"||!!e.boneMask||I(e)==="additive"?`${t}\0${s}`:s}for(const{stateId:t,meta:e}of m)for(const s of L(e)){const a=w(t,e,s);if(p.has(a))continue;const r=c.get(s);let h=e.boneMask?se(r,e.boneMask,f,t):r;(h!==r||a!==s)&&(h===r&&(h=r.clone()),h.name=`${r.name}@${W(e)}:${t}`),I(e)==="additive"?(Z.makeClipAdditive(h),h.blendMode=_):h.blendMode=ee,p.set(a,h)}const g=new Map;function K(t,e,s,a){let r=g.get(t);if(!r){const h=p.get(t);if(!h)throw new M(`[bindXStateAnimation] prepared clip "${t}" not found`);const v=i.clipAction(h);v.setEffectiveWeight(0),v.play(),r={action:v,clip:h},g.set(t,r)}return r.action.setLoop(e?ie:oe,1/0),r.action.clampWhenFinished=!e,r.action.timeScale=s,r.action.weight=a,r.action}function N(t){const e=o.selectParameters?o.selectParameters(t):t;return new Map(Object.entries(e??{}))}function D(t,e,s){return(S(e)?ce(z(e.blendTree),N(s)):[{clip:e.clip,weight:1}]).map(({clip:r,weight:h})=>({clip:r,weight:h,actionKey:w(t,e,r)}))}const y=new Map;let O=!1;function R(t,e,s){for(const a of t){if(a.actionKey===e)continue;const r=g.get(a.actionKey)?.action;r&&(s>0?r.fadeOut(s):r.setEffectiveWeight(0))}}function k(t,e){if(!S(t.meta))return;t.natural=D(t.stateId,t.meta,e);const s=B(t.meta);for(const a of t.natural)g.get(a.actionKey)?.action.setEffectiveWeight(a.weight*s)}function P(t,e,s){const a=W(e),r=y.get(a)??null,h=D(t,e,s),v=re(h),H=S(e)?!0:e.loop,Q=S(e)?1:e.speed,x=B(e);for(const b of h)K(b.actionKey,H,Q,x);const $=g.get(v.actionKey).action;$.reset().setEffectiveWeight(x);for(const b of h)b.actionKey!==v.actionKey&&g.get(b.actionKey).action.reset().setEffectiveWeight(0);const A=e.crossfade?.duration??0,U=e.crossfade?.warp??!1;if(!r)A>0&&$.fadeIn(A);else{R(r.natural,r.dominantActionKey,A);const b=g.get(r.dominantActionKey)?.action;b&&A>0?b.crossFadeTo($,A,U):(b?.setEffectiveWeight(0),$.setEffectiveWeight(x))}const j={layer:a,stateId:t,meta:e,natural:h,dominantActionKey:v.actionKey,crossfadeRemaining:A};y.set(a,j),S(e)&&A<=0&&k(j,s)}function q(t){return Object.keys(t.getMeta()).filter(e=>d.has(e))}function X(t){const e=new Map;for(const s of q(t)){const a=d.get(s),r=W(a),h=e.get(r);if(h)throw new M(`[bindXStateAnimation] animated states "${h}" and "${s}" are both active on layer "${r}". Give parallel regions distinct meta.animation.layer names.`,s);e.set(r,s)}for(const[s,a]of y)e.has(s)||(R(a.natural,void 0,0),y.delete(s));for(const[s,a]of e)y.get(s)?.stateId!==a&&P(a,d.get(a),t.context)}const F=n.getSnapshot();X(F);const G=n.subscribe(t=>{O||X(t)});function E(t){if(O)return;const e=t,s=n.getSnapshot().context;for(const a of y.values())a.crossfadeRemaining>0?(a.crossfadeRemaining=Math.max(0,a.crossfadeRemaining-e),a.crossfadeRemaining<=0&&k(a,s)):k(a,s);i.update(e)}const Y={tick:E,actor:n,getParameters:()=>N(n.getSnapshot().context),getActiveLayers:()=>[...y.values()].map(t=>({layer:t.layer,stateId:t.stateId,clips:t.natural.map(e=>e.clip),clipWeights:t.natural.map(e=>({clip:e.clip,weight:g.get(e.actionKey)?.action.getEffectiveWeight()??0})),weight:B(t.meta),blendMode:I(t.meta),...t.meta.boneMask?{boneMask:t.meta.boneMask}:{}})),dispose(){if(!O){O=!0,o.systems?.remove("animation",E),G.unsubscribe();for(const{action:t,clip:e}of g.values())t.stop(),i.uncacheAction(e,t.getRoot());g.clear(),y.clear()}}};return o.systems?.add("animation",E),Y}function ce(n,i){switch(n.type){case"1D":return le(n,i);case"2D":return fe(n,i);case"direct":return de(n);default:return n.children.map(c=>({clip:c.clip,weight:1/n.children.length}))}}function le(n,i){const c=Number(i.get(n.parameter)??0),o=[...n.children].sort((f,u)=>f.threshold-u.threshold),l=o.map(f=>({clip:f.clip,weight:0}));if(o.length===0)return l;if(o.length===1||c<=o[0].threshold)return l[0].weight=1,l;if(c>=o[o.length-1].threshold)return l[l.length-1].weight=1,l;for(let f=0;f<o.length-1;f++){const u=o[f],m=o[f+1];if(c>=u.threshold&&c<=m.threshold){const d=m.threshold-u.threshold,p=d>0?(c-u.threshold)/d:0;return l[f].weight=1-p,l[f+1].weight=p,l}}return l}function fe(n,i){const c=Number(i.get(n.parameter)??0),o=Number(i.get(n.parameterY??"")??0),l=n.children,f=l.map(d=>({clip:d.clip,weight:0}));let u=0;const m=[];for(const d of l){const p=c-d.threshold,w=o-(d.thresholdY??0),g=Math.sqrt(p*p+w*w),K=g<.001?1e3:1/g;m.push(K),u+=K}if(u>0)for(let d=0;d<f.length;d++)f[d].weight=m[d]/u;return f}function de(n){const i=n.children.map(o=>({clip:o.clip,weight:o.weight??0})),c=i.reduce((o,l)=>o+l.weight,0);if(c>0)for(const o of i)o.weight/=c;return i}export{M as AnimationBindingError,Se as bindXStateAnimation,ce as evaluateBlendTree,ae as machineOfXStateActor};
1
+ import{collectMachineAnimationMeta as V,clipNamesOf as L,isBlendTreeAnimationMeta as S,asBlendTreeDef as z}from"./xstate-animation-meta-DKGLnaIK.js";import{cW as J,p as Z,c as _,cQ as ee,l as te,dk as ne,cf as ie,cd as oe}from"./three.core-3arARmh6.js";import"./index-Cs_hnykK.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";class M extends Error{constructor(i,c){super(i),this.stateId=c,this.name="AnimationBindingError"}}function ae(n){const i=n.logic;if(i?.root)return i;const c=n.getSnapshot();if(c?.machine?.root)return c.machine;throw new M("[bindXStateAnimation] the actor exposes no state machine — only a state-machine actor carries the `meta.animation` this binder reads")}const W=n=>n.layer??"base",B=n=>n.weight??1,I=n=>n.blendMode??"override";function T(n){try{return ne.parseTrackName(n.name).nodeName??""}catch{const i=n.name.indexOf(".");return i<0?n.name:n.name.slice(0,i)}}function C(n,i,c){const o=new Set,l=[];for(const f of i){let u=!1;n.traverse(m=>{m.name===f&&(u=!0,m.traverse(d=>{d.name&&o.add(d.name)}))}),c.has(f)&&(u=!0,o.add(f)),u||l.push(f)}return{names:o,missing:l}}function se(n,i,c,o){const l=new Set(n.tracks.map(T)),f=i.include?C(c,i.include,l):void 0,u=i.exclude?C(c,i.exclude,l):void 0,m=[...f?.missing??[],...u?.missing??[]];if(m.length)throw new M(`[bindXStateAnimation] state "${o}" boneMask names unknown bones/objects: ${m.join(", ")}`,o);const d=n.tracks.filter(p=>{const w=T(p);return(!f||f.names.has(w))&&!u?.names.has(w)});if(d.length===0)throw new M(`[bindXStateAnimation] state "${o}" boneMask removes every track from clip "${n.name}"`,o);return new te(n.name,n.duration,d.map(p=>p.clone()))}function re(n){return n.reduce((i,c)=>c.weight>i.weight?c:i,n[0])}function Se(n,i,c,o={}){const l=i.getRoot(),f=o.root??(l instanceof J?l:void 0);if(!f)throw new M("[bindXStateAnimation] a THREE.Object3D `root` option is required when the mixer uses AnimationObjectGroup");const u=ae(n).root,m=V(u),d=new Map(m.map(t=>[t.stateId,t.meta]));for(const t of m)for(const e of L(t.meta))if(!c.has(e))throw new M(`[bindXStateAnimation] state "${t.stateId}" references clip "${e}", which is not present in the supplied clips map. Known clips: ${[...c.keys()].join(", ")||"(none)"}`,t.stateId);const p=new Map;function w(t,e,s){return W(e)!=="base"||!!e.boneMask||I(e)==="additive"?`${t}\0${s}`:s}for(const{stateId:t,meta:e}of m)for(const s of L(e)){const a=w(t,e,s);if(p.has(a))continue;const r=c.get(s);let h=e.boneMask?se(r,e.boneMask,f,t):r;(h!==r||a!==s)&&(h===r&&(h=r.clone()),h.name=`${r.name}@${W(e)}:${t}`),I(e)==="additive"?(Z.makeClipAdditive(h),h.blendMode=_):h.blendMode=ee,p.set(a,h)}const g=new Map;function K(t,e,s,a){let r=g.get(t);if(!r){const h=p.get(t);if(!h)throw new M(`[bindXStateAnimation] prepared clip "${t}" not found`);const v=i.clipAction(h);v.setEffectiveWeight(0),v.play(),r={action:v,clip:h},g.set(t,r)}return r.action.setLoop(e?ie:oe,1/0),r.action.clampWhenFinished=!e,r.action.timeScale=s,r.action.weight=a,r.action}function N(t){const e=o.selectParameters?o.selectParameters(t):t;return new Map(Object.entries(e??{}))}function D(t,e,s){return(S(e)?ce(z(e.blendTree),N(s)):[{clip:e.clip,weight:1}]).map(({clip:r,weight:h})=>({clip:r,weight:h,actionKey:w(t,e,r)}))}const y=new Map;let O=!1;function R(t,e,s){for(const a of t){if(a.actionKey===e)continue;const r=g.get(a.actionKey)?.action;r&&(s>0?r.fadeOut(s):r.setEffectiveWeight(0))}}function k(t,e){if(!S(t.meta))return;t.natural=D(t.stateId,t.meta,e);const s=B(t.meta);for(const a of t.natural)g.get(a.actionKey)?.action.setEffectiveWeight(a.weight*s)}function P(t,e,s){const a=W(e),r=y.get(a)??null,h=D(t,e,s),v=re(h),H=S(e)?!0:e.loop,Q=S(e)?1:e.speed,x=B(e);for(const b of h)K(b.actionKey,H,Q,x);const $=g.get(v.actionKey).action;$.reset().setEffectiveWeight(x);for(const b of h)b.actionKey!==v.actionKey&&g.get(b.actionKey).action.reset().setEffectiveWeight(0);const A=e.crossfade?.duration??0,U=e.crossfade?.warp??!1;if(!r)A>0&&$.fadeIn(A);else{R(r.natural,r.dominantActionKey,A);const b=g.get(r.dominantActionKey)?.action;b&&A>0?b.crossFadeTo($,A,U):(b?.setEffectiveWeight(0),$.setEffectiveWeight(x))}const j={layer:a,stateId:t,meta:e,natural:h,dominantActionKey:v.actionKey,crossfadeRemaining:A};y.set(a,j),S(e)&&A<=0&&k(j,s)}function q(t){return Object.keys(t.getMeta()).filter(e=>d.has(e))}function X(t){const e=new Map;for(const s of q(t)){const a=d.get(s),r=W(a),h=e.get(r);if(h)throw new M(`[bindXStateAnimation] animated states "${h}" and "${s}" are both active on layer "${r}". Give parallel regions distinct meta.animation.layer names.`,s);e.set(r,s)}for(const[s,a]of y)e.has(s)||(R(a.natural,void 0,0),y.delete(s));for(const[s,a]of e)y.get(s)?.stateId!==a&&P(a,d.get(a),t.context)}const F=n.getSnapshot();X(F);const G=n.subscribe(t=>{O||X(t)});function E(t){if(O)return;const e=t,s=n.getSnapshot().context;for(const a of y.values())a.crossfadeRemaining>0?(a.crossfadeRemaining=Math.max(0,a.crossfadeRemaining-e),a.crossfadeRemaining<=0&&k(a,s)):k(a,s);i.update(e)}const Y={tick:E,actor:n,getParameters:()=>N(n.getSnapshot().context),getActiveLayers:()=>[...y.values()].map(t=>({layer:t.layer,stateId:t.stateId,clips:t.natural.map(e=>e.clip),clipWeights:t.natural.map(e=>({clip:e.clip,weight:g.get(e.actionKey)?.action.getEffectiveWeight()??0})),weight:B(t.meta),blendMode:I(t.meta),...t.meta.boneMask?{boneMask:t.meta.boneMask}:{}})),dispose(){if(!O){O=!0,o.systems?.remove("animation",E),G.unsubscribe();for(const{action:t,clip:e}of g.values())t.stop(),i.uncacheAction(e,t.getRoot());g.clear(),y.clear()}}};return o.systems?.add("animation",E),Y}function ce(n,i){switch(n.type){case"1D":return le(n,i);case"2D":return fe(n,i);case"direct":return de(n);default:return n.children.map(c=>({clip:c.clip,weight:1/n.children.length}))}}function le(n,i){const c=Number(i.get(n.parameter)??0),o=[...n.children].sort((f,u)=>f.threshold-u.threshold),l=o.map(f=>({clip:f.clip,weight:0}));if(o.length===0)return l;if(o.length===1||c<=o[0].threshold)return l[0].weight=1,l;if(c>=o[o.length-1].threshold)return l[l.length-1].weight=1,l;for(let f=0;f<o.length-1;f++){const u=o[f],m=o[f+1];if(c>=u.threshold&&c<=m.threshold){const d=m.threshold-u.threshold,p=d>0?(c-u.threshold)/d:0;return l[f].weight=1-p,l[f+1].weight=p,l}}return l}function fe(n,i){const c=Number(i.get(n.parameter)??0),o=Number(i.get(n.parameterY??"")??0),l=n.children,f=l.map(d=>({clip:d.clip,weight:0}));let u=0;const m=[];for(const d of l){const p=c-d.threshold,w=o-(d.thresholdY??0),g=Math.sqrt(p*p+w*w),K=g<.001?1e3:1/g;m.push(K),u+=K}if(u>0)for(let d=0;d<f.length;d++)f[d].weight=m[d]/u;return f}function de(n){const i=n.children.map(o=>({clip:o.clip,weight:o.weight??0})),c=i.reduce((o,l)=>o+l.weight,0);if(c>0)for(const o of i)o.weight/=c;return i}export{M as AnimationBindingError,Se as bindXStateAnimation,ce as evaluateBlendTree,ae as machineOfXStateActor};
@@ -1 +1 @@
1
- import{dZ as b,d_ as u,u as o,v as c,w as n,x as l,c6 as r,c5 as m,c4 as f}from"./index-BtHKXtaM.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";const d=o({clip:n().min(1).describe("Animation clip name this child plays"),threshold:r().describe("1D/2D blend position on the primary parameter axis"),thresholdY:r().optional().describe("2D blend position on the secondary parameter axis (2D blend trees only)"),weight:r().min(0).optional().describe('Explicit weight for "direct" blend trees (ignored by 1D/2D)')}).strict(),y=o({type:l("1D").describe("Interpolates linearly between sorted children by threshold"),parameter:n().min(1).describe("Context/selector value driving the blend"),children:c(d).min(2,"1D blend tree needs at least 2 children to interpolate between")}).strict(),v=o({type:l("2D").describe("Inverse-distance-weights children by (parameter, parameterY) position"),parameter:n().min(1).describe("Primary axis context/selector value"),parameterY:n().min(1).describe("Secondary axis context/selector value"),children:c(d.extend({thresholdY:r()})).min(1,"2D blend tree needs at least 1 child")}).strict(),g=o({type:l("direct").describe("Each child has an explicit weight, normalized to sum to 1"),parameter:n().default(""),children:c(d.extend({weight:r().min(0)})).min(1,"direct blend tree needs at least 1 child")}).strict(),A=b("type",[y,v,g]);function Y(e){return e}const p=o({duration:r().min(0).default(0).describe("Seconds to blend from the previously active clip into this state on entry, applied via native `AnimationAction.crossFadeTo`/`fadeIn` (E2). 0 = instant activation, no fade."),warp:m().default(!1).describe("Passed through to AnimationAction.crossFadeTo's `warp` param — linearly warps timeScale across the two clips during the blend so differing clip lengths line up. Default false.")}).strict().describe("Blend-in/out/crossfade timing for entering this state"),x=o({include:c(n().min(1)).min(1).optional().describe("Bone/object names whose complete descendant subtrees are retained"),exclude:c(n().min(1)).min(1).optional().describe("Bone/object names whose complete descendant subtrees are removed")}).strict().refine(e=>!!(e.include?.length||e.exclude?.length),{message:"boneMask needs at least one include or exclude bone name"}).describe("Filters animation tracks by named Object3D/Bone subtrees"),h={layer:n().min(1).optional().describe("Composition layer name; omitted means the single base layer"),weight:r().min(0).max(1).optional().describe("Layer weight multiplier from 0 to 1; defaults to 1"),blendMode:f(["override","additive"]).optional().describe("Native Three normal/override or additive action blending; defaults to override"),boneMask:x.optional().describe("Optional include/exclude filter applied to every clip track in this state")},w=o({clip:n().min(1).describe("Single clip to play while this XState state is active"),loop:m().default(!0).describe("Loop the clip (THREE.LoopRepeat) vs play once (THREE.LoopOnce, clamped on last frame)"),speed:r().positive().default(1).describe("Playback speed multiplier (AnimationAction.timeScale)"),crossfade:p.optional(),...h}).strict(),S=o({blendTree:A.describe("Multiple clips blended by a live context/selector-driven parameter"),crossfade:p.optional(),...h}).strict(),D=u([w,S]);function M(e){return"clip"in e}function $(e){return"blendTree"in e}class T extends Error{constructor(a,i,t){super(a),this.stateId=i,this.issues=t,this.name="AnimationMetaValidationError"}}function B(e,a){const i=D.safeParse(a);if(!i.success){const t=i.error.issues.map(s=>`${s.path.length?s.path.join("."):"(root)"}: ${s.message}`).join("; ");throw new T(`[xstate-animation] invalid meta.animation for state "${e}": ${t}`,e,i.error.issues)}return i.data}function R(e){const a=[],i=t=>{t.meta&&"animation"in t.meta&&t.meta.animation!==void 0&&a.push({stateId:t.id,meta:B(t.id,t.meta.animation)});for(const s of Object.values(t.states??{}))i(s)};return i(e),a}function H(e){return M(e)?[e.clip]:e.blendTree.children.map(a=>a.clip)}export{A as AnimationBlendTreeSchema,T as AnimationMetaValidationError,D as StateAnimationMetaSchema,Y as asBlendTreeDef,H as clipNamesOf,R as collectMachineAnimationMeta,$ as isBlendTreeAnimationMeta,M as isClipAnimationMeta,B as parseStateAnimationMeta};
1
+ import{dZ as b,d_ as u,u as o,v as c,w as n,x as l,c6 as r,c5 as m,c4 as f}from"./index-Cs_hnykK.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";const d=o({clip:n().min(1).describe("Animation clip name this child plays"),threshold:r().describe("1D/2D blend position on the primary parameter axis"),thresholdY:r().optional().describe("2D blend position on the secondary parameter axis (2D blend trees only)"),weight:r().min(0).optional().describe('Explicit weight for "direct" blend trees (ignored by 1D/2D)')}).strict(),y=o({type:l("1D").describe("Interpolates linearly between sorted children by threshold"),parameter:n().min(1).describe("Context/selector value driving the blend"),children:c(d).min(2,"1D blend tree needs at least 2 children to interpolate between")}).strict(),v=o({type:l("2D").describe("Inverse-distance-weights children by (parameter, parameterY) position"),parameter:n().min(1).describe("Primary axis context/selector value"),parameterY:n().min(1).describe("Secondary axis context/selector value"),children:c(d.extend({thresholdY:r()})).min(1,"2D blend tree needs at least 1 child")}).strict(),g=o({type:l("direct").describe("Each child has an explicit weight, normalized to sum to 1"),parameter:n().default(""),children:c(d.extend({weight:r().min(0)})).min(1,"direct blend tree needs at least 1 child")}).strict(),A=b("type",[y,v,g]);function Y(e){return e}const p=o({duration:r().min(0).default(0).describe("Seconds to blend from the previously active clip into this state on entry, applied via native `AnimationAction.crossFadeTo`/`fadeIn` (E2). 0 = instant activation, no fade."),warp:m().default(!1).describe("Passed through to AnimationAction.crossFadeTo's `warp` param — linearly warps timeScale across the two clips during the blend so differing clip lengths line up. Default false.")}).strict().describe("Blend-in/out/crossfade timing for entering this state"),x=o({include:c(n().min(1)).min(1).optional().describe("Bone/object names whose complete descendant subtrees are retained"),exclude:c(n().min(1)).min(1).optional().describe("Bone/object names whose complete descendant subtrees are removed")}).strict().refine(e=>!!(e.include?.length||e.exclude?.length),{message:"boneMask needs at least one include or exclude bone name"}).describe("Filters animation tracks by named Object3D/Bone subtrees"),h={layer:n().min(1).optional().describe("Composition layer name; omitted means the single base layer"),weight:r().min(0).max(1).optional().describe("Layer weight multiplier from 0 to 1; defaults to 1"),blendMode:f(["override","additive"]).optional().describe("Native Three normal/override or additive action blending; defaults to override"),boneMask:x.optional().describe("Optional include/exclude filter applied to every clip track in this state")},w=o({clip:n().min(1).describe("Single clip to play while this XState state is active"),loop:m().default(!0).describe("Loop the clip (THREE.LoopRepeat) vs play once (THREE.LoopOnce, clamped on last frame)"),speed:r().positive().default(1).describe("Playback speed multiplier (AnimationAction.timeScale)"),crossfade:p.optional(),...h}).strict(),S=o({blendTree:A.describe("Multiple clips blended by a live context/selector-driven parameter"),crossfade:p.optional(),...h}).strict(),D=u([w,S]);function M(e){return"clip"in e}function $(e){return"blendTree"in e}class T extends Error{constructor(a,i,t){super(a),this.stateId=i,this.issues=t,this.name="AnimationMetaValidationError"}}function B(e,a){const i=D.safeParse(a);if(!i.success){const t=i.error.issues.map(s=>`${s.path.length?s.path.join("."):"(root)"}: ${s.message}`).join("; ");throw new T(`[xstate-animation] invalid meta.animation for state "${e}": ${t}`,e,i.error.issues)}return i.data}function R(e){const a=[],i=t=>{t.meta&&"animation"in t.meta&&t.meta.animation!==void 0&&a.push({stateId:t.id,meta:B(t.id,t.meta.animation)});for(const s of Object.values(t.states??{}))i(s)};return i(e),a}function H(e){return M(e)?[e.clip]:e.blendTree.children.map(a=>a.clip)}export{A as AnimationBlendTreeSchema,T as AnimationMetaValidationError,D as StateAnimationMetaSchema,Y as asBlendTreeDef,H as clipNamesOf,R as collectMachineAnimationMeta,$ as isBlendTreeAnimationMeta,M as isClipAnimationMeta,B as parseStateAnimationMeta};