@volter/game-editor 0.5.142 → 0.5.143
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/BUNDLED_NOTICES +22 -22
- package/catalog/entries/blender.json +2 -2
- package/catalog/entries/music.json +2 -2
- package/dist/.vite/manifest.json +2129 -2129
- package/dist/assets/{AssetBudgetPanel-BK_Kg5_n.js → AssetBudgetPanel-BdiVftGG.js} +3 -3
- package/dist/assets/{AudioViewer-DcUL0rsj.js → AudioViewer-DjwTr_wg.js} +1 -1
- package/dist/assets/{CanvasBoardDocument-DsOqoA42.js → CanvasBoardDocument-DK3MXhRp.js} +1 -1
- package/dist/assets/{CanvasSceneViewport-sWKihRdy.js → CanvasSceneViewport-DOzblR0m.js} +1 -1
- package/dist/assets/{ColorInput-DLItcwnD.js → ColorInput-qITQn-_m.js} +1 -1
- package/dist/assets/{ColorPicker-T0mWSJvb.js → ColorPicker-DPs8654V.js} +1 -1
- package/dist/assets/{EntityModelDocument-NhgPaDRz.js → EntityModelDocument-CNPGnGt3.js} +1 -1
- package/dist/assets/{EnvironmentAssetDocument-pLuFtzE0.js → EnvironmentAssetDocument-oyIJfFdj.js} +1 -1
- package/dist/assets/{GameplaySessionTimeline-DHDAZHKd.js → GameplaySessionTimeline-f2tPMu4I.js} +1 -1
- package/dist/assets/{ImageViewer-Dz-w5I9z.js → ImageViewer-DO5Ve_Ox.js} +1 -1
- package/dist/assets/InspectorObjectPreview-CunxnDvP.js +1 -0
- package/dist/assets/{JsonAssetDocument-BRQJhVn-.js → JsonAssetDocument-BuRyWHCE.js} +1 -1
- package/dist/assets/{LiveModuleDocument-ZbZWogpm.js → LiveModuleDocument-DSKvtvtv.js} +1 -1
- package/dist/assets/{LutAssetDocument-Bqiprv51.js → LutAssetDocument-DpQ27fBd.js} +1 -1
- package/dist/assets/{ModelAssetDocument-Tr_5h4cp.js → ModelAssetDocument-PpCxnR1j.js} +1 -1
- package/dist/assets/{NonThreeAuthoringBootstrap-BWE-HDxB.js → NonThreeAuthoringBootstrap-mIzPFTqE.js} +1 -1
- package/dist/assets/{Object3DDocumentToolbar-CBYkpS3f.js → Object3DDocumentToolbar-BtPLixcu.js} +1 -1
- package/dist/assets/Object3DDocumentViewport-C1XieeeO.js +2 -0
- package/dist/assets/{Object3DPreview-BMbAWHRi.js → Object3DPreview-D3qGjLVE.js} +1 -1
- package/dist/assets/{OnlineAssetDetail-xYK97ae5.js → OnlineAssetDetail-p4AlihvW.js} +1 -1
- package/dist/assets/{PlayBar-HWwce0-F.js → PlayBar-CPfTu06h.js} +1 -1
- package/dist/assets/{QuarksAssetDocument-LQmsrsV3.js → QuarksAssetDocument-D6dGxxmU.js} +1 -1
- package/dist/assets/{ReactCanvasControls-avLn4SLd.js → ReactCanvasControls-DijwLcwS.js} +1 -1
- package/dist/assets/{RootSelectionOverlay-C6vvYfUs.js → RootSelectionOverlay-CsD1aZs6.js} +1 -1
- package/dist/assets/{ShaderAssetDocument-B6WBPMzb.js → ShaderAssetDocument-BEa81zNK.js} +1 -1
- package/dist/assets/{ShadowEditor-PrqNH7go.js → ShadowEditor-B7CJc6XL.js} +1 -1
- package/dist/assets/{SourceAssetViewer-Dsp_GcoS.js → SourceAssetViewer-Bwvyvl7B.js} +1 -1
- package/dist/assets/StageHost-CHeH7liy.js +2 -0
- package/dist/assets/{StoryPreviewMount-DWIfQjmM.js → StoryPreviewMount-CLfDAbBH.js} +1 -1
- package/dist/assets/{ThreeBoardDocument-B3FqjhJo.js → ThreeBoardDocument-CBxxjARz.js} +2 -2
- package/dist/assets/{ThreeIsolationSceneContent-BPgdmgcO.js → ThreeIsolationSceneContent-B7AvGnMj.js} +1 -1
- package/dist/assets/{ToolObject3DPreview-CYjzINIU.js → ToolObject3DPreview-BgogY6xt.js} +1 -1
- package/dist/assets/{Toolbar-YMWsmOWT.js → Toolbar-DcpfyyCi.js} +1 -1
- package/dist/assets/{TransientHint-u9a54k-5.js → TransientHint-DzpkDjxN.js} +1 -1
- package/dist/assets/{VideoViewer-CARhfO8w.js → VideoViewer-uaulCUB7.js} +1 -1
- package/dist/assets/{ViewportShadingMenu-DvBJqmuY.js → ViewportShadingMenu-BNortpJP.js} +1 -1
- package/dist/assets/{active-ingest-xHJ3iPnn.js → active-ingest-D93pvHUb.js} +2 -2
- package/dist/assets/{animation-clock-hJO0qDLe.js → animation-clock-gP0Omdq0.js} +1 -1
- package/dist/assets/{animation-mixers.service-rZWYxLUR.js → animation-mixers.service-BnC2sPxd.js} +1 -1
- package/dist/assets/{animation-timeline.utility-o8Pyf1CR.js → animation-timeline.utility-_iveOjvf.js} +1 -1
- package/dist/assets/{asset-budget-asset.menu-BdY98g2A.js → asset-budget-asset.menu-BO6S6Clb.js} +1 -1
- package/dist/assets/{asset-budget.action-DCWkB_B2.js → asset-budget.action-BfPsEFA-.js} +1 -1
- package/dist/assets/{asset-budget.document-DuRsluNY.js → asset-budget.document-BPHPWfbm.js} +1 -1
- package/dist/assets/{asset-budget.menu-B2MMYJIP.js → asset-budget.menu-BMn3dsDS.js} +1 -1
- package/dist/assets/{asset-editor-persistence-C-gURpGj.js → asset-editor-persistence-BE91v4hN.js} +1 -1
- package/dist/assets/{asset-loaders-DYC-l1kU.js → asset-loaders-p2V4yWeG.js} +1 -1
- package/dist/assets/{asset-preview-DEkvEBxj.js → asset-preview-BqIrR4Xy.js} +1 -1
- package/dist/assets/{audio-unlock.service-DG6q4IBZ.js → audio-unlock.service-t0voeDQd.js} +1 -1
- package/dist/assets/{audio.utility-KYy5goj0.js → audio.utility-BtDV4l6L.js} +1 -1
- package/dist/assets/autoplay.service-BTr6K5DJ.js +1 -0
- package/dist/assets/{babylon-authoring-adapter-Qr98gG6J.js → babylon-authoring-adapter-ys1eX0ED.js} +1 -1
- package/dist/assets/{binding-resolver-BKmJAnHI.js → binding-resolver-BWwofL-w.js} +2 -2
- package/dist/assets/{blender-node-editor.document-BBNl1MEx.js → blender-node-editor.document-BHsl001G.js} +1 -1
- package/dist/assets/{blender-properties-tab-CkCbqAZB.js → blender-properties-tab-uAaS_Exu.js} +1 -1
- package/dist/assets/{blender-runtime-host-BbvkFBVI.js → blender-runtime-host-BYZufdkP.js} +1 -1
- package/dist/assets/{blender-runtime-skin-XkUxG1nF.js → blender-runtime-skin-DuLZEmCx.js} +29 -29
- package/dist/assets/{blender-runtime.document-CXKSbMrA.js → blender-runtime.document-CfDUmwIa.js} +8 -8
- package/dist/assets/{blender-screenshot.menu-BUWbBflV.js → blender-screenshot.menu-qJZV-LS0.js} +1 -1
- package/dist/assets/{blender-timeline.document-FDw47tX9.js → blender-timeline.document-BwrXagJ6.js} +1 -1
- package/dist/assets/{blender-uv-editor.document-BnZgr7yh.js → blender-uv-editor.document-CSZoUDWM.js} +1 -1
- package/dist/assets/{blender-version.status-DtZC1ZWl.js → blender-version.status-BWDUK2l7.js} +1 -1
- package/dist/assets/{blender.command-DwlVWlu3.js → blender.command-B0s3Af-m.js} +1 -1
- package/dist/assets/{board-guides-BDt1DXyh.js → board-guides-5y4zeqX7.js} +1 -1
- package/dist/assets/{bridge.command-u0LgYfz-.js → bridge.command-DQfhUNFq.js} +3 -3
- package/dist/assets/{browserAll-BfjPE8R_.js → browserAll-Dbf4aGgB.js} +1 -1
- package/dist/assets/{build-player.document-o59wHyIW.js → build-player.document-Bd0u1g-Y.js} +1 -1
- package/dist/assets/{build-profiles.document-Bxyok6yZ.js → build-profiles.document-B7WkqaZ6.js} +1 -1
- package/dist/assets/{build-progress.status-CznZMxgz.js → build-progress.status-D2GyM7T5.js} +1 -1
- package/dist/assets/{build-session-CHF6pdTS.js → build-session-urvplcJ_.js} +1 -1
- package/dist/assets/{build.action-Chz0Qrtm.js → build.action-CY_qJBby.js} +1 -1
- package/dist/assets/{build.command-D94Ab-02.js → build.command-Bql81_76.js} +1 -1
- package/dist/assets/{build.header-C5FT1_tz.js → build.header-BWEm5PxX.js} +1 -1
- package/dist/assets/{build.menu--4uTV4EJ.js → build.menu-Drj27927.js} +1 -1
- package/dist/assets/{build.service-B2RJsSBc.js → build.service-UkGk8Uw_.js} +1 -1
- package/dist/assets/{camera-BP5zUr-x.js → camera-DjlldTcH.js} +1 -1
- package/dist/assets/{camera-runtime.inspector-DAOn2O45.js → camera-runtime.inspector-Brr2VKtr.js} +1 -1
- package/dist/assets/{canvas-design-mount-f1psr6zi.js → canvas-design-mount-qDZm4PWb.js} +3 -3
- package/dist/assets/{canvas-entry-runtime-BNKkUKUz.js → canvas-entry-runtime-C5mQcqUX.js} +2 -2
- package/dist/assets/{canvas-preview-frames--QBGWV8p.js → canvas-preview-frames-CKeTiNdf.js} +1 -1
- package/dist/assets/{canvas-story-capture.service-CjdZE_Nc.js → canvas-story-capture.service-DwdCXNcT.js} +2 -2
- package/dist/assets/{capability-coverage-DHlcB_NJ.js → capability-coverage-CNP_jAZY.js} +1 -1
- package/dist/assets/{collaboration-presence-6Qm6d2lo.js → collaboration-presence-DkEqt3Gz.js} +1 -1
- package/dist/assets/{collider-C7R2umDP.js → collider-bbRSmral.js} +1 -1
- package/dist/assets/{component-board.service-CHhoEaSV.js → component-board.service-07TWRm-7.js} +2 -2
- package/dist/assets/{component-board.service-DPwh4eNK.js → component-board.service-BgVIeVii.js} +2 -2
- package/dist/assets/{component-board.service-CQxbkyBZ.js → component-board.service-BtSG5scd.js} +2 -2
- package/dist/assets/{component-contracts.service-CjYVi6Tm.js → component-contracts.service-DjLxfaIH.js} +1 -1
- package/dist/assets/{component-instance-root-Tn61X_7Z.js → component-instance-root-MaXT-9eH.js} +1 -1
- package/dist/assets/{component-verbs.command-DOLahKnV.js → component-verbs.command-DAe5nFLA.js} +1 -1
- package/dist/assets/{component-verbs.service-CRA4XKmc.js → component-verbs.service-DdkUX8_s.js} +1 -1
- package/dist/assets/{config-CkaPMHMb.js → config-D6y2yi9i.js} +2 -2
- package/dist/assets/{configurations-2Svtw6qL.js → configurations-B3CK604j.js} +1 -1
- package/dist/assets/{connection.status-CK067nrJ.js → connection.status-BCz9SCph.js} +1 -1
- package/dist/assets/{constraints.inspector-DstMUoZq.js → constraints.inspector-ZPW1YgsY.js} +1 -1
- package/dist/assets/{content-bounds-YVICdCNy.js → content-bounds-CIrrm5u0.js} +1 -1
- package/dist/assets/{contract-system-adapters-DGSvuYKd.js → contract-system-adapters-Da68ESRl.js} +1 -1
- package/dist/assets/{coverage.service-CoFK38ZR.js → coverage.service-DtjtcbGO.js} +1 -1
- package/dist/assets/{create-runtime-BpI4bU0u.js → create-runtime-DYCcEzf_.js} +1 -1
- package/dist/assets/{curve-DKKlVD4D.js → curve-XZVLp9Px.js} +1 -1
- package/dist/assets/{data-asset-VnV8SP9z.js → data-asset-C9QeMYQ6.js} +1 -1
- package/dist/assets/{data-ref-C3bJM6eR.js → data-ref-Dwd_nMTi.js} +1 -1
- package/dist/assets/{debug-bridge-Dt0jlOEB.js → debug-bridge-CmGhy30u.js} +1 -1
- package/dist/assets/{debug-registry-CzOk-_B9.js → debug-registry-7glJb2_c.js} +1 -1
- package/dist/assets/{deferred-ingest-play-D9BvhZe1.js → deferred-ingest-play-CU5GjqVu.js} +2 -2
- package/dist/assets/{design-time-canvas-mount-Di8PG4_B.js → design-time-canvas-mount-DD8OYdJx.js} +2 -2
- package/dist/assets/{design-time-layers-DTSbNUpn.js → design-time-layers-C4EHX2H1.js} +1 -1
- package/dist/assets/{design-time-mount.service-DBZjhq0E.js → design-time-mount.service-Bex5nxbX.js} +2 -2
- package/dist/assets/{design-time-mount.service-Ctu51OJI.js → design-time-mount.service-C-E_So2G.js} +2 -2
- package/dist/assets/{design-time-react-mount-BGAlVY7c.js → design-time-react-mount-BfS83T5B.js} +1 -1
- package/dist/assets/{document-preview-three-Chm2djth.js → document-preview-three-Br2Q34Dm.js} +1 -1
- package/dist/assets/{dom-authoring-adapter-DQtDXsVk.js → dom-authoring-adapter-uYyXOnRm.js} +1 -1
- package/dist/assets/{draco3d-RLlIF__o.js → draco3d-DxNmfhHs.js} +1 -1
- package/dist/assets/{edit-mode-audio.service-B_iqGJgI.js → edit-mode-audio.service-DE_pn_MR.js} +1 -1
- package/dist/assets/{edit-mode-authoring-CpCwKmxw.js → edit-mode-authoring-8sn7p4nG.js} +1 -1
- package/dist/assets/{edit-mode-networking.service-hlvh-I30.js → edit-mode-networking.service-BXuBlovn.js} +1 -1
- package/dist/assets/{editor-api-DTK-Dzhg.js → editor-api-BNcg9nJy.js} +1 -1
- package/dist/assets/{editor-layers-Cr7_OURc.js → editor-layers-D3afd2Rj.js} +1 -1
- package/dist/assets/{editor-shell-store-02yQ59Xe.js → editor-shell-store-BNIOyldX.js} +1 -1
- package/dist/assets/{entity-object-BI6v1FBv.js → entity-object-DC80r4hW.js} +1 -1
- package/dist/assets/{extend-Dp46wu5_.js → extend-OjmwIbqx.js} +1 -1
- package/dist/assets/{fork-menu-B9DCMWGg.js → fork-menu-CPdiffHY.js} +1 -1
- package/dist/assets/{frame-debugger-store-D_j3N7qI.js → frame-debugger-store-CYTSL3AX.js} +1 -1
- package/dist/assets/{game-contract-seams-BJlyuEmz.js → game-contract-seams-WtNxnhc2.js} +1 -1
- package/dist/assets/{game-css-scope-transform-CP9qBDZL.js → game-css-scope-transform-C73qdewG.js} +1 -1
- package/dist/assets/{game-document.service-CHa3dUwK.js → game-document.service-CF7EnKbN.js} +1 -1
- package/dist/assets/{game-eval.command-CB7ao_pK.js → game-eval.command-BcAACfLM.js} +1 -1
- package/dist/assets/{game-module-access-BPKiG-Qf.js → game-module-access-CTzw5tN5.js} +1 -1
- package/dist/assets/{game-network-Bx7DaYNP.js → game-network-CbiXm5Hs.js} +3 -3
- package/dist/assets/{gameplay-export-DQZV_3Jt.js → gameplay-export-DSGl2k8q.js} +1 -1
- package/dist/assets/{gameplay-replay-VbrF8pHA.js → gameplay-replay-DCXlXrS2.js} +1 -1
- package/dist/assets/{gameplay.command-Jm3lfo6r.js → gameplay.command-YgXYsN_0.js} +1 -1
- package/dist/assets/{generation-jobs-D7p3x7Wz.js → generation-jobs-BEJk23Cn.js} +1 -1
- package/dist/assets/{generation.service-Ddb6kc9b.js → generation.service-Dt9gsKXC.js} +1 -1
- package/dist/assets/{generations-C12gZ_9u.js → generations-CqmkgtNO.js} +1 -1
- package/dist/assets/{generations.status-BH3SvTwM.js → generations.status-BULr7x14.js} +1 -1
- package/dist/assets/{hierarchy-marks-CttC7k4I.js → hierarchy-marks-Br83xItv.js} +1 -1
- package/dist/assets/{hosted-asset-materialization-F_emeF9w.js → hosted-asset-materialization-WupFrE9d.js} +1 -1
- package/dist/assets/{index-BqsqNI-Q.js → index-BVGC2p08.js} +1 -1
- package/dist/assets/{index-Cu3UcP7g.js → index-BliygjwA.js} +1 -1
- package/dist/assets/{index-C2GXej5w.js → index-C3IEVwzA.js} +7 -7
- package/dist/assets/{index-CFIS_eVm.js → index-CEmW3p1F.js} +1 -1
- package/dist/assets/{index-NpxPcVFJ.js → index-D6MeIqnu.js} +2 -2
- package/dist/assets/{index-DAnX8ncW.js → index-D6Q6Xs1B.js} +1 -1
- package/dist/assets/{index-iqPtSfBr.js → index-DoeV0FPm.js} +1 -1
- package/dist/assets/{index-DEzmNjef.js → index-WZhfg_YR.js} +1 -1
- package/dist/assets/{index-DTfaSYH-.js → index-tJevWYyz.js} +1 -1
- package/dist/assets/{inference-diagnostics-BSkERYeU.js → inference-diagnostics-NkV5meYv.js} +1 -1
- package/dist/assets/{ingest-boot-viewport-B-QFBJ6g.js → ingest-boot-viewport-BdEJB2uM.js} +1 -1
- package/dist/assets/{ingest-siblings-TkCRCUR2.js → ingest-siblings-DG94tSnt.js} +1 -1
- package/dist/assets/{ingest-source-persistence-DN9gOuDo.js → ingest-source-persistence-COuafLsy.js} +1 -1
- package/dist/assets/{ingest.service-DgsuOl-Y.js → ingest.service-pguAbjpd.js} +1 -1
- package/dist/assets/{inspect-GGdi3GBl.js → inspect-B9obej0m.js} +1 -1
- package/dist/assets/instances.command-C8fTOWWQ.js +1 -0
- package/dist/assets/{json-history-resource-DK3ag8SZ.js → json-history-resource-BZ-2HcB1.js} +1 -1
- package/dist/assets/{layered-pick-D77cWzxT.js → layered-pick-BOuHhOMD.js} +1 -1
- package/dist/assets/{light-DiamC2JI.js → light-BhobQdgv.js} +1 -1
- package/dist/assets/{live-project-verbs-DOqc6h6B.js → live-project-verbs-BzcIAa92.js} +1 -1
- package/dist/assets/{machine.document-C2l_mbNg.js → machine.document-C6KtiVU9.js} +1 -1
- package/dist/assets/{machines.finder-DqBxMHcq.js → machines.finder-C4YZxgo1.js} +1 -1
- package/dist/assets/{material-Cm1aagBR.js → material-CGLOFkhv.js} +1 -1
- package/dist/assets/{material-factory-CT91l-Ev.js → material-factory-B96Hx0uM.js} +1 -1
- package/dist/assets/{mesh-BodYg1_O.js → mesh-CXz1SjeE.js} +1 -1
- package/dist/assets/{model-asset-sections.service-D398OcWX.js → model-asset-sections.service-ByQd6kq8.js} +1 -1
- package/dist/assets/{model-inspection-BHqQizA4.js → model-inspection-vhAtpqOr.js} +1 -1
- package/dist/assets/{model-thumbnail-jXI7g9ER.js → model-thumbnail-DKy7aBw4.js} +1 -1
- package/dist/assets/{models.finder-LkuwJt6Z.js → models.finder-BQaOk9z2.js} +1 -1
- package/dist/assets/{module-mode-5iM4X5lF.js → module-mode-Bvwyb8ON.js} +2 -2
- package/dist/assets/{mount-canvas-ingest-root-DddJwDVE.js → mount-canvas-ingest-root-Q_xSSTn4.js} +2 -2
- package/dist/assets/{mount-dom-ingest-root-D-mEaGz2.js → mount-dom-ingest-root-cTeFpCss.js} +2 -2
- package/dist/assets/{mount-ingest-root-BgDl45i7.js → mount-ingest-root-CzxqWdcJ.js} +2 -2
- package/dist/assets/{mount-manifest-D9h72_q7.js → mount-manifest-DpGIVIqZ.js} +1 -1
- package/dist/assets/{mount-three-ingest-root-B-i4v5Ya.js → mount-three-ingest-root-DkATi7dX.js} +1 -1
- package/dist/assets/{mounted-authoring-BpgoynXg.js → mounted-authoring-_iXvG_-y.js} +1 -1
- package/dist/assets/{mounted-story-viewport-source-Bqq08qfZ.js → mounted-story-viewport-source-B3xRhvGK.js} +1 -1
- package/dist/assets/{native-debug-module-aC08xCgN.js → native-debug-module-sgSgwV_6.js} +1 -1
- package/dist/assets/{navigation-CAr9MQnP.js → navigation-C7N4F7fm.js} +1 -1
- package/dist/assets/{navmesh.menu-BfnXCMzh.js → navmesh.menu-GjmPbNmN.js} +1 -1
- package/dist/assets/{navmesh.service-9QqjjbWF.js → navmesh.service-C6OOgYOg.js} +1 -1
- package/dist/assets/network-observer.service-BYkKwX6g.js +1 -0
- package/dist/assets/{network.utility-CUDyuLEP.js → network.utility-DFVzAD3R.js} +1 -1
- package/dist/assets/{object3d-document-session-registry-vDnhy6lX.js → object3d-document-session-registry-yZYSi8a_.js} +2 -2
- package/dist/assets/{oid-transform-RLdqn59a.js → oid-transform-B2rTU5dE.js} +1 -1
- package/dist/assets/{particles-9EXp1_Pi.js → particles-WV7nuue8.js} +1 -1
- package/dist/assets/{pixi-authoring-adapter-gCRTOklw.js → pixi-authoring-adapter-DYxqfbtY.js} +1 -1
- package/dist/assets/{pixi-live-write-target-BcayVchp.js → pixi-live-write-target-BMM9gTYX.js} +1 -1
- package/dist/assets/{play.command-BnpSiUmx.js → play.command-Cw2b6MmY.js} +2 -2
- package/dist/assets/{presentation-D6_yw1nT.js → presentation-m9EXagyv.js} +1 -1
- package/dist/assets/{product-DIs-l3CO.js → product-DY3NaL48.js} +1 -1
- package/dist/assets/{profiler.action-CmUmiNSt.js → profiler.action-AlWZaom2.js} +1 -1
- package/dist/assets/{profiler.menu-D4S9vTgT.js → profiler.menu-C2HG4gW2.js} +1 -1
- package/dist/assets/{profiler.utility-CbCfMOpc.js → profiler.utility-xcXtWI8M.js} +1 -1
- package/dist/assets/{project-authoring-session-B7m5fapk.js → project-authoring-session-COpHfmqX.js} +2 -2
- package/dist/assets/{properties-bone-constraints.inspector-rBOIyHQ8.js → properties-bone-constraints.inspector-CYTy1c6d.js} +1 -1
- package/dist/assets/{properties-bone.inspector-CgI-JdRg.js → properties-bone.inspector-srx9O7Di.js} +1 -1
- package/dist/assets/{properties-collection.inspector-Dd94oxT7.js → properties-collection.inspector-Dz-z_Q4f.js} +1 -1
- package/dist/assets/{properties-constraints.inspector-42yDXt2c.js → properties-constraints.inspector-CU09Fq6P.js} +1 -1
- package/dist/assets/{properties-data.inspector-FhbaYJwl.js → properties-data.inspector-Cgt6CKvm.js} +1 -1
- package/dist/assets/{properties-material.inspector-BGUBjg_W.js → properties-material.inspector-jDhkNUDR.js} +1 -1
- package/dist/assets/{properties-modifiers.inspector-B3oGhvi7.js → properties-modifiers.inspector-bcEjEW5a.js} +1 -1
- package/dist/assets/{properties-object.inspector-CqWBSVON.js → properties-object.inspector-C7u_OCfm.js} +1 -1
- package/dist/assets/{properties-output.inspector-BZf7mteM.js → properties-output.inspector-CRJOBoRT.js} +1 -1
- package/dist/assets/{properties-particles.inspector-Bs53y1Sm.js → properties-particles.inspector-BQRy6PnC.js} +1 -1
- package/dist/assets/{properties-physics.inspector-CNUC8bl7.js → properties-physics.inspector-kcBc7wis.js} +1 -1
- package/dist/assets/{properties-render.inspector-By1QWQfv.js → properties-render.inspector-w2VKl5a0.js} +1 -1
- package/dist/assets/{properties-scene.inspector-DIXtsydv.js → properties-scene.inspector-DDZCO3Og.js} +1 -1
- package/dist/assets/{properties-texture.inspector-D479AUy3.js → properties-texture.inspector-Cz-imXaI.js} +1 -1
- package/dist/assets/{properties-view-layer.inspector-VaD770eE.js → properties-view-layer.inspector-Lnj3xdEk.js} +1 -1
- package/dist/assets/{properties-world.inspector-sfBNUA8n.js → properties-world.inspector-DyeshJEW.js} +1 -1
- package/dist/assets/{r3f-design-session-DlpToDaY.js → r3f-design-session-b0R___Ze.js} +2 -2
- package/dist/assets/{r3f-physics-binding-B6BtiPXD.js → r3f-physics-binding-BeHcRXcx.js} +1 -1
- package/dist/assets/{r3f-source-authoring-adapter-BEXkKajQ.js → r3f-source-authoring-adapter-DIKg1AbO.js} +1 -1
- package/dist/assets/{react-canvas-navigation-DqDUslGE.js → react-canvas-navigation-DBex6opA.js} +1 -1
- package/dist/assets/{react-inspector.service-Dz_MaoFT.js → react-inspector.service--CnSg1fP.js} +1 -1
- package/dist/assets/{react-story-board-DfgTHgRH.js → react-story-board-Bfwrt56k.js} +1 -1
- package/dist/assets/{react-three-rapier.esm-D0XnU-d2.js → react-three-rapier.esm-CWt9552l.js} +1 -1
- package/dist/assets/{react-world-authoring-adapter-4Vvo-2e6.js → react-world-authoring-adapter-Dh-F6SHg.js} +1 -1
- package/dist/assets/{realm-services-Da4zOGQS.js → realm-services-CSKI9wWm.js} +1 -1
- package/dist/assets/{reflection-probe-capture.inspector-C1bbnrCP.js → reflection-probe-capture.inspector-DTAmb51-.js} +1 -1
- package/dist/assets/{registry-Bsyj7dm8.js → registry-Djlt4lA_.js} +1 -1
- package/dist/assets/{relative-import-specifier-YRCfVsuM.js → relative-import-specifier-a5wd_Gs0.js} +1 -1
- package/dist/assets/{render-env-BRTFhCY7.js → render-env-DgCta-cM.js} +1 -1
- package/dist/assets/{render-features-bb8ubx0s.js → render-features-D9IRNSOg.js} +1 -1
- package/dist/assets/{render-settings-Fqf-jvIQ.js → render-settings-K5ykAjto.js} +1 -1
- package/dist/assets/{resolve-three-w4CIrUSm.js → resolve-three-QtDpVk2v.js} +3 -3
- package/dist/assets/{root-seam-contract-DmnuV-sF.js → root-seam-contract-BAJnkEp5.js} +1 -1
- package/dist/assets/{run-selection-Dr_bykfM.js → run-selection-BmhnFN7A.js} +1 -1
- package/dist/assets/{scene-capture-Bbzc8yKP.js → scene-capture-CPjMfWPb.js} +1 -1
- package/dist/assets/{scene-document.service-DYIG75Nq.js → scene-document.service-lXXx86ZY.js} +2 -2
- package/dist/assets/{scene-framing-B-_FP6Ut.js → scene-framing-DAsS4rid.js} +1 -1
- package/dist/assets/{seeded-random-6Boua3gU.js → seeded-random-BiOJCjoh.js} +1 -1
- package/dist/assets/{setup-renderer-BQyZA260.js → setup-renderer-BLHf2o5h.js} +1 -1
- package/dist/assets/{source-object3d-authoring-adapter-DL9de1Va.js → source-object3d-authoring-adapter-DCTt6xT1.js} +1 -1
- package/dist/assets/{source-persistence-backend-DewVkjlh.js → source-persistence-backend-BizSv5Yp.js} +1 -1
- package/dist/assets/{stage-keyboard-HJnRMUB0.js → stage-keyboard-9hdCldtL.js} +1 -1
- package/dist/assets/{stage-overlay-set-sWfIFF0c.js → stage-overlay-set-DK8sGIBe.js} +1 -1
- package/dist/assets/{stage-presence-markers-DO_0suOG.js → stage-presence-markers-Bu19oyb3.js} +1 -1
- package/dist/assets/{stage-transform-tools-BlKxngg6.js → stage-transform-tools-BWs1sSub.js} +1 -1
- package/dist/assets/{standard-viewport-dressing-BB3oarbU.js → standard-viewport-dressing-3h78wiJH.js} +1 -1
- package/dist/assets/{state-watch.action-EzcFvsFk.js → state-watch.action-X_hXCJzX.js} +1 -1
- package/dist/assets/{state-watch.menu-kxlh1uyM.js → state-watch.menu-B33dSJ7V.js} +1 -1
- package/dist/assets/{state-watch.utility-DOU5aewm.js → state-watch.utility-CS3p0R5B.js} +1 -1
- package/dist/assets/{story-capture-CR33MAlM.js → story-capture-BBg5pgKT.js} +1 -1
- package/dist/assets/{story-documents-BqtBYJU5.js → story-documents-q5m3c_wY.js} +1 -1
- package/dist/assets/{story-documents.service-PN__2Vwy.js → story-documents.service-BtNfViZy.js} +1 -1
- package/dist/assets/{story-documents.service-rQ_Ls1gK.js → story-documents.service-Dwsqu7bW.js} +1 -1
- package/dist/assets/{story-media-presence-C9WsqvF1.js → story-media-presence-hCARiVUc.js} +1 -1
- package/dist/assets/{story-pixi-preview-Ct670XW9.js → story-pixi-preview-CMwSxREi.js} +1 -1
- package/dist/assets/{story-presentation-Upbu0VNj.js → story-presentation--uk_0JJX.js} +1 -1
- package/dist/assets/{story-three-preview-CxTd9JLC.js → story-three-preview-lkPW7Mla.js} +2 -2
- package/dist/assets/{studio-environment-Cd4gZ19E.js → studio-environment-ByTLZM6a.js} +1 -1
- package/dist/assets/{surface-state-BC0XhEhr.js → surface-state-GPRTCWsc.js} +1 -1
- package/dist/assets/{syntactic-prop-specs-B6T1puzS.js → syntactic-prop-specs-BZ2T0Dju.js} +1 -1
- package/dist/assets/{team-playtest.service-fSMY4xMj.js → team-playtest.service-COi4KAFM.js} +1 -1
- package/dist/assets/{three-Dn9l05gu.js → three-B95eDXwg.js} +1 -1
- package/dist/assets/{three-authoring-adapter-CqVDkiLM.js → three-authoring-adapter-mRgWq9dH.js} +1 -1
- package/dist/assets/three-authoring.service-DYHH4MQS.js +2 -0
- package/dist/assets/{three-ingest-runtime-CFMYasF0.js → three-ingest-runtime-CSUpmThV.js} +1 -1
- package/dist/assets/{three-integration-Bh7cgwSw.js → three-integration-DPryzrWM.js} +2 -2
- package/dist/assets/three-integration.service-Bxn19GhH.js +1 -0
- package/dist/assets/{three-projection-core-Fgwnmm21.js → three-projection-core-C6Fuom2Z.js} +1 -1
- package/dist/assets/{three-state-gQo3EazJ.js → three-state-BjGdd42C.js} +1 -1
- package/dist/assets/{three-story-capture.service-jugeCDMf.js → three-story-capture.service-BguWqBuW.js} +2 -2
- package/dist/assets/{three-story-model-DDgoS41c.js → three-story-model-BcQRzfG1.js} +1 -1
- package/dist/assets/{three-viewport-presentation-DackTu4a.js → three-viewport-presentation-PE5VLtVN.js} +1 -1
- package/dist/assets/{transform-mode-request-Dlk8rujB.js → transform-mode-request-DrXkGR49.js} +1 -1
- package/dist/assets/{transport-strip-YFt7ZjmA.js → transport-strip-B9M8lv_7.js} +1 -1
- package/dist/assets/transport.header--skZwiFx.js +1 -0
- package/dist/assets/{tuples-BGWQyZrY.js → tuples-B5xEbsBJ.js} +1 -1
- package/dist/assets/{ui-board-document-wsRl7Yf9.js → ui-board-document-Bp7xB2i3.js} +2 -2
- package/dist/assets/{user-data-C7ZxvlAw.js → user-data-BCzozK6p.js} +1 -1
- package/dist/assets/{utility-view-state-DIdFDVi_.js → utility-view-state-LNjKjbXt.js} +1 -1
- package/dist/assets/{viewport-door-xlONSuW6.js → viewport-door-876vvdh-.js} +1 -1
- package/dist/assets/{viewport-root-presentation-CAuRhbzi.js → viewport-root-presentation-DjeK1HDN.js} +1 -1
- package/dist/assets/{viewport-surface-status-BZEtUgIK.js → viewport-surface-status-Cu-MsQ9Z.js} +1 -1
- package/dist/assets/{webworkerAll-lUo1f2sd.js → webworkerAll-Cby9Al9A.js} +1 -1
- package/dist/assets/{workspace-arrangement-Zhi2X4Jp.js → workspace-arrangement-DTpl9s7F.js} +1 -1
- package/dist/assets/{world-documents-D__7dXZa.js → world-documents-DYaA8YwM.js} +1 -1
- package/dist/assets/{world-root-stage-binding-l_c1d3oP.js → world-root-stage-binding-pOiqC5Pw.js} +1 -1
- package/dist/assets/{xstate-animation-binding-Bi9Vve8M.js → xstate-animation-binding-Dlgd2kK4.js} +1 -1
- package/dist/assets/{xstate-animation-meta-Bqeos4Cl.js → xstate-animation-meta-OTs0c50R.js} +1 -1
- package/dist-node/cli.js +16 -16
- package/package.json +16 -16
- package/dist/assets/InspectorObjectPreview-ujIlh9jg.js +0 -1
- package/dist/assets/Object3DDocumentViewport-eBsy48lc.js +0 -2
- package/dist/assets/StageHost-CguREjuZ.js +0 -2
- package/dist/assets/autoplay.service-DeZe2vAE.js +0 -1
- package/dist/assets/instances.command-B3MdRAev.js +0 -1
- package/dist/assets/network-observer.service-C4DDtQHI.js +0 -1
- package/dist/assets/three-authoring.service-DwTkH66T.js +0 -2
- package/dist/assets/three-integration.service-CVsHdd9k.js +0 -1
- package/dist/assets/transport.header-DuWl93MH.js +0 -1
package/dist/assets/{design-time-react-mount-BGAlVY7c.js → design-time-react-mount-BfS83T5B.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as it,a as at}from"./design-time-layers-
|
|
1
|
+
import{r as it,a as at}from"./design-time-layers-C4EHX2H1.js";import{fb as st,ba as lt,gb as ut,gc as dt,Z as E,gd as mt,ge as Y,bY as q,dI as U,as as ct,eL as z,at as $,dw as pt,cP as ft,gf as H}from"./index-C3IEVwzA.js";import{h as ht,d as gt,g as bt}from"./react-story-board-Bfwrt56k.js";import{C as wt}from"./crash-null-boundary-v3a0uEgw.js";import{r as yt,a as St}from"./realm-services-CSKI9wWm.js";import{r as It}from"./react-root-BHA-cdrW.js";import{m as Pt}from"./StoryPreviewMount-CLfDAbBH.js";import{c as Rt,s as vt}from"./story-presentation--uk_0JJX.js";import{d as Mt}from"./three-story-model-BcQRzfG1.js";import{c as Ct}from"./inspect-B9obej0m.js";import{R as J}from"./react-world-authoring-adapter-Dh-F6SHg.js";import"./root-stacking-BEd9ZvxC.js";import"./edit-mode-authoring-8sn7p4nG.js";import"./design-time-mount-registry-DUpXCg1U.js";import"./game-surface-defaults-D8S4cRxi.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";import"./canvas-entry-runtime-C5mQcqUX.js";import"./debug-registry-7glJb2_c.js";import"./three-ingest-runtime-CSUpmThV.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./EffectComposer-BEAt0PtQ.js";import"./CopyShader-BzTUYzf6.js";import"./ShaderPass-DTnDQXm0.js";import"./Pass-D1MRT672.js";import"./CSS3DRenderer-BsAqfavI.js";import"./inference-diagnostics-NkV5meYv.js";import"./board-guides-5y4zeqX7.js";import"./relative-import-specifier-a5wd_Gs0.js";import"./story-arg-descriptors-Ek86ExX7.js";import"./writer-tw6EcuVO.js";function Et(e){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="svg"||o==="SVG"||o==="PICTURE")return!0;const r=getComputedStyle(e);if(r.visibility==="hidden"||r.display==="none")return!1;if(xt(r.backgroundColor)||r.backgroundImage&&r.backgroundImage!=="none"||r.boxShadow&&r.boxShadow!=="none"||r.borderStyle!=="none"&&r.borderStyle!==""&&(parseFloat(r.borderTopWidth)>0||parseFloat(r.borderRightWidth)>0||parseFloat(r.borderBottomWidth)>0||parseFloat(r.borderLeftWidth)>0))return!0;for(const n of e.childNodes)if(n.nodeType===Node.TEXT_NODE&&(n.textContent??"").trim()!=="")return!0;return!1}function xt(e){if(!e||e==="transparent")return!1;const o=/^rgba\(\s*[\d.]+\s*,\s*[\d.]+\s*,\s*[\d.]+\s*,\s*([\d.]+)\s*\)$/.exec(e);return o?parseFloat(o[1])>0:!0}function Nt(e,o=r=>r.getBoundingClientRect()){const r=o(e),n=e.offsetWidth;if(r.width<=0||n<=0)return null;const s=r.width/n;let d=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY,y=Number.NEGATIVE_INFINITY;for(const p of e.querySelectorAll("*")){if(!Et(p))continue;const m=o(p);m.width<=0||m.height<=0||(d=Math.min(d,(m.left-r.left)/s),c=Math.min(c,(m.top-r.top)/s),i=Math.max(i,(m.right-r.left)/s),y=Math.max(y,(m.bottom-r.top)/s))}return i<=d||y<=c?null:{x:d,y:c,width:i-d,height:y-c}}let x=!1;function kt(e,o){if(!e)return;H({adapter:e,seam:"editor.stories.apply",stage:"effect",detail:`the design board applied portable story ${o}`,run:()=>e.stories.apply(o,o)});const r=e.selection;r&&H({adapter:e,seam:"editor.selection.set",stage:"effect",detail:`the design board selected portable story ${o}`,run:()=>r.set([o])})}let X=!1;async function Ft(){if(X)return;X=!0;const e=bt();if(!(e.width!==null||e.height!==null))try{const o=await ft("volter.project.json");if(!o)return;const r=JSON.parse(o),n=r.resolution?.width,s=r.resolution?.height;if(typeof n!="number"||typeof s!="number"||n<64||s<64||n>4096||s>4096)return;gt(n,s)}catch{}}function Tt(e,o){return{id:e,surface:"dom",description:void 0,adapter:{type:"builtin",identity:"dom",surface:"dom"},entry:o,zOrder:0,pausable:!0,loop:"gated"}}async function At(e,o){try{const r=await St(o,pt());return{ok:!0,Entry:await It(e,r)}}catch(r){return{ok:!1,error:r}}}async function we(e,o,r){const{projectRootPath:n,store:s,activationDocumentId:d}=r;x?x=!1:await st({rootPath:n});const c=lt(),i=Mt(c),y=e.path,p=y?await At(Tt(e.worldId,y),n):{ok:!1,error:new Error(`design-time react layer "${e.worldId}": no \`entry\` declared — nothing to mount.`)},m=p.ok?ut(p.Entry):void 0,K=m?dt(m,e.path):null,j=i.find(g=>g.id===K?.id)??null;if(i.length>0){const g=it(n,e.worldId),P=i.find(t=>t.id===g)??j??i[0];e.path&&!j&&E.warn(`[design-time-layers] React root "${e.worldId}" has no story naming its entry component${m?` "${m}"`:""} — the board opens on "${P.label}". Give a *.stories.tsx a \`meta.component\` of this root's entry component to choose its default preview.`,"authoring");let k=!1,M=null,F=null;const T=new Map,D=Rt(i);await Ft();const l=ht(o,i.map(t=>({id:t.id,label:t.label,modulePath:t.modulePath,...t.title?{title:t.title}:{},parameters:t.parameters,...t.globals?{globals:t.globals}:{},...t.viewportLocked!==void 0?{viewportLocked:t.viewportLocked}:{}})),P.id,(t,u)=>{F=u,kt(M,t)},vt(i,D)),_=t=>{if(k)return;const u=l.frames.get(t.id);if(!u)return;if(t.parameters?.layout==="fullscreen"){l.setMeasuredFrame(t.id,null);return}const a={width:u.content.offsetWidth,height:u.content.offsetHeight},h=a.width>0?Nt(u.content):null;if(!h){l.setMeasuredFrame(t.id,null);return}const C=8,S=48;let b=Math.max(0,h.x-C),w=Math.max(0,h.y-C),R=Math.min(a.width,h.x+h.width+C),v=Math.min(a.height,h.y+h.height+C);if(R-b<S){const A=(S-(R-b))/2;b=Math.max(0,b-A),R=Math.min(a.width,b+S)}if(v-w<S){const A=(S-(v-w))/2;w=Math.max(0,w-A),v=Math.min(a.height,w+S)}if(R-b>=a.width*.9&&v-w>=a.height*.9){l.setMeasuredFrame(t.id,null);return}l.setMeasuredFrame(t.id,{frame:{width:Math.round(R-b),height:Math.round(v-w)},mount:a,offset:{x:Math.round(b),y:Math.round(w)}})},rt=t=>{setTimeout(()=>_(t),0),setTimeout(()=>_(t),1e3)},G=async(t,u=t.args)=>{const f=l.frames.get(t.id)?.content;if(f){try{const a=await Pt(f,t.modulePath,t.name,t.Component,u);if(!a)return;if(k){a.unmount();return}T.set(t.id,a),l.clearError(t.id),rt(t)}catch(a){const h=q(a);l.setError(t.id,h),E.error(`[design-time-layers] React root "${e.worldId}" failed mounting portable story "${t.name}": ${h}`,"authoring")}s.notifyIngestEdit()}};await Promise.all(i.map(t=>G(t))),l.setNote(mt().note),g&&l.activate(P.id,!0);const L=new Map(i.map(t=>[t.id,t])),nt={tagName:"DIV",get children(){return l.activeContent().children},getAttribute:t=>o.getAttribute(t),getBoundingClientRect:()=>o.getBoundingClientRect(),get style(){return o.style},get textContent(){return l.activeContent().textContent}},O=await Y();return M=new J(nt,s,{...O?{writeBackend:O}:{},designTokens:()=>{const t=l.activeContent(),u=t.closest?.("[data-volter-game-styles]")??t.querySelector?.("[data-volter-game-styles]")??t;return Ct(getComputedStyle(u))},assetRoot:o,portableStories:i.map(t=>({id:t.id,label:t.label,args:t.args,name:t.name,modulePath:t.modulePath})),portableHierarchy:D,activePortableStoryId:P.id,onPortableStoryApplied:t=>{const u=(t?L.get(t):null)??P;at(n,e.worldId,u.id);const f=F;F=null,l.activate(u.id,f===null||f==="zoom")},onPortableStoryArgsChanged:(t,u)=>{const f=L.get(t);f&&G(f,u).catch(a=>{E.error(`[design-time-layers] React root "${e.worldId}" failed updating portable story "${f.name}" args: ${q(a)}`,"authoring")})}}),d&&requestAnimationFrame(()=>U(d)),{adapter:M,dispose:()=>{k=!0,M.disposeReactRootAdapter();for(const t of T.values())t.unmount();T.clear(),l.dispose()}}}if(!p.ok)throw p.error instanceof Error?p.error:new Error(String(p.error));E.warn(`[design-time-layers] React root "${e.worldId}" has no portable CSF preview — the project declares no UI stories. Add a *.stories.tsx; give it a \`meta.component\` of this root's entry component${m?` (${m}, ${e.path})`:""} to make it this root’s default preview. Falling back to rendering the entry bare.`,"authoring");const Q=p.Entry,{createElement:B,createRoot:tt,flushSync:et}=await yt(),N=tt(o),ot=g=>{N.render(B(wt,{key:"__entry__",onCaught:g,children:B(Q)}))};let I=null;if(et(()=>{ot(g=>{I=g})}),I!==null)throw N.unmount(),I instanceof Error?I:new Error(String(I));const V=await Y(),W=new J(o,s,{...V?{writeBackend:V}:{}});return d&&requestAnimationFrame(()=>U(d)),{adapter:W,dispose:()=>{W.disposeReactRootAdapter(),N.unmount()}}}function Z(){return $().map(e=>e.ok?e.stories.map(o=>o.id).join(","):`!${e.modulePath}`).join("|")}function ye(e){let o=z()?$():null,r=o===null?null:Z(),n=null;const s=ct(()=>{if(!z())return;const d=$(),c=Z();if(o===null){o=d,r=c;return}const i=c!==r;o=d,r=c,i&&(n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,x=!0,e(),setTimeout(()=>{x=!1},0)},250))});return()=>{n!==null&&clearTimeout(n),n=null,s()}}export{we as mountReactDesignLayer,ye as reprojectWhenStoriesRepublish};
|
package/dist/assets/{document-preview-three-Chm2djth.js → document-preview-three-Br2Q34Dm.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as g}from"./content-bounds-
|
|
1
|
+
import{c as g}from"./content-bounds-CIrrm5u0.js";import{isEditorOwnedObject as u}from"./editor-layers-D3afd2Rj.js";import{m as x}from"./renderer-ownership-BovSEcLv.js";import{W as w}from"./three.module-BLhyNg0e.js";import{f as C}from"./scene-framing-DAsS4rid.js";import{ej as y,A as M,d9 as d,fo as s,ex as v,cj as S}from"./three.core-3arARmh6.js";import"./hierarchy-marks-Br83xItv.js";import"./workspace-arrangement-DTpl9s7F.js";import"./index-C3IEVwzA.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";function W(n){const e=[];return n.traverse(a=>{!u(a)&&a.isCamera&&e.push(a)}),e}function R(n,e){const a=[];n.traverse(r=>{r.parent&&u(r)&&a.push({object:r,parent:r.parent})});for(const{object:r}of a)r.removeFromParent();let t;try{t=g(n)}finally{for(const{object:r,parent:h}of a)h.add(r)}const o=t.filter(r=>!r.overlay&&!r.enclosure),c=C(o.map(r=>r.box)),i=new d(42,e,.01,1e5),f=c.isEmpty()?new s:c.getCenter(new s),m=c.isEmpty()?1:Math.max(.01,c.getBoundingSphere(new v).radius),p=m/Math.sin(S.degToRad(i.fov/2));return i.position.copy(f).addScaledVector(new s(1,.75,1).normalize(),p*1.15),i.lookAt(f),i.near=Math.max(.001,p-m*2.5),i.far=p+m*3,i.updateProjectionMatrix(),i.updateMatrixWorld(!0),i}function P(n,e){if(e.camera){const t=new d(e.camera.fov??42,e.width/e.height,.01,1e5);return t.position.set(e.camera.position.x,e.camera.position.y,e.camera.position.z),t.lookAt(e.camera.target.x,e.camera.target.y,e.camera.target.z),t.updateMatrixWorld(!0),t}const a=W(n);if(a.length===1){const t=a[0].clone();return t.matrixWorld.copy(a[0].matrixWorld),t.matrixWorld.decompose(t.position,t.quaternion,t.scale),t instanceof d&&(t.aspect=e.width/e.height,t.updateProjectionMatrix()),t}return R(n,e.width/e.height)}function I(n,e,a,t){e.updateMatrixWorld(!0);const l=P(n,a),o=x(new w({antialias:!0,alpha:!0,preserveDrawingBuffer:!0}));let c;try{return c=t?.(o),o.setPixelRatio(1),o.setSize(a.width,a.height,!1),o.outputColorSpace=y,o.toneMapping=M,o.setClearColor(2106411,e.background===null?0:1),o.render(e,l),o.domElement.toDataURL("image/png")}finally{c?.(),o.dispose(),o.forceContextLoss()}}export{I as captureAuthoredThreeScenePreview};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ax as y,ay as v}from"./index-
|
|
1
|
+
import{ax as y,ay as v}from"./index-C3IEVwzA.js";import{J as R,c as x}from"./json-history-resource-BZ-2HcB1.js";import{D as C,s as w,a as b,c as k,m as T}from"./react-world-authoring-adapter-Dh-F6SHg.js";import{g as p,b as u}from"./inspect-B9obej0m.js";function H(a){const e=(typeof a=="string"?a:a?.baseVal)?.trim()??"";if(e)return e.split(/\s+/)[0]}function S(a,t){if(a.id)return`${t}#${a.id}`;const e=H(a.className??"");return e?`${t}.${e}`:t}function j(a){const t=new Map;for(const[e,s]of a.nodes)t.set(e,{id:e,tag:s.object.tagName.toLowerCase(),el:s.object,parentId:s.parentId,childIds:[...s.childIds]});return{nodes:t,rootIds:[...a.rootIds]}}const g=[{prop:"color",label:"Color",type:"color"},{prop:"backgroundColor",label:"Background",type:"color"},{prop:"borderColor",label:"Border Color",type:"color"},{prop:"fontSize",label:"Font Size",type:"number"},{prop:"width",label:"Width",type:"number"},{prop:"height",label:"Height",type:"number"},{prop:"padding",label:"Padding",type:"number"},{prop:"margin",label:"Margin",type:"number"},{prop:"borderRadius",label:"Border Radius",type:"number"},{prop:"gap",label:"Gap",type:"number"},{prop:"display",label:"Display",type:"enum",options:["flex","block","none","grid"]},{prop:"textAlign",label:"Text Align",type:"enum",options:["left","center","right"]},{prop:"flexDirection",label:"Flex Direction",type:"enum",options:["row","column"]}],f="style.",M=new Map(g.map(({prop:a,type:t})=>[a,t]));class D{constructor(t,e,s){this.root=t,this.store=e;const o=e.shell.projectHistory;this.historyResource=o?new R({history:o,kind:"session-state",scope:"session",subject:{...s.journal,id:`${s.journal.id}/react-dom-edits`},displayName:"React DOM edits",capture:()=>this.captureHistoryState(),restore:async i=>{this.restoreHistoryState(i)}}):null}capabilities={transform:!1,inspectorFields:!0,persist:!1};provenance={source:"foreign",label:"live-only",detail:"Unmodified ingested React game — style edits apply for this session only and are never saved."};doc={};historyResource;projector=new C(w());snapCache=null;snapInvalidationScheduled=!1;boxEditSession=null;lockedIds=new Set;snapshot(){if(this.snapCache)return this.snapCache;this.projector.project(this.root);const t=j(this.projector);return this.snapCache=t,this.snapInvalidationScheduled||(this.snapInvalidationScheduled=!0,queueMicrotask(()=>{this.snapCache=null,this.snapInvalidationScheduled=!1})),t}nodeCount(){return this.snapshot().nodes.size}toEditorNode(t){return{id:t.id,label:S(t.el,t.tag),role:"element",kind:t.tag,parentId:t.parentId,childIds:t.childIds}}applyStyleToElement(t,e,s){t.style&&(t.style[e]=s)}recordStyleEdit(t,e,s){const o=this.doc[t]??{};o[e]=s,this.doc[t]=o}hierarchy={roots:()=>{const{nodes:t,rootIds:e}=this.snapshot();return e.map(s=>this.toEditorNode(t.get(s)))},node:t=>{const e=this.snapshot().nodes.get(t);return e?this.toEditorNode(e):null}};selection={get:()=>[...this.store.shell.selectedEntityIds],set:t=>this.store.shell.selectMultiple(t)};pickable={pick:(t,e)=>{const{nodes:s}=this.snapshot();let o=null,i=Number.POSITIVE_INFINITY,r=-1,l=-1;for(const c of s.values()){if(l++,this.lockedIds.has(c.id)||c.el.style?.pointerEvents==="none")continue;const n=c.el.getBoundingClientRect?.();if(!n||t<n.left||t>n.right||e<n.top||e>n.bottom)continue;const h=n.width*n.height;(h<i||h===i&&l>r)&&(o=c.id,i=h,r=l)}return o}};hostRect(){const t=this.root.getBoundingClientRect?.();return{left:t?.left??0,top:t?.top??0}}toHostRelative(t){const e=this.hostRect();return{x:t.left-e.left,y:t.top-e.top,width:t.width,height:t.height}}rects={rect:t=>{const s=this.snapshot().nodes.get(t)?.el.getBoundingClientRect?.();return s?this.toHostRelative(s):null},contextRects:t=>{const{nodes:e}=this.snapshot(),s=e.get(t);if(!s)return{};const o=s.parentId?e.get(s.parentId):void 0,i=o?.el.getBoundingClientRect?.(),l=(o?o.childIds:this.snapshot().rootIds).filter(d=>d!==t).map(d=>e.get(d)?.el.getBoundingClientRect?.()).filter(d=>d!=null).map(d=>this.toHostRelative(d)),c=s.el,n=c.getBoundingClientRect?.();let h;if(n){const d=y(p(c,"borderTopWidth",u))??0,I=y(p(c,"borderRightWidth",u))??0,E=y(p(c,"borderBottomWidth",u))??0,m=y(p(c,"borderLeftWidth",u))??0;h=this.toHostRelative({left:n.left+m,top:n.top+d,width:Math.max(0,n.width-m-I),height:Math.max(0,n.height-d-E)})}return{...i?{parent:this.toHostRelative(i)}:{},...l.length?{siblings:l}:{},...h?{paddingBox:h}:{}}}};colorSample={backgroundChainAt:(t,e)=>{const s=this.pickable.pick(t,e);if(!s)return null;const{nodes:o}=this.snapshot(),i=[];let r=o.get(s);for(;r;)i.push(p(r.el,"backgroundColor",u)),r=r.parentId?o.get(r.parentId):void 0;return i}};boxEdit={begin:t=>{this.historyResource?.assertCanMutate(),this.boxEditSession={id:t,touched:new Map,priorInline:new Map}},apply:(t,e)=>{this.historyResource?.assertCanMutate();const s=this.boxEditSession;if(!s||s.id!==t)return;const o=this.snapshot().nodes.get(t);if(!o)return;const i=p(o.el,"position",u),r=i==="absolute"||i==="fixed";for(const[l,c]of Object.entries(e)){const n=T(l,r);if(!n){console.warn(`[DomAuthoringAdapter] boxEdit: dropping patch key "${l}" for "${t}" — `+(l==="x"||l==="y"?`node is not absolutely/fixed positioned (computed position: "${i}"), no left/top to move`:"unrecognized box-edit patch key"));continue}if(!s.priorInline.has(n.prop)){const d=b(o.el.style,n.prop);s.priorInline.set(n.prop,d==null?"":String(d))}const h=n.cssValue(c);this.applyStyleToElement(o.el,n.prop,h),s.touched.set(n.prop,h)}},end:t=>{const e=this.boxEditSession;this.boxEditSession=null,!(!e||e.id!==t||e.touched.size===0)&&this.commitBoxEdit(t,e.touched,e.priorInline)}};commitBoxEdit(t,e,s){this.historyResource?.assertCanMutate();const o=this.captureHistoryState(),i=o.styles[t]??{};o.styles[t]=i;for(const[l,c]of s)i[l]=c;let r=!1;for(const[l,c]of e)r=this.writeStyleEntry(t,l,c)||r;r&&this.historyResource&&this.historyResource.record(`Edit ${e.size} Styles`,o,this.captureHistoryState()).catch(()=>{})}inspector={properties:()=>g.map(({prop:t,label:e,type:s,options:o})=>({path:`${f}${t}`,label:e,type:s,...o?{options:o}:{}})),get:(t,e)=>{if(e==="locked")return this.lockedIds.has(t);if(e==="visible"){const l=this.snapshot().nodes.get(t);return l?b(l.el.style,"visibility")!=="hidden":void 0}if(!e.startsWith(f))return;const s=e.slice(f.length),o=this.snapshot().nodes.get(t);if(!o)return;const i=b(o.el.style,s),r=M.get(s);return r==="number"?y(i):r==="color"?k(i):i},set:(t,e,s)=>{if(e==="locked"){s?this.lockedIds.add(t):this.lockedIds.delete(t),this.store.shell.notifyIngestEdit();return}if(e==="visible"){this.writeStyle(t,"visibility",s?"visible":"hidden");return}if(!e.startsWith(f))return;const o=e.slice(f.length);this.writeStyle(t,o,String(s))}};assetSubject={get:t=>this.assetSubjectForNode(this.snapshot(),t),entries:()=>{const t=this.snapshot();return[...t.nodes.keys()].flatMap(e=>{const s=this.assetSubjectForNode(t,e);return s?[{id:e,subject:s}]:[]})}};assetSubjectForNode(t,e){const s=t.nodes.get(e);return!s||s.tag!=="svg"||!s.el.outerHTML?null:{kind:"image",name:S(s.el,s.tag),mediaType:"image/svg+xml",text:s.el.outerHTML}}writeStyleEntry(t,e,s){const o=this.snapshot().nodes.get(t);return o?(this.applyStyleToElement(o.el,e,s),this.recordStyleEdit(t,e,s),this.store.shell.notifyIngestEdit(),!0):!1}writeStyle(t,e,s){this.historyResource?.assertCanMutate();const o=this.captureHistoryState();this.writeStyleEntry(t,e,s)&&this.historyResource&&this.historyResource.record(`Set ${e}`,o,this.captureHistoryState()).catch(()=>{})}dispose(){this.historyResource?.dispose()}captureHistoryState(){const t={};for(const[e,s]of this.snapshot().nodes){const o={};for(const{prop:i}of g){const r=b(s.el.style,i);r!==""&&(o[i]=String(r))}t[e]=o}return{edits:structuredClone(this.doc),styles:t}}restoreHistoryState(t){for(const s of Object.keys(this.doc))delete this.doc[s];Object.assign(this.doc,structuredClone(t.edits));const{nodes:e}=this.snapshot();for(const[s,o]of e){const i=t.styles[s]??{};for(const{prop:r}of g)this.applyStyleToElement(o.el,r,i[r]??"")}this.store.shell.notifyIngestEdit()}subscribe(t){return this.store.shell.subscribe(t)}get persistence(){return{...x(),destination:v}}}export{D};
|