@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
|
@@ -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 chunkWDW67DZB_cjs = require('./chunk-WDW67DZB.cjs');
|
|
4
|
+
var chunkK3JDKWGI_cjs = require('./chunk-K3JDKWGI.cjs');
|
|
5
|
+
var chunkX4ZF6CNE_cjs = require('./chunk-X4ZF6CNE.cjs');
|
|
6
|
+
var chunkLXJ4667L_cjs = require('./chunk-LXJ4667L.cjs');
|
|
7
|
+
var chunkBF2235SI_cjs = require('./chunk-BF2235SI.cjs');
|
|
8
|
+
var chunk3SAK5KFL_cjs = require('./chunk-3SAK5KFL.cjs');
|
|
9
|
+
var platform = require('@holoscript/platform');
|
|
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 = chunk3SAK5KFL_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 = chunkEGIZHYJP_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 = chunk3SAK5KFL_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 = chunkEGIZHYJP_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 = chunk3SAK5KFL_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 = chunkEGIZHYJP_cjs.__esm({
|
|
|
513
513
|
|
|
514
514
|
// src/traits/visual/index.ts
|
|
515
515
|
function registerAllPresets() {
|
|
516
|
-
const registry =
|
|
516
|
+
const registry = chunkX4ZF6CNE_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 = chunk3SAK5KFL_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
|
+
chunkX4ZF6CNE_cjs.init_TraitVisualRegistry();
|
|
525
|
+
chunkX4ZF6CNE_cjs.init_types();
|
|
526
|
+
chunkX4ZF6CNE_cjs.init_TraitVisualRegistry();
|
|
527
|
+
chunkWDW67DZB_cjs.init_material_properties_visual();
|
|
528
|
+
chunkWDW67DZB_cjs.init_surface_texture_visual();
|
|
529
|
+
chunkWDW67DZB_cjs.init_lighting_visual();
|
|
530
|
+
chunkWDW67DZB_cjs.init_gems_minerals_visual();
|
|
531
|
+
chunkWDW67DZB_cjs.init_fabric_cloth_visual();
|
|
532
|
+
chunkWDW67DZB_cjs.init_visual_effects_visual();
|
|
533
|
+
chunkWDW67DZB_cjs.init_age_condition_visual();
|
|
534
|
+
chunkWDW67DZB_cjs.init_water_fluid_visual();
|
|
535
|
+
chunkWDW67DZB_cjs.init_weather_phenomena_visual();
|
|
536
|
+
chunkWDW67DZB_cjs.init_emotion_mood_visual();
|
|
537
|
+
chunkWDW67DZB_cjs.init_size_scale_visual();
|
|
538
|
+
chunkWDW67DZB_cjs.init_environmental_biome_visual();
|
|
539
|
+
chunkWDW67DZB_cjs.init_magic_fantasy_visual();
|
|
540
|
+
chunkWDW67DZB_cjs.init_scifi_technology_visual();
|
|
541
|
+
chunkWDW67DZB_cjs.init_creatures_mythical_visual();
|
|
542
|
+
chunkWDW67DZB_cjs.init_nature_life_visual();
|
|
543
|
+
chunkWDW67DZB_cjs.init_furniture_decor_visual();
|
|
544
|
+
chunkWDW67DZB_cjs.init_construction_building_visual();
|
|
545
|
+
chunkWDW67DZB_cjs.init_containers_storage_visual();
|
|
546
|
+
chunkWDW67DZB_cjs.init_shape_form_visual();
|
|
547
|
+
chunkWDW67DZB_cjs.init_animals_visual();
|
|
548
|
+
chunkWDW67DZB_cjs.init_maritime_naval_visual();
|
|
549
|
+
chunkWDW67DZB_cjs.init_time_period_visual();
|
|
550
|
+
chunkWDW67DZB_cjs.init_accessibility_visual();
|
|
551
|
+
chunkWDW67DZB_cjs.init_accessibility_extended_visual();
|
|
552
|
+
chunkWDW67DZB_cjs.init_architecture_realestate_visual();
|
|
553
|
+
chunkWDW67DZB_cjs.init_audio_visual();
|
|
554
|
+
chunkWDW67DZB_cjs.init_cooking_food_visual();
|
|
555
|
+
chunkWDW67DZB_cjs.init_core_vr_interaction_visual();
|
|
556
|
+
chunkWDW67DZB_cjs.init_data_visualization_visual();
|
|
557
|
+
chunkWDW67DZB_cjs.init_education_learning_visual();
|
|
558
|
+
chunkWDW67DZB_cjs.init_environment_input_visual();
|
|
559
|
+
chunkWDW67DZB_cjs.init_game_mechanics_visual();
|
|
560
|
+
chunkWDW67DZB_cjs.init_geospatial_web3_visual();
|
|
561
|
+
chunkWDW67DZB_cjs.init_healthcare_medical_visual();
|
|
562
|
+
chunkWDW67DZB_cjs.init_humanoid_avatar_visual();
|
|
563
|
+
chunkWDW67DZB_cjs.init_intelligence_behavior_visual();
|
|
564
|
+
chunkWDW67DZB_cjs.init_interop_copresence_visual();
|
|
565
|
+
chunkWDW67DZB_cjs.init_iot_autonomous_agents_visual();
|
|
566
|
+
chunkWDW67DZB_cjs.init_locomotion_movement_visual();
|
|
567
|
+
chunkWDW67DZB_cjs.init_measurement_sensing_visual();
|
|
568
|
+
chunkWDW67DZB_cjs.init_media_analytics_visual();
|
|
569
|
+
chunkWDW67DZB_cjs.init_multisensory_haptic_visual();
|
|
570
|
+
chunkWDW67DZB_cjs.init_musical_sound_visual();
|
|
571
|
+
chunkWDW67DZB_cjs.init_music_performance_visual();
|
|
572
|
+
chunkWDW67DZB_cjs.init_narrative_storytelling_visual();
|
|
573
|
+
chunkWDW67DZB_cjs.init_networking_ai_visual();
|
|
574
|
+
chunkWDW67DZB_cjs.init_npc_roles_visual();
|
|
575
|
+
chunkWDW67DZB_cjs.init_object_interaction_visual();
|
|
576
|
+
chunkWDW67DZB_cjs.init_parser_core_ui_visual();
|
|
577
|
+
chunkWDW67DZB_cjs.init_physical_affordances_visual();
|
|
578
|
+
chunkWDW67DZB_cjs.init_physics_expansion_visual();
|
|
579
|
+
chunkWDW67DZB_cjs.init_procedural_generation_visual();
|
|
580
|
+
chunkWDW67DZB_cjs.init_resource_gathering_visual();
|
|
581
|
+
chunkWDW67DZB_cjs.init_safety_boundaries_visual();
|
|
582
|
+
chunkWDW67DZB_cjs.init_signs_communication_visual();
|
|
583
|
+
chunkWDW67DZB_cjs.init_simple_modifiers_visual();
|
|
584
|
+
chunkWDW67DZB_cjs.init_social_commerce_visual();
|
|
585
|
+
chunkWDW67DZB_cjs.init_social_effects_visual();
|
|
586
|
+
chunkWDW67DZB_cjs.init_sports_fitness_visual();
|
|
587
|
+
chunkWDW67DZB_cjs.init_state_persistence_visual();
|
|
588
|
+
chunkWDW67DZB_cjs.init_transportation_vehicles_visual();
|
|
589
|
+
chunkWDW67DZB_cjs.init_volumetric_webgpu_visual();
|
|
590
|
+
chunkWDW67DZB_cjs.init_weather_particles_visual();
|
|
591
|
+
chunkWDW67DZB_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
|
+
chunkWDW67DZB_cjs.MATERIAL_PROPERTIES_VISUALS,
|
|
598
|
+
chunkWDW67DZB_cjs.SURFACE_TEXTURE_VISUALS,
|
|
599
|
+
chunkWDW67DZB_cjs.LIGHTING_VISUALS,
|
|
600
|
+
chunkWDW67DZB_cjs.GEMS_MINERALS_VISUALS,
|
|
601
|
+
chunkWDW67DZB_cjs.FABRIC_CLOTH_VISUALS,
|
|
602
|
+
chunkWDW67DZB_cjs.VISUAL_EFFECTS_VISUALS,
|
|
603
|
+
chunkWDW67DZB_cjs.AGE_CONDITION_VISUALS,
|
|
604
|
+
chunkWDW67DZB_cjs.WATER_FLUID_VISUALS,
|
|
605
|
+
chunkWDW67DZB_cjs.WEATHER_PHENOMENA_VISUALS,
|
|
606
|
+
chunkWDW67DZB_cjs.EMOTION_MOOD_VISUALS,
|
|
607
|
+
chunkWDW67DZB_cjs.SIZE_SCALE_VISUALS,
|
|
608
|
+
chunkWDW67DZB_cjs.ENVIRONMENTAL_BIOME_VISUALS,
|
|
609
609
|
// Expansion wave 1
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
610
|
+
chunkWDW67DZB_cjs.MAGIC_FANTASY_VISUALS,
|
|
611
|
+
chunkWDW67DZB_cjs.SCIFI_TECHNOLOGY_VISUALS,
|
|
612
|
+
chunkWDW67DZB_cjs.CREATURES_MYTHICAL_VISUALS,
|
|
613
|
+
chunkWDW67DZB_cjs.NATURE_LIFE_VISUALS,
|
|
614
|
+
chunkWDW67DZB_cjs.FURNITURE_DECOR_VISUALS,
|
|
615
|
+
chunkWDW67DZB_cjs.CONSTRUCTION_BUILDING_VISUALS,
|
|
616
|
+
chunkWDW67DZB_cjs.CONTAINERS_STORAGE_VISUALS,
|
|
617
|
+
chunkWDW67DZB_cjs.SHAPE_FORM_VISUALS,
|
|
618
|
+
chunkWDW67DZB_cjs.ANIMALS_VISUALS,
|
|
619
|
+
chunkWDW67DZB_cjs.MARITIME_NAVAL_VISUALS,
|
|
620
|
+
chunkWDW67DZB_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
|
+
chunkWDW67DZB_cjs.ACCESSIBILITY_VISUALS,
|
|
623
|
+
chunkWDW67DZB_cjs.ACCESSIBILITY_EXTENDED_VISUALS,
|
|
624
|
+
chunkWDW67DZB_cjs.ARCHITECTURE_REALESTATE_VISUALS,
|
|
625
|
+
chunkWDW67DZB_cjs.AUDIO_VISUALS,
|
|
626
|
+
chunkWDW67DZB_cjs.COOKING_FOOD_VISUALS,
|
|
627
|
+
chunkWDW67DZB_cjs.CORE_VR_INTERACTION_VISUALS,
|
|
628
|
+
chunkWDW67DZB_cjs.DATA_VISUALIZATION_VISUALS,
|
|
629
|
+
chunkWDW67DZB_cjs.EDUCATION_LEARNING_VISUALS,
|
|
630
|
+
chunkWDW67DZB_cjs.ENVIRONMENT_INPUT_VISUALS,
|
|
631
|
+
chunkWDW67DZB_cjs.GAME_MECHANICS_VISUALS,
|
|
632
|
+
chunkWDW67DZB_cjs.GEOSPATIAL_WEB3_VISUALS,
|
|
633
|
+
chunkWDW67DZB_cjs.HEALTHCARE_MEDICAL_VISUALS,
|
|
634
|
+
chunkWDW67DZB_cjs.HUMANOID_AVATAR_VISUALS,
|
|
635
|
+
chunkWDW67DZB_cjs.INTELLIGENCE_BEHAVIOR_VISUALS,
|
|
636
|
+
chunkWDW67DZB_cjs.INTEROP_COPRESENCE_VISUALS,
|
|
637
|
+
chunkWDW67DZB_cjs.IOT_AUTONOMOUS_AGENTS_VISUALS,
|
|
638
|
+
chunkWDW67DZB_cjs.LOCOMOTION_MOVEMENT_VISUALS,
|
|
639
|
+
chunkWDW67DZB_cjs.MEASUREMENT_SENSING_VISUALS,
|
|
640
|
+
chunkWDW67DZB_cjs.MEDIA_ANALYTICS_VISUALS,
|
|
641
|
+
chunkWDW67DZB_cjs.MULTISENSORY_HAPTIC_VISUALS,
|
|
642
|
+
chunkWDW67DZB_cjs.MUSICAL_SOUND_VISUALS,
|
|
643
|
+
chunkWDW67DZB_cjs.MUSIC_PERFORMANCE_VISUALS,
|
|
644
|
+
chunkWDW67DZB_cjs.NARRATIVE_STORYTELLING_VISUALS,
|
|
645
|
+
chunkWDW67DZB_cjs.NETWORKING_AI_VISUALS,
|
|
646
|
+
chunkWDW67DZB_cjs.NPC_ROLES_VISUALS,
|
|
647
|
+
chunkWDW67DZB_cjs.OBJECT_INTERACTION_VISUALS,
|
|
648
|
+
chunkWDW67DZB_cjs.PARSER_CORE_UI_VISUALS,
|
|
649
|
+
chunkWDW67DZB_cjs.PHYSICAL_AFFORDANCES_VISUALS,
|
|
650
|
+
chunkWDW67DZB_cjs.PHYSICS_EXPANSION_VISUALS,
|
|
651
|
+
chunkWDW67DZB_cjs.PROCEDURAL_GENERATION_VISUALS,
|
|
652
|
+
chunkWDW67DZB_cjs.RESOURCE_GATHERING_VISUALS,
|
|
653
|
+
chunkWDW67DZB_cjs.SAFETY_BOUNDARIES_VISUALS,
|
|
654
|
+
chunkWDW67DZB_cjs.SIGNS_COMMUNICATION_VISUALS,
|
|
655
|
+
chunkWDW67DZB_cjs.SIMPLE_MODIFIERS_VISUALS,
|
|
656
|
+
chunkWDW67DZB_cjs.SOCIAL_COMMERCE_VISUALS,
|
|
657
|
+
chunkWDW67DZB_cjs.SOCIAL_EFFECTS_VISUALS,
|
|
658
|
+
chunkWDW67DZB_cjs.SPORTS_FITNESS_VISUALS,
|
|
659
|
+
chunkWDW67DZB_cjs.STATE_PERSISTENCE_VISUALS,
|
|
660
|
+
chunkWDW67DZB_cjs.TRANSPORTATION_VEHICLES_VISUALS,
|
|
661
|
+
chunkWDW67DZB_cjs.VOLUMETRIC_WEBGPU_VISUALS,
|
|
662
|
+
chunkWDW67DZB_cjs.WEATHER_PARTICLES_VISUALS,
|
|
663
|
+
chunkWDW67DZB_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 = chunkEGIZHYJP_cjs.__esm({
|
|
|
674
674
|
|
|
675
675
|
// src/compiler/ObjectPool.ts
|
|
676
676
|
exports.ASTNodePool = void 0;
|
|
677
|
-
var init_ObjectPool =
|
|
677
|
+
var init_ObjectPool = chunk3SAK5KFL_cjs.__esm({
|
|
678
678
|
"src/compiler/ObjectPool.ts"() {
|
|
679
679
|
exports.ASTNodePool = class {
|
|
680
680
|
/**
|
|
@@ -727,7 +727,7 @@ var init_ObjectPool = chunkEGIZHYJP_cjs.__esm({
|
|
|
727
727
|
|
|
728
728
|
// src/compiler/R3FCompiler.ts
|
|
729
729
|
var R3FCompiler_exports = {};
|
|
730
|
-
|
|
730
|
+
chunk3SAK5KFL_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,
|
|
@@ -735,14 +735,13 @@ chunkEGIZHYJP_cjs.__export(R3FCompiler_exports, {
|
|
|
735
735
|
UI_COMPONENT_PRESETS: () => exports.UI_COMPONENT_PRESETS
|
|
736
736
|
});
|
|
737
737
|
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 =
|
|
738
|
+
var init_R3FCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
739
739
|
"src/compiler/R3FCompiler.ts"() {
|
|
740
|
-
|
|
741
|
-
|
|
740
|
+
chunkX4ZF6CNE_cjs.init_TraitCompositor();
|
|
741
|
+
chunkK3JDKWGI_cjs.init_ProvenanceSemiring();
|
|
742
742
|
init_visual();
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
chunkQHVVVN47_cjs.init_CompilerBase();
|
|
743
|
+
chunkLXJ4667L_cjs.init_DomainBlockCompilerMixin();
|
|
744
|
+
chunkBF2235SI_cjs.init_CompilerBase();
|
|
746
745
|
init_ObjectPool();
|
|
747
746
|
r3fNodePool = new exports.ASTNodePool(
|
|
748
747
|
() => ({ type: "", props: {} }),
|
|
@@ -2545,7 +2544,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2545
2544
|
constructor(options = {}) {
|
|
2546
2545
|
// ─── RBAC Enforcement ─────────────────────────────────────────────────
|
|
2547
2546
|
this.compilerName = "R3FCompiler";
|
|
2548
|
-
this.rbac =
|
|
2547
|
+
this.rbac = platform.getRBAC();
|
|
2549
2548
|
this.qualityTier = options.qualityTier ?? "high";
|
|
2550
2549
|
this.tierScales = exports.QUALITY_TIER_SCALES[this.qualityTier];
|
|
2551
2550
|
this._defaultLighting = options.defaultLighting ?? true;
|
|
@@ -2567,32 +2566,32 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2567
2566
|
if (!agentToken) return;
|
|
2568
2567
|
const astDecision = this.rbac.checkAccess({
|
|
2569
2568
|
token: agentToken,
|
|
2570
|
-
resourceType:
|
|
2569
|
+
resourceType: platform.ResourceType.AST,
|
|
2571
2570
|
operation: "read",
|
|
2572
|
-
expectedWorkflowStep:
|
|
2571
|
+
expectedWorkflowStep: platform.WorkflowStep.GENERATE_ASSEMBLY
|
|
2573
2572
|
});
|
|
2574
2573
|
if (!astDecision.allowed) {
|
|
2575
|
-
throw new
|
|
2574
|
+
throw new chunkBF2235SI_cjs.UnauthorizedCompilerAccessError(astDecision, "AST access", this.compilerName);
|
|
2576
2575
|
}
|
|
2577
2576
|
const codeDecision = this.rbac.checkAccess({
|
|
2578
2577
|
token: agentToken,
|
|
2579
|
-
resourceType:
|
|
2578
|
+
resourceType: platform.ResourceType.CODE,
|
|
2580
2579
|
operation: "write",
|
|
2581
|
-
expectedWorkflowStep:
|
|
2580
|
+
expectedWorkflowStep: platform.WorkflowStep.GENERATE_ASSEMBLY
|
|
2582
2581
|
});
|
|
2583
2582
|
if (!codeDecision.allowed) {
|
|
2584
|
-
throw new
|
|
2583
|
+
throw new chunkBF2235SI_cjs.UnauthorizedCompilerAccessError(codeDecision, "code generation", this.compilerName);
|
|
2585
2584
|
}
|
|
2586
2585
|
if (outputPath) {
|
|
2587
2586
|
const outputDecision = this.rbac.checkAccess({
|
|
2588
2587
|
token: agentToken,
|
|
2589
|
-
resourceType:
|
|
2588
|
+
resourceType: platform.ResourceType.OUTPUT,
|
|
2590
2589
|
operation: "write",
|
|
2591
2590
|
resourcePath: outputPath,
|
|
2592
|
-
expectedWorkflowStep:
|
|
2591
|
+
expectedWorkflowStep: platform.WorkflowStep.SERIALIZE
|
|
2593
2592
|
});
|
|
2594
2593
|
if (!outputDecision.allowed) {
|
|
2595
|
-
throw new
|
|
2594
|
+
throw new chunkBF2235SI_cjs.UnauthorizedCompilerAccessError(
|
|
2596
2595
|
outputDecision,
|
|
2597
2596
|
`output write to '${outputPath}'`,
|
|
2598
2597
|
this.compilerName
|
|
@@ -2742,15 +2741,15 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2742
2741
|
this.injectDefaultLighting(root);
|
|
2743
2742
|
const domainBlocks = ast.domainBlocks ?? [];
|
|
2744
2743
|
if (domainBlocks.length > 0) {
|
|
2745
|
-
const compiled =
|
|
2744
|
+
const compiled = chunkLXJ4667L_cjs.compileDomainBlocks(
|
|
2746
2745
|
domainBlocks,
|
|
2747
2746
|
{
|
|
2748
2747
|
material: (block) => {
|
|
2749
|
-
const mat =
|
|
2748
|
+
const mat = chunkLXJ4667L_cjs.compileMaterialBlock(block);
|
|
2750
2749
|
return {
|
|
2751
2750
|
type: "DomainBlockOutput",
|
|
2752
2751
|
props: {
|
|
2753
|
-
__raw:
|
|
2752
|
+
__raw: chunkLXJ4667L_cjs.materialToR3F(mat, this.tierScales),
|
|
2754
2753
|
__domain: "material",
|
|
2755
2754
|
__name: mat.name
|
|
2756
2755
|
},
|
|
@@ -2758,11 +2757,11 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2758
2757
|
};
|
|
2759
2758
|
},
|
|
2760
2759
|
physics: (block) => {
|
|
2761
|
-
const phys =
|
|
2760
|
+
const phys = chunkLXJ4667L_cjs.compilePhysicsBlock(block);
|
|
2762
2761
|
return {
|
|
2763
2762
|
type: "DomainBlockOutput",
|
|
2764
2763
|
props: {
|
|
2765
|
-
__raw:
|
|
2764
|
+
__raw: chunkLXJ4667L_cjs.physicsToR3F(phys),
|
|
2766
2765
|
__domain: "physics",
|
|
2767
2766
|
__name: phys.name || phys.keyword
|
|
2768
2767
|
},
|
|
@@ -2770,11 +2769,11 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2770
2769
|
};
|
|
2771
2770
|
},
|
|
2772
2771
|
vfx: (block) => {
|
|
2773
|
-
const ps =
|
|
2772
|
+
const ps = chunkLXJ4667L_cjs.compileParticleBlock(block);
|
|
2774
2773
|
return {
|
|
2775
2774
|
type: "DomainBlockOutput",
|
|
2776
2775
|
props: {
|
|
2777
|
-
__raw:
|
|
2776
|
+
__raw: chunkLXJ4667L_cjs.particlesToR3F(ps, this.tierScales),
|
|
2778
2777
|
__domain: "vfx",
|
|
2779
2778
|
__name: ps.name
|
|
2780
2779
|
},
|
|
@@ -2782,11 +2781,11 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2782
2781
|
};
|
|
2783
2782
|
},
|
|
2784
2783
|
postfx: (block) => {
|
|
2785
|
-
const pp =
|
|
2784
|
+
const pp = chunkLXJ4667L_cjs.compilePostProcessingBlock(block);
|
|
2786
2785
|
return {
|
|
2787
2786
|
type: "DomainBlockOutput",
|
|
2788
2787
|
props: {
|
|
2789
|
-
__raw:
|
|
2788
|
+
__raw: chunkLXJ4667L_cjs.postProcessingToR3F(pp),
|
|
2790
2789
|
__domain: "postfx",
|
|
2791
2790
|
__name: pp.name || "PostProcessing"
|
|
2792
2791
|
},
|
|
@@ -2794,24 +2793,36 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2794
2793
|
};
|
|
2795
2794
|
},
|
|
2796
2795
|
audio: (block) => {
|
|
2797
|
-
const audio =
|
|
2796
|
+
const audio = chunkLXJ4667L_cjs.compileAudioSourceBlock(block);
|
|
2798
2797
|
return {
|
|
2799
2798
|
type: "DomainBlockOutput",
|
|
2800
|
-
props: { __raw:
|
|
2799
|
+
props: { __raw: chunkLXJ4667L_cjs.audioSourceToR3F(audio), __domain: "audio", __name: audio.name },
|
|
2801
2800
|
children: []
|
|
2802
2801
|
};
|
|
2803
2802
|
},
|
|
2804
2803
|
weather: (block) => {
|
|
2805
|
-
const weather =
|
|
2804
|
+
const weather = chunkLXJ4667L_cjs.compileWeatherBlock(block);
|
|
2806
2805
|
return {
|
|
2807
2806
|
type: "DomainBlockOutput",
|
|
2808
2807
|
props: {
|
|
2809
|
-
__raw:
|
|
2808
|
+
__raw: chunkLXJ4667L_cjs.weatherToR3F(weather),
|
|
2810
2809
|
__domain: "weather",
|
|
2811
2810
|
__name: weather.name || "Weather"
|
|
2812
2811
|
},
|
|
2813
2812
|
children: []
|
|
2814
2813
|
};
|
|
2814
|
+
},
|
|
2815
|
+
simulation: (block) => {
|
|
2816
|
+
const sim = chunkLXJ4667L_cjs.compileSimulationBlock(block);
|
|
2817
|
+
return {
|
|
2818
|
+
type: "DomainBlockOutput",
|
|
2819
|
+
props: {
|
|
2820
|
+
__raw: chunkLXJ4667L_cjs.simulationToR3F(sim),
|
|
2821
|
+
__domain: "simulation",
|
|
2822
|
+
__name: sim.name || "Simulation"
|
|
2823
|
+
},
|
|
2824
|
+
children: []
|
|
2825
|
+
};
|
|
2815
2826
|
}
|
|
2816
2827
|
}
|
|
2817
2828
|
);
|
|
@@ -2844,7 +2855,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2844
2855
|
const r3fNode = r3fNodePool.acquire();
|
|
2845
2856
|
r3fNode.type = type;
|
|
2846
2857
|
const rawId = node.id || node.name;
|
|
2847
|
-
r3fNode.id = rawId ?
|
|
2858
|
+
r3fNode.id = rawId ? chunkBF2235SI_cjs.escapeStringValue(rawId, "JSX") : void 0;
|
|
2848
2859
|
r3fNode.props = this.compileProperties(node, rawProps);
|
|
2849
2860
|
r3fNode.children = [];
|
|
2850
2861
|
r3fNode.traits = /* @__PURE__ */ new Map();
|
|
@@ -2875,7 +2886,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2875
2886
|
this.validateCompilerAccess(agentToken, outputPath);
|
|
2876
2887
|
const root = r3fNodePool.acquire();
|
|
2877
2888
|
root.type = "group";
|
|
2878
|
-
root.id = composition.name ?
|
|
2889
|
+
root.id = composition.name ? chunkBF2235SI_cjs.escapeStringValue(composition.name, "JSX") : void 0;
|
|
2879
2890
|
root.props = {};
|
|
2880
2891
|
root.children = [];
|
|
2881
2892
|
root.traits = /* @__PURE__ */ new Map();
|
|
@@ -2997,7 +3008,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2997
3008
|
}
|
|
2998
3009
|
const r3fNode = r3fNodePool.acquire();
|
|
2999
3010
|
r3fNode.type = type;
|
|
3000
|
-
r3fNode.id = light.name ?
|
|
3011
|
+
r3fNode.id = light.name ? chunkBF2235SI_cjs.escapeStringValue(light.name, "JSX") : void 0;
|
|
3001
3012
|
r3fNode.props = props;
|
|
3002
3013
|
r3fNode.children = [];
|
|
3003
3014
|
r3fNode.traits = /* @__PURE__ */ new Map();
|
|
@@ -3190,9 +3201,12 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3190
3201
|
for (const p of obj.properties) {
|
|
3191
3202
|
const prop = p;
|
|
3192
3203
|
if (prop && prop.type === "spread") {
|
|
3193
|
-
const resolved = this.resolveSpreadArgument(
|
|
3194
|
-
|
|
3195
|
-
|
|
3204
|
+
const resolved = this.resolveSpreadArgument(
|
|
3205
|
+
prop.target || prop.argument,
|
|
3206
|
+
{
|
|
3207
|
+
templates: templateMap
|
|
3208
|
+
}
|
|
3209
|
+
);
|
|
3196
3210
|
if (resolved && typeof resolved === "object" && !Array.isArray(resolved)) {
|
|
3197
3211
|
for (const [key, value] of Object.entries(resolved)) {
|
|
3198
3212
|
expandedProperties.push({ key, value });
|
|
@@ -3267,9 +3281,15 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3267
3281
|
mProps.transparent = value < 1;
|
|
3268
3282
|
props.materialProps = mProps;
|
|
3269
3283
|
} else if (key === "emissive") {
|
|
3270
|
-
props.materialProps = {
|
|
3284
|
+
props.materialProps = {
|
|
3285
|
+
...props.materialProps || {},
|
|
3286
|
+
emissive: value
|
|
3287
|
+
};
|
|
3271
3288
|
} else if (key === "emissiveIntensity" || key === "emissive_intensity") {
|
|
3272
|
-
props.materialProps = {
|
|
3289
|
+
props.materialProps = {
|
|
3290
|
+
...props.materialProps || {},
|
|
3291
|
+
emissiveIntensity: value
|
|
3292
|
+
};
|
|
3273
3293
|
} else if (key === "size") {
|
|
3274
3294
|
if (Array.isArray(value)) {
|
|
3275
3295
|
props.args = value;
|
|
@@ -3297,11 +3317,13 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3297
3317
|
}
|
|
3298
3318
|
}
|
|
3299
3319
|
if (obj.traits && Array.isArray(obj.traits)) {
|
|
3300
|
-
const semiring = new
|
|
3320
|
+
const semiring = new chunkK3JDKWGI_cjs.ProvenanceSemiring();
|
|
3301
3321
|
const physicsApplications = obj.traits.filter((t) => t.name === "physics" || t.name === "collidable").map((t) => {
|
|
3302
3322
|
let baseConfig = t.config || {};
|
|
3303
|
-
if (t.name === "collidable" && !baseConfig.type)
|
|
3304
|
-
|
|
3323
|
+
if (t.name === "collidable" && !baseConfig.type)
|
|
3324
|
+
baseConfig = { ...baseConfig, type: "fixed" };
|
|
3325
|
+
if (t.name === "physics" && !baseConfig.type)
|
|
3326
|
+
baseConfig = { ...baseConfig, type: "dynamic" };
|
|
3305
3327
|
return {
|
|
3306
3328
|
name: t.name,
|
|
3307
3329
|
config: baseConfig,
|
|
@@ -3346,7 +3368,10 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3346
3368
|
...props.materialProps
|
|
3347
3369
|
};
|
|
3348
3370
|
} else {
|
|
3349
|
-
props.materialProps = {
|
|
3371
|
+
props.materialProps = {
|
|
3372
|
+
...props.materialProps,
|
|
3373
|
+
...trait.config
|
|
3374
|
+
};
|
|
3350
3375
|
}
|
|
3351
3376
|
} else if (name === "networked") {
|
|
3352
3377
|
props.networked = trait.config || true;
|
|
@@ -3557,10 +3582,13 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3557
3582
|
const traitNames = obj.traits.map(
|
|
3558
3583
|
(t) => t.name
|
|
3559
3584
|
);
|
|
3560
|
-
const compositor = new
|
|
3585
|
+
const compositor = new chunkX4ZF6CNE_cjs.TraitCompositor();
|
|
3561
3586
|
const composedMaterial = compositor.compose(traitNames);
|
|
3562
3587
|
if (Object.keys(composedMaterial).length > 0) {
|
|
3563
|
-
props.materialProps = {
|
|
3588
|
+
props.materialProps = {
|
|
3589
|
+
...props.materialProps,
|
|
3590
|
+
...composedMaterial
|
|
3591
|
+
};
|
|
3564
3592
|
}
|
|
3565
3593
|
}
|
|
3566
3594
|
let type;
|
|
@@ -3707,7 +3735,11 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3707
3735
|
props[key] = value;
|
|
3708
3736
|
}
|
|
3709
3737
|
}
|
|
3710
|
-
const r3fNode = this.createNode(
|
|
3738
|
+
const r3fNode = this.createNode(
|
|
3739
|
+
"Component",
|
|
3740
|
+
props,
|
|
3741
|
+
node.id || node.name
|
|
3742
|
+
);
|
|
3711
3743
|
if (node.directives) {
|
|
3712
3744
|
r3fNode.directives = node.directives;
|
|
3713
3745
|
}
|
|
@@ -3813,7 +3845,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3813
3845
|
entries.push(this.createNode("TimelineEntry", entryProps));
|
|
3814
3846
|
}
|
|
3815
3847
|
}
|
|
3816
|
-
const safeName = timeline.name ?
|
|
3848
|
+
const safeName = timeline.name ? chunkBF2235SI_cjs.escapeStringValue(timeline.name, "JSX") : void 0;
|
|
3817
3849
|
const timelineNode = this.createNode(
|
|
3818
3850
|
"Timeline",
|
|
3819
3851
|
{ autoplay: timeline.autoplay, loop: timeline.loop },
|
|
@@ -3835,7 +3867,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3835
3867
|
}
|
|
3836
3868
|
}
|
|
3837
3869
|
}
|
|
3838
|
-
const safeName = audio.name ?
|
|
3870
|
+
const safeName = audio.name ? chunkBF2235SI_cjs.escapeStringValue(audio.name, "JSX") : void 0;
|
|
3839
3871
|
return this.createNode("Audio", props, safeName);
|
|
3840
3872
|
}
|
|
3841
3873
|
compileZoneBlock(zone) {
|
|
@@ -3854,7 +3886,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3854
3886
|
})
|
|
3855
3887
|
);
|
|
3856
3888
|
}
|
|
3857
|
-
const safeName = zone.name ?
|
|
3889
|
+
const safeName = zone.name ? chunkBF2235SI_cjs.escapeStringValue(zone.name, "JSX") : void 0;
|
|
3858
3890
|
return this.createNode("Zone", props, safeName);
|
|
3859
3891
|
}
|
|
3860
3892
|
compileUIBlock(ui) {
|
|
@@ -3871,7 +3903,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3871
3903
|
}
|
|
3872
3904
|
}
|
|
3873
3905
|
}
|
|
3874
|
-
const safeElName = el.name ?
|
|
3906
|
+
const safeElName = el.name ? chunkBF2235SI_cjs.escapeStringValue(el.name, "JSX") : void 0;
|
|
3875
3907
|
children.push(this.createNode("UIElement", elProps, safeElName));
|
|
3876
3908
|
}
|
|
3877
3909
|
}
|
|
@@ -3886,16 +3918,18 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3886
3918
|
props[prop.key] = prop.value;
|
|
3887
3919
|
}
|
|
3888
3920
|
}
|
|
3889
|
-
const safeName = transition.name ?
|
|
3921
|
+
const safeName = transition.name ? chunkBF2235SI_cjs.escapeStringValue(transition.name, "JSX") : void 0;
|
|
3890
3922
|
return this.createNode("Transition", props, safeName);
|
|
3891
3923
|
}
|
|
3892
3924
|
compileConditionalBlock(cond, templateMap) {
|
|
3893
3925
|
const children = [];
|
|
3894
3926
|
if (cond.objects) {
|
|
3895
|
-
for (const obj of cond.objects)
|
|
3927
|
+
for (const obj of cond.objects)
|
|
3928
|
+
children.push(this.compileObjectDecl(obj, templateMap));
|
|
3896
3929
|
}
|
|
3897
3930
|
if (cond.spatialGroups) {
|
|
3898
|
-
for (const g of cond.spatialGroups)
|
|
3931
|
+
for (const g of cond.spatialGroups)
|
|
3932
|
+
children.push(this.compileSpatialGroup(g, templateMap));
|
|
3899
3933
|
}
|
|
3900
3934
|
const elseChildren = [];
|
|
3901
3935
|
if (cond.elseObjects) {
|
|
@@ -3972,11 +4006,16 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3972
4006
|
}
|
|
3973
4007
|
extractPostProcessingNodes(node) {
|
|
3974
4008
|
const effects = [];
|
|
3975
|
-
const ppTrait = node.traits?.get(
|
|
4009
|
+
const ppTrait = node.traits?.get(
|
|
4010
|
+
"postprocessing"
|
|
4011
|
+
);
|
|
3976
4012
|
if (ppTrait) {
|
|
3977
|
-
if (ppTrait.bloom)
|
|
3978
|
-
|
|
3979
|
-
if (ppTrait.
|
|
4013
|
+
if (ppTrait.bloom)
|
|
4014
|
+
effects.push(this.createNode("Bloom", ppTrait.bloom));
|
|
4015
|
+
if (ppTrait.ssao)
|
|
4016
|
+
effects.push(this.createNode("SSAO", ppTrait.ssao));
|
|
4017
|
+
if (ppTrait.vignette)
|
|
4018
|
+
effects.push(this.createNode("Vignette", ppTrait.vignette));
|
|
3980
4019
|
}
|
|
3981
4020
|
if (node.props.bloom) {
|
|
3982
4021
|
effects.push(
|
|
@@ -4071,7 +4110,10 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
4071
4110
|
props.args = this.getGeometryArgs(rawProps.geometry, { size: rawProps.size || 1 });
|
|
4072
4111
|
}
|
|
4073
4112
|
if (rawProps.material && typeof rawProps.material === "string" && exports.MATERIAL_PRESETS[rawProps.material]) {
|
|
4074
|
-
props.materialProps = {
|
|
4113
|
+
props.materialProps = {
|
|
4114
|
+
...exports.MATERIAL_PRESETS[rawProps.material],
|
|
4115
|
+
...props.materialProps
|
|
4116
|
+
};
|
|
4075
4117
|
}
|
|
4076
4118
|
if (node.directives) {
|
|
4077
4119
|
for (const d of node.directives) {
|
|
@@ -4210,5 +4252,5 @@ exports.init_ObjectPool = init_ObjectPool;
|
|
|
4210
4252
|
exports.init_R3FCompiler = init_R3FCompiler;
|
|
4211
4253
|
exports.init_visual = init_visual;
|
|
4212
4254
|
exports.registerAllPresets = registerAllPresets;
|
|
4213
|
-
//# sourceMappingURL=chunk-
|
|
4214
|
-
//# sourceMappingURL=chunk-
|
|
4255
|
+
//# sourceMappingURL=chunk-Q5SJOGHQ.cjs.map
|
|
4256
|
+
//# sourceMappingURL=chunk-Q5SJOGHQ.cjs.map
|