@holoscript/core 6.0.2 → 6.0.4
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/README.md +38 -38
- package/dist/GLTFPipeline-DEN36VNK.js +12 -0
- package/dist/GLTFPipeline-YPCAK236.cjs +33 -0
- package/dist/{HoloScriptPlusParser-BZR5DELQ.js → HoloScriptPlusParser-BN6KVRCM.js} +5 -5
- package/dist/{HoloScriptPlusParser-SBMYDNXO.cjs → HoloScriptPlusParser-NC5FE6AL.cjs} +16 -16
- package/dist/{USDZExporter-YA55ZS35.js → USDZExporter-NTMBNTDB.js} +3 -3
- package/dist/{USDZExporter-MHEHXZB4.cjs → USDZExporter-UWGWNMMD.cjs} +3 -3
- package/dist/{chunk-32TWR3HE.js → chunk-2CWOLHTE.js} +3 -4
- package/dist/{chunk-2UX5LRAP.cjs → chunk-33LSUQDD.cjs} +33 -31
- package/dist/{chunk-LBPEZQAF.js → chunk-3FJCK5XA.js} +7 -7
- package/dist/{chunk-EGIZHYJP.cjs → chunk-3SAK5KFL.cjs} +2 -4
- package/dist/{chunk-PJMOXFPR.cjs → chunk-4XSNJCLC.cjs} +25 -27
- package/dist/{chunk-HKCVM6OK.cjs → chunk-5BGSECRJ.cjs} +21 -21
- package/dist/{chunk-EMO7HAKJ.cjs → chunk-5O6TQC6M.cjs} +26 -30
- package/dist/{chunk-XSUZMPVQ.cjs → chunk-5OEOHAAW.cjs} +26 -26
- package/dist/{chunk-EJA7G2C4.cjs → chunk-5WUNN6ZN.cjs} +2 -2
- package/dist/{chunk-CQDOF3G7.cjs → chunk-6TZPZCOJ.cjs} +18 -18
- package/dist/{chunk-NRUB55IT.cjs → chunk-6UEHYZ7V.cjs} +18 -16
- package/dist/{chunk-V42NTCFH.js → chunk-6XSERL6L.js} +4230 -2197
- package/dist/{chunk-X4YVN7H3.cjs → chunk-72EQECGT.cjs} +37 -17
- package/dist/{chunk-4KJ2R7VP.cjs → chunk-7AGYRWKW.cjs} +19 -19
- package/dist/{chunk-UQW6SLM5.js → chunk-A7PIMZGU.js} +110 -19
- package/dist/{chunk-RT7LJRSF.cjs → chunk-ATSKSYVE.cjs} +1013 -6708
- package/dist/{chunk-WN3YF33G.cjs → chunk-B5TCIAPQ.cjs} +9 -10
- package/dist/{chunk-AIUXRS74.cjs → chunk-BF2235SI.cjs} +4275 -2242
- package/dist/{chunk-DIEDKX5B.cjs → chunk-BND3ST2K.cjs} +18 -16
- package/dist/{chunk-EPWRXL6S.js → chunk-BU7VWW2K.js} +29 -29
- package/dist/{chunk-6OQBLABR.js → chunk-BWFJEM5A.js} +368 -189
- package/dist/{chunk-ARNKA274.cjs → chunk-CAUCGUEA.cjs} +6 -6
- package/dist/{chunk-YCMQQQ5U.cjs → chunk-CBJSLA2E.cjs} +398 -219
- package/dist/{chunk-BU5ZAFMC.js → chunk-CDPGV4DN.js} +6 -7
- package/dist/{chunk-CO2VM2DK.js → chunk-CS2EMTGF.js} +10 -9
- package/dist/{chunk-AW7WAELW.js → chunk-DMG7C4H2.js} +4 -4
- package/dist/{chunk-XSF76QRU.js → chunk-DXJQDCFL.js} +3 -3
- package/dist/{chunk-4FCZDTD5.js → chunk-E3FWRT3Z.js} +7 -9
- package/dist/{chunk-KYM4XRFG.js → chunk-E3UALNFA.js} +4 -4
- package/dist/{chunk-GC3YU46J.js → chunk-EONILVMF.js} +2 -2
- package/dist/{chunk-VJVCD5T5.cjs → chunk-EQV4R3EV.cjs} +22 -22
- package/dist/{chunk-FEFHPUEM.cjs → chunk-F3HH56EB.cjs} +74 -658
- package/dist/{chunk-WYH4GVZ5.js → chunk-F4IULT7N.js} +2 -2
- package/dist/{chunk-XDXZM3ZP.cjs → chunk-FFKU7BTK.cjs} +19 -19
- package/dist/{chunk-NKRKT6V2.js → chunk-FHQVYCH2.js} +11 -10
- package/dist/{chunk-7H5UNJZD.cjs → chunk-FSF7EQVA.cjs} +11 -10
- package/dist/{chunk-KUJRR4FJ.js → chunk-G4VZTCIB.js} +9 -7
- package/dist/{chunk-A6GO3DPZ.cjs → chunk-G7CT3EMP.cjs} +4 -4
- package/dist/{chunk-EUFLX2PI.js → chunk-GGHSW2NN.js} +989 -6611
- package/dist/chunk-GVUR45UF.cjs +777 -0
- package/dist/{chunk-ODGMVILH.js → chunk-H5Z7NASB.js} +3 -3
- package/dist/{chunk-7KPI4EKH.cjs → chunk-HE7ULERA.cjs} +45 -49
- package/dist/{chunk-26TLYBFD.js → chunk-HPS76H7Q.js} +3 -3
- package/dist/{chunk-RE3OKSYF.cjs → chunk-HQUEA5R6.cjs} +6 -6
- package/dist/{chunk-ZGTGVSTZ.js → chunk-HYNTS5CP.js} +2 -2
- package/dist/{chunk-PBA6NXCT.cjs → chunk-IBDG74G2.cjs} +6 -3
- package/dist/chunk-IFNQFCTM.js +3098 -0
- package/dist/{chunk-ZL6VJ6SN.js → chunk-IWI6J7FX.js} +5 -5
- package/dist/{chunk-3KEU5QYY.cjs → chunk-K3JDKWGI.cjs} +118 -23
- package/dist/{chunk-NLPSZT4C.js → chunk-K6EKD26I.js} +6 -6
- package/dist/chunk-KCQ5NDYC.cjs +3172 -0
- package/dist/{chunk-ELLQPFAF.js → chunk-KED34ILP.js} +11 -9
- package/dist/{chunk-BY3B7ZYV.cjs → chunk-KSGXLT74.cjs} +3 -3
- package/dist/{chunk-65RFOWZI.js → chunk-L4G4RLXX.js} +9 -7
- package/dist/{chunk-4SMUJFHL.js → chunk-LDP5OK6G.js} +6 -3
- package/dist/{chunk-VZNKJZTT.cjs → chunk-LGGRPKTV.cjs} +82 -96
- package/dist/{chunk-C2QHVHZF.js → chunk-LSW7P7ML.js} +23 -414
- package/dist/{chunk-HHS6FMOU.cjs → chunk-LXJ4667L.cjs} +83 -22
- package/dist/{chunk-H6WMMLQK.cjs → chunk-LZ266PCM.cjs} +20 -13
- package/dist/{chunk-V2ILLPHK.cjs → chunk-MD6KDHVE.cjs} +10 -10
- package/dist/{chunk-6WNCRE6F.js → chunk-MEASWI2Y.js} +5 -5
- package/dist/chunk-MPXBVFHQ.js +768 -0
- package/dist/{chunk-WUXIRGZP.cjs → chunk-NCUKG4SK.cjs} +304 -144
- package/dist/chunk-NDQNIJEH.js +1715 -0
- package/dist/{chunk-Y5MUAYTO.js → chunk-NOZZ46QU.js} +9 -8
- package/dist/{chunk-F5LVGHNT.js → chunk-OFKWH2IP.js} +3 -3
- package/dist/{chunk-SPDELRRV.cjs → chunk-PMGODDJA.cjs} +12 -12
- package/dist/{chunk-I3XGTIHM.cjs → chunk-Q4QX3AET.cjs} +2 -2
- package/dist/{chunk-Y7VK5TH3.cjs → chunk-Q5JT3YML.cjs} +10 -10
- package/dist/{chunk-TSWTWZ42.cjs → chunk-Q5SJOGHQ.cjs} +247 -205
- package/dist/{chunk-M6FU6S22.js → chunk-QGKNANZ3.js} +251 -91
- package/dist/{chunk-WFJIDI2N.cjs → chunk-QLEAOI3Q.cjs} +10 -10
- package/dist/{chunk-VK5AXKO3.js → chunk-R7MA7QWV.js} +70 -84
- package/dist/{chunk-W76ETJTI.js → chunk-RVYPEYPX.js} +6 -6
- package/dist/{chunk-MWEFR6YQ.js → chunk-S2N5TNMA.js} +7 -9
- package/dist/{chunk-NCUHGRTZ.js → chunk-S565K7NK.js} +7 -7
- package/dist/{chunk-AC4BSHFV.js → chunk-SDAMZIRE.js} +5 -5
- package/dist/{chunk-HBZYCASG.js → chunk-T36DDXSF.js} +75 -33
- package/dist/{chunk-BO2OKHIY.js → chunk-T4NKMBDL.js} +30 -611
- package/dist/{chunk-7X2IEJIE.cjs → chunk-T7LEXZUZ.cjs} +29 -29
- package/dist/{chunk-HUFNKFA6.js → chunk-TEWCN33Y.js} +8 -12
- package/dist/{chunk-L3Z2HIWJ.cjs → chunk-TQSZUOW5.cjs} +2 -2
- package/dist/chunk-TSH3MSQU.cjs +129 -0
- package/dist/{chunk-PLMYCCA4.js → chunk-UERJ3YJV.js} +6 -6
- package/dist/{chunk-7N3JIJMT.js → chunk-UPJBDCVF.js} +6 -6
- package/dist/{chunk-CMYAWUX3.js → chunk-V3NN3HPP.js} +12 -5
- package/dist/{chunk-SUCBB66F.js → chunk-WB4Z63GG.js} +3 -3
- package/dist/{chunk-PPULB4GG.cjs → chunk-WDW67DZB.cjs} +68 -68
- package/dist/chunk-WGMEAYBG.js +126 -0
- package/dist/{chunk-VSXOIUCF.cjs → chunk-X4ZF6CNE.cjs} +7 -7
- package/dist/{chunk-HF4OFY25.cjs → chunk-X6SEAXAX.cjs} +29 -445
- package/dist/{chunk-C7BNX4XJ.js → chunk-XCWFGZAA.js} +6 -6
- package/dist/{chunk-CNVM7J3M.js → chunk-XD6IYDUX.js} +34 -14
- package/dist/chunk-XG23EUQX.cjs +1717 -0
- package/dist/{chunk-DN7UFU63.cjs → chunk-XRKWN5PL.cjs} +12 -11
- package/dist/{chunk-XNMEH2BI.js → chunk-XUTX5CBW.js} +3 -3
- package/dist/{chunk-PQLGZKMC.cjs → chunk-XWPNTWDN.cjs} +26 -26
- package/dist/{chunk-NTMZSDXM.cjs → chunk-XXINBTZK.cjs} +43 -43
- package/dist/{chunk-74YCHHTE.js → chunk-YCXFCXDS.js} +8 -12
- package/dist/{chunk-KDB6BUMB.js → chunk-YQK5JNFK.js} +77 -18
- package/dist/{chunk-DH5G2JUA.cjs → chunk-Z34RLXRA.cjs} +44 -46
- package/dist/{chunk-XH7SE4HH.cjs → chunk-ZP4D3CSX.cjs} +19 -19
- package/dist/cli/holoscript-runner.cjs +33 -32
- package/dist/cli/holoscript-runner.js +13 -12
- package/dist/codebase/index.cjs +1 -1
- package/dist/codebase/index.d.ts +25 -0
- package/dist/codebase/index.js +1 -1
- package/dist/compiler/agent-inference.cjs +7 -8
- package/dist/compiler/agent-inference.js +3 -4
- package/dist/compiler/android-xr.cjs +7 -8
- package/dist/compiler/android-xr.js +5 -6
- package/dist/compiler/android.cjs +8 -9
- package/dist/compiler/android.js +6 -7
- package/dist/compiler/ar.cjs +6 -7
- package/dist/compiler/ar.js +4 -5
- package/dist/compiler/babylon.cjs +8 -9
- package/dist/compiler/babylon.js +7 -8
- package/dist/compiler/coco.cjs +1 -1
- package/dist/compiler/coco.js +1 -1
- package/dist/compiler/domain-block-utils.cjs +158 -151
- package/dist/compiler/domain-block-utils.js +4 -5
- package/dist/compiler/dtdl.cjs +7 -8
- package/dist/compiler/dtdl.js +4 -5
- package/dist/compiler/gltf-pipeline.cjs +9 -9
- package/dist/compiler/gltf-pipeline.js +2 -2
- package/dist/compiler/godot.cjs +6 -7
- package/dist/compiler/godot.js +5 -6
- package/dist/compiler/incremental.cjs +7 -8
- package/dist/compiler/incremental.js +2 -3
- package/dist/compiler/index.cjs +1934 -878
- package/dist/compiler/index.js +1904 -842
- package/dist/compiler/ios.cjs +8 -9
- package/dist/compiler/ios.js +6 -7
- package/dist/compiler/multi-layer.cjs +10 -17
- package/dist/compiler/multi-layer.js +9 -10
- package/dist/compiler/nodetoy.cjs +1 -1
- package/dist/compiler/nodetoy.js +1 -1
- package/dist/compiler/openxr.cjs +6 -7
- package/dist/compiler/openxr.js +5 -6
- package/dist/compiler/playcanvas.cjs +7 -8
- package/dist/compiler/playcanvas.js +6 -7
- package/dist/compiler/r3f.cjs +13 -14
- package/dist/compiler/r3f.js +8 -9
- 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 +7 -8
- package/dist/compiler/sdf.js +5 -6
- package/dist/compiler/semantic-scene.cjs +7 -7
- package/dist/compiler/semantic-scene.js +2 -2
- package/dist/compiler/state.cjs +5 -6
- package/dist/compiler/state.js +3 -4
- package/dist/compiler/trait-composition.cjs +7 -8
- package/dist/compiler/trait-composition.js +3 -4
- package/dist/compiler/unity.cjs +6 -7
- package/dist/compiler/unity.js +5 -6
- package/dist/compiler/unreal.cjs +7 -8
- package/dist/compiler/unreal.js +5 -6
- package/dist/compiler/urdf.cjs +13 -14
- package/dist/compiler/urdf.js +5 -6
- package/dist/compiler/usd-physics.cjs +7 -8
- package/dist/compiler/usd-physics.js +4 -5
- package/dist/compiler/visionos.cjs +6 -7
- package/dist/compiler/visionos.js +5 -6
- package/dist/compiler/vrchat.cjs +7 -8
- package/dist/compiler/vrchat.js +5 -6
- package/dist/compiler/vrr.cjs +7 -8
- package/dist/compiler/vrr.js +5 -6
- package/dist/compiler/wasm.cjs +10 -11
- package/dist/compiler/wasm.js +5 -6
- package/dist/compiler/webgpu.cjs +6 -7
- package/dist/compiler/webgpu.js +5 -6
- package/dist/constants.d.ts +3 -0
- package/dist/debugger.cjs +7 -7
- package/dist/debugger.js +5 -5
- package/dist/entries/interop.cjs +1 -1
- package/dist/entries/interop.d.ts +9 -0
- package/dist/entries/interop.js +1 -1
- package/dist/entries/scripting.cjs +18 -17
- package/dist/entries/scripting.d.ts +7 -0
- package/dist/entries/scripting.js +8 -7
- package/dist/index.cjs +6773 -27555
- package/dist/index.d.ts +19 -0
- package/dist/index.js +5212 -26101
- package/dist/math/vec3.cjs +1 -1
- package/dist/math/vec3.js +1 -1
- package/dist/ml-dsa-PHCWUBPX.cjs +1178 -0
- package/dist/ml-dsa-WYLJHJO6.js +1178 -0
- package/dist/parser.cjs +11 -10
- package/dist/parser.js +8 -7
- package/dist/{playwright-BIZXMLD2.js → playwright-5OSAPTNH.js} +3 -3
- package/dist/{playwright-7DTEQCBD.cjs → playwright-RL6GY4F7.cjs} +1985 -1985
- package/dist/runtime.cjs +5 -5
- package/dist/runtime.js +4 -4
- package/dist/self-improvement/index.d.ts +0 -48
- package/dist/storage/index.cjs +1 -1
- package/dist/storage/index.d.ts +24 -0
- package/dist/storage/index.js +1 -1
- package/dist/tools/index.d.ts +12 -0
- package/dist/traits/index.cjs +925 -607
- package/dist/traits/index.js +137 -20
- package/dist/type-checker.cjs +4 -4
- package/dist/type-checker.js +2 -2
- package/package.json +54 -19
- package/LICENSE +0 -21
- package/dist/GLTFPipeline-3KLWWUQO.cjs +0 -34
- package/dist/GLTFPipeline-LYII2ZVQ.js +0 -13
- package/dist/chunk-CN4NOESF.cjs +0 -416
- package/dist/chunk-DXVCEFZB.js +0 -2027
- package/dist/chunk-ENV7K6XA.js +0 -282
- package/dist/chunk-H7XMORZI.js +0 -2731
- package/dist/chunk-HAN4V3PF.cjs +0 -2037
- package/dist/chunk-LER4WXW5.cjs +0 -286
- package/dist/chunk-QHVVVN47.cjs +0 -2033
- package/dist/chunk-QWKUKVRE.js +0 -2026
- package/dist/chunk-UITWA6DV.cjs +0 -2829
- package/dist/chunk-X67XRI2T.js +0 -410
- package/dist/post-quantum-JTTAAGO3.cjs +0 -6
- package/dist/post-quantum-RVPVDEPI.js +0 -4
- package/dist/wot/index.cjs +0 -29
- package/dist/wot/index.js +0 -4
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ const output = compiler.compile(ast);
|
|
|
37
37
|
- **Multi-format Parser** - Supports `.hs`, `.hsplus`, and `.holo` files
|
|
38
38
|
- **Complete AST** - Full abstract syntax tree representation
|
|
39
39
|
- **Validation** - Comprehensive error checking with recovery
|
|
40
|
-
- **
|
|
40
|
+
- **30+ Compile Targets** - Web (R3F, Babylon), Unity, Unreal, Godot, iOS, Android, Vision Pro, WebGPU, WASM, VRChat, OpenXR, URDF, DTDL, SDF
|
|
41
41
|
- **3,300+ Traits** - Modularized across 114 category files covering VR interactions, physics, networking, AI, scripting, automation, animation, nature, magic, sci-fi, emotions, and more
|
|
42
42
|
- **AI Integration** - Adapters for OpenAI, Anthropic, Gemini, Ollama, and more
|
|
43
43
|
- **Reactive State** - `reactive()`, `computed()`, `effect()`, `bind()`
|
|
@@ -51,43 +51,43 @@ const output = compiler.compile(ast);
|
|
|
51
51
|
| `HoloScript2DParser` | `.hs` | Basic logic and protocols |
|
|
52
52
|
| `HoloScriptParser` | `.hs` | Legacy parser |
|
|
53
53
|
|
|
54
|
-
## Compilers (
|
|
55
|
-
|
|
56
|
-
| Compiler
|
|
57
|
-
|
|
|
58
|
-
| `UnityCompiler`
|
|
59
|
-
| `UnrealCompiler`
|
|
60
|
-
| `GodotCompiler`
|
|
61
|
-
| `R3FCompiler`
|
|
62
|
-
| `BabylonCompiler`
|
|
63
|
-
| `PlayCanvasCompiler`
|
|
64
|
-
| `OpenXRCompiler`
|
|
65
|
-
| `VRChatCompiler`
|
|
66
|
-
| `VisionOSCompiler`
|
|
67
|
-
| `AndroidXRCompiler`
|
|
68
|
-
| `IOSCompiler`
|
|
69
|
-
| `AndroidCompiler`
|
|
70
|
-
| `ARCompiler`
|
|
71
|
-
| `WASMCompiler`
|
|
72
|
-
| `WebGPUCompiler`
|
|
73
|
-
| `URDFCompiler`
|
|
74
|
-
| `SDFCompiler`
|
|
75
|
-
| `DTDLCompiler`
|
|
76
|
-
| `StateCompiler`
|
|
77
|
-
| `A2AAgentCardCompiler`
|
|
78
|
-
| `NIRCompiler`
|
|
79
|
-
| `VRRCompiler`
|
|
80
|
-
| `Native2DCompiler`
|
|
81
|
-
| `NodeServiceCompiler`
|
|
82
|
-
| `AIGlassesCompiler`
|
|
83
|
-
| `GLTFPipeline`
|
|
84
|
-
| `NFTMarketplaceCompiler`
|
|
85
|
-
| `USDPhysicsCompiler`
|
|
86
|
-
| `TSLCompiler`
|
|
87
|
-
| `SCMCompiler`
|
|
88
|
-
| `QuiltCompiler`
|
|
89
|
-
| `MVHEVCCompiler`
|
|
90
|
-
| `FlatSemanticCompiler`
|
|
54
|
+
## Compilers (30+ implementations; verify live targets via health + ExportTarget enum)
|
|
55
|
+
|
|
56
|
+
| Compiler | Target | Output |
|
|
57
|
+
| ------------------------ | ------------------------- | ----------------- |
|
|
58
|
+
| `UnityCompiler` | Unity Engine | C# + Prefab |
|
|
59
|
+
| `UnrealCompiler` | Unreal Engine 5 | C++ + Blueprint |
|
|
60
|
+
| `GodotCompiler` | Godot 4 | GDScript + .tscn |
|
|
61
|
+
| `R3FCompiler` | React Three Fiber | TSX + hooks |
|
|
62
|
+
| `BabylonCompiler` | Babylon.js | TypeScript |
|
|
63
|
+
| `PlayCanvasCompiler` | PlayCanvas | JavaScript |
|
|
64
|
+
| `OpenXRCompiler` | OpenXR Standard | C++ |
|
|
65
|
+
| `VRChatCompiler` | VRChat | UdonSharp C# |
|
|
66
|
+
| `VisionOSCompiler` | Apple Vision Pro | Swift |
|
|
67
|
+
| `AndroidXRCompiler` | Android XR | Kotlin |
|
|
68
|
+
| `IOSCompiler` | iOS / ARKit | Swift |
|
|
69
|
+
| `AndroidCompiler` | Android / ARCore | Kotlin |
|
|
70
|
+
| `ARCompiler` | Generic AR | TypeScript |
|
|
71
|
+
| `WASMCompiler` | WebAssembly | .wasm + .js |
|
|
72
|
+
| `WebGPUCompiler` | WebGPU Compute | WGSL + TypeScript |
|
|
73
|
+
| `URDFCompiler` | Robotics (URDF) | .urdf XML |
|
|
74
|
+
| `SDFCompiler` | SDF / Gazebo | .sdf XML |
|
|
75
|
+
| `DTDLCompiler` | Digital Twins | JSON-LD |
|
|
76
|
+
| `StateCompiler` | Reactive State | JSON |
|
|
77
|
+
| `A2AAgentCardCompiler` | A2A Agent Cards | JSON |
|
|
78
|
+
| `NIRCompiler` | Neuromorphic IR | JSON |
|
|
79
|
+
| `VRRCompiler` | Variable Rate Rendering | TypeScript |
|
|
80
|
+
| `Native2DCompiler` | 2D HTML/CSS | TSX + HTML |
|
|
81
|
+
| `NodeServiceCompiler` | Node.js Services | TypeScript |
|
|
82
|
+
| `AIGlassesCompiler` | AI Glasses | Kotlin Compose |
|
|
83
|
+
| `GLTFPipeline` | glTF | .glb / .gltf |
|
|
84
|
+
| `NFTMarketplaceCompiler` | NFT Marketplace | Solidity |
|
|
85
|
+
| `USDPhysicsCompiler` | USD Physics | .usda |
|
|
86
|
+
| `TSLCompiler` | Three.js Shading Language | GLSL / WGSL |
|
|
87
|
+
| `SCMCompiler` | Structural Causal Model | JSON DAG |
|
|
88
|
+
| `QuiltCompiler` | Looking Glass Hologram | Multi-view PNG |
|
|
89
|
+
| `MVHEVCCompiler` | MV-HEVC Hologram | Swift + .mov |
|
|
90
|
+
| `FlatSemanticCompiler` | Semantic 2D Layout | TSX |
|
|
91
91
|
|
|
92
92
|
## Trait System
|
|
93
93
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { GLTFPipeline, createGLTFPipeline, generateScaleNormalMap, generateScaleTexture } from './chunk-3FJCK5XA.js';
|
|
2
|
+
import './chunk-HJJLD366.js';
|
|
3
|
+
import './chunk-T36DDXSF.js';
|
|
4
|
+
import './chunk-H5Z7NASB.js';
|
|
5
|
+
import './chunk-A7PIMZGU.js';
|
|
6
|
+
import './chunk-DXJQDCFL.js';
|
|
7
|
+
import './chunk-56IF4NTA.js';
|
|
8
|
+
import './chunk-YQK5JNFK.js';
|
|
9
|
+
import './chunk-6XSERL6L.js';
|
|
10
|
+
import './chunk-2CWOLHTE.js';
|
|
11
|
+
//# sourceMappingURL=GLTFPipeline-DEN36VNK.js.map
|
|
12
|
+
//# sourceMappingURL=GLTFPipeline-DEN36VNK.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk5BGSECRJ_cjs = require('./chunk-5BGSECRJ.cjs');
|
|
4
|
+
require('./chunk-LK5IAVH6.cjs');
|
|
5
|
+
require('./chunk-Q5SJOGHQ.cjs');
|
|
6
|
+
require('./chunk-WDW67DZB.cjs');
|
|
7
|
+
require('./chunk-K3JDKWGI.cjs');
|
|
8
|
+
require('./chunk-X4ZF6CNE.cjs');
|
|
9
|
+
require('./chunk-3FYZOR7S.cjs');
|
|
10
|
+
require('./chunk-LXJ4667L.cjs');
|
|
11
|
+
require('./chunk-BF2235SI.cjs');
|
|
12
|
+
require('./chunk-3SAK5KFL.cjs');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
Object.defineProperty(exports, "GLTFPipeline", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunk5BGSECRJ_cjs.GLTFPipeline; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "createGLTFPipeline", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunk5BGSECRJ_cjs.createGLTFPipeline; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "generateScaleNormalMap", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunk5BGSECRJ_cjs.generateScaleNormalMap; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "generateScaleTexture", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunk5BGSECRJ_cjs.generateScaleTexture; }
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=GLTFPipeline-YPCAK236.cjs.map
|
|
33
|
+
//# sourceMappingURL=GLTFPipeline-YPCAK236.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MaterialTrait, LIGHTING_PRESETS, LightingTrait, RenderingTrait, SHADER_PRESETS, ShaderTrait } from './chunk-
|
|
2
|
-
import { HoloScriptCodeParser } from './chunk-
|
|
1
|
+
import { MaterialTrait, LIGHTING_PRESETS, LightingTrait, RenderingTrait, SHADER_PRESETS, ShaderTrait } from './chunk-F4IULT7N.js';
|
|
2
|
+
import { HoloScriptCodeParser } from './chunk-BU7VWW2K.js';
|
|
3
3
|
import './chunk-PHENW4MQ.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-2CWOLHTE.js';
|
|
5
5
|
|
|
6
6
|
// src/HoloScriptPlusParser.ts
|
|
7
7
|
var HoloScriptPlusParser = class {
|
|
@@ -688,5 +688,5 @@ var HoloScriptPlusParser = class {
|
|
|
688
688
|
var HoloScriptPlusParser_default = HoloScriptPlusParser;
|
|
689
689
|
|
|
690
690
|
export { HoloScriptPlusParser, HoloScriptPlusParser_default as default };
|
|
691
|
-
//# sourceMappingURL=HoloScriptPlusParser-
|
|
692
|
-
//# sourceMappingURL=HoloScriptPlusParser-
|
|
691
|
+
//# sourceMappingURL=HoloScriptPlusParser-BN6KVRCM.js.map
|
|
692
|
+
//# sourceMappingURL=HoloScriptPlusParser-BN6KVRCM.js.map
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkQ4QX3AET_cjs = require('./chunk-Q4QX3AET.cjs');
|
|
6
|
+
var chunkT7LEXZUZ_cjs = require('./chunk-T7LEXZUZ.cjs');
|
|
7
7
|
require('./chunk-ILRBGFVD.cjs');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-3SAK5KFL.cjs');
|
|
9
9
|
|
|
10
10
|
// src/HoloScriptPlusParser.ts
|
|
11
11
|
var HoloScriptPlusParser = class {
|
|
12
12
|
constructor() {
|
|
13
|
-
this.baseParser = new
|
|
13
|
+
this.baseParser = new chunkT7LEXZUZ_cjs.HoloScriptCodeParser();
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Parse HoloScript+ code with trait annotations
|
|
@@ -347,7 +347,7 @@ var HoloScriptPlusParser = class {
|
|
|
347
347
|
*/
|
|
348
348
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- dynamic material config from parsed AST
|
|
349
349
|
createMaterialTrait(config) {
|
|
350
|
-
const material = new
|
|
350
|
+
const material = new chunkQ4QX3AET_cjs.MaterialTrait({
|
|
351
351
|
type: config.type || "pbr",
|
|
352
352
|
pbr: config.pbr
|
|
353
353
|
});
|
|
@@ -373,11 +373,11 @@ var HoloScriptPlusParser = class {
|
|
|
373
373
|
createLightingTrait(config) {
|
|
374
374
|
let lighting;
|
|
375
375
|
if (config.preset) {
|
|
376
|
-
const presetFactory =
|
|
376
|
+
const presetFactory = chunkQ4QX3AET_cjs.LIGHTING_PRESETS[config.preset];
|
|
377
377
|
const presetConfig = presetFactory ? presetFactory() : void 0;
|
|
378
|
-
lighting = new
|
|
378
|
+
lighting = new chunkQ4QX3AET_cjs.LightingTrait(presetConfig);
|
|
379
379
|
} else {
|
|
380
|
-
lighting = new
|
|
380
|
+
lighting = new chunkQ4QX3AET_cjs.LightingTrait();
|
|
381
381
|
}
|
|
382
382
|
if (config.globalIllumination) {
|
|
383
383
|
lighting.setGlobalIllumination(config.globalIllumination);
|
|
@@ -393,7 +393,7 @@ var HoloScriptPlusParser = class {
|
|
|
393
393
|
* Create RenderingTrait from config
|
|
394
394
|
*/
|
|
395
395
|
createRenderingTrait(config) {
|
|
396
|
-
const rendering = new
|
|
396
|
+
const rendering = new chunkQ4QX3AET_cjs.RenderingTrait();
|
|
397
397
|
if (config.quality) {
|
|
398
398
|
rendering.applyQualityPreset(config.quality);
|
|
399
399
|
}
|
|
@@ -428,9 +428,9 @@ var HoloScriptPlusParser = class {
|
|
|
428
428
|
* Create ShaderTrait from config
|
|
429
429
|
*/
|
|
430
430
|
createShaderTrait(config) {
|
|
431
|
-
if (config.preset &&
|
|
432
|
-
const preset =
|
|
433
|
-
return new
|
|
431
|
+
if (config.preset && chunkQ4QX3AET_cjs.SHADER_PRESETS[config.preset]) {
|
|
432
|
+
const preset = chunkQ4QX3AET_cjs.SHADER_PRESETS[config.preset];
|
|
433
|
+
return new chunkQ4QX3AET_cjs.ShaderTrait(preset);
|
|
434
434
|
}
|
|
435
435
|
const shaderConfig = {
|
|
436
436
|
source: {
|
|
@@ -445,7 +445,7 @@ var HoloScriptPlusParser = class {
|
|
|
445
445
|
depthWrite: config.depthWrite,
|
|
446
446
|
cullFace: config.cullFace
|
|
447
447
|
};
|
|
448
|
-
return new
|
|
448
|
+
return new chunkQ4QX3AET_cjs.ShaderTrait(shaderConfig);
|
|
449
449
|
}
|
|
450
450
|
/**
|
|
451
451
|
* Validate shader trait configuration
|
|
@@ -456,7 +456,7 @@ var HoloScriptPlusParser = class {
|
|
|
456
456
|
if (!config.preset && !config.vertex && !config.fragment) {
|
|
457
457
|
errors.push("shader must have either preset or vertex/fragment code");
|
|
458
458
|
}
|
|
459
|
-
if (config.preset && !
|
|
459
|
+
if (config.preset && !chunkQ4QX3AET_cjs.SHADER_PRESETS[config.preset]) {
|
|
460
460
|
errors.push(
|
|
461
461
|
`shader.preset "${config.preset}" is not a valid preset. Available: hologram, forceField, dissolve`
|
|
462
462
|
);
|
|
@@ -693,5 +693,5 @@ var HoloScriptPlusParser_default = HoloScriptPlusParser;
|
|
|
693
693
|
|
|
694
694
|
exports.HoloScriptPlusParser = HoloScriptPlusParser;
|
|
695
695
|
exports.default = HoloScriptPlusParser_default;
|
|
696
|
-
//# sourceMappingURL=HoloScriptPlusParser-
|
|
697
|
-
//# sourceMappingURL=HoloScriptPlusParser-
|
|
696
|
+
//# sourceMappingURL=HoloScriptPlusParser-NC5FE6AL.cjs.map
|
|
697
|
+
//# sourceMappingURL=HoloScriptPlusParser-NC5FE6AL.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './chunk-
|
|
1
|
+
import './chunk-2CWOLHTE.js';
|
|
2
2
|
|
|
3
3
|
// src/export/usdz/USDTypes.ts
|
|
4
4
|
function createUSDXform(name, path) {
|
|
@@ -703,5 +703,5 @@ _USDZExporter.DEFAULT_OPTIONS = {
|
|
|
703
703
|
var USDZExporter = _USDZExporter;
|
|
704
704
|
|
|
705
705
|
export { USDZExporter };
|
|
706
|
-
//# sourceMappingURL=USDZExporter-
|
|
707
|
-
//# sourceMappingURL=USDZExporter-
|
|
706
|
+
//# sourceMappingURL=USDZExporter-NTMBNTDB.js.map
|
|
707
|
+
//# sourceMappingURL=USDZExporter-NTMBNTDB.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('./chunk-
|
|
3
|
+
require('./chunk-3SAK5KFL.cjs');
|
|
4
4
|
|
|
5
5
|
// src/export/usdz/USDTypes.ts
|
|
6
6
|
function createUSDXform(name, path) {
|
|
@@ -705,5 +705,5 @@ _USDZExporter.DEFAULT_OPTIONS = {
|
|
|
705
705
|
var USDZExporter = _USDZExporter;
|
|
706
706
|
|
|
707
707
|
exports.USDZExporter = USDZExporter;
|
|
708
|
-
//# sourceMappingURL=USDZExporter-
|
|
709
|
-
//# sourceMappingURL=USDZExporter-
|
|
708
|
+
//# sourceMappingURL=USDZExporter-UWGWNMMD.cjs.map
|
|
709
|
+
//# sourceMappingURL=USDZExporter-UWGWNMMD.cjs.map
|
|
@@ -32,7 +32,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
32
32
|
}
|
|
33
33
|
return to;
|
|
34
34
|
};
|
|
35
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
36
35
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
37
36
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
38
37
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -65,6 +64,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
65
64
|
}
|
|
66
65
|
});
|
|
67
66
|
|
|
68
|
-
export { __commonJS, __decorateClass, __esm, __export, __privateAdd, __privateGet, __privateMethod, __privateSet, __privateWrapper, __publicField,
|
|
69
|
-
//# sourceMappingURL=chunk-
|
|
70
|
-
//# sourceMappingURL=chunk-
|
|
67
|
+
export { __commonJS, __decorateClass, __esm, __export, __privateAdd, __privateGet, __privateMethod, __privateSet, __privateWrapper, __publicField, __require, __toCommonJS, __toESM };
|
|
68
|
+
//# sourceMappingURL=chunk-2CWOLHTE.js.map
|
|
69
|
+
//# sourceMappingURL=chunk-2CWOLHTE.js.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
3
|
+
var chunkK3JDKWGI_cjs = require('./chunk-K3JDKWGI.cjs');
|
|
4
|
+
var chunkX4ZF6CNE_cjs = require('./chunk-X4ZF6CNE.cjs');
|
|
5
|
+
var chunkLXJ4667L_cjs = require('./chunk-LXJ4667L.cjs');
|
|
6
|
+
var chunkBF2235SI_cjs = require('./chunk-BF2235SI.cjs');
|
|
7
|
+
var chunk3SAK5KFL_cjs = require('./chunk-3SAK5KFL.cjs');
|
|
8
|
+
var platform = require('@holoscript/platform');
|
|
8
9
|
|
|
9
10
|
// src/compiler/BabylonCompiler.ts
|
|
10
11
|
var BabylonCompiler_exports = {};
|
|
11
|
-
|
|
12
|
+
chunk3SAK5KFL_cjs.__export(BabylonCompiler_exports, {
|
|
12
13
|
BabylonCompiler: () => exports.BabylonCompiler
|
|
13
14
|
});
|
|
14
15
|
var SHAPE_TO_MESH; exports.BabylonCompiler = void 0;
|
|
15
|
-
var init_BabylonCompiler =
|
|
16
|
+
var init_BabylonCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
16
17
|
"src/compiler/BabylonCompiler.ts"() {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
chunkHHS6FMOU_cjs.init_DomainBlockCompilerMixin();
|
|
18
|
+
chunkX4ZF6CNE_cjs.init_TraitCompositor();
|
|
19
|
+
chunkK3JDKWGI_cjs.init_ProvenanceSemiring();
|
|
20
|
+
chunkBF2235SI_cjs.init_CompilerBase();
|
|
21
|
+
chunkLXJ4667L_cjs.init_DomainBlockCompilerMixin();
|
|
22
22
|
SHAPE_TO_MESH = {
|
|
23
23
|
sphere: "CreateSphere",
|
|
24
24
|
orb: "CreateSphere",
|
|
@@ -34,7 +34,7 @@ var init_BabylonCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
34
34
|
capsule: "CreateCapsule",
|
|
35
35
|
disc: "CreateDisc"
|
|
36
36
|
};
|
|
37
|
-
exports.BabylonCompiler = class extends
|
|
37
|
+
exports.BabylonCompiler = class extends chunkBF2235SI_cjs.CompilerBase {
|
|
38
38
|
constructor(options = {}) {
|
|
39
39
|
super();
|
|
40
40
|
this.compilerName = "BabylonCompiler";
|
|
@@ -48,7 +48,7 @@ var init_BabylonCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
getRequiredCapability() {
|
|
51
|
-
return
|
|
51
|
+
return platform.ANSCapabilityPath.BABYLON;
|
|
52
52
|
}
|
|
53
53
|
compile(composition, agentToken, outputPath) {
|
|
54
54
|
this.validateCompilerAccess(agentToken, outputPath);
|
|
@@ -126,31 +126,31 @@ var init_BabylonCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
126
126
|
this.emit("");
|
|
127
127
|
this.emit("// === v4.2 Domain Blocks ===");
|
|
128
128
|
let blockIdx = 0;
|
|
129
|
-
const compiled =
|
|
129
|
+
const compiled = chunkLXJ4667L_cjs.compileDomainBlocks(
|
|
130
130
|
domainBlocks,
|
|
131
131
|
{
|
|
132
132
|
material: (block) => {
|
|
133
|
-
const mat =
|
|
134
|
-
return
|
|
133
|
+
const mat = chunkLXJ4667L_cjs.compileMaterialBlock(block);
|
|
134
|
+
return chunkLXJ4667L_cjs.materialToBabylon(mat, `db${blockIdx++}`);
|
|
135
135
|
},
|
|
136
136
|
physics: (block) => {
|
|
137
|
-
const phys =
|
|
138
|
-
return
|
|
137
|
+
const phys = chunkLXJ4667L_cjs.compilePhysicsBlock(block);
|
|
138
|
+
return chunkLXJ4667L_cjs.physicsToBabylon(phys, `db${blockIdx++}`);
|
|
139
139
|
},
|
|
140
140
|
vfx: (block) => {
|
|
141
|
-
const ps =
|
|
142
|
-
return
|
|
141
|
+
const ps = chunkLXJ4667L_cjs.compileParticleBlock(block);
|
|
142
|
+
return chunkLXJ4667L_cjs.particlesToBabylon(ps, `db${blockIdx++}`);
|
|
143
143
|
},
|
|
144
144
|
postfx: (block) => {
|
|
145
|
-
const pp =
|
|
146
|
-
return
|
|
145
|
+
const pp = chunkLXJ4667L_cjs.compilePostProcessingBlock(block);
|
|
146
|
+
return chunkLXJ4667L_cjs.postProcessingToBabylon(pp);
|
|
147
147
|
},
|
|
148
148
|
audio: (block) => {
|
|
149
|
-
const audio =
|
|
150
|
-
return
|
|
149
|
+
const audio = chunkLXJ4667L_cjs.compileAudioSourceBlock(block);
|
|
150
|
+
return chunkLXJ4667L_cjs.audioSourceToBabylon(audio, `db${blockIdx++}`);
|
|
151
151
|
},
|
|
152
152
|
weather: (block) => {
|
|
153
|
-
const weather =
|
|
153
|
+
const weather = chunkLXJ4667L_cjs.compileWeatherBlock(block);
|
|
154
154
|
const layers = weather.layers.map((l) => `// Layer: ${l.type} \u2014 ${JSON.stringify(l.properties)}`).join("\n");
|
|
155
155
|
return `// Weather: ${weather.keyword} "${weather.name || ""}" \u2014 implement via Babylon.js particle systems
|
|
156
156
|
${layers}`;
|
|
@@ -330,9 +330,11 @@ ${layers}`;
|
|
|
330
330
|
);
|
|
331
331
|
}
|
|
332
332
|
if (parentVar) this.emit(`${v}.parent = ${parentVar};`);
|
|
333
|
-
const physicsTraits = (obj.traits || []).filter(
|
|
333
|
+
const physicsTraits = (obj.traits || []).filter(
|
|
334
|
+
(t) => t.name === "physics" || t.name === "collidable"
|
|
335
|
+
);
|
|
334
336
|
if (physicsTraits.length > 0) {
|
|
335
|
-
const semiring = new
|
|
337
|
+
const semiring = new chunkK3JDKWGI_cjs.ProvenanceSemiring();
|
|
336
338
|
const applications = physicsTraits.map((t) => ({
|
|
337
339
|
name: t.name,
|
|
338
340
|
config: t.config || {},
|
|
@@ -405,7 +407,7 @@ ${layers}`;
|
|
|
405
407
|
}
|
|
406
408
|
if (obj.traits && Array.isArray(obj.traits) && obj.traits.length > 0) {
|
|
407
409
|
const traitNames = obj.traits.map((t) => t.name);
|
|
408
|
-
const compositor = new
|
|
410
|
+
const compositor = new chunkX4ZF6CNE_cjs.TraitCompositor();
|
|
409
411
|
const composed = compositor.compose(traitNames);
|
|
410
412
|
if (Object.keys(composed).length > 0) {
|
|
411
413
|
const matVar = `${v}ComposedMat`;
|
|
@@ -829,5 +831,5 @@ ${layers}`;
|
|
|
829
831
|
|
|
830
832
|
exports.BabylonCompiler_exports = BabylonCompiler_exports;
|
|
831
833
|
exports.init_BabylonCompiler = init_BabylonCompiler;
|
|
832
|
-
//# sourceMappingURL=chunk-
|
|
833
|
-
//# sourceMappingURL=chunk-
|
|
834
|
+
//# sourceMappingURL=chunk-33LSUQDD.cjs.map
|
|
835
|
+
//# sourceMappingURL=chunk-33LSUQDD.cjs.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { generateHullGeometry, generateMembraneGeometry, generateSplineGeometry } from './chunk-HJJLD366.js';
|
|
2
|
-
import { init_R3FCompiler, init_ObjectPool, ASTNodePool, MATERIAL_PRESETS } from './chunk-
|
|
3
|
-
import { init_TraitCompositor, TraitCompositor } from './chunk-
|
|
4
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock, materialToGLTF } from './chunk-
|
|
5
|
-
import { init_CompilerBase,
|
|
2
|
+
import { init_R3FCompiler, init_ObjectPool, ASTNodePool, MATERIAL_PRESETS } from './chunk-T36DDXSF.js';
|
|
3
|
+
import { init_TraitCompositor, TraitCompositor } from './chunk-DXJQDCFL.js';
|
|
4
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock, materialToGLTF } from './chunk-YQK5JNFK.js';
|
|
5
|
+
import { init_CompilerBase, CompilerBase } from './chunk-6XSERL6L.js';
|
|
6
|
+
import { ANSCapabilityPath } from '@holoscript/platform';
|
|
6
7
|
|
|
7
8
|
// src/compiler/GLTFPipeline.ts
|
|
8
9
|
init_TraitCompositor();
|
|
9
10
|
init_R3FCompiler();
|
|
10
11
|
init_CompilerBase();
|
|
11
|
-
init_ANSNamespace();
|
|
12
12
|
init_DomainBlockCompilerMixin();
|
|
13
13
|
|
|
14
14
|
// src/compiler/gltf/extensions.ts
|
|
@@ -2228,5 +2228,5 @@ function createGLTFPipeline(options) {
|
|
|
2228
2228
|
}
|
|
2229
2229
|
|
|
2230
2230
|
export { GLTFPipeline, createGLTFPipeline, generateScaleNormalMap, generateScaleTexture };
|
|
2231
|
-
//# sourceMappingURL=chunk-
|
|
2232
|
-
//# sourceMappingURL=chunk-
|
|
2231
|
+
//# sourceMappingURL=chunk-3FJCK5XA.js.map
|
|
2232
|
+
//# sourceMappingURL=chunk-3FJCK5XA.js.map
|
|
@@ -34,7 +34,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
34
34
|
}
|
|
35
35
|
return to;
|
|
36
36
|
};
|
|
37
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
38
37
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
39
38
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
40
39
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -77,9 +76,8 @@ exports.__privateMethod = __privateMethod;
|
|
|
77
76
|
exports.__privateSet = __privateSet;
|
|
78
77
|
exports.__privateWrapper = __privateWrapper;
|
|
79
78
|
exports.__publicField = __publicField;
|
|
80
|
-
exports.__reExport = __reExport;
|
|
81
79
|
exports.__require = __require;
|
|
82
80
|
exports.__toCommonJS = __toCommonJS;
|
|
83
81
|
exports.__toESM = __toESM;
|
|
84
|
-
//# sourceMappingURL=chunk-
|
|
85
|
-
//# sourceMappingURL=chunk-
|
|
82
|
+
//# sourceMappingURL=chunk-3SAK5KFL.cjs.map
|
|
83
|
+
//# sourceMappingURL=chunk-3SAK5KFL.cjs.map
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkLXJ4667L_cjs = require('./chunk-LXJ4667L.cjs');
|
|
4
|
+
var chunkBF2235SI_cjs = require('./chunk-BF2235SI.cjs');
|
|
5
|
+
var chunk3SAK5KFL_cjs = require('./chunk-3SAK5KFL.cjs');
|
|
6
|
+
var platform = require('@holoscript/platform');
|
|
6
7
|
|
|
7
8
|
// src/compiler/AndroidXRCompiler.ts
|
|
8
9
|
var AndroidXRCompiler_exports = {};
|
|
9
|
-
|
|
10
|
+
chunk3SAK5KFL_cjs.__export(AndroidXRCompiler_exports, {
|
|
10
11
|
AndroidXRCompiler: () => exports.AndroidXRCompiler,
|
|
11
12
|
compileToAndroidXR: () => compileToAndroidXR
|
|
12
13
|
});
|
|
@@ -15,12 +16,11 @@ function compileToAndroidXR(composition, options) {
|
|
|
15
16
|
return compiler.compile(composition, "");
|
|
16
17
|
}
|
|
17
18
|
exports.AndroidXRCompiler = void 0;
|
|
18
|
-
var init_AndroidXRCompiler =
|
|
19
|
+
var init_AndroidXRCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
19
20
|
"src/compiler/AndroidXRCompiler.ts"() {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
exports.AndroidXRCompiler = class extends chunkQHVVVN47_cjs.CompilerBase {
|
|
21
|
+
chunkBF2235SI_cjs.init_CompilerBase();
|
|
22
|
+
chunkLXJ4667L_cjs.init_DomainBlockCompilerMixin();
|
|
23
|
+
exports.AndroidXRCompiler = class extends chunkBF2235SI_cjs.CompilerBase {
|
|
24
24
|
constructor(options = {}) {
|
|
25
25
|
super();
|
|
26
26
|
this.compilerName = "AndroidXRCompiler";
|
|
@@ -38,7 +38,7 @@ var init_AndroidXRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
getRequiredCapability() {
|
|
41
|
-
return
|
|
41
|
+
return platform.ANSCapabilityPath.ANDROID_XR;
|
|
42
42
|
}
|
|
43
43
|
/** Returns true when targeting AI glasses form factor. */
|
|
44
44
|
get isGlassesMode() {
|
|
@@ -186,9 +186,7 @@ var init_AndroidXRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
186
186
|
this.indentLevel = 0;
|
|
187
187
|
const pkg = this.options.packageName;
|
|
188
188
|
this.emit("// Auto-generated by HoloScript AndroidXRCompiler");
|
|
189
|
-
this.emit(
|
|
190
|
-
`// Node Factory: ${this.escapeStringValue(composition.name, "Kotlin")}`
|
|
191
|
-
);
|
|
189
|
+
this.emit(`// Node Factory: ${this.escapeStringValue(composition.name, "Kotlin")}`);
|
|
192
190
|
this.emit("");
|
|
193
191
|
this.emit(`package ${pkg}`);
|
|
194
192
|
this.emit("");
|
|
@@ -1083,36 +1081,36 @@ ${hasDrmVideo ? `
|
|
|
1083
1081
|
this.emit("");
|
|
1084
1082
|
this.emit("// === v4.2 Domain Blocks ===");
|
|
1085
1083
|
let blockIdx = 0;
|
|
1086
|
-
const compiled =
|
|
1084
|
+
const compiled = chunkLXJ4667L_cjs.compileDomainBlocks(
|
|
1087
1085
|
// @ts-expect-error During migration
|
|
1088
1086
|
domainBlocks,
|
|
1089
1087
|
{
|
|
1090
1088
|
material: (block) => {
|
|
1091
|
-
const mat =
|
|
1092
|
-
return
|
|
1089
|
+
const mat = chunkLXJ4667L_cjs.compileMaterialBlock(block);
|
|
1090
|
+
return chunkLXJ4667L_cjs.materialToAndroidXR(mat, `db${blockIdx++}`);
|
|
1093
1091
|
},
|
|
1094
1092
|
physics: (block) => {
|
|
1095
|
-
const phys =
|
|
1096
|
-
return
|
|
1093
|
+
const phys = chunkLXJ4667L_cjs.compilePhysicsBlock(block);
|
|
1094
|
+
return chunkLXJ4667L_cjs.physicsToAndroidXR(phys, `db${blockIdx++}`);
|
|
1097
1095
|
},
|
|
1098
1096
|
vfx: (block) => {
|
|
1099
|
-
const ps =
|
|
1100
|
-
return
|
|
1097
|
+
const ps = chunkLXJ4667L_cjs.compileParticleBlock(block);
|
|
1098
|
+
return chunkLXJ4667L_cjs.particlesToAndroidXR(ps, `db${blockIdx++}`);
|
|
1101
1099
|
},
|
|
1102
1100
|
postfx: (block) => {
|
|
1103
|
-
const pp =
|
|
1101
|
+
const pp = chunkLXJ4667L_cjs.compilePostProcessingBlock(block);
|
|
1104
1102
|
const postfx = pp;
|
|
1105
1103
|
const effects = postfx.effects.map((e) => `// Effect: ${e.type} \u2014 ${JSON.stringify(e.properties)}`).join("\n");
|
|
1106
1104
|
return `// Post-Processing: ${postfx.keyword} \u2014 configure via Filament Renderer post-processing
|
|
1107
1105
|
${effects}`;
|
|
1108
1106
|
},
|
|
1109
1107
|
audio: (block) => {
|
|
1110
|
-
const audio =
|
|
1111
|
-
return
|
|
1108
|
+
const audio = chunkLXJ4667L_cjs.compileAudioSourceBlock(block);
|
|
1109
|
+
return chunkLXJ4667L_cjs.audioSourceToAndroidXR(audio, `db${blockIdx++}`);
|
|
1112
1110
|
},
|
|
1113
1111
|
weather: (block) => {
|
|
1114
|
-
const weather =
|
|
1115
|
-
return
|
|
1112
|
+
const weather = chunkLXJ4667L_cjs.compileWeatherBlock(block);
|
|
1113
|
+
return chunkLXJ4667L_cjs.weatherToAndroidXR(weather);
|
|
1116
1114
|
}
|
|
1117
1115
|
},
|
|
1118
1116
|
(block) => `// Domain block: ${block.domain}/${block.keyword} "${this.escapeStringValue(block.name, "Kotlin")}"`
|
|
@@ -1857,5 +1855,5 @@ dependencies {
|
|
|
1857
1855
|
exports.AndroidXRCompiler_exports = AndroidXRCompiler_exports;
|
|
1858
1856
|
exports.compileToAndroidXR = compileToAndroidXR;
|
|
1859
1857
|
exports.init_AndroidXRCompiler = init_AndroidXRCompiler;
|
|
1860
|
-
//# sourceMappingURL=chunk-
|
|
1861
|
-
//# sourceMappingURL=chunk-
|
|
1858
|
+
//# sourceMappingURL=chunk-4XSNJCLC.cjs.map
|
|
1859
|
+
//# sourceMappingURL=chunk-4XSNJCLC.cjs.map
|