@holoscript/core 6.0.4 → 6.1.2
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/LICENSE +21 -0
- package/README.md +3 -3
- package/bin/holoscript.cjs +3 -0
- package/dist/GLTFPipeline-SFIORFJU.js +16 -0
- package/dist/GLTFPipeline-VNNDPONV.cjs +37 -0
- package/dist/{HoloScriptPlusParser-BN6KVRCM.js → HoloScriptPlusParser-7FBIFUFC.js} +6 -5
- package/dist/{HoloScriptPlusParser-NC5FE6AL.cjs → HoloScriptPlusParser-A2W7OCN2.cjs} +17 -16
- package/dist/HoloScriptPlusParser-F2Z56FJR.js +10 -0
- package/dist/HoloScriptPlusParser-WKHRIH6T.cjs +27 -0
- package/dist/{USDZExporter-UWGWNMMD.cjs → USDZExporter-3FWJ25JI.cjs} +344 -16
- package/dist/{USDZExporter-NTMBNTDB.js → USDZExporter-D2HQLQYK.js} +344 -16
- package/dist/agents/index.cjs +19 -0
- package/dist/agents/index.d.ts +100 -0
- package/dist/agents/index.js +17 -0
- package/dist/chunk-22W6NGYN.js +725 -0
- package/dist/{chunk-5OEOHAAW.cjs → chunk-27MPVJVZ.cjs} +64 -28
- package/dist/{chunk-RVYPEYPX.js → chunk-2A7FURVO.js} +44 -8
- package/dist/{chunk-XCWFGZAA.js → chunk-2B7WVIDZ.js} +11 -8
- package/dist/{chunk-NDQNIJEH.js → chunk-2BSMSUCE.js} +250 -24
- package/dist/chunk-2HLIGOKU.cjs +5546 -0
- package/dist/{chunk-EONILVMF.js → chunk-2M2DPHKB.js} +4 -4
- package/dist/{chunk-G7CT3EMP.cjs → chunk-2YSNA2F2.cjs} +319 -47
- package/dist/{chunk-IWI6J7FX.js → chunk-33XCOVE3.js} +5 -5
- package/dist/chunk-3FOKASKO.cjs +348 -0
- package/dist/{chunk-DXJQDCFL.js → chunk-4C57PR42.js} +3 -3
- package/dist/{chunk-MPXBVFHQ.js → chunk-4N4SXXWF.js} +4 -3
- package/dist/chunk-4PDEPEQW.cjs +41 -0
- package/dist/chunk-4R6HPSHJ.js +2176 -0
- package/dist/chunk-4R6SBXDB.js +45 -0
- package/dist/chunk-4SY77NA4.cjs +413 -0
- package/dist/{chunk-YCXFCXDS.js → chunk-4UUKPCY4.js} +668 -110
- package/dist/{chunk-LGGRPKTV.cjs → chunk-52ULD552.cjs} +114 -35
- package/dist/{chunk-L4G4RLXX.js → chunk-5CKA5SXU.js} +438 -22
- package/dist/chunk-5FSKKMR7.cjs +2092 -0
- package/dist/{chunk-FF3Q7ADR.js → chunk-5JEU52DW.js} +5 -3
- package/dist/chunk-5N54COB6.cjs +327 -0
- package/dist/chunk-5S7RKFGR.cjs +446 -0
- package/dist/{chunk-KED34ILP.js → chunk-6ASWLXXN.js} +21 -9
- package/dist/chunk-6CTRH7HT.cjs +1985 -0
- package/dist/{chunk-CAUCGUEA.cjs → chunk-6EX3I5P4.cjs} +6 -6
- package/dist/chunk-6FGQNDR4.js +5731 -0
- package/dist/{chunk-72EQECGT.cjs → chunk-6KMK2UXT.cjs} +122 -46
- package/dist/{chunk-G4VZTCIB.js → chunk-6L4VE27M.js} +33 -23
- package/dist/{chunk-ATSKSYVE.cjs → chunk-6S6TKNEA.cjs} +6478 -1738
- package/dist/chunk-77V4GTCA.js +596 -0
- package/dist/{chunk-ZP4D3CSX.cjs → chunk-7AD52FRS.cjs} +16 -16
- package/dist/chunk-A6KINLZJ.js +236 -0
- package/dist/chunk-AIA52I7T.cjs +543 -0
- package/dist/chunk-AIX25INK.cjs +602 -0
- package/dist/{chunk-B5TCIAPQ.cjs → chunk-AO4I2Z7M.cjs} +17 -18
- package/dist/{chunk-Q5SJOGHQ.cjs → chunk-BPICAGBV.cjs} +324 -199
- package/dist/chunk-BRQJKJGT.cjs +20 -0
- package/dist/{chunk-3FXV5S25.cjs → chunk-C37BHB7N.cjs} +6 -3
- package/dist/{chunk-XUTX5CBW.js → chunk-CBJY23VL.js} +3 -3
- package/dist/chunk-CIWWXYHZ.cjs +50 -0
- package/dist/{chunk-XXINBTZK.cjs → chunk-DIL6DDDN.cjs} +101 -45
- package/dist/chunk-DMXC24WV.js +404 -0
- package/dist/{chunk-PMGODDJA.cjs → chunk-DTGBOSEM.cjs} +12 -12
- package/dist/chunk-E7JP3BS3.cjs +61 -0
- package/dist/{chunk-HJJLD366.js → chunk-EKBKLK7P.js} +3 -3
- package/dist/chunk-EKYL4PE3.cjs +404 -0
- package/dist/{chunk-UPJBDCVF.js → chunk-EMMC5CSQ.js} +12 -8
- package/dist/{chunk-GGHSW2NN.js → chunk-EOBB6A4B.js} +6389 -1718
- package/dist/chunk-EOFNVCM6.js +325 -0
- package/dist/{chunk-FHQVYCH2.js → chunk-ER4GATIU.js} +7 -7
- package/dist/{chunk-N5FTS757.cjs → chunk-EXKSFGSX.cjs} +7 -148
- package/dist/{chunk-LK5IAVH6.cjs → chunk-EXUP2BUM.cjs} +27 -27
- package/dist/chunk-FDSGHPAK.js +130 -0
- package/dist/chunk-FEWUHQNM.cjs +144 -0
- package/dist/{chunk-5TOFIR6L.js → chunk-FGGJQRLZ.js} +5 -142
- package/dist/chunk-FHP6LXJS.js +415 -0
- package/dist/{chunk-7LCYLPW2.cjs → chunk-FJPADH77.cjs} +7 -4
- package/dist/{chunk-T36DDXSF.js → chunk-FXKTYFYA.js} +150 -25
- package/dist/chunk-G2LS3RFO.js +623 -0
- package/dist/chunk-GCMWDSBZ.cjs +729 -0
- package/dist/chunk-GJNCFRJU.cjs +125 -0
- package/dist/{chunk-Q4QX3AET.cjs → chunk-GMP623FG.cjs} +16 -13
- package/dist/{chunk-XD6IYDUX.js → chunk-GN3KDX4W.js} +119 -43
- package/dist/{chunk-QLEAOI3Q.cjs → chunk-GQYKQSTC.cjs} +10 -10
- package/dist/chunk-GTU2Z2WW.cjs +262 -0
- package/dist/chunk-GZG4KA4E.js +529 -0
- package/dist/{chunk-BND3ST2K.cjs → chunk-H3MGK7TX.cjs} +42 -32
- package/dist/{chunk-XRKWN5PL.cjs → chunk-H5DZIHJP.cjs} +14 -18
- package/dist/{chunk-Z34RLXRA.cjs → chunk-HANL7K2Q.cjs} +65 -50
- package/dist/{chunk-3SAK5KFL.cjs → chunk-HCCQLAA4.cjs} +2 -11
- package/dist/{chunk-LXJ4667L.cjs → chunk-HGVXZDSK.cjs} +108 -20
- package/dist/{chunk-3FJCK5XA.js → chunk-HRODTEEO.js} +30 -10
- package/dist/{chunk-HQUEA5R6.cjs → chunk-HZCQO4JM.cjs} +6 -6
- package/dist/{chunk-S565K7NK.js → chunk-I2O7TW6B.js} +12 -8
- package/dist/chunk-IHESJZSW.js +4490 -0
- package/dist/{chunk-FSF7EQVA.cjs → chunk-IRWWS72C.cjs} +63 -22
- package/dist/{chunk-5O6TQC6M.cjs → chunk-IVIA7K75.cjs} +689 -127
- package/dist/chunk-IVY74O6C.js +247 -0
- package/dist/chunk-J32ZJZJH.js +554 -0
- package/dist/chunk-J56PTA46.cjs +639 -0
- package/dist/chunk-JD7CIZ33.js +1949 -0
- package/dist/{chunk-T7LEXZUZ.cjs → chunk-JIYN45TV.cjs} +14 -15
- package/dist/{chunk-FFKU7BTK.cjs → chunk-KHPCJRI3.cjs} +24 -21
- package/dist/chunk-KKFZ3B6J.cjs +557 -0
- package/dist/chunk-KPJL34Y7.cjs +186 -0
- package/dist/{chunk-HE7ULERA.cjs → chunk-KQTPCYTG.cjs} +128 -44
- package/dist/{chunk-OFKWH2IP.js → chunk-KX76JUQY.js} +3 -3
- package/dist/{chunk-33LSUQDD.cjs → chunk-L63H3SQ4.cjs} +43 -31
- package/dist/{chunk-K6EKD26I.js → chunk-LAOCQJ2M.js} +64 -8
- package/dist/chunk-LM2VU56C.cjs +37 -0
- package/dist/chunk-M56JSP4A.js +400 -0
- package/dist/chunk-MBOOR7X4.js +18 -0
- package/dist/{chunk-XWPNTWDN.cjs → chunk-MJVIRCUV.cjs} +31 -27
- package/dist/{chunk-SDAMZIRE.js → chunk-MSMIFMBL.js} +135 -18
- package/dist/{chunk-56IF4NTA.js → chunk-MXFUTKCO.js} +18 -18
- package/dist/{chunk-6UEHYZ7V.cjs → chunk-MXJ5SS53.cjs} +447 -31
- package/dist/chunk-MYY4PMWX.cjs +264 -0
- package/dist/chunk-N75IH2HY.js +258 -0
- package/dist/{chunk-GVUR45UF.cjs → chunk-NG77ATEW.cjs} +7 -6
- package/dist/chunk-NW5G5FBQ.js +215 -0
- package/dist/{chunk-E3FWRT3Z.js → chunk-OEFY723R.js} +28 -13
- package/dist/chunk-OEV5RMZO.cjs +3042 -0
- package/dist/{chunk-X4ZF6CNE.cjs → chunk-OIQYIIO3.cjs} +7 -7
- package/dist/{chunk-2CWOLHTE.js → chunk-OL46QLBJ.js} +3 -11
- package/dist/chunk-OPZ7XDDI.js +487 -0
- package/dist/chunk-OSYNRVOV.cjs +243 -0
- package/dist/{chunk-TEWCN33Y.js → chunk-P7YIA5LN.js} +91 -7
- package/dist/chunk-PGANYCAG.cjs +220 -0
- package/dist/{chunk-CS2EMTGF.js → chunk-QAVXL2IH.js} +62 -21
- package/dist/{chunk-T4NKMBDL.js → chunk-QCCBXSCE.js} +1666 -756
- package/dist/{chunk-F4IULT7N.js → chunk-QPOQ7VPI.js} +16 -13
- package/dist/{chunk-6XSERL6L.js → chunk-QTPMJRGS.js} +3108 -2827
- package/dist/{chunk-F3HH56EB.cjs → chunk-QWNQ523V.cjs} +1730 -823
- package/dist/{chunk-R7MA7QWV.js → chunk-R3IVNY6P.js} +102 -23
- package/dist/chunk-R75BSDH7.cjs +50 -0
- package/dist/chunk-RAXUF5DF.cjs +2196 -0
- package/dist/{chunk-BF2235SI.cjs → chunk-RMHC2VG7.cjs} +2876 -2592
- package/dist/chunk-RUXGBKPS.cjs +4517 -0
- package/dist/{chunk-UERJ3YJV.js → chunk-S5IFXW6E.js} +113 -9
- package/dist/{chunk-27LWW5FU.cjs → chunk-S6YWHCKV.cjs} +5 -5
- package/dist/{chunk-WB4Z63GG.js → chunk-SIEXCILW.js} +3 -3
- package/dist/{chunk-CLYEIWA5.cjs → chunk-SLU6UPJI.cjs} +5 -3
- package/dist/{chunk-LZ266PCM.cjs → chunk-T5J7ZKP3.cjs} +446 -60
- package/dist/chunk-TDCNJHWO.js +341 -0
- package/dist/{chunk-IHOUYQIA.js → chunk-TG7O4WBC.js} +5 -5
- package/dist/chunk-THCK6ECW.js +2085 -0
- package/dist/chunk-TJHVSBP2.js +439 -0
- package/dist/chunk-TK74TR4H.js +5541 -0
- package/dist/{chunk-CDPGV4DN.js → chunk-U4NBQJBY.js} +14 -15
- package/dist/{chunk-NOZZ46QU.js → chunk-UD3DSHZM.js} +10 -14
- package/dist/chunk-UDMYRFDZ.js +3038 -0
- package/dist/{chunk-WDW67DZB.cjs → chunk-UOIGFQXC.cjs} +90 -68
- package/dist/{chunk-BU7VWW2K.js → chunk-URG2SJLK.js} +14 -15
- package/dist/{chunk-EQV4R3EV.cjs → chunk-V73NPPTM.cjs} +152 -35
- package/dist/chunk-VECQYRXL.js +474 -0
- package/dist/chunk-VEXPG4WN.js +1989 -0
- package/dist/{chunk-LDP5OK6G.js → chunk-VMLKSV26.js} +5 -5
- package/dist/{chunk-5BGSECRJ.cjs → chunk-VSK7W3O5.cjs} +47 -27
- package/dist/chunk-VVKVQZI6.js +55 -0
- package/dist/{chunk-YQK5JNFK.js → chunk-W55Z7QIX.js} +103 -15
- package/dist/{chunk-KSGXLT74.cjs → chunk-W6P2GBHH.cjs} +3 -3
- package/dist/{chunk-IBDG74G2.cjs → chunk-W6RW64BB.cjs} +7 -7
- package/dist/chunk-WDT3JTGM.cjs +483 -0
- package/dist/{chunk-HPS76H7Q.js → chunk-WKX5AMOY.js} +3 -3
- package/dist/chunk-WNNE3PO3.js +34 -0
- package/dist/{chunk-XG23EUQX.cjs → chunk-WRLUBRKS.cjs} +538 -312
- package/dist/{chunk-IFNQFCTM.js → chunk-WRNEH5MO.js} +79 -8
- package/dist/{chunk-54FHG2MX.js → chunk-WRWEX5ZF.js} +7 -4
- package/dist/{chunk-KCQ5NDYC.cjs → chunk-X3GJPRVK.cjs} +154 -80
- package/dist/{chunk-7AGYRWKW.cjs → chunk-XFXGA5IW.cjs} +126 -22
- package/dist/{chunk-TQSZUOW5.cjs → chunk-XHIV6326.cjs} +4 -4
- package/dist/chunk-XJAN7CZG.cjs +432 -0
- package/dist/chunk-XL6INWKT.js +121 -0
- package/dist/{chunk-E3UALNFA.js → chunk-XMWZG36H.js} +4 -4
- package/dist/{chunk-BKIGPPVM.js → chunk-XSFNHP2E.js} +6 -3
- package/dist/{chunk-H5Z7NASB.js → chunk-XT6JY5W5.js} +25 -3
- package/dist/chunk-XXZJEFKW.cjs +490 -0
- package/dist/chunk-Y3MWXQSB.cjs +5737 -0
- package/dist/chunk-YF2I3MV3.js +46 -0
- package/dist/{chunk-V3NN3HPP.js → chunk-YIMN575O.js} +437 -52
- package/dist/chunk-YIVFJNYV.js +176 -0
- package/dist/{chunk-MD6KDHVE.cjs → chunk-YKGPCZEE.cjs} +10 -10
- package/dist/chunk-YQELFNJV.js +39 -0
- package/dist/chunk-Z5XMPRNC.cjs +5390 -0
- package/dist/{chunk-3FYZOR7S.cjs → chunk-ZDSYWBIE.cjs} +18 -18
- package/dist/{chunk-6TZPZCOJ.cjs → chunk-ZKSS47EV.cjs} +24 -19
- package/dist/chunk-ZUL5AVTX.cjs +1993 -0
- package/dist/chunk-ZXBZVXDW.js +5386 -0
- package/dist/{chunk-DMG7C4H2.js → chunk-ZZ7RO2UQ.js} +312 -44
- package/dist/cli/holoscript-runner.cjs +200 -204
- package/dist/cli/holoscript-runner.js +144 -148
- package/dist/codebase/index.cjs +1 -1
- package/dist/codebase/index.js +1 -1
- package/dist/compiler/agent-inference.cjs +10 -7
- package/dist/compiler/agent-inference.js +6 -3
- package/dist/compiler/android-xr.cjs +12 -7
- package/dist/compiler/android-xr.js +10 -5
- package/dist/compiler/android.cjs +12 -8
- package/dist/compiler/android.js +10 -6
- package/dist/compiler/ar.cjs +9 -6
- package/dist/compiler/ar.js +7 -4
- package/dist/compiler/babylon.cjs +12 -8
- package/dist/compiler/babylon.js +11 -7
- package/dist/compiler/business-quest.cjs +43 -0
- package/dist/compiler/business-quest.js +4 -0
- package/dist/compiler/coco.cjs +1 -1
- package/dist/compiler/coco.js +1 -1
- package/dist/compiler/context.cjs +25 -0
- package/dist/compiler/context.d.ts +28 -0
- package/dist/compiler/context.js +8 -0
- package/dist/compiler/domain-block-utils.cjs +155 -152
- package/dist/compiler/domain-block-utils.js +7 -4
- package/dist/compiler/dtdl.cjs +10 -7
- package/dist/compiler/dtdl.js +7 -4
- package/dist/compiler/gltf-pipeline.cjs +9 -9
- package/dist/compiler/gltf-pipeline.js +2 -2
- package/dist/compiler/godot.cjs +9 -6
- package/dist/compiler/godot.js +8 -5
- package/dist/compiler/incremental.cjs +12 -7
- package/dist/compiler/incremental.js +7 -2
- package/dist/compiler/index.cjs +3550 -268
- package/dist/compiler/index.d.ts +404 -21
- package/dist/compiler/index.js +3280 -138
- package/dist/compiler/ios.cjs +11 -8
- package/dist/compiler/ios.js +9 -6
- package/dist/compiler/llm-provider-capabilities.cjs +25 -0
- package/dist/compiler/llm-provider-capabilities.d.ts +43 -0
- package/dist/compiler/llm-provider-capabilities.js +8 -0
- package/dist/compiler/multi-layer.cjs +14 -10
- package/dist/compiler/multi-layer.js +13 -9
- package/dist/compiler/nodetoy.cjs +5 -5
- package/dist/compiler/nodetoy.js +2 -2
- package/dist/compiler/openxr.cjs +10 -6
- package/dist/compiler/openxr.js +9 -5
- package/dist/compiler/playcanvas.cjs +10 -7
- package/dist/compiler/playcanvas.js +9 -6
- package/dist/compiler/r3f.cjs +17 -13
- package/dist/compiler/r3f.d.ts +22 -0
- package/dist/compiler/r3f.js +12 -8
- package/dist/compiler/remotion.cjs +1 -1
- package/dist/compiler/remotion.js +1 -1
- package/dist/compiler/reproducibility.cjs +1 -1
- package/dist/compiler/reproducibility.js +1 -1
- package/dist/compiler/sdf.cjs +10 -7
- package/dist/compiler/sdf.js +8 -5
- package/dist/compiler/semantic-scene.cjs +1 -1
- package/dist/compiler/semantic-scene.js +1 -1
- package/dist/compiler/state.cjs +9 -5
- package/dist/compiler/state.js +7 -3
- package/dist/compiler/trait-composition.cjs +11 -7
- package/dist/compiler/trait-composition.js +7 -3
- package/dist/compiler/unity.cjs +10 -6
- package/dist/compiler/unity.js +9 -5
- package/dist/compiler/unreal.cjs +11 -7
- package/dist/compiler/unreal.js +9 -5
- package/dist/compiler/urdf.cjs +20 -13
- package/dist/compiler/urdf.js +8 -5
- package/dist/compiler/usd-physics.cjs +10 -7
- package/dist/compiler/usd-physics.js +7 -4
- package/dist/compiler/visionos.cjs +10 -6
- package/dist/compiler/visionos.js +9 -5
- package/dist/compiler/vrchat.cjs +10 -7
- package/dist/compiler/vrchat.js +8 -5
- package/dist/compiler/vrr.cjs +10 -7
- package/dist/compiler/vrr.js +8 -5
- package/dist/compiler/wasm.cjs +13 -10
- package/dist/compiler/wasm.js +8 -5
- package/dist/compiler/webgpu.cjs +9 -6
- package/dist/compiler/webgpu.js +8 -5
- package/dist/constants.d.ts +3 -2
- package/dist/coordinators/index.cjs +1266 -0
- package/dist/coordinators/index.d.ts +260 -0
- package/dist/coordinators/index.js +1259 -0
- package/dist/debugger.cjs +9 -7
- package/dist/debugger.js +7 -5
- package/dist/entries/interop.cjs +23 -21
- package/dist/entries/interop.js +5 -3
- package/dist/entries/scripting.cjs +18 -18
- package/dist/entries/scripting.js +8 -8
- package/dist/hololand/index.cjs +146 -0
- package/dist/hololand/index.d.ts +70 -0
- package/dist/hololand/index.js +5 -0
- package/dist/index.cjs +20332 -18121
- package/dist/index.d.ts +1477 -40
- package/dist/index.js +19451 -17638
- package/dist/math/tropical-spmv.cjs +45 -0
- package/dist/math/tropical-spmv.js +4 -0
- package/dist/math/vec3.cjs +14 -14
- package/dist/math/vec3.js +2 -2
- package/dist/{ml-dsa-PHCWUBPX.cjs → ml-dsa-FSKBTE3W.cjs} +177 -90
- package/dist/{ml-dsa-WYLJHJO6.js → ml-dsa-Z7JDKW4L.js} +158 -71
- package/dist/paper-0c-spike/index.cjs +150 -0
- package/dist/paper-0c-spike/index.d.ts +29 -0
- package/dist/paper-0c-spike/index.js +141 -0
- package/dist/parser.cjs +45 -11
- package/dist/parser.d.ts +11 -0
- package/dist/parser.js +10 -8
- package/dist/{playwright-RL6GY4F7.cjs → playwright-3AT3AKTV.cjs} +1985 -1985
- package/dist/{playwright-5OSAPTNH.js → playwright-VZPDVUEQ.js} +3 -3
- package/dist/reconstruction/index.cjs +153 -0
- package/dist/reconstruction/index.d.ts +105 -0
- package/dist/reconstruction/index.js +8 -0
- package/dist/runtime.cjs +7 -5
- package/dist/runtime.js +6 -4
- package/dist/self-improvement/index.cjs +563 -0
- package/dist/self-improvement/index.js +545 -0
- package/dist/storage/index.cjs +10 -9
- package/dist/storage/index.js +3 -2
- package/dist/testing.cjs +25 -0
- package/dist/testing.d.ts +70 -0
- package/dist/testing.js +4 -0
- package/dist/tools/index.d.ts +22 -1
- package/dist/traitDocs/traitDocs.cjs +33 -0
- package/dist/traitDocs/traitDocs.d.ts +69 -0
- package/dist/traitDocs/traitDocs.js +7 -0
- package/dist/traits/botanical-lotus.cjs +41 -0
- package/dist/traits/botanical-lotus.d.ts +172 -0
- package/dist/traits/botanical-lotus.js +4 -0
- package/dist/traits/engines/index.cjs +520 -0
- package/dist/traits/engines/index.js +380 -0
- package/dist/traits/index.cjs +17630 -7881
- package/dist/traits/index.d.ts +197 -0
- package/dist/traits/index.js +16573 -7193
- package/dist/traits/simulation-solver-factory.cjs +13 -0
- package/dist/traits/simulation-solver-factory.d.ts +23 -0
- package/dist/traits/simulation-solver-factory.js +4 -0
- package/dist/traits/webcam-gaze.cjs +35 -0
- package/dist/traits/webcam-gaze.d.ts +17 -0
- package/dist/traits/webcam-gaze.js +4 -0
- package/dist/type-checker.cjs +6 -5
- package/dist/type-checker.js +4 -3
- package/dist/world/index.cjs +947 -0
- package/dist/world/index.d.ts +147 -0
- package/dist/world/index.js +939 -0
- package/dist/world-model/index.cjs +1446 -0
- package/dist/world-model/index.d.ts +119 -0
- package/dist/world-model/index.js +1414 -0
- package/dist/wot/index.cjs +29 -0
- package/dist/wot/index.js +4 -0
- package/package.json +153 -61
- package/dist/GLTFPipeline-DEN36VNK.js +0 -12
- package/dist/GLTFPipeline-YPCAK236.cjs +0 -33
- package/dist/chunk-4XSNJCLC.cjs +0 -1859
- package/dist/chunk-A7PIMZGU.js +0 -263
- package/dist/chunk-BWFJEM5A.js +0 -5419
- package/dist/chunk-CBJSLA2E.cjs +0 -5423
- package/dist/chunk-K3JDKWGI.cjs +0 -270
- package/dist/chunk-LSW7P7ML.js +0 -3675
- package/dist/chunk-MEASWI2Y.js +0 -126
- package/dist/chunk-NCUKG4SK.cjs +0 -3075
- package/dist/chunk-Q5JT3YML.cjs +0 -129
- package/dist/chunk-QGKNANZ3.js +0 -3071
- package/dist/chunk-S2N5TNMA.js +0 -1855
- package/dist/chunk-TSH3MSQU.cjs +0 -129
- package/dist/chunk-WGMEAYBG.js +0 -126
- package/dist/chunk-X6SEAXAX.cjs +0 -3681
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
3
|
+
var chunkUOIGFQXC_cjs = require('./chunk-UOIGFQXC.cjs');
|
|
4
|
+
var chunk5S7RKFGR_cjs = require('./chunk-5S7RKFGR.cjs');
|
|
5
|
+
var chunkOIQYIIO3_cjs = require('./chunk-OIQYIIO3.cjs');
|
|
6
|
+
var chunkAIA52I7T_cjs = require('./chunk-AIA52I7T.cjs');
|
|
7
|
+
var chunkHGVXZDSK_cjs = require('./chunk-HGVXZDSK.cjs');
|
|
8
|
+
var chunkRMHC2VG7_cjs = require('./chunk-RMHC2VG7.cjs');
|
|
9
|
+
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
10
10
|
|
|
11
11
|
// src/traits/visual/presets/hologram-media.visual.ts
|
|
12
12
|
var HOLOGRAM_MEDIA_VISUALS;
|
|
13
|
-
var init_hologram_media_visual =
|
|
13
|
+
var init_hologram_media_visual = chunkHCCQLAA4_cjs.__esm({
|
|
14
14
|
"src/traits/visual/presets/hologram-media.visual.ts"() {
|
|
15
15
|
HOLOGRAM_MEDIA_VISUALS = {
|
|
16
16
|
depth_estimation: {
|
|
@@ -89,7 +89,7 @@ var init_hologram_media_visual = chunk3SAK5KFL_cjs.__esm({
|
|
|
89
89
|
|
|
90
90
|
// src/traits/visual/presets/gaps-physics.visual.ts
|
|
91
91
|
var GAPS_PHYSICS_VISUALS;
|
|
92
|
-
var init_gaps_physics_visual =
|
|
92
|
+
var init_gaps_physics_visual = chunkHCCQLAA4_cjs.__esm({
|
|
93
93
|
"src/traits/visual/presets/gaps-physics.visual.ts"() {
|
|
94
94
|
GAPS_PHYSICS_VISUALS = /* @__PURE__ */ new Map([
|
|
95
95
|
// --- Pillar A: Unified Physics ---
|
|
@@ -349,7 +349,7 @@ var init_gaps_physics_visual = chunk3SAK5KFL_cjs.__esm({
|
|
|
349
349
|
|
|
350
350
|
// src/traits/visual/presets/phone-sleeve-vr.visual.ts
|
|
351
351
|
var PHONE_SLEEVE_VR_VISUALS;
|
|
352
|
-
var init_phone_sleeve_vr_visual =
|
|
352
|
+
var init_phone_sleeve_vr_visual = chunkHCCQLAA4_cjs.__esm({
|
|
353
353
|
"src/traits/visual/presets/phone-sleeve-vr.visual.ts"() {
|
|
354
354
|
PHONE_SLEEVE_VR_VISUALS = {
|
|
355
355
|
// --- Hardware Form Factor ---
|
|
@@ -513,154 +513,154 @@ var init_phone_sleeve_vr_visual = chunk3SAK5KFL_cjs.__esm({
|
|
|
513
513
|
|
|
514
514
|
// src/traits/visual/index.ts
|
|
515
515
|
function registerAllPresets() {
|
|
516
|
-
const registry =
|
|
516
|
+
const registry = chunkOIQYIIO3_cjs.TraitVisualRegistry.getInstance();
|
|
517
517
|
for (const presetMap of ALL_PRESETS) {
|
|
518
518
|
registry.registerBatch(presetMap);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
var ALL_PRESETS;
|
|
522
|
-
var init_visual =
|
|
522
|
+
var init_visual = chunkHCCQLAA4_cjs.__esm({
|
|
523
523
|
"src/traits/visual/index.ts"() {
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
524
|
+
chunkOIQYIIO3_cjs.init_TraitVisualRegistry();
|
|
525
|
+
chunkOIQYIIO3_cjs.init_types();
|
|
526
|
+
chunkOIQYIIO3_cjs.init_TraitVisualRegistry();
|
|
527
|
+
chunkUOIGFQXC_cjs.init_material_properties_visual();
|
|
528
|
+
chunkUOIGFQXC_cjs.init_surface_texture_visual();
|
|
529
|
+
chunkUOIGFQXC_cjs.init_lighting_visual();
|
|
530
|
+
chunkUOIGFQXC_cjs.init_gems_minerals_visual();
|
|
531
|
+
chunkUOIGFQXC_cjs.init_fabric_cloth_visual();
|
|
532
|
+
chunkUOIGFQXC_cjs.init_visual_effects_visual();
|
|
533
|
+
chunkUOIGFQXC_cjs.init_age_condition_visual();
|
|
534
|
+
chunkUOIGFQXC_cjs.init_water_fluid_visual();
|
|
535
|
+
chunkUOIGFQXC_cjs.init_weather_phenomena_visual();
|
|
536
|
+
chunkUOIGFQXC_cjs.init_emotion_mood_visual();
|
|
537
|
+
chunkUOIGFQXC_cjs.init_size_scale_visual();
|
|
538
|
+
chunkUOIGFQXC_cjs.init_environmental_biome_visual();
|
|
539
|
+
chunkUOIGFQXC_cjs.init_magic_fantasy_visual();
|
|
540
|
+
chunkUOIGFQXC_cjs.init_scifi_technology_visual();
|
|
541
|
+
chunkUOIGFQXC_cjs.init_creatures_mythical_visual();
|
|
542
|
+
chunkUOIGFQXC_cjs.init_nature_life_visual();
|
|
543
|
+
chunkUOIGFQXC_cjs.init_furniture_decor_visual();
|
|
544
|
+
chunkUOIGFQXC_cjs.init_construction_building_visual();
|
|
545
|
+
chunkUOIGFQXC_cjs.init_containers_storage_visual();
|
|
546
|
+
chunkUOIGFQXC_cjs.init_shape_form_visual();
|
|
547
|
+
chunkUOIGFQXC_cjs.init_animals_visual();
|
|
548
|
+
chunkUOIGFQXC_cjs.init_maritime_naval_visual();
|
|
549
|
+
chunkUOIGFQXC_cjs.init_time_period_visual();
|
|
550
|
+
chunkUOIGFQXC_cjs.init_accessibility_visual();
|
|
551
|
+
chunkUOIGFQXC_cjs.init_accessibility_extended_visual();
|
|
552
|
+
chunkUOIGFQXC_cjs.init_architecture_realestate_visual();
|
|
553
|
+
chunkUOIGFQXC_cjs.init_audio_visual();
|
|
554
|
+
chunkUOIGFQXC_cjs.init_cooking_food_visual();
|
|
555
|
+
chunkUOIGFQXC_cjs.init_core_vr_interaction_visual();
|
|
556
|
+
chunkUOIGFQXC_cjs.init_data_visualization_visual();
|
|
557
|
+
chunkUOIGFQXC_cjs.init_education_learning_visual();
|
|
558
|
+
chunkUOIGFQXC_cjs.init_environment_input_visual();
|
|
559
|
+
chunkUOIGFQXC_cjs.init_game_mechanics_visual();
|
|
560
|
+
chunkUOIGFQXC_cjs.init_geospatial_web3_visual();
|
|
561
|
+
chunkUOIGFQXC_cjs.init_healthcare_medical_visual();
|
|
562
|
+
chunkUOIGFQXC_cjs.init_humanoid_avatar_visual();
|
|
563
|
+
chunkUOIGFQXC_cjs.init_intelligence_behavior_visual();
|
|
564
|
+
chunkUOIGFQXC_cjs.init_interop_copresence_visual();
|
|
565
|
+
chunkUOIGFQXC_cjs.init_iot_autonomous_agents_visual();
|
|
566
|
+
chunkUOIGFQXC_cjs.init_locomotion_movement_visual();
|
|
567
|
+
chunkUOIGFQXC_cjs.init_measurement_sensing_visual();
|
|
568
|
+
chunkUOIGFQXC_cjs.init_media_analytics_visual();
|
|
569
|
+
chunkUOIGFQXC_cjs.init_multisensory_haptic_visual();
|
|
570
|
+
chunkUOIGFQXC_cjs.init_musical_sound_visual();
|
|
571
|
+
chunkUOIGFQXC_cjs.init_music_performance_visual();
|
|
572
|
+
chunkUOIGFQXC_cjs.init_narrative_storytelling_visual();
|
|
573
|
+
chunkUOIGFQXC_cjs.init_networking_ai_visual();
|
|
574
|
+
chunkUOIGFQXC_cjs.init_npc_roles_visual();
|
|
575
|
+
chunkUOIGFQXC_cjs.init_object_interaction_visual();
|
|
576
|
+
chunkUOIGFQXC_cjs.init_parser_core_ui_visual();
|
|
577
|
+
chunkUOIGFQXC_cjs.init_physical_affordances_visual();
|
|
578
|
+
chunkUOIGFQXC_cjs.init_physics_expansion_visual();
|
|
579
|
+
chunkUOIGFQXC_cjs.init_procedural_generation_visual();
|
|
580
|
+
chunkUOIGFQXC_cjs.init_resource_gathering_visual();
|
|
581
|
+
chunkUOIGFQXC_cjs.init_safety_boundaries_visual();
|
|
582
|
+
chunkUOIGFQXC_cjs.init_signs_communication_visual();
|
|
583
|
+
chunkUOIGFQXC_cjs.init_simple_modifiers_visual();
|
|
584
|
+
chunkUOIGFQXC_cjs.init_social_commerce_visual();
|
|
585
|
+
chunkUOIGFQXC_cjs.init_social_effects_visual();
|
|
586
|
+
chunkUOIGFQXC_cjs.init_sports_fitness_visual();
|
|
587
|
+
chunkUOIGFQXC_cjs.init_state_persistence_visual();
|
|
588
|
+
chunkUOIGFQXC_cjs.init_transportation_vehicles_visual();
|
|
589
|
+
chunkUOIGFQXC_cjs.init_volumetric_webgpu_visual();
|
|
590
|
+
chunkUOIGFQXC_cjs.init_weather_particles_visual();
|
|
591
|
+
chunkUOIGFQXC_cjs.init_xr_platform_visual();
|
|
592
592
|
init_hologram_media_visual();
|
|
593
593
|
init_gaps_physics_visual();
|
|
594
594
|
init_phone_sleeve_vr_visual();
|
|
595
595
|
ALL_PRESETS = [
|
|
596
596
|
// Original 12
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
597
|
+
chunkUOIGFQXC_cjs.MATERIAL_PROPERTIES_VISUALS,
|
|
598
|
+
chunkUOIGFQXC_cjs.SURFACE_TEXTURE_VISUALS,
|
|
599
|
+
chunkUOIGFQXC_cjs.LIGHTING_VISUALS,
|
|
600
|
+
chunkUOIGFQXC_cjs.GEMS_MINERALS_VISUALS,
|
|
601
|
+
chunkUOIGFQXC_cjs.FABRIC_CLOTH_VISUALS,
|
|
602
|
+
chunkUOIGFQXC_cjs.VISUAL_EFFECTS_VISUALS,
|
|
603
|
+
chunkUOIGFQXC_cjs.AGE_CONDITION_VISUALS,
|
|
604
|
+
chunkUOIGFQXC_cjs.WATER_FLUID_VISUALS,
|
|
605
|
+
chunkUOIGFQXC_cjs.WEATHER_PHENOMENA_VISUALS,
|
|
606
|
+
chunkUOIGFQXC_cjs.EMOTION_MOOD_VISUALS,
|
|
607
|
+
chunkUOIGFQXC_cjs.SIZE_SCALE_VISUALS,
|
|
608
|
+
chunkUOIGFQXC_cjs.ENVIRONMENTAL_BIOME_VISUALS,
|
|
609
609
|
// Expansion wave 1
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
610
|
+
chunkUOIGFQXC_cjs.MAGIC_FANTASY_VISUALS,
|
|
611
|
+
chunkUOIGFQXC_cjs.SCIFI_TECHNOLOGY_VISUALS,
|
|
612
|
+
chunkUOIGFQXC_cjs.CREATURES_MYTHICAL_VISUALS,
|
|
613
|
+
chunkUOIGFQXC_cjs.NATURE_LIFE_VISUALS,
|
|
614
|
+
chunkUOIGFQXC_cjs.FURNITURE_DECOR_VISUALS,
|
|
615
|
+
chunkUOIGFQXC_cjs.CONSTRUCTION_BUILDING_VISUALS,
|
|
616
|
+
chunkUOIGFQXC_cjs.CONTAINERS_STORAGE_VISUALS,
|
|
617
|
+
chunkUOIGFQXC_cjs.SHAPE_FORM_VISUALS,
|
|
618
|
+
chunkUOIGFQXC_cjs.ANIMALS_VISUALS,
|
|
619
|
+
chunkUOIGFQXC_cjs.MARITIME_NAVAL_VISUALS,
|
|
620
|
+
chunkUOIGFQXC_cjs.TIME_PERIOD_VISUALS,
|
|
621
621
|
// Expansion wave 2 — full coverage
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
622
|
+
chunkUOIGFQXC_cjs.ACCESSIBILITY_VISUALS,
|
|
623
|
+
chunkUOIGFQXC_cjs.ACCESSIBILITY_EXTENDED_VISUALS,
|
|
624
|
+
chunkUOIGFQXC_cjs.ARCHITECTURE_REALESTATE_VISUALS,
|
|
625
|
+
chunkUOIGFQXC_cjs.AUDIO_VISUALS,
|
|
626
|
+
chunkUOIGFQXC_cjs.COOKING_FOOD_VISUALS,
|
|
627
|
+
chunkUOIGFQXC_cjs.CORE_VR_INTERACTION_VISUALS,
|
|
628
|
+
chunkUOIGFQXC_cjs.DATA_VISUALIZATION_VISUALS,
|
|
629
|
+
chunkUOIGFQXC_cjs.EDUCATION_LEARNING_VISUALS,
|
|
630
|
+
chunkUOIGFQXC_cjs.ENVIRONMENT_INPUT_VISUALS,
|
|
631
|
+
chunkUOIGFQXC_cjs.GAME_MECHANICS_VISUALS,
|
|
632
|
+
chunkUOIGFQXC_cjs.GEOSPATIAL_WEB3_VISUALS,
|
|
633
|
+
chunkUOIGFQXC_cjs.HEALTHCARE_MEDICAL_VISUALS,
|
|
634
|
+
chunkUOIGFQXC_cjs.HUMANOID_AVATAR_VISUALS,
|
|
635
|
+
chunkUOIGFQXC_cjs.INTELLIGENCE_BEHAVIOR_VISUALS,
|
|
636
|
+
chunkUOIGFQXC_cjs.INTEROP_COPRESENCE_VISUALS,
|
|
637
|
+
chunkUOIGFQXC_cjs.IOT_AUTONOMOUS_AGENTS_VISUALS,
|
|
638
|
+
chunkUOIGFQXC_cjs.LOCOMOTION_MOVEMENT_VISUALS,
|
|
639
|
+
chunkUOIGFQXC_cjs.MEASUREMENT_SENSING_VISUALS,
|
|
640
|
+
chunkUOIGFQXC_cjs.MEDIA_ANALYTICS_VISUALS,
|
|
641
|
+
chunkUOIGFQXC_cjs.MULTISENSORY_HAPTIC_VISUALS,
|
|
642
|
+
chunkUOIGFQXC_cjs.MUSICAL_SOUND_VISUALS,
|
|
643
|
+
chunkUOIGFQXC_cjs.MUSIC_PERFORMANCE_VISUALS,
|
|
644
|
+
chunkUOIGFQXC_cjs.NARRATIVE_STORYTELLING_VISUALS,
|
|
645
|
+
chunkUOIGFQXC_cjs.NETWORKING_AI_VISUALS,
|
|
646
|
+
chunkUOIGFQXC_cjs.NPC_ROLES_VISUALS,
|
|
647
|
+
chunkUOIGFQXC_cjs.OBJECT_INTERACTION_VISUALS,
|
|
648
|
+
chunkUOIGFQXC_cjs.PARSER_CORE_UI_VISUALS,
|
|
649
|
+
chunkUOIGFQXC_cjs.PHYSICAL_AFFORDANCES_VISUALS,
|
|
650
|
+
chunkUOIGFQXC_cjs.PHYSICS_EXPANSION_VISUALS,
|
|
651
|
+
chunkUOIGFQXC_cjs.PROCEDURAL_GENERATION_VISUALS,
|
|
652
|
+
chunkUOIGFQXC_cjs.RESOURCE_GATHERING_VISUALS,
|
|
653
|
+
chunkUOIGFQXC_cjs.SAFETY_BOUNDARIES_VISUALS,
|
|
654
|
+
chunkUOIGFQXC_cjs.SIGNS_COMMUNICATION_VISUALS,
|
|
655
|
+
chunkUOIGFQXC_cjs.SIMPLE_MODIFIERS_VISUALS,
|
|
656
|
+
chunkUOIGFQXC_cjs.SOCIAL_COMMERCE_VISUALS,
|
|
657
|
+
chunkUOIGFQXC_cjs.SOCIAL_EFFECTS_VISUALS,
|
|
658
|
+
chunkUOIGFQXC_cjs.SPORTS_FITNESS_VISUALS,
|
|
659
|
+
chunkUOIGFQXC_cjs.STATE_PERSISTENCE_VISUALS,
|
|
660
|
+
chunkUOIGFQXC_cjs.TRANSPORTATION_VEHICLES_VISUALS,
|
|
661
|
+
chunkUOIGFQXC_cjs.VOLUMETRIC_WEBGPU_VISUALS,
|
|
662
|
+
chunkUOIGFQXC_cjs.WEATHER_PARTICLES_VISUALS,
|
|
663
|
+
chunkUOIGFQXC_cjs.XR_PLATFORM_VISUALS,
|
|
664
664
|
// Hologram Media Pipeline
|
|
665
665
|
HOLOGRAM_MEDIA_VISUALS,
|
|
666
666
|
// GAPS Feature Roadmap — Phase 1
|
|
@@ -674,7 +674,7 @@ var init_visual = chunk3SAK5KFL_cjs.__esm({
|
|
|
674
674
|
|
|
675
675
|
// src/compiler/ObjectPool.ts
|
|
676
676
|
exports.ASTNodePool = void 0;
|
|
677
|
-
var init_ObjectPool =
|
|
677
|
+
var init_ObjectPool = chunkHCCQLAA4_cjs.__esm({
|
|
678
678
|
"src/compiler/ObjectPool.ts"() {
|
|
679
679
|
exports.ASTNodePool = class {
|
|
680
680
|
/**
|
|
@@ -727,21 +727,38 @@ var init_ObjectPool = chunk3SAK5KFL_cjs.__esm({
|
|
|
727
727
|
|
|
728
728
|
// src/compiler/R3FCompiler.ts
|
|
729
729
|
var R3FCompiler_exports = {};
|
|
730
|
-
|
|
730
|
+
chunkHCCQLAA4_cjs.__export(R3FCompiler_exports, {
|
|
731
731
|
ENVIRONMENT_PRESETS: () => exports.ENVIRONMENT_PRESETS,
|
|
732
732
|
MATERIAL_PRESETS: () => exports.MATERIAL_PRESETS,
|
|
733
733
|
QUALITY_TIER_SCALES: () => exports.QUALITY_TIER_SCALES,
|
|
734
734
|
R3FCompiler: () => exports.R3FCompiler,
|
|
735
735
|
UI_COMPONENT_PRESETS: () => exports.UI_COMPONENT_PRESETS
|
|
736
736
|
});
|
|
737
|
+
function isVfxParticleTraitName(name) {
|
|
738
|
+
return name.startsWith("vfx_particle_");
|
|
739
|
+
}
|
|
740
|
+
function vfxParticleEffect(name) {
|
|
741
|
+
return name.replace("vfx_particle_", "");
|
|
742
|
+
}
|
|
743
|
+
function gemResonanceConfig(config) {
|
|
744
|
+
return {
|
|
745
|
+
max_distance: 0.5,
|
|
746
|
+
base_frequencies: "auto",
|
|
747
|
+
blend_mode: "harmonic",
|
|
748
|
+
output: "spatial_audio",
|
|
749
|
+
...config || {}
|
|
750
|
+
};
|
|
751
|
+
}
|
|
737
752
|
var r3fNodePool; exports.MATERIAL_PRESETS = void 0; exports.ENVIRONMENT_PRESETS = void 0; var MESH_TYPES; exports.UI_COMPONENT_PRESETS = void 0; exports.QUALITY_TIER_SCALES = void 0; exports.R3FCompiler = void 0;
|
|
738
|
-
var init_R3FCompiler =
|
|
753
|
+
var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
739
754
|
"src/compiler/R3FCompiler.ts"() {
|
|
740
|
-
|
|
741
|
-
|
|
755
|
+
chunkOIQYIIO3_cjs.init_TraitCompositor();
|
|
756
|
+
chunk5S7RKFGR_cjs.init_ProvenanceSemiring();
|
|
742
757
|
init_visual();
|
|
743
|
-
|
|
744
|
-
|
|
758
|
+
chunkHGVXZDSK_cjs.init_DomainBlockCompilerMixin();
|
|
759
|
+
chunkAIA52I7T_cjs.init_PlatformConditionalCompilerMixin();
|
|
760
|
+
chunkRMHC2VG7_cjs.init_AgentRBAC();
|
|
761
|
+
chunkRMHC2VG7_cjs.init_CompilerBase();
|
|
745
762
|
init_ObjectPool();
|
|
746
763
|
r3fNodePool = new exports.ASTNodePool(
|
|
747
764
|
() => ({ type: "", props: {} }),
|
|
@@ -2544,10 +2561,14 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
2544
2561
|
constructor(options = {}) {
|
|
2545
2562
|
// ─── RBAC Enforcement ─────────────────────────────────────────────────
|
|
2546
2563
|
this.compilerName = "R3FCompiler";
|
|
2547
|
-
this.rbac =
|
|
2564
|
+
this.rbac = chunkRMHC2VG7_cjs.getRBAC();
|
|
2548
2565
|
this.qualityTier = options.qualityTier ?? "high";
|
|
2549
2566
|
this.tierScales = exports.QUALITY_TIER_SCALES[this.qualityTier];
|
|
2550
2567
|
this._defaultLighting = options.defaultLighting ?? true;
|
|
2568
|
+
this._holomapPointCloud = options.holomapPointCloud;
|
|
2569
|
+
if (options.platformTarget) {
|
|
2570
|
+
this._platformTarget = typeof options.platformTarget === "string" ? chunkAIA52I7T_cjs.createPlatformTarget(options.platformTarget) : options.platformTarget;
|
|
2571
|
+
}
|
|
2551
2572
|
}
|
|
2552
2573
|
/**
|
|
2553
2574
|
* Validate agent permissions before compilation.
|
|
@@ -2566,32 +2587,32 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
2566
2587
|
if (!agentToken) return;
|
|
2567
2588
|
const astDecision = this.rbac.checkAccess({
|
|
2568
2589
|
token: agentToken,
|
|
2569
|
-
resourceType:
|
|
2590
|
+
resourceType: "ast" /* AST */,
|
|
2570
2591
|
operation: "read",
|
|
2571
|
-
expectedWorkflowStep:
|
|
2592
|
+
expectedWorkflowStep: "generate_assembly" /* GENERATE_ASSEMBLY */
|
|
2572
2593
|
});
|
|
2573
2594
|
if (!astDecision.allowed) {
|
|
2574
|
-
throw new
|
|
2595
|
+
throw new chunkRMHC2VG7_cjs.UnauthorizedCompilerAccessError(astDecision, "AST access", this.compilerName);
|
|
2575
2596
|
}
|
|
2576
2597
|
const codeDecision = this.rbac.checkAccess({
|
|
2577
2598
|
token: agentToken,
|
|
2578
|
-
resourceType:
|
|
2599
|
+
resourceType: "code" /* CODE */,
|
|
2579
2600
|
operation: "write",
|
|
2580
|
-
expectedWorkflowStep:
|
|
2601
|
+
expectedWorkflowStep: "generate_assembly" /* GENERATE_ASSEMBLY */
|
|
2581
2602
|
});
|
|
2582
2603
|
if (!codeDecision.allowed) {
|
|
2583
|
-
throw new
|
|
2604
|
+
throw new chunkRMHC2VG7_cjs.UnauthorizedCompilerAccessError(codeDecision, "code generation", this.compilerName);
|
|
2584
2605
|
}
|
|
2585
2606
|
if (outputPath) {
|
|
2586
2607
|
const outputDecision = this.rbac.checkAccess({
|
|
2587
2608
|
token: agentToken,
|
|
2588
|
-
resourceType:
|
|
2609
|
+
resourceType: "output" /* OUTPUT */,
|
|
2589
2610
|
operation: "write",
|
|
2590
2611
|
resourcePath: outputPath,
|
|
2591
|
-
expectedWorkflowStep:
|
|
2612
|
+
expectedWorkflowStep: "serialize" /* SERIALIZE */
|
|
2592
2613
|
});
|
|
2593
2614
|
if (!outputDecision.allowed) {
|
|
2594
|
-
throw new
|
|
2615
|
+
throw new chunkRMHC2VG7_cjs.UnauthorizedCompilerAccessError(
|
|
2595
2616
|
outputDecision,
|
|
2596
2617
|
`output write to '${outputPath}'`,
|
|
2597
2618
|
this.compilerName
|
|
@@ -2741,15 +2762,15 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
2741
2762
|
this.injectDefaultLighting(root);
|
|
2742
2763
|
const domainBlocks = ast.domainBlocks ?? [];
|
|
2743
2764
|
if (domainBlocks.length > 0) {
|
|
2744
|
-
const compiled =
|
|
2765
|
+
const compiled = chunkHGVXZDSK_cjs.compileDomainBlocks(
|
|
2745
2766
|
domainBlocks,
|
|
2746
2767
|
{
|
|
2747
2768
|
material: (block) => {
|
|
2748
|
-
const mat =
|
|
2769
|
+
const mat = chunkHGVXZDSK_cjs.compileMaterialBlock(block);
|
|
2749
2770
|
return {
|
|
2750
2771
|
type: "DomainBlockOutput",
|
|
2751
2772
|
props: {
|
|
2752
|
-
__raw:
|
|
2773
|
+
__raw: chunkHGVXZDSK_cjs.materialToR3F(mat, this.tierScales),
|
|
2753
2774
|
__domain: "material",
|
|
2754
2775
|
__name: mat.name
|
|
2755
2776
|
},
|
|
@@ -2757,11 +2778,11 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
2757
2778
|
};
|
|
2758
2779
|
},
|
|
2759
2780
|
physics: (block) => {
|
|
2760
|
-
const phys =
|
|
2781
|
+
const phys = chunkHGVXZDSK_cjs.compilePhysicsBlock(block);
|
|
2761
2782
|
return {
|
|
2762
2783
|
type: "DomainBlockOutput",
|
|
2763
2784
|
props: {
|
|
2764
|
-
__raw:
|
|
2785
|
+
__raw: chunkHGVXZDSK_cjs.physicsToR3F(phys),
|
|
2765
2786
|
__domain: "physics",
|
|
2766
2787
|
__name: phys.name || phys.keyword
|
|
2767
2788
|
},
|
|
@@ -2769,11 +2790,11 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
2769
2790
|
};
|
|
2770
2791
|
},
|
|
2771
2792
|
vfx: (block) => {
|
|
2772
|
-
const ps =
|
|
2793
|
+
const ps = chunkHGVXZDSK_cjs.compileParticleBlock(block);
|
|
2773
2794
|
return {
|
|
2774
2795
|
type: "DomainBlockOutput",
|
|
2775
2796
|
props: {
|
|
2776
|
-
__raw:
|
|
2797
|
+
__raw: chunkHGVXZDSK_cjs.particlesToR3F(ps, this.tierScales),
|
|
2777
2798
|
__domain: "vfx",
|
|
2778
2799
|
__name: ps.name
|
|
2779
2800
|
},
|
|
@@ -2781,11 +2802,11 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
2781
2802
|
};
|
|
2782
2803
|
},
|
|
2783
2804
|
postfx: (block) => {
|
|
2784
|
-
const pp =
|
|
2805
|
+
const pp = chunkHGVXZDSK_cjs.compilePostProcessingBlock(block);
|
|
2785
2806
|
return {
|
|
2786
2807
|
type: "DomainBlockOutput",
|
|
2787
2808
|
props: {
|
|
2788
|
-
__raw:
|
|
2809
|
+
__raw: chunkHGVXZDSK_cjs.postProcessingToR3F(pp),
|
|
2789
2810
|
__domain: "postfx",
|
|
2790
2811
|
__name: pp.name || "PostProcessing"
|
|
2791
2812
|
},
|
|
@@ -2793,19 +2814,19 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
2793
2814
|
};
|
|
2794
2815
|
},
|
|
2795
2816
|
audio: (block) => {
|
|
2796
|
-
const audio =
|
|
2817
|
+
const audio = chunkHGVXZDSK_cjs.compileAudioSourceBlock(block);
|
|
2797
2818
|
return {
|
|
2798
2819
|
type: "DomainBlockOutput",
|
|
2799
|
-
props: { __raw:
|
|
2820
|
+
props: { __raw: chunkHGVXZDSK_cjs.audioSourceToR3F(audio), __domain: "audio", __name: audio.name },
|
|
2800
2821
|
children: []
|
|
2801
2822
|
};
|
|
2802
2823
|
},
|
|
2803
2824
|
weather: (block) => {
|
|
2804
|
-
const weather =
|
|
2825
|
+
const weather = chunkHGVXZDSK_cjs.compileWeatherBlock(block);
|
|
2805
2826
|
return {
|
|
2806
2827
|
type: "DomainBlockOutput",
|
|
2807
2828
|
props: {
|
|
2808
|
-
__raw:
|
|
2829
|
+
__raw: chunkHGVXZDSK_cjs.weatherToR3F(weather),
|
|
2809
2830
|
__domain: "weather",
|
|
2810
2831
|
__name: weather.name || "Weather"
|
|
2811
2832
|
},
|
|
@@ -2813,11 +2834,11 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
2813
2834
|
};
|
|
2814
2835
|
},
|
|
2815
2836
|
simulation: (block) => {
|
|
2816
|
-
const sim =
|
|
2837
|
+
const sim = chunkHGVXZDSK_cjs.compileSimulationBlock(block);
|
|
2817
2838
|
return {
|
|
2818
2839
|
type: "DomainBlockOutput",
|
|
2819
2840
|
props: {
|
|
2820
|
-
__raw:
|
|
2841
|
+
__raw: chunkHGVXZDSK_cjs.simulationToR3F(sim),
|
|
2821
2842
|
__domain: "simulation",
|
|
2822
2843
|
__name: sim.name || "Simulation"
|
|
2823
2844
|
},
|
|
@@ -2833,6 +2854,64 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
2833
2854
|
}
|
|
2834
2855
|
return root;
|
|
2835
2856
|
}
|
|
2857
|
+
/**
|
|
2858
|
+
* Compiles a declarative 'world' node into R3F scene nodes.
|
|
2859
|
+
* Nested `world.children` (objects) are compiled via the same path as top-level objects.
|
|
2860
|
+
*/
|
|
2861
|
+
compileWorldNode(world, templateMap) {
|
|
2862
|
+
const nodes = [];
|
|
2863
|
+
const props = {};
|
|
2864
|
+
if (world.properties) {
|
|
2865
|
+
for (const prop of world.properties) {
|
|
2866
|
+
props[prop.key] = prop.value;
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
if (props.ambient_light !== void 0) {
|
|
2870
|
+
nodes.push(
|
|
2871
|
+
this.createNode("ambientLight", {
|
|
2872
|
+
intensity: Number(props.ambient_light)
|
|
2873
|
+
})
|
|
2874
|
+
);
|
|
2875
|
+
}
|
|
2876
|
+
if (props.skybox_color !== void 0) {
|
|
2877
|
+
nodes.push(
|
|
2878
|
+
this.createNode("Environment", {
|
|
2879
|
+
background: true,
|
|
2880
|
+
preset: "sunset"
|
|
2881
|
+
// Default preset if just color is given
|
|
2882
|
+
})
|
|
2883
|
+
);
|
|
2884
|
+
nodes.push(
|
|
2885
|
+
this.createNode("color", {
|
|
2886
|
+
attach: "background",
|
|
2887
|
+
args: [props.skybox_color]
|
|
2888
|
+
})
|
|
2889
|
+
);
|
|
2890
|
+
}
|
|
2891
|
+
if (props.gravity !== void 0) {
|
|
2892
|
+
nodes.push(
|
|
2893
|
+
this.createNode("Physics", {
|
|
2894
|
+
gravity: [0, -Number(props.gravity), 0]
|
|
2895
|
+
})
|
|
2896
|
+
);
|
|
2897
|
+
}
|
|
2898
|
+
const childNodes = [];
|
|
2899
|
+
if (world.children && world.children.length > 0) {
|
|
2900
|
+
for (const child of world.children) {
|
|
2901
|
+
childNodes.push(this.compileObjectDecl(child, templateMap));
|
|
2902
|
+
}
|
|
2903
|
+
}
|
|
2904
|
+
if (childNodes.length === 0) {
|
|
2905
|
+
return nodes;
|
|
2906
|
+
}
|
|
2907
|
+
const group = this.createNode(
|
|
2908
|
+
"group",
|
|
2909
|
+
{},
|
|
2910
|
+
world.name ? chunkRMHC2VG7_cjs.escapeStringValue(world.name, "JSX") : void 0
|
|
2911
|
+
);
|
|
2912
|
+
group.children = [...nodes, ...childNodes];
|
|
2913
|
+
return [group];
|
|
2914
|
+
}
|
|
2836
2915
|
createNode(type, props = {}, id) {
|
|
2837
2916
|
const node = r3fNodePool.acquire();
|
|
2838
2917
|
node.type = type;
|
|
@@ -2855,7 +2934,7 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
2855
2934
|
const r3fNode = r3fNodePool.acquire();
|
|
2856
2935
|
r3fNode.type = type;
|
|
2857
2936
|
const rawId = node.id || node.name;
|
|
2858
|
-
r3fNode.id = rawId ?
|
|
2937
|
+
r3fNode.id = rawId ? chunkRMHC2VG7_cjs.escapeStringValue(rawId, "JSX") : void 0;
|
|
2859
2938
|
r3fNode.props = this.compileProperties(node, rawProps);
|
|
2860
2939
|
r3fNode.children = [];
|
|
2861
2940
|
r3fNode.traits = /* @__PURE__ */ new Map();
|
|
@@ -2884,9 +2963,13 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
2884
2963
|
// ─── HoloComposition Compilation (.holo files) ────────────────────────
|
|
2885
2964
|
compileComposition(composition, agentToken, outputPath) {
|
|
2886
2965
|
this.validateCompilerAccess(agentToken, outputPath);
|
|
2966
|
+
if (this._platformTarget) {
|
|
2967
|
+
const platformMixin = new chunkAIA52I7T_cjs.PlatformConditionalCompilerMixin();
|
|
2968
|
+
composition = platformMixin.filterForPlatform(composition, this._platformTarget);
|
|
2969
|
+
}
|
|
2887
2970
|
const root = r3fNodePool.acquire();
|
|
2888
2971
|
root.type = "group";
|
|
2889
|
-
root.id = composition.name ?
|
|
2972
|
+
root.id = composition.name ? chunkRMHC2VG7_cjs.escapeStringValue(composition.name, "JSX") : void 0;
|
|
2890
2973
|
root.props = {};
|
|
2891
2974
|
root.children = [];
|
|
2892
2975
|
root.traits = /* @__PURE__ */ new Map();
|
|
@@ -2942,6 +3025,16 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
2942
3025
|
root.children.push(this.compileZoneBlock(zone));
|
|
2943
3026
|
}
|
|
2944
3027
|
}
|
|
3028
|
+
if (Array.isArray(composition.worlds)) {
|
|
3029
|
+
for (const world of composition.worlds) {
|
|
3030
|
+
root.children.push(
|
|
3031
|
+
...this.compileWorldNode(
|
|
3032
|
+
world,
|
|
3033
|
+
templateMap
|
|
3034
|
+
)
|
|
3035
|
+
);
|
|
3036
|
+
}
|
|
3037
|
+
}
|
|
2945
3038
|
if (composition.ui) {
|
|
2946
3039
|
root.children.push(this.compileUIBlock(composition.ui));
|
|
2947
3040
|
}
|
|
@@ -2974,9 +3067,24 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
2974
3067
|
children: this.extractPostProcessingNodes(root)
|
|
2975
3068
|
});
|
|
2976
3069
|
}
|
|
3070
|
+
this.injectHolomapPointCloud(root);
|
|
2977
3071
|
this.injectDefaultLighting(root);
|
|
2978
3072
|
return root;
|
|
2979
3073
|
}
|
|
3074
|
+
/** R3F host apps can map this node to BufferGeometry + pointsMaterial from base64 buffers. */
|
|
3075
|
+
injectHolomapPointCloud(root) {
|
|
3076
|
+
const h = this._holomapPointCloud;
|
|
3077
|
+
if (!h || h.pointCount < 1 || !h.positionsB64 || !h.colorsB64) return;
|
|
3078
|
+
if (!root.children) root.children = [];
|
|
3079
|
+
root.children.push({
|
|
3080
|
+
type: "holomapPointCloud",
|
|
3081
|
+
props: {
|
|
3082
|
+
positionsB64: h.positionsB64,
|
|
3083
|
+
colorsB64: h.colorsB64,
|
|
3084
|
+
pointCount: h.pointCount
|
|
3085
|
+
}
|
|
3086
|
+
});
|
|
3087
|
+
}
|
|
2980
3088
|
compileLightBlock(light) {
|
|
2981
3089
|
const lightMapping = {
|
|
2982
3090
|
directional: "directionalLight",
|
|
@@ -3008,7 +3116,7 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
3008
3116
|
}
|
|
3009
3117
|
const r3fNode = r3fNodePool.acquire();
|
|
3010
3118
|
r3fNode.type = type;
|
|
3011
|
-
r3fNode.id = light.name ?
|
|
3119
|
+
r3fNode.id = light.name ? chunkRMHC2VG7_cjs.escapeStringValue(light.name, "JSX") : void 0;
|
|
3012
3120
|
r3fNode.props = props;
|
|
3013
3121
|
r3fNode.children = [];
|
|
3014
3122
|
r3fNode.traits = /* @__PURE__ */ new Map();
|
|
@@ -3317,7 +3425,7 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
3317
3425
|
}
|
|
3318
3426
|
}
|
|
3319
3427
|
if (obj.traits && Array.isArray(obj.traits)) {
|
|
3320
|
-
const semiring = new
|
|
3428
|
+
const semiring = new chunk5S7RKFGR_cjs.ProvenanceSemiring();
|
|
3321
3429
|
const physicsApplications = obj.traits.filter((t) => t.name === "physics" || t.name === "collidable").map((t) => {
|
|
3322
3430
|
let baseConfig = t.config || {};
|
|
3323
3431
|
if (t.name === "collidable" && !baseConfig.type)
|
|
@@ -3354,6 +3462,9 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
3354
3462
|
props.animated = trait.config || true;
|
|
3355
3463
|
} else if (name === "positional" || name === "spatial_audio") {
|
|
3356
3464
|
props.spatial = true;
|
|
3465
|
+
} else if (name === "gem_resonance") {
|
|
3466
|
+
props.gemResonance = gemResonanceConfig(trait.config);
|
|
3467
|
+
props.spatial = true;
|
|
3357
3468
|
} else if (name === "shadow") {
|
|
3358
3469
|
props.castShadow = true;
|
|
3359
3470
|
if (trait.config?.mapSize)
|
|
@@ -3418,6 +3529,8 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
3418
3529
|
props.pointCloud = trait.config || true;
|
|
3419
3530
|
} else if (name === "photogrammetry") {
|
|
3420
3531
|
props.photogrammetry = trait.config || true;
|
|
3532
|
+
} else if (name === "web_surface") {
|
|
3533
|
+
props.webSurface = trait.config || true;
|
|
3421
3534
|
} else if (name === "cloth") {
|
|
3422
3535
|
props.cloth = trait.config || { stiffness: 0.8 };
|
|
3423
3536
|
if (!props.rigidBody) props.rigidBody = { type: "dynamic" };
|
|
@@ -3498,6 +3611,14 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
3498
3611
|
props.compute = trait.config || true;
|
|
3499
3612
|
} else if (name === "gpu_particle") {
|
|
3500
3613
|
props.gpuParticle = trait.config || { count: 1e4 };
|
|
3614
|
+
} else if (isVfxParticleTraitName(name)) {
|
|
3615
|
+
const particleConfig = {
|
|
3616
|
+
effect: vfxParticleEffect(name),
|
|
3617
|
+
...trait.config || {}
|
|
3618
|
+
};
|
|
3619
|
+
const gpuParticles = props.gpuParticles ?? [];
|
|
3620
|
+
props.gpuParticles = [...gpuParticles, particleConfig];
|
|
3621
|
+
if (!props.gpuParticle) props.gpuParticle = particleConfig;
|
|
3501
3622
|
} else if (name === "gpu_physics") {
|
|
3502
3623
|
props.gpuPhysics = trait.config || true;
|
|
3503
3624
|
} else if (name === "digital_twin") {
|
|
@@ -3582,7 +3703,7 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
3582
3703
|
const traitNames = obj.traits.map(
|
|
3583
3704
|
(t) => t.name
|
|
3584
3705
|
);
|
|
3585
|
-
const compositor = new
|
|
3706
|
+
const compositor = new chunkOIQYIIO3_cjs.TraitCompositor();
|
|
3586
3707
|
const composedMaterial = compositor.compose(traitNames);
|
|
3587
3708
|
if (Object.keys(composedMaterial).length > 0) {
|
|
3588
3709
|
props.materialProps = {
|
|
@@ -3629,6 +3750,7 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
3629
3750
|
r3fNode.assetMaturity = m;
|
|
3630
3751
|
}
|
|
3631
3752
|
}
|
|
3753
|
+
delete props.maturityOverride;
|
|
3632
3754
|
if (obj.children && Array.isArray(obj.children)) {
|
|
3633
3755
|
for (const child of obj.children) {
|
|
3634
3756
|
r3fNode.children.push(this.compileObjectDecl(child));
|
|
@@ -3845,7 +3967,7 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
3845
3967
|
entries.push(this.createNode("TimelineEntry", entryProps));
|
|
3846
3968
|
}
|
|
3847
3969
|
}
|
|
3848
|
-
const safeName = timeline.name ?
|
|
3970
|
+
const safeName = timeline.name ? chunkRMHC2VG7_cjs.escapeStringValue(timeline.name, "JSX") : void 0;
|
|
3849
3971
|
const timelineNode = this.createNode(
|
|
3850
3972
|
"Timeline",
|
|
3851
3973
|
{ autoplay: timeline.autoplay, loop: timeline.loop },
|
|
@@ -3867,7 +3989,7 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
3867
3989
|
}
|
|
3868
3990
|
}
|
|
3869
3991
|
}
|
|
3870
|
-
const safeName = audio.name ?
|
|
3992
|
+
const safeName = audio.name ? chunkRMHC2VG7_cjs.escapeStringValue(audio.name, "JSX") : void 0;
|
|
3871
3993
|
return this.createNode("Audio", props, safeName);
|
|
3872
3994
|
}
|
|
3873
3995
|
compileZoneBlock(zone) {
|
|
@@ -3886,7 +4008,7 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
3886
4008
|
})
|
|
3887
4009
|
);
|
|
3888
4010
|
}
|
|
3889
|
-
const safeName = zone.name ?
|
|
4011
|
+
const safeName = zone.name ? chunkRMHC2VG7_cjs.escapeStringValue(zone.name, "JSX") : void 0;
|
|
3890
4012
|
return this.createNode("Zone", props, safeName);
|
|
3891
4013
|
}
|
|
3892
4014
|
compileUIBlock(ui) {
|
|
@@ -3903,7 +4025,7 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
3903
4025
|
}
|
|
3904
4026
|
}
|
|
3905
4027
|
}
|
|
3906
|
-
const safeElName = el.name ?
|
|
4028
|
+
const safeElName = el.name ? chunkRMHC2VG7_cjs.escapeStringValue(el.name, "JSX") : void 0;
|
|
3907
4029
|
children.push(this.createNode("UIElement", elProps, safeElName));
|
|
3908
4030
|
}
|
|
3909
4031
|
}
|
|
@@ -3918,7 +4040,7 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
3918
4040
|
props[prop.key] = prop.value;
|
|
3919
4041
|
}
|
|
3920
4042
|
}
|
|
3921
|
-
const safeName = transition.name ?
|
|
4043
|
+
const safeName = transition.name ? chunkRMHC2VG7_cjs.escapeStringValue(transition.name, "JSX") : void 0;
|
|
3922
4044
|
return this.createNode("Transition", props, safeName);
|
|
3923
4045
|
}
|
|
3924
4046
|
compileConditionalBlock(cond, templateMap) {
|
|
@@ -4018,12 +4140,9 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
4018
4140
|
effects.push(this.createNode("Vignette", ppTrait.vignette));
|
|
4019
4141
|
}
|
|
4020
4142
|
if (node.props.bloom) {
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
typeof node.props.bloom === "object" ? node.props.bloom : { intensity: 1 }
|
|
4025
|
-
)
|
|
4026
|
-
);
|
|
4143
|
+
const bloom = node.props.bloom;
|
|
4144
|
+
const bloomProps = typeof bloom === "object" && bloom !== null ? bloom : { intensity: 1 };
|
|
4145
|
+
effects.push(this.createNode("Bloom", bloomProps));
|
|
4027
4146
|
}
|
|
4028
4147
|
node.children?.forEach((child) => effects.push(...this.extractPostProcessingNodes(child)));
|
|
4029
4148
|
return effects;
|
|
@@ -4076,12 +4195,12 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
4076
4195
|
behavior: "group",
|
|
4077
4196
|
system: "System",
|
|
4078
4197
|
component: "Component",
|
|
4079
|
-
avatar: "Avatar",
|
|
4080
4198
|
dna: "DNA",
|
|
4081
4199
|
gaussian_splat: "GaussianSplat",
|
|
4082
4200
|
splat: "GaussianSplat",
|
|
4083
4201
|
nerf: "NeRF",
|
|
4084
|
-
volumetric_video: "VolumetricVideo"
|
|
4202
|
+
volumetric_video: "VolumetricVideo",
|
|
4203
|
+
world: "group"
|
|
4085
4204
|
};
|
|
4086
4205
|
return mapping[type] || type;
|
|
4087
4206
|
}
|
|
@@ -4089,7 +4208,7 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
4089
4208
|
const expandedProps = this.expandSpreads(rawProps);
|
|
4090
4209
|
const props = { ...expandedProps };
|
|
4091
4210
|
if (node.position) {
|
|
4092
|
-
props.position =
|
|
4211
|
+
props.position = node.position;
|
|
4093
4212
|
}
|
|
4094
4213
|
if (rawProps.position && Array.isArray(rawProps.position)) {
|
|
4095
4214
|
props.position = rawProps.position;
|
|
@@ -4127,6 +4246,9 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
4127
4246
|
props.animated = d.config || true;
|
|
4128
4247
|
} else if (d.name === "spatial_audio" || d.name === "voice") {
|
|
4129
4248
|
props.spatial = true;
|
|
4249
|
+
} else if (d.name === "gem_resonance") {
|
|
4250
|
+
props.gemResonance = gemResonanceConfig(d.config);
|
|
4251
|
+
props.spatial = true;
|
|
4130
4252
|
} else if (d.name === "networked") {
|
|
4131
4253
|
props.networked = d.config || true;
|
|
4132
4254
|
} else if (d.name === "moldable") {
|
|
@@ -4163,6 +4285,8 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
4163
4285
|
props.nerf = d.config || true;
|
|
4164
4286
|
} else if (d.name === "volumetric_video") {
|
|
4165
4287
|
props.volumetricVideo = d.config || true;
|
|
4288
|
+
} else if (d.name === "web_surface") {
|
|
4289
|
+
props.webSurface = d.config || true;
|
|
4166
4290
|
}
|
|
4167
4291
|
}
|
|
4168
4292
|
}
|
|
@@ -4189,7 +4313,8 @@ var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
4189
4313
|
if (m.pbr.ior !== void 0) materialProps["ior"] = m.pbr.ior;
|
|
4190
4314
|
if (m.pbr.iridescence !== void 0) materialProps["iridescence"] = m.pbr.iridescence;
|
|
4191
4315
|
}
|
|
4192
|
-
|
|
4316
|
+
const prior = r3fNode.props.materialProps ?? {};
|
|
4317
|
+
r3fNode.props.materialProps = { ...prior, ...materialProps };
|
|
4193
4318
|
}
|
|
4194
4319
|
if (graphics.lighting) {
|
|
4195
4320
|
const l = graphics.lighting;
|
|
@@ -4252,5 +4377,5 @@ exports.init_ObjectPool = init_ObjectPool;
|
|
|
4252
4377
|
exports.init_R3FCompiler = init_R3FCompiler;
|
|
4253
4378
|
exports.init_visual = init_visual;
|
|
4254
4379
|
exports.registerAllPresets = registerAllPresets;
|
|
4255
|
-
//# sourceMappingURL=chunk-
|
|
4256
|
-
//# sourceMappingURL=chunk-
|
|
4380
|
+
//# sourceMappingURL=chunk-BPICAGBV.cjs.map
|
|
4381
|
+
//# sourceMappingURL=chunk-BPICAGBV.cjs.map
|