@holoscript/core 8.0.6 → 8.0.7
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 +34 -34
- package/bin/holoscript.cjs +1 -1
- package/dist/GLTFPipeline-3EJLL3TS.cjs +38 -0
- package/dist/GLTFPipeline-3OWJV2VK.js +17 -0
- package/dist/{HoloScriptPlusParser-A2W7OCN2.cjs → HoloScriptPlusParser-ADWRY5OS.cjs} +15 -15
- package/dist/{HoloScriptPlusParser-7FBIFUFC.js → HoloScriptPlusParser-JLJDXHSC.js} +4 -4
- package/dist/HoloScriptPlusParser-QCGFPWIL.cjs +27 -0
- package/dist/{HoloScriptPlusParser-F2Z56FJR.js → HoloScriptPlusParser-WENAFEFV.js} +5 -5
- package/dist/HoloScriptRuntime-GGRVEU4T.cjs +19 -0
- package/dist/HoloScriptRuntime-GJK6VJPH.js +10 -0
- package/dist/{USDZExporter-3FWJ25JI.cjs → USDZExporter-AUHZODOF.cjs} +15 -4
- package/dist/{USDZExporter-D2HQLQYK.js → USDZExporter-GXB4AUSG.js} +15 -4
- package/dist/{chunk-2GQHTXOK.js → chunk-22Q5A6RV.js} +3 -3
- package/dist/{chunk-XHZCF3AS.cjs → chunk-2BZHWUSR.cjs} +27 -15
- package/dist/{chunk-XJAN7CZG.cjs → chunk-2GCNOI2U.cjs} +2 -2
- package/dist/{chunk-DBPGNHFS.js → chunk-2OWDB4FB.js} +13 -25
- package/dist/{chunk-N75IH2HY.js → chunk-2Y3V22SG.js} +5 -14
- package/dist/{chunk-MXFUTKCO.js → chunk-33YHE7HX.js} +3 -7
- package/dist/{chunk-RCZHLCX2.js → chunk-3GWWJT7L.js} +4 -4
- package/dist/{chunk-EK7L4DW7.js → chunk-3NGDZZR4.js} +4 -4
- package/dist/{chunk-WRLUBRKS.cjs → chunk-3SKLAUDD.cjs} +2 -2
- package/dist/{chunk-KKFZ3B6J.cjs → chunk-3VBO3IYQ.cjs} +2 -2
- package/dist/{chunk-YF2I3MV3.js → chunk-47RUFYKR.js} +2 -2
- package/dist/{chunk-VHAONJBY.js → chunk-4JGRWHZJ.js} +7 -5
- package/dist/{chunk-2J5WZLF5.cjs → chunk-4W5G5QVL.cjs} +26 -26
- package/dist/{chunk-GQHQOPXZ.cjs → chunk-4YNYPHH3.cjs} +186 -17
- package/dist/{chunk-H5PUZHJV.cjs → chunk-56VOWURB.cjs} +61 -40
- package/dist/{chunk-DQRQZB33.cjs → chunk-5A4TCHOC.cjs} +3 -3
- package/dist/{chunk-M56JSP4A.js → chunk-5EDVCNRT.js} +2 -2
- package/dist/{chunk-YU5RJQPE.js → chunk-5ET6L4NS.js} +3 -3
- package/dist/{chunk-A3GFOZAF.cjs → chunk-63ZGNR2T.cjs} +43 -39
- package/dist/{chunk-NG77ATEW.cjs → chunk-6PRZIHGL.cjs} +6 -6
- package/dist/{chunk-OXGPGQXN.cjs → chunk-7DMMMBCY.cjs} +7 -7
- package/dist/{chunk-FHP6LXJS.js → chunk-7E7GCQCK.js} +2 -2
- package/dist/{chunk-P4AIF7OQ.js → chunk-7VMGP2FW.js} +44 -28
- package/dist/{chunk-7MVLEZB2.js → chunk-7X5PNIQJ.js} +3 -3
- package/dist/{chunk-X7QB5PL5.cjs → chunk-7ZHYEITD.cjs} +11 -11
- package/dist/{chunk-KPJL34Y7.cjs → chunk-ACVWFGBI.cjs} +2 -2
- package/dist/{chunk-QWSB553J.cjs → chunk-AWB7QYY6.cjs} +6 -6
- package/dist/{chunk-VATGR4EM.js → chunk-B4EKV6HQ.js} +61 -40
- package/dist/{chunk-HBEN5TQR.js → chunk-BRNUPDHJ.js} +5 -5
- package/dist/{chunk-F63LYRVE.js → chunk-BTKZGHAV.js} +23 -11
- package/dist/{chunk-YTR32ZEB.cjs → chunk-C4GSLCHE.cjs} +300 -125
- package/dist/{chunk-CXS3DUKD.js → chunk-C7ZBSV2Q.js} +3 -3
- package/dist/{chunk-WOH6LKYT.cjs → chunk-CCPSNT6B.cjs} +12 -7
- package/dist/{chunk-NW5G5FBQ.js → chunk-DD2JQ7TS.js} +4 -3
- package/dist/{chunk-JD7CIZ33.js → chunk-DUCB6LGL.js} +8 -10
- package/dist/{chunk-D63CGNJU.js → chunk-DY72BMU5.js} +3 -3
- package/dist/{chunk-AIA52I7T.cjs → chunk-EBS32AJI.cjs} +6 -4
- package/dist/{chunk-DCE3LDO3.cjs → chunk-EDPYCLRC.cjs} +52 -62
- package/dist/{chunk-NDUX553L.js → chunk-F2G6CWFT.js} +240 -65
- package/dist/{chunk-X7LYK5TX.cjs → chunk-F5LKJ6F5.cjs} +43 -31
- package/dist/{chunk-LAUFLPB6.js → chunk-FGMDMJM7.js} +10 -5
- package/dist/{chunk-P52PPB5R.js → chunk-FHQFPYV4.js} +4 -4
- package/dist/{chunk-YIMN575O.js → chunk-FNHJRI32.js} +8 -5
- package/dist/{chunk-EXUP2BUM.cjs → chunk-FT6TDR2O.cjs} +27 -27
- package/dist/{chunk-BRQJKJGT.cjs → chunk-FWVYAMNW.cjs} +4 -4
- package/dist/{chunk-PGANYCAG.cjs → chunk-G25QVBA5.cjs} +4 -3
- package/dist/{chunk-5BLWXOIP.cjs → chunk-G6PNEASF.cjs} +13 -13
- package/dist/{chunk-2BSMSUCE.js → chunk-GASCWJK5.js} +2 -2
- package/dist/{chunk-2VL6SJ33.cjs → chunk-GH6C2QGW.cjs} +12 -21
- package/dist/{chunk-JEB5UU3E.js → chunk-GSOUNWEL.js} +35 -27
- package/dist/{chunk-QPOQ7VPI.js → chunk-GTA4Q3A3.js} +2 -2
- package/dist/{chunk-JIYN45TV.cjs → chunk-GVFJ6T4S.cjs} +3 -7
- package/dist/{chunk-IVY74O6C.js → chunk-GVOKJNUN.js} +50 -11
- package/dist/{chunk-GZG4KA4E.js → chunk-GW3LKD5C.js} +6 -4
- package/dist/{chunk-IBXT6UP3.cjs → chunk-HFSVMKM3.cjs} +14 -14
- package/dist/{chunk-E767PVC6.cjs → chunk-HLFDZ35S.cjs} +5 -5
- package/dist/{chunk-ZXZ2AL2J.cjs → chunk-I76GIKN7.cjs} +20 -16
- package/dist/{chunk-4FDL7JLJ.cjs → chunk-KAIVDEIG.cjs} +145 -60
- package/dist/{chunk-X4EBCG4K.js → chunk-KCPHASCO.js} +18 -6
- package/dist/{chunk-T5J7ZKP3.cjs → chunk-KOUAQL2B.cjs} +16 -13
- package/dist/{chunk-GMP623FG.cjs → chunk-KQU64CIX.cjs} +2 -2
- package/dist/{chunk-4DO425P5.js → chunk-L5U4W6JC.js} +4 -4
- package/dist/{chunk-HBLKLLG5.cjs → chunk-LMJ5EBV7.cjs} +10 -10
- package/dist/{chunk-QWAR3GY6.cjs → chunk-LODTHGST.cjs} +8 -8
- package/dist/{chunk-TFUMBR7G.cjs → chunk-LPS5AMQD.cjs} +8 -8
- package/dist/{chunk-ISG3TQ2O.js → chunk-LWUOUCYL.js} +9 -5
- package/dist/{chunk-6CTRH7HT.cjs → chunk-LYJJI7ZK.cjs} +12 -14
- package/dist/{chunk-GTU2Z2WW.cjs → chunk-M7K4LE66.cjs} +5 -14
- package/dist/{chunk-URG2SJLK.js → chunk-MDR235RZ.js} +3 -7
- package/dist/{chunk-ULXWSPCK.js → chunk-MSYSQ2AJ.js} +101 -16
- package/dist/{chunk-TCBJMNXS.cjs → chunk-NGBXXZLL.cjs} +50 -62
- package/dist/{chunk-RXU4PQKA.js → chunk-NHJLP37F.js} +6 -6
- package/dist/{chunk-NTGBEMYL.cjs → chunk-NHYRRAGI.cjs} +5 -5
- package/dist/{chunk-YG3OAHJZ.cjs → chunk-O3MGZDCT.cjs} +89 -52
- package/dist/{chunk-GIOYPNTH.js → chunk-OABEO6HH.js} +185 -16
- package/dist/{chunk-N5YOAFNA.cjs → chunk-OS533P33.cjs} +37 -29
- package/dist/{chunk-IIUFMUTV.js → chunk-PABONWKI.js} +24 -11
- package/dist/{chunk-5BQIJG3O.js → chunk-PXNZ6TME.js} +47 -57
- package/dist/{chunk-KDZRD6EI.js → chunk-Q2Q34NF3.js} +63 -26
- package/dist/{chunk-IS4AEGLU.js → chunk-QBWNJXNR.js} +10 -6
- package/dist/{chunk-5IHG2LGT.js → chunk-QFU53KRH.js} +4 -4
- package/dist/{chunk-NTJZJ5IP.cjs → chunk-QGMUTVVH.cjs} +17 -17
- package/dist/{chunk-MYY4PMWX.cjs → chunk-RUVBFAF7.cjs} +50 -11
- package/dist/{chunk-E64LOLJU.js → chunk-S762UEV5.js} +5 -5
- package/dist/{chunk-3SBVODUP.cjs → chunk-SH5PPVK7.cjs} +61 -45
- package/dist/{chunk-LY4DMQOW.cjs → chunk-SKZPC5AG.cjs} +5 -5
- package/dist/{chunk-TJHVSBP2.js → chunk-SLHLXUMO.js} +10 -4
- package/dist/{chunk-S6OVFUXD.js → chunk-SSSN7VAM.js} +3 -3
- package/dist/{chunk-K5UGRXKR.js → chunk-SXOSDZD6.js} +6 -6
- package/dist/{chunk-J32ZJZJH.js → chunk-SYTRBGDS.js} +2 -2
- package/dist/{chunk-CIWWXYHZ.cjs → chunk-T6W3Z3SH.cjs} +2 -2
- package/dist/{chunk-U36W76U7.js → chunk-TEVX443G.js} +44 -51
- package/dist/{chunk-6DOKCECB.cjs → chunk-TQ377OLB.cjs} +23 -21
- package/dist/{chunk-YAPPQYJH.cjs → chunk-TRCGG42I.cjs} +195 -152
- package/dist/{chunk-H652NHX5.js → chunk-TVANHNJ7.js} +30 -23
- package/dist/{chunk-EKBKLK7P.js → chunk-UDE4OZMR.js} +3 -3
- package/dist/{chunk-3OIZJNVT.cjs → chunk-UGXHYIWT.cjs} +5 -5
- package/dist/{chunk-44GM3P4G.cjs → chunk-ULMSSHCJ.cjs} +21 -21
- package/dist/{chunk-3B5NVDHJ.cjs → chunk-UOL6Y5TD.cjs} +18 -18
- package/dist/{chunk-5S7RKFGR.cjs → chunk-UVFI7XIR.cjs} +10 -4
- package/dist/{chunk-5TIZXMED.cjs → chunk-V7AKE5VT.cjs} +10 -10
- package/dist/{chunk-3B7AY37W.js → chunk-VEPGBETF.js} +6 -6
- package/dist/{chunk-BKCK3IU6.js → chunk-VF257YKO.js} +4 -4
- package/dist/{chunk-4N4SXXWF.js → chunk-VSACG2AR.js} +3 -3
- package/dist/{chunk-ZDSYWBIE.cjs → chunk-VW5CRJBE.cjs} +3 -7
- package/dist/{chunk-PVWNU4QT.cjs → chunk-WFKVS2K4.cjs} +64 -26
- package/dist/{chunk-TDCJ7YPA.js → chunk-WXQ57LAO.js} +3 -3
- package/dist/{chunk-NE5CZ2NC.cjs → chunk-X27QRG4C.cjs} +38 -38
- package/dist/{chunk-TVHSPJ4N.cjs → chunk-X2AVEAZM.cjs} +30 -23
- package/dist/{chunk-C34AJIJO.js → chunk-XQ5MWMP2.js} +4 -4
- package/dist/{chunk-TFWYKOOB.cjs → chunk-XW6IXEQH.cjs} +26 -13
- package/dist/{chunk-YIVFJNYV.js → chunk-Y3ZFVUUU.js} +2 -2
- package/dist/{chunk-TJIMBJ6L.cjs → chunk-Y57W2CT5.cjs} +2 -2
- package/dist/{chunk-BFROVZOF.cjs → chunk-YCM6QQRT.cjs} +46 -53
- package/dist/{chunk-MBOOR7X4.js → chunk-YFVQWSNJ.js} +3 -3
- package/dist/{chunk-ISM4NX6N.js → chunk-YFWRJW4B.js} +2 -2
- package/dist/{chunk-6OTFG3EB.js → chunk-YN6IETRZ.js} +179 -136
- package/dist/{chunk-NPDNFPTU.js → chunk-YRRAUB35.js} +4 -4
- package/dist/{chunk-GCYR3D2K.js → chunk-Z6PMDS4G.js} +61 -23
- package/dist/{chunk-DPZXVDGM.js → chunk-ZA34AN3R.js} +8 -17
- package/dist/{chunk-EKYL4PE3.cjs → chunk-ZLF4YF3U.cjs} +2 -2
- package/dist/{chunk-VFKXK4GR.cjs → chunk-ZPZAVHXL.cjs} +20 -20
- package/dist/cli/holoscript-runner.cjs +39 -22
- package/dist/cli/holoscript-runner.js +32 -15
- package/dist/compiler/GasOptimizationAnalyzer.d.ts +73 -0
- package/dist/compiler/NFTMarketplaceCompiler.d.ts +23 -0
- package/dist/compiler/agent-inference.cjs +7 -7
- package/dist/compiler/agent-inference.js +3 -3
- package/dist/compiler/android-xr.cjs +8 -8
- package/dist/compiler/android-xr.js +6 -6
- package/dist/compiler/android.cjs +6 -6
- package/dist/compiler/android.js +4 -4
- package/dist/compiler/ar.cjs +6 -6
- package/dist/compiler/ar.js +4 -4
- package/dist/compiler/babylon.cjs +8 -8
- package/dist/compiler/babylon.js +7 -7
- package/dist/compiler/business-quest.cjs +9 -9
- package/dist/compiler/business-quest.js +1 -1
- package/dist/compiler/context.cjs +6 -6
- package/dist/compiler/context.js +3 -3
- package/dist/compiler/domain-block-utils.cjs +153 -153
- package/dist/compiler/domain-block-utils.js +4 -4
- package/dist/compiler/dtdl.cjs +7 -7
- package/dist/compiler/dtdl.js +4 -4
- package/dist/compiler/gltf-pipeline.cjs +8 -8
- package/dist/compiler/gltf-pipeline.js +1 -1
- package/dist/compiler/godot.cjs +6 -6
- package/dist/compiler/godot.js +5 -5
- package/dist/compiler/incremental.cjs +8 -8
- package/dist/compiler/incremental.js +3 -3
- package/dist/compiler/index.cjs +347 -362
- package/dist/compiler/index.d.ts +20 -0
- package/dist/compiler/index.js +200 -215
- package/dist/compiler/ios.cjs +6 -6
- package/dist/compiler/ios.js +4 -4
- package/dist/compiler/llm-provider-capabilities.cjs +6 -6
- package/dist/compiler/llm-provider-capabilities.js +3 -3
- package/dist/compiler/multi-layer.cjs +10 -10
- package/dist/compiler/multi-layer.js +9 -9
- package/dist/compiler/openxr.cjs +7 -7
- package/dist/compiler/openxr.js +6 -6
- package/dist/compiler/playcanvas.cjs +6 -6
- package/dist/compiler/playcanvas.js +5 -5
- package/dist/compiler/r3f.cjs +13 -13
- package/dist/compiler/r3f.js +8 -8
- package/dist/compiler/sdf.cjs +7 -7
- package/dist/compiler/sdf.js +5 -5
- package/dist/compiler/state.cjs +6 -6
- package/dist/compiler/state.js +4 -4
- package/dist/compiler/trait-composition.cjs +8 -8
- package/dist/compiler/trait-composition.js +4 -4
- package/dist/compiler/unity.cjs +7 -7
- package/dist/compiler/unity.js +6 -6
- package/dist/compiler/unreal.cjs +8 -8
- package/dist/compiler/unreal.js +6 -6
- package/dist/compiler/urdf.cjs +14 -14
- package/dist/compiler/urdf.js +5 -5
- package/dist/compiler/usd-physics.cjs +7 -7
- package/dist/compiler/usd-physics.js +4 -4
- package/dist/compiler/visionos.cjs +7 -7
- package/dist/compiler/visionos.js +6 -6
- package/dist/compiler/vrchat.cjs +7 -7
- package/dist/compiler/vrchat.js +5 -5
- package/dist/compiler/vrr.cjs +7 -7
- package/dist/compiler/vrr.js +5 -5
- package/dist/compiler/wasm.cjs +10 -10
- package/dist/compiler/wasm.js +5 -5
- package/dist/compiler/webgpu.cjs +6 -6
- package/dist/compiler/webgpu.js +5 -5
- package/dist/coordinators/index.cjs +27 -10
- package/dist/coordinators/index.js +27 -10
- package/dist/debugger.cjs +6 -6
- package/dist/debugger.js +4 -4
- package/dist/entries/scripting.cjs +6 -6
- package/dist/entries/scripting.js +2 -2
- package/dist/hololand/index.cjs +36 -36
- package/dist/hololand/index.js +2 -2
- package/dist/index.cjs +1056 -796
- package/dist/index.js +440 -180
- package/dist/math/tropical-spmv.cjs +10 -10
- package/dist/math/tropical-spmv.js +1 -1
- package/dist/math/vec3.cjs +13 -13
- package/dist/math/vec3.js +1 -1
- package/dist/parser/NFTMarketplaceTypes.d.ts +191 -0
- package/dist/parser.cjs +16 -16
- package/dist/parser.js +5 -5
- package/dist/reconstruction/index.cjs +37 -37
- package/dist/reconstruction/index.js +4 -4
- package/dist/runtime.cjs +274 -76
- package/dist/runtime.d.ts +10 -1
- package/dist/runtime.js +268 -70
- package/dist/self-improvement/index.cjs +12 -4
- package/dist/self-improvement/index.js +12 -4
- package/dist/{src-HCCCSYP7.js → src-J6CM4AUR.js} +91 -33
- package/dist/{src-4ROC227P.cjs → src-PT2FERDV.cjs} +93 -35
- package/dist/testing.cjs +5 -5
- package/dist/testing.js +1 -1
- package/dist/traits/botanical-lotus.cjs +49 -49
- package/dist/traits/botanical-lotus.js +2 -2
- package/dist/traits/engines/index.cjs +39 -39
- package/dist/traits/engines/index.d.ts +279 -0
- package/dist/traits/engines/index.js +4 -4
- package/dist/traits/index.cjs +881 -773
- package/dist/traits/index.js +366 -258
- package/dist/world/index.cjs +21 -18
- package/dist/world/index.js +21 -18
- package/dist/world-model/index.cjs +11 -5
- package/dist/world-model/index.d.ts +8 -0
- package/dist/world-model/index.js +11 -5
- package/package.json +74 -68
- package/LICENSE +0 -21
- package/dist/GLTFPipeline-PVLTKDBD.cjs +0 -38
- package/dist/GLTFPipeline-QPI4I7DL.js +0 -17
- package/dist/HoloScriptPlusParser-WKHRIH6T.cjs +0 -27
- package/dist/HoloScriptRuntime-6ZGLUCFS.js +0 -10
- package/dist/HoloScriptRuntime-ALUASIL2.cjs +0 -19
|
@@ -426,7 +426,8 @@ function validatePlatformConstraints(composition) {
|
|
|
426
426
|
}
|
|
427
427
|
};
|
|
428
428
|
for (const obj of composition.objects || []) checkObject(obj);
|
|
429
|
-
for (const tmpl of composition.templates || [])
|
|
429
|
+
for (const tmpl of composition.templates || [])
|
|
430
|
+
check(tmpl.platformConstraint, `template "${tmpl.name}"`);
|
|
430
431
|
for (const tmpl of composition.templates || []) {
|
|
431
432
|
for (const trait of tmpl.traits || []) {
|
|
432
433
|
check(trait.platformConstraint, `trait "@${trait.name}" on template "${tmpl.name}"`);
|
|
@@ -434,7 +435,8 @@ function validatePlatformConstraints(composition) {
|
|
|
434
435
|
}
|
|
435
436
|
for (const norm of composition.norms || []) check(norm.platformConstraint, `norm "${norm.name}"`);
|
|
436
437
|
for (const grp of composition.spatialGroups || []) checkGroup(grp);
|
|
437
|
-
for (const light of composition.lights || [])
|
|
438
|
+
for (const light of composition.lights || [])
|
|
439
|
+
check(light.platformConstraint, `light "${light.name}"`);
|
|
438
440
|
return errors;
|
|
439
441
|
}
|
|
440
442
|
function filterCompositionForPlatform(composition, platform) {
|
|
@@ -525,5 +527,5 @@ var init_PlatformConditionalCompilerMixin = __esm({
|
|
|
525
527
|
});
|
|
526
528
|
|
|
527
529
|
export { ALL_PLATFORMS, DEFAULT_EMBODIMENT, PLATFORM_CAPABILITIES, PLATFORM_CATEGORIES, PlatformConditionalCompilerMixin, agentBudgetFor, createPlatformTarget, embodimentFor, filterCompositionForPlatform, hasCapability, init_PlatformConditional, init_PlatformConditionalCompilerMixin, matchesPlatform, matchesPlatformConstraint, normalizePlatformName, platformCategory, resolvePlatforms, selectBlock };
|
|
528
|
-
//# sourceMappingURL=chunk-
|
|
529
|
-
//# sourceMappingURL=chunk-
|
|
530
|
+
//# sourceMappingURL=chunk-GW3LKD5C.js.map
|
|
531
|
+
//# sourceMappingURL=chunk-GW3LKD5C.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var chunkG6PNEASF_cjs = require('./chunk-G6PNEASF.cjs');
|
|
4
|
+
var chunkNHYRRAGI_cjs = require('./chunk-NHYRRAGI.cjs');
|
|
5
|
+
var chunk4W5G5QVL_cjs = require('./chunk-4W5G5QVL.cjs');
|
|
6
|
+
var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
|
|
7
7
|
var ans = require('@holoscript/core-types/ans');
|
|
8
8
|
|
|
9
9
|
// src/compiler/MultiLayerCompiler.ts
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var MultiLayerCompiler = class extends
|
|
10
|
+
chunkG6PNEASF_cjs.init_VRRCompiler();
|
|
11
|
+
chunkNHYRRAGI_cjs.init_ARCompiler();
|
|
12
|
+
chunk4W5G5QVL_cjs.init_BabylonCompiler();
|
|
13
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
14
|
+
var MultiLayerCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
|
|
15
15
|
constructor(options) {
|
|
16
16
|
super();
|
|
17
17
|
this.compilerName = "MultiLayerCompiler";
|
|
@@ -28,7 +28,7 @@ var MultiLayerCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
|
28
28
|
errors: []
|
|
29
29
|
};
|
|
30
30
|
if (this.options.targets.includes("ar")) {
|
|
31
|
-
const arCompiler = new
|
|
31
|
+
const arCompiler = new chunkNHYRRAGI_cjs.ARCompiler({
|
|
32
32
|
target: "webxr",
|
|
33
33
|
minify: this.options.minify,
|
|
34
34
|
source_maps: this.options.source_maps,
|
|
@@ -39,7 +39,7 @@ var MultiLayerCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
|
39
39
|
if (!arResult.success) result.success = false;
|
|
40
40
|
}
|
|
41
41
|
if (this.options.targets.includes("vrr")) {
|
|
42
|
-
const vrrCompiler = new
|
|
42
|
+
const vrrCompiler = new chunkG6PNEASF_cjs.VRRCompiler({
|
|
43
43
|
target: "threejs",
|
|
44
44
|
minify: this.options.minify,
|
|
45
45
|
source_maps: this.options.source_maps,
|
|
@@ -52,7 +52,7 @@ var MultiLayerCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
|
52
52
|
if (!vrrResult.success) result.success = false;
|
|
53
53
|
}
|
|
54
54
|
if (this.options.targets.includes("vr")) {
|
|
55
|
-
const vrCompiler = new
|
|
55
|
+
const vrCompiler = new chunk4W5G5QVL_cjs.BabylonCompiler({});
|
|
56
56
|
try {
|
|
57
57
|
const vrResult = vrCompiler.compile(composition, agentToken);
|
|
58
58
|
result.vr = vrResult;
|
|
@@ -68,5 +68,5 @@ var MultiLayerCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
exports.MultiLayerCompiler = MultiLayerCompiler;
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
72
|
-
//# sourceMappingURL=chunk-
|
|
71
|
+
//# sourceMappingURL=chunk-HFSVMKM3.cjs.map
|
|
72
|
+
//# sourceMappingURL=chunk-HFSVMKM3.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
|
|
4
4
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
5
5
|
var ans = require('@holoscript/core-types/ans');
|
|
6
6
|
|
|
@@ -14,8 +14,8 @@ chunkHCCQLAA4_cjs.__export(DTDLCompiler_exports, {
|
|
|
14
14
|
exports.DTDLCompiler = void 0; exports.DTDL_TRAIT_COMPONENTS = void 0; exports.DTDLCompiler_default = void 0;
|
|
15
15
|
var init_DTDLCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
16
16
|
"src/compiler/DTDLCompiler.ts"() {
|
|
17
|
-
|
|
18
|
-
exports.DTDLCompiler = class extends
|
|
17
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
18
|
+
exports.DTDLCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
|
|
19
19
|
constructor(options = {}) {
|
|
20
20
|
super();
|
|
21
21
|
this.compilerName = "DTDLCompiler";
|
|
@@ -420,5 +420,5 @@ var init_DTDLCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
420
420
|
|
|
421
421
|
exports.DTDLCompiler_exports = DTDLCompiler_exports;
|
|
422
422
|
exports.init_DTDLCompiler = init_DTDLCompiler;
|
|
423
|
-
//# sourceMappingURL=chunk-
|
|
424
|
-
//# sourceMappingURL=chunk-
|
|
423
|
+
//# sourceMappingURL=chunk-HLFDZ35S.cjs.map
|
|
424
|
+
//# sourceMappingURL=chunk-HLFDZ35S.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkGH6C2QGW_cjs = require('./chunk-GH6C2QGW.cjs');
|
|
4
|
+
var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
|
|
5
5
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
6
6
|
var ans = require('@holoscript/core-types/ans');
|
|
7
7
|
|
|
@@ -14,9 +14,9 @@ chunkHCCQLAA4_cjs.__export(SDFCompiler_exports, {
|
|
|
14
14
|
exports.SDFCompiler = void 0; exports.SDFCompiler_default = void 0;
|
|
15
15
|
var init_SDFCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
16
16
|
"src/compiler/SDFCompiler.ts"() {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
exports.SDFCompiler = class extends
|
|
17
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
18
|
+
chunkGH6C2QGW_cjs.init_DomainBlockCompilerMixin();
|
|
19
|
+
exports.SDFCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
|
|
20
20
|
constructor(options = {}) {
|
|
21
21
|
super();
|
|
22
22
|
this.compilerName = "SDFCompiler";
|
|
@@ -96,23 +96,23 @@ var init_SDFCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
96
96
|
if (domainBlocks.length === 0) return;
|
|
97
97
|
this.emit("");
|
|
98
98
|
this.emit("<!-- v4.2 Domain Blocks -->");
|
|
99
|
-
const compiled =
|
|
99
|
+
const compiled = chunkGH6C2QGW_cjs.compileDomainBlocks(
|
|
100
100
|
domainBlocks,
|
|
101
101
|
{
|
|
102
102
|
material: (block) => {
|
|
103
|
-
const mat =
|
|
104
|
-
return
|
|
103
|
+
const mat = chunkGH6C2QGW_cjs.compileMaterialBlock(block);
|
|
104
|
+
return chunkGH6C2QGW_cjs.materialToSDF(mat);
|
|
105
105
|
},
|
|
106
106
|
physics: (block) => {
|
|
107
|
-
const phys =
|
|
108
|
-
return
|
|
107
|
+
const phys = chunkGH6C2QGW_cjs.compilePhysicsBlock(block);
|
|
108
|
+
return chunkGH6C2QGW_cjs.physicsToSDF(phys);
|
|
109
109
|
},
|
|
110
110
|
audio: (block) => {
|
|
111
|
-
const audio =
|
|
111
|
+
const audio = chunkGH6C2QGW_cjs.compileAudioSourceBlock(block);
|
|
112
112
|
return `<!-- Audio: ${this.escapeStringValue(audio.name, "TypeScript")} (${audio.keyword}) clip="${audio.properties.clip || ""}" -->`;
|
|
113
113
|
},
|
|
114
114
|
weather: (block) => {
|
|
115
|
-
const weather =
|
|
115
|
+
const weather = chunkGH6C2QGW_cjs.compileWeatherBlock(block);
|
|
116
116
|
const layers = weather.layers.map((l) => `<!-- ${l.type}: ${JSON.stringify(l.properties)} -->`).join("\n");
|
|
117
117
|
return `<!-- Weather: ${weather.keyword} "${weather.name || ""}" -->
|
|
118
118
|
${layers}`;
|
|
@@ -215,10 +215,14 @@ ${layers}`;
|
|
|
215
215
|
this.emit("<render_engine>ogre2</render_engine>");
|
|
216
216
|
this.indentLevel--;
|
|
217
217
|
this.emit("</plugin>");
|
|
218
|
-
this.emit(
|
|
218
|
+
this.emit(
|
|
219
|
+
'<plugin name="gz::sim::systems::SceneBroadcaster" filename="gz-sim-scene-broadcaster-system" />'
|
|
220
|
+
);
|
|
219
221
|
this.emit('<plugin name="gz::sim::systems::Contact" filename="gz-sim-contact-system" />');
|
|
220
222
|
this.emit('<plugin name="gz::sim::systems::Imu" filename="gz-sim-imu-system" />');
|
|
221
|
-
this.emit(
|
|
223
|
+
this.emit(
|
|
224
|
+
'<plugin name="gz::sim::systems::JointStatePublisher" filename="gz-sim-joint-state-publisher-system" />'
|
|
225
|
+
);
|
|
222
226
|
this.emit("");
|
|
223
227
|
}
|
|
224
228
|
calculateInertia(geometry, mass, scale) {
|
|
@@ -607,5 +611,5 @@ ${layers}`;
|
|
|
607
611
|
|
|
608
612
|
exports.SDFCompiler_exports = SDFCompiler_exports;
|
|
609
613
|
exports.init_SDFCompiler = init_SDFCompiler;
|
|
610
|
-
//# sourceMappingURL=chunk-
|
|
611
|
-
//# sourceMappingURL=chunk-
|
|
614
|
+
//# sourceMappingURL=chunk-I76GIKN7.cjs.map
|
|
615
|
+
//# sourceMappingURL=chunk-I76GIKN7.cjs.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkUOIGFQXC_cjs = require('./chunk-UOIGFQXC.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunk56VOWURB_cjs = require('./chunk-56VOWURB.cjs');
|
|
5
|
+
var chunkUVFI7XIR_cjs = require('./chunk-UVFI7XIR.cjs');
|
|
6
6
|
var chunkOIQYIIO3_cjs = require('./chunk-OIQYIIO3.cjs');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
7
|
+
var chunkEBS32AJI_cjs = require('./chunk-EBS32AJI.cjs');
|
|
8
|
+
var chunkGH6C2QGW_cjs = require('./chunk-GH6C2QGW.cjs');
|
|
9
|
+
var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
|
|
10
10
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
11
11
|
|
|
12
12
|
// src/traits/visual/presets/hologram-media.visual.ts
|
|
@@ -754,14 +754,14 @@ var r3fNodePool; exports.MATERIAL_PRESETS = void 0; exports.ENVIRONMENT_PRESETS
|
|
|
754
754
|
var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
755
755
|
"src/compiler/R3FCompiler.ts"() {
|
|
756
756
|
chunkOIQYIIO3_cjs.init_TraitCompositor();
|
|
757
|
-
|
|
757
|
+
chunkUVFI7XIR_cjs.init_ProvenanceSemiring();
|
|
758
758
|
init_visual();
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
759
|
+
chunkGH6C2QGW_cjs.init_DomainBlockCompilerMixin();
|
|
760
|
+
chunkEBS32AJI_cjs.init_PlatformConditionalCompilerMixin();
|
|
761
|
+
chunkLODTHGST_cjs.init_AgentRBAC();
|
|
762
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
763
763
|
init_ObjectPool();
|
|
764
|
-
|
|
764
|
+
chunk56VOWURB_cjs.init_BotanicalLotusTrait();
|
|
765
765
|
r3fNodePool = new exports.ASTNodePool(
|
|
766
766
|
() => ({ type: "", props: {} }),
|
|
767
767
|
(node) => {
|
|
@@ -2563,13 +2563,13 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2563
2563
|
constructor(options = {}) {
|
|
2564
2564
|
// ─── RBAC Enforcement ─────────────────────────────────────────────────
|
|
2565
2565
|
this.compilerName = "R3FCompiler";
|
|
2566
|
-
this.rbac =
|
|
2566
|
+
this.rbac = chunkLODTHGST_cjs.getRBAC();
|
|
2567
2567
|
this.qualityTier = options.qualityTier ?? "high";
|
|
2568
2568
|
this.tierScales = exports.QUALITY_TIER_SCALES[this.qualityTier];
|
|
2569
2569
|
this._defaultLighting = options.defaultLighting ?? true;
|
|
2570
2570
|
this._holomapPointCloud = options.holomapPointCloud;
|
|
2571
2571
|
if (options.platformTarget) {
|
|
2572
|
-
this._platformTarget = typeof options.platformTarget === "string" ?
|
|
2572
|
+
this._platformTarget = typeof options.platformTarget === "string" ? chunkEBS32AJI_cjs.createPlatformTarget(options.platformTarget) : options.platformTarget;
|
|
2573
2573
|
}
|
|
2574
2574
|
}
|
|
2575
2575
|
/**
|
|
@@ -2594,7 +2594,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2594
2594
|
expectedWorkflowStep: "generate_assembly" /* GENERATE_ASSEMBLY */
|
|
2595
2595
|
});
|
|
2596
2596
|
if (!astDecision.allowed) {
|
|
2597
|
-
throw new
|
|
2597
|
+
throw new chunkLODTHGST_cjs.UnauthorizedCompilerAccessError(astDecision, "AST access", this.compilerName);
|
|
2598
2598
|
}
|
|
2599
2599
|
const codeDecision = this.rbac.checkAccess({
|
|
2600
2600
|
token: agentToken,
|
|
@@ -2603,7 +2603,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2603
2603
|
expectedWorkflowStep: "generate_assembly" /* GENERATE_ASSEMBLY */
|
|
2604
2604
|
});
|
|
2605
2605
|
if (!codeDecision.allowed) {
|
|
2606
|
-
throw new
|
|
2606
|
+
throw new chunkLODTHGST_cjs.UnauthorizedCompilerAccessError(codeDecision, "code generation", this.compilerName);
|
|
2607
2607
|
}
|
|
2608
2608
|
if (outputPath) {
|
|
2609
2609
|
const outputDecision = this.rbac.checkAccess({
|
|
@@ -2614,7 +2614,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2614
2614
|
expectedWorkflowStep: "serialize" /* SERIALIZE */
|
|
2615
2615
|
});
|
|
2616
2616
|
if (!outputDecision.allowed) {
|
|
2617
|
-
throw new
|
|
2617
|
+
throw new chunkLODTHGST_cjs.UnauthorizedCompilerAccessError(
|
|
2618
2618
|
outputDecision,
|
|
2619
2619
|
`output write to '${outputPath}'`,
|
|
2620
2620
|
this.compilerName
|
|
@@ -2764,15 +2764,15 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2764
2764
|
this.injectDefaultLighting(root);
|
|
2765
2765
|
const domainBlocks = ast.domainBlocks ?? [];
|
|
2766
2766
|
if (domainBlocks.length > 0) {
|
|
2767
|
-
const compiled =
|
|
2767
|
+
const compiled = chunkGH6C2QGW_cjs.compileDomainBlocks(
|
|
2768
2768
|
domainBlocks,
|
|
2769
2769
|
{
|
|
2770
2770
|
material: (block) => {
|
|
2771
|
-
const mat =
|
|
2771
|
+
const mat = chunkGH6C2QGW_cjs.compileMaterialBlock(block);
|
|
2772
2772
|
return {
|
|
2773
2773
|
type: "DomainBlockOutput",
|
|
2774
2774
|
props: {
|
|
2775
|
-
__raw:
|
|
2775
|
+
__raw: chunkGH6C2QGW_cjs.materialToR3F(mat, this.tierScales),
|
|
2776
2776
|
__domain: "material",
|
|
2777
2777
|
__name: mat.name
|
|
2778
2778
|
},
|
|
@@ -2780,11 +2780,11 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2780
2780
|
};
|
|
2781
2781
|
},
|
|
2782
2782
|
physics: (block) => {
|
|
2783
|
-
const phys =
|
|
2783
|
+
const phys = chunkGH6C2QGW_cjs.compilePhysicsBlock(block);
|
|
2784
2784
|
return {
|
|
2785
2785
|
type: "DomainBlockOutput",
|
|
2786
2786
|
props: {
|
|
2787
|
-
__raw:
|
|
2787
|
+
__raw: chunkGH6C2QGW_cjs.physicsToR3F(phys),
|
|
2788
2788
|
__domain: "physics",
|
|
2789
2789
|
__name: phys.name || phys.keyword
|
|
2790
2790
|
},
|
|
@@ -2792,11 +2792,11 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2792
2792
|
};
|
|
2793
2793
|
},
|
|
2794
2794
|
vfx: (block) => {
|
|
2795
|
-
const ps =
|
|
2795
|
+
const ps = chunkGH6C2QGW_cjs.compileParticleBlock(block);
|
|
2796
2796
|
return {
|
|
2797
2797
|
type: "DomainBlockOutput",
|
|
2798
2798
|
props: {
|
|
2799
|
-
__raw:
|
|
2799
|
+
__raw: chunkGH6C2QGW_cjs.particlesToR3F(ps, this.tierScales),
|
|
2800
2800
|
__domain: "vfx",
|
|
2801
2801
|
__name: ps.name
|
|
2802
2802
|
},
|
|
@@ -2804,11 +2804,11 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2804
2804
|
};
|
|
2805
2805
|
},
|
|
2806
2806
|
postfx: (block) => {
|
|
2807
|
-
const pp =
|
|
2807
|
+
const pp = chunkGH6C2QGW_cjs.compilePostProcessingBlock(block);
|
|
2808
2808
|
return {
|
|
2809
2809
|
type: "DomainBlockOutput",
|
|
2810
2810
|
props: {
|
|
2811
|
-
__raw:
|
|
2811
|
+
__raw: chunkGH6C2QGW_cjs.postProcessingToR3F(pp),
|
|
2812
2812
|
__domain: "postfx",
|
|
2813
2813
|
__name: pp.name || "PostProcessing"
|
|
2814
2814
|
},
|
|
@@ -2816,19 +2816,19 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2816
2816
|
};
|
|
2817
2817
|
},
|
|
2818
2818
|
audio: (block) => {
|
|
2819
|
-
const audio =
|
|
2819
|
+
const audio = chunkGH6C2QGW_cjs.compileAudioSourceBlock(block);
|
|
2820
2820
|
return {
|
|
2821
2821
|
type: "DomainBlockOutput",
|
|
2822
|
-
props: { __raw:
|
|
2822
|
+
props: { __raw: chunkGH6C2QGW_cjs.audioSourceToR3F(audio), __domain: "audio", __name: audio.name },
|
|
2823
2823
|
children: []
|
|
2824
2824
|
};
|
|
2825
2825
|
},
|
|
2826
2826
|
weather: (block) => {
|
|
2827
|
-
const weather =
|
|
2827
|
+
const weather = chunkGH6C2QGW_cjs.compileWeatherBlock(block);
|
|
2828
2828
|
return {
|
|
2829
2829
|
type: "DomainBlockOutput",
|
|
2830
2830
|
props: {
|
|
2831
|
-
__raw:
|
|
2831
|
+
__raw: chunkGH6C2QGW_cjs.weatherToR3F(weather),
|
|
2832
2832
|
__domain: "weather",
|
|
2833
2833
|
__name: weather.name || "Weather"
|
|
2834
2834
|
},
|
|
@@ -2836,11 +2836,11 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2836
2836
|
};
|
|
2837
2837
|
},
|
|
2838
2838
|
simulation: (block) => {
|
|
2839
|
-
const sim =
|
|
2839
|
+
const sim = chunkGH6C2QGW_cjs.compileSimulationBlock(block);
|
|
2840
2840
|
return {
|
|
2841
2841
|
type: "DomainBlockOutput",
|
|
2842
2842
|
props: {
|
|
2843
|
-
__raw:
|
|
2843
|
+
__raw: chunkGH6C2QGW_cjs.simulationToR3F(sim),
|
|
2844
2844
|
__domain: "simulation",
|
|
2845
2845
|
__name: sim.name || "Simulation"
|
|
2846
2846
|
},
|
|
@@ -2900,7 +2900,9 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2900
2900
|
const childNodes = [];
|
|
2901
2901
|
if (world.children && world.children.length > 0) {
|
|
2902
2902
|
for (const child of world.children) {
|
|
2903
|
-
childNodes.push(
|
|
2903
|
+
childNodes.push(
|
|
2904
|
+
this.compileObjectDecl(child, templateMap)
|
|
2905
|
+
);
|
|
2904
2906
|
}
|
|
2905
2907
|
}
|
|
2906
2908
|
if (childNodes.length === 0) {
|
|
@@ -2909,7 +2911,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2909
2911
|
const group = this.createNode(
|
|
2910
2912
|
"group",
|
|
2911
2913
|
{},
|
|
2912
|
-
world.name ?
|
|
2914
|
+
world.name ? chunkLODTHGST_cjs.escapeStringValue(world.name, "JSX") : void 0
|
|
2913
2915
|
);
|
|
2914
2916
|
group.children = [...nodes, ...childNodes];
|
|
2915
2917
|
return [group];
|
|
@@ -2933,14 +2935,14 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2933
2935
|
* from `.holo` data instead of hand-authoring it.
|
|
2934
2936
|
*/
|
|
2935
2937
|
emitCompiledLotusMaterial(props, config) {
|
|
2936
|
-
const profile =
|
|
2937
|
-
props.__compiledMaterial =
|
|
2938
|
-
props.__uniformBindings =
|
|
2939
|
-
props.__petalGeometry =
|
|
2940
|
-
|
|
2938
|
+
const profile = chunk56VOWURB_cjs.createBotanicalLotusRenderProfile(config);
|
|
2939
|
+
props.__compiledMaterial = chunk56VOWURB_cjs.buildLotusPetalMaterialSpec(profile);
|
|
2940
|
+
props.__uniformBindings = chunk56VOWURB_cjs.LOTUS_PETAL_UNIFORM_BINDINGS;
|
|
2941
|
+
props.__petalGeometry = chunk56VOWURB_cjs.buildLotusPetalGeometryData(
|
|
2942
|
+
chunk56VOWURB_cjs.lotusPetalGeometryParamsFromProfile(profile)
|
|
2941
2943
|
);
|
|
2942
|
-
props.__petalPlacements =
|
|
2943
|
-
const scaffold =
|
|
2944
|
+
props.__petalPlacements = chunk56VOWURB_cjs.buildLotusFlowerPlacements(profile);
|
|
2945
|
+
const scaffold = chunk56VOWURB_cjs.buildLotusSceneScaffold();
|
|
2944
2946
|
props.__lotusScene = {
|
|
2945
2947
|
stemHeight: scaffold.stem.height,
|
|
2946
2948
|
scaffold,
|
|
@@ -2969,12 +2971,47 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2969
2971
|
]).map(Number)
|
|
2970
2972
|
}
|
|
2971
2973
|
};
|
|
2974
|
+
const waterColor = profile.colors.water;
|
|
2975
|
+
const leafColor = profile.colors.leaf;
|
|
2972
2976
|
const leafDarkColor = profile.colors.leaf_dark;
|
|
2973
2977
|
const stemHeight = scaffold.stem.height;
|
|
2978
|
+
const scaffoldNodes = [
|
|
2979
|
+
this.createNode("mesh", {
|
|
2980
|
+
hsType: "plane",
|
|
2981
|
+
width: scaffold.waterSize,
|
|
2982
|
+
height: scaffold.waterSize,
|
|
2983
|
+
rotation: [-Math.PI / 2, 0, 0],
|
|
2984
|
+
color: waterColor,
|
|
2985
|
+
roughness: 0.22,
|
|
2986
|
+
metalness: 0.5,
|
|
2987
|
+
// Mark the pond as a REFLECTIVE surface — the renderer's generic MeshNode draws
|
|
2988
|
+
// it with a mirror material so the flower + pads reflect (a real water read).
|
|
2989
|
+
reflective: true
|
|
2990
|
+
}),
|
|
2991
|
+
...scaffold.pads.map(
|
|
2992
|
+
(pad, padIdx) => this.createNode("mesh", {
|
|
2993
|
+
hsType: "lilypad",
|
|
2994
|
+
radius: pad.radius,
|
|
2995
|
+
// Per-pad notch width variation so the pads don't look stamped.
|
|
2996
|
+
notchAngle: 0.48 + padIdx % 3 * 0.07,
|
|
2997
|
+
position: pad.pos,
|
|
2998
|
+
rotation: [-Math.PI / 2, 0, pad.rotation],
|
|
2999
|
+
color: pad.dark ? leafDarkColor : leafColor,
|
|
3000
|
+
roughness: 0.85
|
|
3001
|
+
})
|
|
3002
|
+
)
|
|
3003
|
+
];
|
|
2974
3004
|
const stemNode = this.createNode("group", {
|
|
2975
3005
|
__animatedTransform: [
|
|
2976
3006
|
{ prop: "scaleY", target: "developmentalTime", edge0: 0, edge1: 0.42, from: 1e-3, to: 1 },
|
|
2977
|
-
{
|
|
3007
|
+
{
|
|
3008
|
+
prop: "posY",
|
|
3009
|
+
target: "developmentalTime",
|
|
3010
|
+
edge0: 0,
|
|
3011
|
+
edge1: 0.42,
|
|
3012
|
+
from: 0,
|
|
3013
|
+
to: stemHeight / 2
|
|
3014
|
+
}
|
|
2978
3015
|
]
|
|
2979
3016
|
});
|
|
2980
3017
|
stemNode.children = [
|
|
@@ -2987,7 +3024,43 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2987
3024
|
roughness: 0.7
|
|
2988
3025
|
})
|
|
2989
3026
|
];
|
|
2990
|
-
|
|
3027
|
+
scaffoldNodes.push(stemNode);
|
|
3028
|
+
scaffold.leaves.forEach((lf, i) => {
|
|
3029
|
+
const leafNode = this.createNode("group", {
|
|
3030
|
+
position: lf.pos,
|
|
3031
|
+
__animatedTransform: [
|
|
3032
|
+
{
|
|
3033
|
+
prop: "scaleUniform",
|
|
3034
|
+
target: "developmentalTime",
|
|
3035
|
+
edge0: 0.15 + i * 0.08,
|
|
3036
|
+
edge1: 0.55 + i * 0.08,
|
|
3037
|
+
from: 0,
|
|
3038
|
+
to: 1
|
|
3039
|
+
}
|
|
3040
|
+
]
|
|
3041
|
+
});
|
|
3042
|
+
leafNode.children = [
|
|
3043
|
+
this.createNode("mesh", {
|
|
3044
|
+
hsType: "cylinder",
|
|
3045
|
+
radiusTop: 0.03,
|
|
3046
|
+
radiusBottom: 0.045,
|
|
3047
|
+
height: lf.height,
|
|
3048
|
+
position: [0, lf.height / 2, 0],
|
|
3049
|
+
color: leafDarkColor,
|
|
3050
|
+
roughness: 0.7
|
|
3051
|
+
}),
|
|
3052
|
+
this.createNode("mesh", {
|
|
3053
|
+
hsType: "circle",
|
|
3054
|
+
radius: lf.radius,
|
|
3055
|
+
position: [0, lf.height, 0],
|
|
3056
|
+
rotation: [-Math.PI / 2 + lf.tilt, 0, lf.rotation],
|
|
3057
|
+
color: lf.dark ? leafDarkColor : leafColor,
|
|
3058
|
+
roughness: 0.8
|
|
3059
|
+
})
|
|
3060
|
+
];
|
|
3061
|
+
scaffoldNodes.push(leafNode);
|
|
3062
|
+
});
|
|
3063
|
+
props.__scaffoldNodes = scaffoldNodes;
|
|
2991
3064
|
}
|
|
2992
3065
|
compileNode(node) {
|
|
2993
3066
|
if (node.type === "system") {
|
|
@@ -3001,7 +3074,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
3001
3074
|
const r3fNode = r3fNodePool.acquire();
|
|
3002
3075
|
r3fNode.type = type;
|
|
3003
3076
|
const rawId = node.id || node.name;
|
|
3004
|
-
r3fNode.id = rawId ?
|
|
3077
|
+
r3fNode.id = rawId ? chunkLODTHGST_cjs.escapeStringValue(rawId, "JSX") : void 0;
|
|
3005
3078
|
r3fNode.props = this.compileProperties(node, rawProps);
|
|
3006
3079
|
r3fNode.children = [];
|
|
3007
3080
|
r3fNode.traits = /* @__PURE__ */ new Map();
|
|
@@ -3035,12 +3108,12 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
3035
3108
|
compileComposition(composition, agentToken, outputPath) {
|
|
3036
3109
|
this.validateCompilerAccess(agentToken, outputPath);
|
|
3037
3110
|
if (this._platformTarget) {
|
|
3038
|
-
const platformMixin = new
|
|
3111
|
+
const platformMixin = new chunkEBS32AJI_cjs.PlatformConditionalCompilerMixin();
|
|
3039
3112
|
composition = platformMixin.filterForPlatform(composition, this._platformTarget);
|
|
3040
3113
|
}
|
|
3041
3114
|
const root = r3fNodePool.acquire();
|
|
3042
3115
|
root.type = "group";
|
|
3043
|
-
root.id = composition.name ?
|
|
3116
|
+
root.id = composition.name ? chunkLODTHGST_cjs.escapeStringValue(composition.name, "JSX") : void 0;
|
|
3044
3117
|
root.props = {};
|
|
3045
3118
|
root.children = [];
|
|
3046
3119
|
root.traits = /* @__PURE__ */ new Map();
|
|
@@ -3063,7 +3136,9 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
3063
3136
|
}
|
|
3064
3137
|
if (composition.environment) {
|
|
3065
3138
|
root.children.push(
|
|
3066
|
-
...this.compileEnvironmentBlock(
|
|
3139
|
+
...this.compileEnvironmentBlock(
|
|
3140
|
+
composition.environment
|
|
3141
|
+
)
|
|
3067
3142
|
);
|
|
3068
3143
|
}
|
|
3069
3144
|
if (Array.isArray(composition.lights)) {
|
|
@@ -3083,7 +3158,9 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
3083
3158
|
}
|
|
3084
3159
|
if (Array.isArray(composition.timelines)) {
|
|
3085
3160
|
for (const timeline of composition.timelines) {
|
|
3086
|
-
root.children.push(
|
|
3161
|
+
root.children.push(
|
|
3162
|
+
this.compileTimelineBlock(timeline)
|
|
3163
|
+
);
|
|
3087
3164
|
}
|
|
3088
3165
|
}
|
|
3089
3166
|
if (Array.isArray(composition.audio)) {
|
|
@@ -3107,11 +3184,15 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
3107
3184
|
}
|
|
3108
3185
|
}
|
|
3109
3186
|
if (composition.ui) {
|
|
3110
|
-
root.children.push(
|
|
3187
|
+
root.children.push(
|
|
3188
|
+
this.compileUIBlock(composition.ui)
|
|
3189
|
+
);
|
|
3111
3190
|
}
|
|
3112
3191
|
if (Array.isArray(composition.transitions)) {
|
|
3113
3192
|
for (const transition of composition.transitions) {
|
|
3114
|
-
root.children.push(
|
|
3193
|
+
root.children.push(
|
|
3194
|
+
this.compileTransitionBlock(transition)
|
|
3195
|
+
);
|
|
3115
3196
|
}
|
|
3116
3197
|
}
|
|
3117
3198
|
if (Array.isArray(composition.conditionals)) {
|
|
@@ -3125,7 +3206,9 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
3125
3206
|
}
|
|
3126
3207
|
}
|
|
3127
3208
|
if (composition.camera) {
|
|
3128
|
-
root.children.push(
|
|
3209
|
+
root.children.push(
|
|
3210
|
+
this.compileCameraBlock(composition.camera)
|
|
3211
|
+
);
|
|
3129
3212
|
}
|
|
3130
3213
|
if (composition.effects) {
|
|
3131
3214
|
root.children.unshift(
|
|
@@ -3187,7 +3270,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
3187
3270
|
}
|
|
3188
3271
|
const r3fNode = r3fNodePool.acquire();
|
|
3189
3272
|
r3fNode.type = type;
|
|
3190
|
-
r3fNode.id = light.name ?
|
|
3273
|
+
r3fNode.id = light.name ? chunkLODTHGST_cjs.escapeStringValue(light.name, "JSX") : void 0;
|
|
3191
3274
|
r3fNode.props = props;
|
|
3192
3275
|
r3fNode.children = [];
|
|
3193
3276
|
r3fNode.traits = /* @__PURE__ */ new Map();
|
|
@@ -3496,7 +3579,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
3496
3579
|
}
|
|
3497
3580
|
}
|
|
3498
3581
|
if (obj.traits && Array.isArray(obj.traits)) {
|
|
3499
|
-
const semiring = new
|
|
3582
|
+
const semiring = new chunkUVFI7XIR_cjs.ProvenanceSemiring();
|
|
3500
3583
|
const physicsApplications = obj.traits.filter((t) => t.name === "physics" || t.name === "collidable").map((t) => {
|
|
3501
3584
|
let baseConfig = t.config || {};
|
|
3502
3585
|
if (t.name === "collidable" && !baseConfig.type)
|
|
@@ -4040,7 +4123,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
4040
4123
|
entries.push(this.createNode("TimelineEntry", entryProps));
|
|
4041
4124
|
}
|
|
4042
4125
|
}
|
|
4043
|
-
const safeName = timeline.name ?
|
|
4126
|
+
const safeName = timeline.name ? chunkLODTHGST_cjs.escapeStringValue(timeline.name, "JSX") : void 0;
|
|
4044
4127
|
const timelineNode = this.createNode(
|
|
4045
4128
|
"Timeline",
|
|
4046
4129
|
{ autoplay: timeline.autoplay, loop: timeline.loop },
|
|
@@ -4062,7 +4145,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
4062
4145
|
}
|
|
4063
4146
|
}
|
|
4064
4147
|
}
|
|
4065
|
-
const safeName = audio.name ?
|
|
4148
|
+
const safeName = audio.name ? chunkLODTHGST_cjs.escapeStringValue(audio.name, "JSX") : void 0;
|
|
4066
4149
|
return this.createNode("Audio", props, safeName);
|
|
4067
4150
|
}
|
|
4068
4151
|
compileZoneBlock(zone) {
|
|
@@ -4081,7 +4164,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
4081
4164
|
})
|
|
4082
4165
|
);
|
|
4083
4166
|
}
|
|
4084
|
-
const safeName = zone.name ?
|
|
4167
|
+
const safeName = zone.name ? chunkLODTHGST_cjs.escapeStringValue(zone.name, "JSX") : void 0;
|
|
4085
4168
|
return this.createNode("Zone", props, safeName);
|
|
4086
4169
|
}
|
|
4087
4170
|
compileUIBlock(ui) {
|
|
@@ -4098,7 +4181,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
4098
4181
|
}
|
|
4099
4182
|
}
|
|
4100
4183
|
}
|
|
4101
|
-
const safeElName = el.name ?
|
|
4184
|
+
const safeElName = el.name ? chunkLODTHGST_cjs.escapeStringValue(el.name, "JSX") : void 0;
|
|
4102
4185
|
children.push(this.createNode("UIElement", elProps, safeElName));
|
|
4103
4186
|
}
|
|
4104
4187
|
}
|
|
@@ -4113,7 +4196,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
4113
4196
|
props[prop.key] = prop.value;
|
|
4114
4197
|
}
|
|
4115
4198
|
}
|
|
4116
|
-
const safeName = transition.name ?
|
|
4199
|
+
const safeName = transition.name ? chunkLODTHGST_cjs.escapeStringValue(transition.name, "JSX") : void 0;
|
|
4117
4200
|
return this.createNode("Transition", props, safeName);
|
|
4118
4201
|
}
|
|
4119
4202
|
compileConditionalBlock(cond, templateMap) {
|
|
@@ -4320,7 +4403,9 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
4320
4403
|
} else if (d.name === "spatial_audio" || d.name === "voice") {
|
|
4321
4404
|
props.spatial = true;
|
|
4322
4405
|
} else if (d.name === "gem_resonance") {
|
|
4323
|
-
props.gemResonance = gemResonanceConfig(
|
|
4406
|
+
props.gemResonance = gemResonanceConfig(
|
|
4407
|
+
d.config
|
|
4408
|
+
);
|
|
4324
4409
|
props.spatial = true;
|
|
4325
4410
|
} else if (d.name === "networked") {
|
|
4326
4411
|
props.networked = d.config || true;
|
|
@@ -4450,5 +4535,5 @@ exports.init_ObjectPool = init_ObjectPool;
|
|
|
4450
4535
|
exports.init_R3FCompiler = init_R3FCompiler;
|
|
4451
4536
|
exports.init_visual = init_visual;
|
|
4452
4537
|
exports.registerAllPresets = registerAllPresets;
|
|
4453
|
-
//# sourceMappingURL=chunk-
|
|
4454
|
-
//# sourceMappingURL=chunk-
|
|
4538
|
+
//# sourceMappingURL=chunk-KAIVDEIG.cjs.map
|
|
4539
|
+
//# sourceMappingURL=chunk-KAIVDEIG.cjs.map
|