@holoscript/core 6.0.3 → 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 +56 -21
- 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,21 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkBF2235SI_cjs = require('./chunk-BF2235SI.cjs');
|
|
4
|
+
var chunk3SAK5KFL_cjs = require('./chunk-3SAK5KFL.cjs');
|
|
5
|
+
var platform = require('@holoscript/platform');
|
|
5
6
|
|
|
6
7
|
// src/compiler/DTDLCompiler.ts
|
|
7
8
|
var DTDLCompiler_exports = {};
|
|
8
|
-
|
|
9
|
+
chunk3SAK5KFL_cjs.__export(DTDLCompiler_exports, {
|
|
9
10
|
DTDLCompiler: () => exports.DTDLCompiler,
|
|
10
11
|
DTDL_TRAIT_COMPONENTS: () => exports.DTDL_TRAIT_COMPONENTS,
|
|
11
12
|
default: () => exports.DTDLCompiler_default
|
|
12
13
|
});
|
|
13
14
|
exports.DTDLCompiler = void 0; exports.DTDL_TRAIT_COMPONENTS = void 0; exports.DTDLCompiler_default = void 0;
|
|
14
|
-
var init_DTDLCompiler =
|
|
15
|
+
var init_DTDLCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
15
16
|
"src/compiler/DTDLCompiler.ts"() {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
exports.DTDLCompiler = class extends chunkQHVVVN47_cjs.CompilerBase {
|
|
17
|
+
chunkBF2235SI_cjs.init_CompilerBase();
|
|
18
|
+
exports.DTDLCompiler = class extends chunkBF2235SI_cjs.CompilerBase {
|
|
19
19
|
constructor(options = {}) {
|
|
20
20
|
super();
|
|
21
21
|
this.compilerName = "DTDLCompiler";
|
|
@@ -29,7 +29,7 @@ var init_DTDLCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
getRequiredCapability() {
|
|
32
|
-
return
|
|
32
|
+
return platform.ANSCapabilityPath.DTDL;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Get trait name from either string or { name: string } format
|
|
@@ -420,5 +420,5 @@ var init_DTDLCompiler = chunkEGIZHYJP_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-QLEAOI3Q.cjs.map
|
|
424
|
+
//# sourceMappingURL=chunk-QLEAOI3Q.cjs.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compileParticleBlock, compilePhysicsBlock, compileMaterialBlock } from './chunk-
|
|
2
|
-
import { init_CompilerBase,
|
|
3
|
-
import { __export, __esm } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compileParticleBlock, compilePhysicsBlock, compileMaterialBlock } from './chunk-YQK5JNFK.js';
|
|
2
|
+
import { init_CompilerBase, CompilerBase } from './chunk-6XSERL6L.js';
|
|
3
|
+
import { __export, __esm } from './chunk-2CWOLHTE.js';
|
|
4
|
+
import { ANSCapabilityPath } from '@holoscript/platform';
|
|
4
5
|
|
|
5
6
|
// src/compiler/VRRCompiler.ts
|
|
6
7
|
var VRRCompiler_exports = {};
|
|
@@ -12,7 +13,6 @@ var VRRTraitDefs, VRRCompiler, VRRCompiler_default;
|
|
|
12
13
|
var init_VRRCompiler = __esm({
|
|
13
14
|
"src/compiler/VRRCompiler.ts"() {
|
|
14
15
|
init_CompilerBase();
|
|
15
|
-
init_ANSNamespace();
|
|
16
16
|
init_DomainBlockCompilerMixin();
|
|
17
17
|
VRRTraitDefs = {
|
|
18
18
|
vrr_twin: { validator: (p) => !!p.mirror },
|
|
@@ -20,9 +20,13 @@ var init_VRRCompiler = __esm({
|
|
|
20
20
|
geo_anchor: {
|
|
21
21
|
validator: (p) => typeof p.lat === "number" && typeof p.lng === "number" && p.lat >= -90 && p.lat <= 90 && p.lng >= -180 && p.lng <= 180
|
|
22
22
|
},
|
|
23
|
-
weather_sync: {
|
|
23
|
+
weather_sync: {
|
|
24
|
+
validator: (p) => ["weather.gov", "openweathermap"].includes(String(p.provider))
|
|
25
|
+
},
|
|
24
26
|
event_sync: { validator: (p) => ["eventbrite", "ticketmaster"].includes(String(p.provider)) },
|
|
25
|
-
inventory_sync: {
|
|
27
|
+
inventory_sync: {
|
|
28
|
+
validator: (p) => ["square_pos", "shopify", "woocommerce"].includes(String(p.provider))
|
|
29
|
+
},
|
|
26
30
|
quest_hub: { validator: (p) => Array.isArray(p.quests) && p.quests.length > 0 },
|
|
27
31
|
layer_shift: {
|
|
28
32
|
validator: (p) => {
|
|
@@ -82,9 +86,7 @@ var init_VRRCompiler = __esm({
|
|
|
82
86
|
if (field) {
|
|
83
87
|
const traitDef = VRRTraitDefs[trait.name];
|
|
84
88
|
if (traitDef?.validator && !traitDef.validator(trait.params)) {
|
|
85
|
-
this.warnings.push(
|
|
86
|
-
`@${trait.name} on "${n.name || "unnamed"}" has invalid params`
|
|
87
|
-
);
|
|
89
|
+
this.warnings.push(`@${trait.name} on "${n.name || "unnamed"}" has invalid params`);
|
|
88
90
|
}
|
|
89
91
|
data[field].push(n);
|
|
90
92
|
}
|
|
@@ -116,21 +118,15 @@ var init_VRRCompiler = __esm({
|
|
|
116
118
|
// === Three.js Scene Generation ===`);
|
|
117
119
|
this.generatedCode.push(`const ambientLight = new THREE.AmbientLight(0x404040, 0.6);`);
|
|
118
120
|
this.generatedCode.push(`scene.add(ambientLight);`);
|
|
119
|
-
this.generatedCode.push(
|
|
120
|
-
`const directionalLight = new THREE.DirectionalLight(0xffffff, 0.8);`
|
|
121
|
-
);
|
|
121
|
+
this.generatedCode.push(`const directionalLight = new THREE.DirectionalLight(0xffffff, 0.8);`);
|
|
122
122
|
this.generatedCode.push(`directionalLight.position.set(50, 200, 100);`);
|
|
123
123
|
this.generatedCode.push(`directionalLight.castShadow = true;`);
|
|
124
124
|
this.generatedCode.push(`scene.add(directionalLight);`);
|
|
125
|
-
this.generatedCode.push(
|
|
126
|
-
`const groundGeo = new THREE.PlaneGeometry(10000, 10000);`
|
|
127
|
-
);
|
|
125
|
+
this.generatedCode.push(`const groundGeo = new THREE.PlaneGeometry(10000, 10000);`);
|
|
128
126
|
this.generatedCode.push(
|
|
129
127
|
`const groundMat = new THREE.MeshStandardMaterial({ color: 0x3a7d3a, roughness: 0.9 });`
|
|
130
128
|
);
|
|
131
|
-
this.generatedCode.push(
|
|
132
|
-
`const ground = new THREE.Mesh(groundGeo, groundMat);`
|
|
133
|
-
);
|
|
129
|
+
this.generatedCode.push(`const ground = new THREE.Mesh(groundGeo, groundMat);`);
|
|
134
130
|
this.generatedCode.push(`ground.rotation.x = -Math.PI / 2;`);
|
|
135
131
|
this.generatedCode.push(`ground.receiveShadow = true;`);
|
|
136
132
|
this.generatedCode.push(`scene.add(ground);`);
|
|
@@ -144,28 +140,20 @@ var init_VRRCompiler = __esm({
|
|
|
144
140
|
const safeName = this.escapeStringValue(String(node.name || "geo_object"), "TypeScript");
|
|
145
141
|
this.generatedCode.push(`
|
|
146
142
|
// Geo-anchored: ${safeName} (${lat}, ${lng})`);
|
|
147
|
-
this.generatedCode.push(
|
|
148
|
-
`const marker_${safeName} = new THREE.Group();`
|
|
149
|
-
);
|
|
143
|
+
this.generatedCode.push(`const marker_${safeName} = new THREE.Group();`);
|
|
150
144
|
this.generatedCode.push(
|
|
151
145
|
`marker_${safeName}.position.copy(vrr.geoToSceneCoords(${lat}, ${lng}));`
|
|
152
146
|
);
|
|
153
|
-
this.generatedCode.push(
|
|
154
|
-
`marker_${safeName}.userData.geo = { lat: ${lat}, lng: ${lng} };`
|
|
155
|
-
);
|
|
147
|
+
this.generatedCode.push(`marker_${safeName}.userData.geo = { lat: ${lat}, lng: ${lng} };`);
|
|
156
148
|
this.generatedCode.push(`phoenix_downtown.add(marker_${safeName});`);
|
|
157
149
|
}
|
|
158
150
|
this.generatedCode.push(`
|
|
159
151
|
// Skybox`);
|
|
160
|
-
this.generatedCode.push(
|
|
161
|
-
`scene.background = new THREE.Color(0x87ceeb);`
|
|
162
|
-
);
|
|
152
|
+
this.generatedCode.push(`scene.background = new THREE.Color(0x87ceeb);`);
|
|
163
153
|
this.generatedCode.push(`
|
|
164
154
|
// Render loop`);
|
|
165
155
|
this.generatedCode.push(`renderer.shadowMap.enabled = true;`);
|
|
166
|
-
this.generatedCode.push(
|
|
167
|
-
`renderer.shadowMap.type = THREE.PCFSoftShadowMap;`
|
|
168
|
-
);
|
|
156
|
+
this.generatedCode.push(`renderer.shadowMap.type = THREE.PCFSoftShadowMap;`);
|
|
169
157
|
this.generatedCode.push(`function animate() {`);
|
|
170
158
|
this.generatedCode.push(` requestAnimationFrame(animate);`);
|
|
171
159
|
this.generatedCode.push(` vrr.tick();`);
|
|
@@ -195,19 +183,11 @@ var init_VRRCompiler = __esm({
|
|
|
195
183
|
this.generatedCode.push(` location: vrr.getGeoCenter(),`);
|
|
196
184
|
this.generatedCode.push(`});`);
|
|
197
185
|
this.generatedCode.push(`const rainGeometry = new THREE.BufferGeometry();`);
|
|
198
|
-
this.generatedCode.push(
|
|
199
|
-
`const rainPositions = new Float32Array(3000 * 3);`
|
|
200
|
-
);
|
|
186
|
+
this.generatedCode.push(`const rainPositions = new Float32Array(3000 * 3);`);
|
|
201
187
|
this.generatedCode.push(`for (let i = 0; i < 3000; i++) {`);
|
|
202
|
-
this.generatedCode.push(
|
|
203
|
-
|
|
204
|
-
);
|
|
205
|
-
this.generatedCode.push(
|
|
206
|
-
` rainPositions[i * 3 + 1] = Math.random() * 200;`
|
|
207
|
-
);
|
|
208
|
-
this.generatedCode.push(
|
|
209
|
-
` rainPositions[i * 3 + 2] = (Math.random() - 0.5) * 500;`
|
|
210
|
-
);
|
|
188
|
+
this.generatedCode.push(` rainPositions[i * 3] = (Math.random() - 0.5) * 500;`);
|
|
189
|
+
this.generatedCode.push(` rainPositions[i * 3 + 1] = Math.random() * 200;`);
|
|
190
|
+
this.generatedCode.push(` rainPositions[i * 3 + 2] = (Math.random() - 0.5) * 500;`);
|
|
211
191
|
this.generatedCode.push(`}`);
|
|
212
192
|
this.generatedCode.push(
|
|
213
193
|
`rainGeometry.setAttribute('position', new THREE.BufferAttribute(rainPositions, 3));`
|
|
@@ -215,40 +195,28 @@ var init_VRRCompiler = __esm({
|
|
|
215
195
|
this.generatedCode.push(
|
|
216
196
|
`const rainMaterial = new THREE.PointsMaterial({ color: 0xaaaaaa, size: 0.1, transparent: true });`
|
|
217
197
|
);
|
|
218
|
-
this.generatedCode.push(
|
|
219
|
-
`const rainSystem = new THREE.Points(rainGeometry, rainMaterial);`
|
|
220
|
-
);
|
|
198
|
+
this.generatedCode.push(`const rainSystem = new THREE.Points(rainGeometry, rainMaterial);`);
|
|
221
199
|
this.generatedCode.push(`rainSystem.visible = false;`);
|
|
222
200
|
this.generatedCode.push(`scene.add(rainSystem);`);
|
|
223
201
|
this.generatedCode.push(`weatherSync_${safeName}.onUpdate((weather) => {`);
|
|
224
|
-
this.generatedCode.push(
|
|
225
|
-
` // Update fog based on visibility`
|
|
226
|
-
);
|
|
202
|
+
this.generatedCode.push(` // Update fog based on visibility`);
|
|
227
203
|
this.generatedCode.push(
|
|
228
204
|
` scene.fog = new THREE.Fog(0xcccccc, 10, Math.max(weather.visibility, 50));`
|
|
229
205
|
);
|
|
230
206
|
this.generatedCode.push(` // Toggle rain particles`);
|
|
231
|
-
this.generatedCode.push(
|
|
232
|
-
` rainSystem.visible = weather.precipitation > 0;`
|
|
233
|
-
);
|
|
207
|
+
this.generatedCode.push(` rainSystem.visible = weather.precipitation > 0;`);
|
|
234
208
|
this.generatedCode.push(` // Adjust sun intensity based on cloud cover`);
|
|
235
209
|
this.generatedCode.push(
|
|
236
210
|
` directionalLight.intensity = Math.max(0.2, 1.0 - (weather.cloud_cover || 0) / 100);`
|
|
237
211
|
);
|
|
238
212
|
this.generatedCode.push(` // Update skybox color`);
|
|
239
|
-
this.generatedCode.push(
|
|
240
|
-
|
|
241
|
-
);
|
|
242
|
-
this.generatedCode.push(
|
|
243
|
-
` scene.background = new THREE.Color(skyHue);`
|
|
244
|
-
);
|
|
213
|
+
this.generatedCode.push(` const skyHue = weather.precipitation > 50 ? 0x666680 : 0x87ceeb;`);
|
|
214
|
+
this.generatedCode.push(` scene.background = new THREE.Color(skyHue);`);
|
|
245
215
|
this.generatedCode.push(` // Temperature-based ambient tint`);
|
|
246
216
|
this.generatedCode.push(
|
|
247
217
|
` const tempNorm = Math.max(0, Math.min(1, (weather.temperature_f || 70) / 120));`
|
|
248
218
|
);
|
|
249
|
-
this.generatedCode.push(
|
|
250
|
-
` ambientLight.color.setHSL(0.6 - tempNorm * 0.4, 0.3, 0.4);`
|
|
251
|
-
);
|
|
219
|
+
this.generatedCode.push(` ambientLight.color.setHSL(0.6 - tempNorm * 0.4, 0.3, 0.4);`);
|
|
252
220
|
this.generatedCode.push(`});`);
|
|
253
221
|
}
|
|
254
222
|
}
|
|
@@ -278,7 +246,9 @@ var init_VRRCompiler = __esm({
|
|
|
278
246
|
this.generatedCode.push(`eventSync_${safeName}.onUpdate((events) => {`);
|
|
279
247
|
this.generatedCode.push(` // Clear previous markers`);
|
|
280
248
|
this.generatedCode.push(` while (eventMarkers_${safeName}.children.length > 0) {`);
|
|
281
|
-
this.generatedCode.push(
|
|
249
|
+
this.generatedCode.push(
|
|
250
|
+
` eventMarkers_${safeName}.remove(eventMarkers_${safeName}.children[0]);`
|
|
251
|
+
);
|
|
282
252
|
this.generatedCode.push(` }`);
|
|
283
253
|
this.generatedCode.push(` for (const evt of events) {`);
|
|
284
254
|
this.generatedCode.push(` // Create event marker billboard`);
|
|
@@ -288,13 +258,19 @@ var init_VRRCompiler = __esm({
|
|
|
288
258
|
);
|
|
289
259
|
this.generatedCode.push(` const marker = new THREE.Mesh(markerGeo, markerMat);`);
|
|
290
260
|
this.generatedCode.push(` if (evt.geo) {`);
|
|
291
|
-
this.generatedCode.push(
|
|
261
|
+
this.generatedCode.push(
|
|
262
|
+
` marker.position.copy(vrr.geoToSceneCoords(evt.geo.lat, evt.geo.lng));`
|
|
263
|
+
);
|
|
292
264
|
this.generatedCode.push(` }`);
|
|
293
|
-
this.generatedCode.push(
|
|
265
|
+
this.generatedCode.push(
|
|
266
|
+
` marker.userData.event = { name: evt.name, date: evt.date, url: evt.url };`
|
|
267
|
+
);
|
|
294
268
|
this.generatedCode.push(` eventMarkers_${safeName}.add(marker);`);
|
|
295
269
|
this.generatedCode.push(` // Spawn NPC crowds for active events`);
|
|
296
270
|
this.generatedCode.push(` if (evt.status === 'active') {`);
|
|
297
|
-
this.generatedCode.push(
|
|
271
|
+
this.generatedCode.push(
|
|
272
|
+
` vrr.spawnNPCCrowd(marker.position, evt.expected_attendance || 20);`
|
|
273
|
+
);
|
|
298
274
|
this.generatedCode.push(` }`);
|
|
299
275
|
this.generatedCode.push(` }`);
|
|
300
276
|
this.generatedCode.push(`});`);
|
|
@@ -328,15 +304,25 @@ var init_VRRCompiler = __esm({
|
|
|
328
304
|
this.generatedCode.push(`inventorySync_${safeName}.onUpdate((inventory) => {`);
|
|
329
305
|
this.generatedCode.push(` // Clear previous inventory display`);
|
|
330
306
|
this.generatedCode.push(` while (inventoryUI_${safeName}.children.length > 0) {`);
|
|
331
|
-
this.generatedCode.push(
|
|
307
|
+
this.generatedCode.push(
|
|
308
|
+
` inventoryUI_${safeName}.remove(inventoryUI_${safeName}.children[0]);`
|
|
309
|
+
);
|
|
332
310
|
this.generatedCode.push(` }`);
|
|
333
311
|
this.generatedCode.push(` for (const item of inventory.items) {`);
|
|
334
|
-
this.generatedCode.push(
|
|
335
|
-
|
|
312
|
+
this.generatedCode.push(
|
|
313
|
+
` // Availability badge color: green=in-stock, yellow=low, red=out`
|
|
314
|
+
);
|
|
315
|
+
this.generatedCode.push(
|
|
316
|
+
` const badgeColor = item.quantity > 10 ? 0x00ff00 : item.quantity > 0 ? 0xffaa00 : 0xff0000;`
|
|
317
|
+
);
|
|
336
318
|
this.generatedCode.push(` const badgeGeo = new THREE.SphereGeometry(0.3, 8, 8);`);
|
|
337
|
-
this.generatedCode.push(
|
|
319
|
+
this.generatedCode.push(
|
|
320
|
+
` const badgeMat = new THREE.MeshStandardMaterial({ color: badgeColor, emissive: badgeColor, emissiveIntensity: 0.5 });`
|
|
321
|
+
);
|
|
338
322
|
this.generatedCode.push(` const badge = new THREE.Mesh(badgeGeo, badgeMat);`);
|
|
339
|
-
this.generatedCode.push(
|
|
323
|
+
this.generatedCode.push(
|
|
324
|
+
` badge.userData.product = { name: item.name, quantity: item.quantity, price: item.price };`
|
|
325
|
+
);
|
|
340
326
|
this.generatedCode.push(` inventoryUI_${safeName}.add(badge);`);
|
|
341
327
|
this.generatedCode.push(` }`);
|
|
342
328
|
this.generatedCode.push(`});`);
|
|
@@ -365,9 +351,7 @@ var init_VRRCompiler = __esm({
|
|
|
365
351
|
this.generatedCode.push(
|
|
366
352
|
`const questBeacon_${safeName} = new THREE.PointLight(0xffdd00, 2, 30);`
|
|
367
353
|
);
|
|
368
|
-
this.generatedCode.push(
|
|
369
|
-
`questBeacon_${safeName}.position.set(0, 5, 0);`
|
|
370
|
-
);
|
|
354
|
+
this.generatedCode.push(`questBeacon_${safeName}.position.set(0, 5, 0);`);
|
|
371
355
|
this.generatedCode.push(
|
|
372
356
|
`if (marker_${safeName}) marker_${safeName}.add(questBeacon_${safeName});`
|
|
373
357
|
);
|
|
@@ -394,9 +378,7 @@ var init_VRRCompiler = __esm({
|
|
|
394
378
|
this.generatedCode.push(` // Grant reward (coupon, NFT, etc.)`);
|
|
395
379
|
this.generatedCode.push(` vrr.grantReward(quest.id, reward);`);
|
|
396
380
|
this.generatedCode.push(` // Visual celebration`);
|
|
397
|
-
this.generatedCode.push(
|
|
398
|
-
` questBeacon_${safeName}.color.setHex(0x00ff00);`
|
|
399
|
-
);
|
|
381
|
+
this.generatedCode.push(` questBeacon_${safeName}.color.setHex(0x00ff00);`);
|
|
400
382
|
this.generatedCode.push(`});`);
|
|
401
383
|
}
|
|
402
384
|
}
|
|
@@ -506,9 +488,7 @@ var init_VRRCompiler = __esm({
|
|
|
506
488
|
this.generatedCode.push(` 'X-Payment-Amount': '${price}',`);
|
|
507
489
|
this.generatedCode.push(` 'X-Payment-Asset': '${asset}',`);
|
|
508
490
|
this.generatedCode.push(` 'X-Payment-Network': '${network}',`);
|
|
509
|
-
this.generatedCode.push(
|
|
510
|
-
` 'X-Payment-Address': vrr.getPaymentAddress('${safeName}'),`
|
|
511
|
-
);
|
|
491
|
+
this.generatedCode.push(` 'X-Payment-Address': vrr.getPaymentAddress('${safeName}'),`);
|
|
512
492
|
this.generatedCode.push(` },`);
|
|
513
493
|
this.generatedCode.push(` };`);
|
|
514
494
|
this.generatedCode.push(` },`);
|
|
@@ -522,8 +502,12 @@ var init_VRRCompiler = __esm({
|
|
|
522
502
|
this.generatedCode.push(` vrr.unlockContent('${safeName}');`);
|
|
523
503
|
this.generatedCode.push(` },`);
|
|
524
504
|
this.generatedCode.push(` onPaymentFailed: (error) => {`);
|
|
525
|
-
this.generatedCode.push(
|
|
526
|
-
|
|
505
|
+
this.generatedCode.push(
|
|
506
|
+
` console.warn('Payment failed for ${safeName}:', error.message);`
|
|
507
|
+
);
|
|
508
|
+
this.generatedCode.push(
|
|
509
|
+
` vrr.showPaywallUI('${safeName}', { price: ${price}, asset: '${asset}', network: '${network}' });`
|
|
510
|
+
);
|
|
527
511
|
this.generatedCode.push(` },`);
|
|
528
512
|
this.generatedCode.push(`});`);
|
|
529
513
|
}
|
|
@@ -649,10 +633,12 @@ var init_VRRCompiler = __esm({
|
|
|
649
633
|
for (const trait of node.traits) {
|
|
650
634
|
if (trait.name === "geo_anchor")
|
|
651
635
|
geoCenter = { lat: Number(trait.params.lat), lng: Number(trait.params.lng) };
|
|
652
|
-
else if (trait.name === "vrr_twin" && trait.params.mirror)
|
|
636
|
+
else if (trait.name === "vrr_twin" && trait.params.mirror)
|
|
637
|
+
twinId = String(trait.params.mirror);
|
|
653
638
|
else if (trait.name === "weather_sync") weatherProvider = String(trait.params.provider);
|
|
654
639
|
else if (trait.name === "event_sync") eventProvider = String(trait.params.provider);
|
|
655
|
-
else if (trait.name === "inventory_sync")
|
|
640
|
+
else if (trait.name === "inventory_sync")
|
|
641
|
+
inventoryProvider = String(trait.params.provider);
|
|
656
642
|
}
|
|
657
643
|
}
|
|
658
644
|
}
|
|
@@ -742,5 +728,5 @@ const phoenix_downtown = new THREE.Group();`);
|
|
|
742
728
|
});
|
|
743
729
|
|
|
744
730
|
export { VRRCompiler, VRRCompiler_default, VRRCompiler_exports, init_VRRCompiler };
|
|
745
|
-
//# sourceMappingURL=chunk-
|
|
746
|
-
//# sourceMappingURL=chunk-
|
|
731
|
+
//# sourceMappingURL=chunk-R7MA7QWV.js.map
|
|
732
|
+
//# sourceMappingURL=chunk-R7MA7QWV.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToUnreal, compileAudioSourceBlock, audioSourceToUnreal, compilePostProcessingBlock, postProcessingToUnreal, compileParticleBlock, particlesToUnreal, compilePhysicsBlock, physicsToUnreal, compileMaterialBlock, materialToUnreal } from './chunk-
|
|
2
|
-
import { createTestCompilerToken, init_CompilerBase,
|
|
3
|
-
import { __export, __esm } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToUnreal, compileAudioSourceBlock, audioSourceToUnreal, compilePostProcessingBlock, postProcessingToUnreal, compileParticleBlock, particlesToUnreal, compilePhysicsBlock, physicsToUnreal, compileMaterialBlock, materialToUnreal } from './chunk-YQK5JNFK.js';
|
|
2
|
+
import { createTestCompilerToken, init_CompilerBase, CompilerBase } from './chunk-6XSERL6L.js';
|
|
3
|
+
import { __export, __esm } from './chunk-2CWOLHTE.js';
|
|
4
|
+
import { ANSCapabilityPath } from '@holoscript/platform';
|
|
4
5
|
|
|
5
6
|
// src/compiler/UnrealCompiler.ts
|
|
6
7
|
var UnrealCompiler_exports = {};
|
|
@@ -16,7 +17,6 @@ var UnrealCompiler;
|
|
|
16
17
|
var init_UnrealCompiler = __esm({
|
|
17
18
|
"src/compiler/UnrealCompiler.ts"() {
|
|
18
19
|
init_CompilerBase();
|
|
19
|
-
init_ANSNamespace();
|
|
20
20
|
init_DomainBlockCompilerMixin();
|
|
21
21
|
UnrealCompiler = class extends CompilerBase {
|
|
22
22
|
constructor(options = {}) {
|
|
@@ -674,5 +674,5 @@ var init_UnrealCompiler = __esm({
|
|
|
674
674
|
});
|
|
675
675
|
|
|
676
676
|
export { UnrealCompiler, UnrealCompiler_exports, compileToUnreal, init_UnrealCompiler };
|
|
677
|
-
//# sourceMappingURL=chunk-
|
|
678
|
-
//# sourceMappingURL=chunk-
|
|
677
|
+
//# sourceMappingURL=chunk-RVYPEYPX.js.map
|
|
678
|
+
//# sourceMappingURL=chunk-RVYPEYPX.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToAndroidXR, compileAudioSourceBlock, audioSourceToAndroidXR, compilePostProcessingBlock, compileParticleBlock, particlesToAndroidXR, compilePhysicsBlock, physicsToAndroidXR, compileMaterialBlock, materialToAndroidXR } from './chunk-
|
|
2
|
-
import { init_CompilerBase,
|
|
3
|
-
import { __export, __esm } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToAndroidXR, compileAudioSourceBlock, audioSourceToAndroidXR, compilePostProcessingBlock, compileParticleBlock, particlesToAndroidXR, compilePhysicsBlock, physicsToAndroidXR, compileMaterialBlock, materialToAndroidXR } from './chunk-YQK5JNFK.js';
|
|
2
|
+
import { init_CompilerBase, CompilerBase } from './chunk-6XSERL6L.js';
|
|
3
|
+
import { __export, __esm } from './chunk-2CWOLHTE.js';
|
|
4
|
+
import { ANSCapabilityPath } from '@holoscript/platform';
|
|
4
5
|
|
|
5
6
|
// src/compiler/AndroidXRCompiler.ts
|
|
6
7
|
var AndroidXRCompiler_exports = {};
|
|
@@ -16,7 +17,6 @@ var AndroidXRCompiler;
|
|
|
16
17
|
var init_AndroidXRCompiler = __esm({
|
|
17
18
|
"src/compiler/AndroidXRCompiler.ts"() {
|
|
18
19
|
init_CompilerBase();
|
|
19
|
-
init_ANSNamespace();
|
|
20
20
|
init_DomainBlockCompilerMixin();
|
|
21
21
|
AndroidXRCompiler = class extends CompilerBase {
|
|
22
22
|
constructor(options = {}) {
|
|
@@ -184,9 +184,7 @@ var init_AndroidXRCompiler = __esm({
|
|
|
184
184
|
this.indentLevel = 0;
|
|
185
185
|
const pkg = this.options.packageName;
|
|
186
186
|
this.emit("// Auto-generated by HoloScript AndroidXRCompiler");
|
|
187
|
-
this.emit(
|
|
188
|
-
`// Node Factory: ${this.escapeStringValue(composition.name, "Kotlin")}`
|
|
189
|
-
);
|
|
187
|
+
this.emit(`// Node Factory: ${this.escapeStringValue(composition.name, "Kotlin")}`);
|
|
190
188
|
this.emit("");
|
|
191
189
|
this.emit(`package ${pkg}`);
|
|
192
190
|
this.emit("");
|
|
@@ -1853,5 +1851,5 @@ dependencies {
|
|
|
1853
1851
|
});
|
|
1854
1852
|
|
|
1855
1853
|
export { AndroidXRCompiler, AndroidXRCompiler_exports, compileToAndroidXR, init_AndroidXRCompiler };
|
|
1856
|
-
//# sourceMappingURL=chunk-
|
|
1857
|
-
//# sourceMappingURL=chunk-
|
|
1854
|
+
//# sourceMappingURL=chunk-S2N5TNMA.js.map
|
|
1855
|
+
//# sourceMappingURL=chunk-S2N5TNMA.js.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { init_TraitCompositor, TraitCompositor } from './chunk-
|
|
2
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, audioSourceToPlayCanvas, compilePostProcessingBlock, compileParticleBlock, particlesToPlayCanvas, compilePhysicsBlock, physicsToPlayCanvas, compileMaterialBlock, materialToPlayCanvas } from './chunk-
|
|
3
|
-
import { init_CompilerBase,
|
|
4
|
-
import { __export, __esm } from './chunk-
|
|
1
|
+
import { init_TraitCompositor, TraitCompositor } from './chunk-DXJQDCFL.js';
|
|
2
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, audioSourceToPlayCanvas, compilePostProcessingBlock, compileParticleBlock, particlesToPlayCanvas, compilePhysicsBlock, physicsToPlayCanvas, compileMaterialBlock, materialToPlayCanvas } from './chunk-YQK5JNFK.js';
|
|
3
|
+
import { init_CompilerBase, CompilerBase } from './chunk-6XSERL6L.js';
|
|
4
|
+
import { __export, __esm } from './chunk-2CWOLHTE.js';
|
|
5
|
+
import { ANSCapabilityPath } from '@holoscript/platform';
|
|
5
6
|
|
|
6
7
|
// src/compiler/PlayCanvasCompiler.ts
|
|
7
8
|
var PlayCanvasCompiler_exports = {};
|
|
@@ -13,7 +14,6 @@ var init_PlayCanvasCompiler = __esm({
|
|
|
13
14
|
"src/compiler/PlayCanvasCompiler.ts"() {
|
|
14
15
|
init_TraitCompositor();
|
|
15
16
|
init_CompilerBase();
|
|
16
|
-
init_ANSNamespace();
|
|
17
17
|
init_DomainBlockCompilerMixin();
|
|
18
18
|
SHAPE_TO_PRIMITIVE = {
|
|
19
19
|
sphere: "sphere",
|
|
@@ -748,5 +748,5 @@ var init_PlayCanvasCompiler = __esm({
|
|
|
748
748
|
});
|
|
749
749
|
|
|
750
750
|
export { PlayCanvasCompiler, PlayCanvasCompiler_exports, init_PlayCanvasCompiler };
|
|
751
|
-
//# sourceMappingURL=chunk-
|
|
752
|
-
//# sourceMappingURL=chunk-
|
|
751
|
+
//# sourceMappingURL=chunk-S565K7NK.js.map
|
|
752
|
+
//# sourceMappingURL=chunk-S565K7NK.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToUSD, compileAudioSourceBlock, audioSourceToUSD, compilePostProcessingBlock, postProcessingToUSD, compileParticleBlock, particlesToUSD, compilePhysicsBlock, physicsToURDF, compileMaterialBlock, materialToUSD } from './chunk-
|
|
2
|
-
import { init_CompilerBase,
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToUSD, compileAudioSourceBlock, audioSourceToUSD, compilePostProcessingBlock, postProcessingToUSD, compileParticleBlock, particlesToUSD, compilePhysicsBlock, physicsToURDF, compileMaterialBlock, materialToUSD } from './chunk-YQK5JNFK.js';
|
|
2
|
+
import { init_CompilerBase, CompilerBase } from './chunk-6XSERL6L.js';
|
|
3
|
+
import { ANSCapabilityPath } from '@holoscript/platform';
|
|
3
4
|
|
|
4
5
|
// src/compiler/USDPhysicsCompiler.ts
|
|
5
6
|
init_CompilerBase();
|
|
6
|
-
init_ANSNamespace();
|
|
7
7
|
init_DomainBlockCompilerMixin();
|
|
8
8
|
var USDPhysicsCompiler = class extends CompilerBase {
|
|
9
9
|
constructor(options = {}) {
|
|
@@ -761,5 +761,5 @@ function compileForIsaacSim(composition, options) {
|
|
|
761
761
|
}
|
|
762
762
|
|
|
763
763
|
export { USDPhysicsCompiler, compileForIsaacSim, compileToUSDPhysics };
|
|
764
|
-
//# sourceMappingURL=chunk-
|
|
765
|
-
//# sourceMappingURL=chunk-
|
|
764
|
+
//# sourceMappingURL=chunk-SDAMZIRE.js.map
|
|
765
|
+
//# sourceMappingURL=chunk-SDAMZIRE.js.map
|