@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,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkLK5IAVH6_cjs = require('./chunk-LK5IAVH6.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
4
|
+
var chunkQ5SJOGHQ_cjs = require('./chunk-Q5SJOGHQ.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 platform = require('@holoscript/platform');
|
|
8
9
|
|
|
9
10
|
// src/compiler/GLTFPipeline.ts
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
chunkHHS6FMOU_cjs.init_DomainBlockCompilerMixin();
|
|
11
|
+
chunkX4ZF6CNE_cjs.init_TraitCompositor();
|
|
12
|
+
chunkQ5SJOGHQ_cjs.init_R3FCompiler();
|
|
13
|
+
chunkBF2235SI_cjs.init_CompilerBase();
|
|
14
|
+
chunkLXJ4667L_cjs.init_DomainBlockCompilerMixin();
|
|
15
15
|
|
|
16
16
|
// src/compiler/gltf/extensions.ts
|
|
17
17
|
function createEmissiveStrengthExtension(strength) {
|
|
@@ -120,8 +120,8 @@ function declareExtensions(gltf) {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
// src/compiler/GLTFPipeline.ts
|
|
123
|
-
|
|
124
|
-
var gltfNodePool = new
|
|
123
|
+
chunkQ5SJOGHQ_cjs.init_ObjectPool();
|
|
124
|
+
var gltfNodePool = new chunkQ5SJOGHQ_cjs.ASTNodePool(
|
|
125
125
|
() => ({ name: "" }),
|
|
126
126
|
(node) => {
|
|
127
127
|
node.name = "";
|
|
@@ -840,7 +840,7 @@ function generatePlaneGeometry(scale) {
|
|
|
840
840
|
var INITIAL_COMPILE_BUFFER_SIZE = 1024 * 1024;
|
|
841
841
|
var MAX_RETAINED_BUFFER_SIZE = 1024 * 1024 * 20;
|
|
842
842
|
var SHARED_COMPILE_BUFFER = new Uint8Array(INITIAL_COMPILE_BUFFER_SIZE);
|
|
843
|
-
var GLTFPipeline = class extends
|
|
843
|
+
var GLTFPipeline = class extends chunkBF2235SI_cjs.CompilerBase {
|
|
844
844
|
constructor(options = {}) {
|
|
845
845
|
super();
|
|
846
846
|
this.compilerName = "GLTFPipeline";
|
|
@@ -883,10 +883,10 @@ var GLTFPipeline = class extends chunkQHVVVN47_cjs.CompilerBase {
|
|
|
883
883
|
generator: options.generator ?? "HoloScript GLTFPipeline v1.0.0",
|
|
884
884
|
copyright: options.copyright ?? ""
|
|
885
885
|
};
|
|
886
|
-
this.compositor = new
|
|
886
|
+
this.compositor = new chunkX4ZF6CNE_cjs.TraitCompositor();
|
|
887
887
|
}
|
|
888
888
|
getRequiredCapability() {
|
|
889
|
-
return
|
|
889
|
+
return platform.ANSCapabilityPath.GLTF;
|
|
890
890
|
}
|
|
891
891
|
get bufferData() {
|
|
892
892
|
return SHARED_COMPILE_BUFFER;
|
|
@@ -1281,12 +1281,12 @@ var GLTFPipeline = class extends chunkQHVVVN47_cjs.CompilerBase {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
const domainBlocks = composition.domainBlocks ?? [];
|
|
1283
1283
|
if (domainBlocks.length > 0) {
|
|
1284
|
-
|
|
1284
|
+
chunkLXJ4667L_cjs.compileDomainBlocks(
|
|
1285
1285
|
domainBlocks,
|
|
1286
1286
|
{
|
|
1287
1287
|
material: (block) => {
|
|
1288
|
-
const mat =
|
|
1289
|
-
const gltfMat =
|
|
1288
|
+
const mat = chunkLXJ4667L_cjs.compileMaterialBlock(block);
|
|
1289
|
+
const gltfMat = chunkLXJ4667L_cjs.materialToGLTF(mat);
|
|
1290
1290
|
this.materials.push(gltfMat);
|
|
1291
1291
|
this.stats.materialCount++;
|
|
1292
1292
|
return "";
|
|
@@ -1600,8 +1600,8 @@ var GLTFPipeline = class extends chunkQHVVVN47_cjs.CompilerBase {
|
|
|
1600
1600
|
let attenuationColor;
|
|
1601
1601
|
let attenuationDistance;
|
|
1602
1602
|
const namedMat = this.findProp(object, "material");
|
|
1603
|
-
if (typeof namedMat === "string" &&
|
|
1604
|
-
const preset =
|
|
1603
|
+
if (typeof namedMat === "string" && chunkQ5SJOGHQ_cjs.MATERIAL_PRESETS[namedMat]) {
|
|
1604
|
+
const preset = chunkQ5SJOGHQ_cjs.MATERIAL_PRESETS[namedMat];
|
|
1605
1605
|
if (preset.color) color = this.parseColorString(preset.color);
|
|
1606
1606
|
if (preset.metalness !== void 0) metallic = preset.metalness;
|
|
1607
1607
|
if (preset.roughness !== void 0) roughness = preset.roughness;
|
|
@@ -2233,5 +2233,5 @@ exports.GLTFPipeline = GLTFPipeline;
|
|
|
2233
2233
|
exports.createGLTFPipeline = createGLTFPipeline;
|
|
2234
2234
|
exports.generateScaleNormalMap = generateScaleNormalMap;
|
|
2235
2235
|
exports.generateScaleTexture = generateScaleTexture;
|
|
2236
|
-
//# sourceMappingURL=chunk-
|
|
2237
|
-
//# sourceMappingURL=chunk-
|
|
2236
|
+
//# sourceMappingURL=chunk-5BGSECRJ.cjs.map
|
|
2237
|
+
//# sourceMappingURL=chunk-5BGSECRJ.cjs.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkLXJ4667L_cjs = require('./chunk-LXJ4667L.cjs');
|
|
4
|
+
var chunkBF2235SI_cjs = require('./chunk-BF2235SI.cjs');
|
|
5
|
+
var chunk3SAK5KFL_cjs = require('./chunk-3SAK5KFL.cjs');
|
|
6
|
+
var platform = require('@holoscript/platform');
|
|
6
7
|
|
|
7
8
|
// src/compiler/VisionOSTraitMap.ts
|
|
8
9
|
function getTraitMapping(traitName) {
|
|
@@ -38,7 +39,7 @@ function getMinVisionOSVersion(traits) {
|
|
|
38
39
|
return maxVersion;
|
|
39
40
|
}
|
|
40
41
|
var PHYSICS_TRAIT_MAP, INTERACTION_TRAIT_MAP, AUDIO_TRAIT_MAP, AR_TRAIT_MAP, VISUAL_TRAIT_MAP, ACCESSIBILITY_TRAIT_MAP, UI_TRAIT_MAP, PORTAL_TRAIT_MAP, V43_TRAIT_MAP, VISIONOS_TRAIT_MAP;
|
|
41
|
-
var init_VisionOSTraitMap =
|
|
42
|
+
var init_VisionOSTraitMap = chunk3SAK5KFL_cjs.__esm({
|
|
42
43
|
"src/compiler/VisionOSTraitMap.ts"() {
|
|
43
44
|
PHYSICS_TRAIT_MAP = {
|
|
44
45
|
collidable: {
|
|
@@ -1146,17 +1147,16 @@ var init_VisionOSTraitMap = chunkEGIZHYJP_cjs.__esm({
|
|
|
1146
1147
|
|
|
1147
1148
|
// src/compiler/VisionOSCompiler.ts
|
|
1148
1149
|
var VisionOSCompiler_exports = {};
|
|
1149
|
-
|
|
1150
|
+
chunk3SAK5KFL_cjs.__export(VisionOSCompiler_exports, {
|
|
1150
1151
|
VisionOSCompiler: () => exports.VisionOSCompiler
|
|
1151
1152
|
});
|
|
1152
1153
|
exports.VisionOSCompiler = void 0;
|
|
1153
|
-
var init_VisionOSCompiler =
|
|
1154
|
+
var init_VisionOSCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
1154
1155
|
"src/compiler/VisionOSCompiler.ts"() {
|
|
1155
1156
|
init_VisionOSTraitMap();
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
exports.VisionOSCompiler = class extends chunkQHVVVN47_cjs.CompilerBase {
|
|
1157
|
+
chunkBF2235SI_cjs.init_CompilerBase();
|
|
1158
|
+
chunkLXJ4667L_cjs.init_DomainBlockCompilerMixin();
|
|
1159
|
+
exports.VisionOSCompiler = class extends chunkBF2235SI_cjs.CompilerBase {
|
|
1160
1160
|
constructor(options = {}) {
|
|
1161
1161
|
super();
|
|
1162
1162
|
this.compilerName = "VisionOSCompiler";
|
|
@@ -1169,7 +1169,7 @@ var init_VisionOSCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
1169
1169
|
};
|
|
1170
1170
|
}
|
|
1171
1171
|
getRequiredCapability() {
|
|
1172
|
-
return
|
|
1172
|
+
return platform.ANSCapabilityPath.VISIONOS;
|
|
1173
1173
|
}
|
|
1174
1174
|
compile(composition, agentToken, outputPath) {
|
|
1175
1175
|
this.validateCompilerAccess(agentToken, outputPath);
|
|
@@ -1293,31 +1293,31 @@ var init_VisionOSCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
1293
1293
|
this.emit("");
|
|
1294
1294
|
this.emit("// === v4.2 Domain Blocks ===");
|
|
1295
1295
|
let blockIdx = 0;
|
|
1296
|
-
const compiled =
|
|
1296
|
+
const compiled = chunkLXJ4667L_cjs.compileDomainBlocks(
|
|
1297
1297
|
domainBlocks,
|
|
1298
1298
|
{
|
|
1299
1299
|
material: (block) => {
|
|
1300
|
-
const mat =
|
|
1301
|
-
return
|
|
1300
|
+
const mat = chunkLXJ4667L_cjs.compileMaterialBlock(block);
|
|
1301
|
+
return chunkLXJ4667L_cjs.materialToVisionOS(mat, `db${blockIdx++}`);
|
|
1302
1302
|
},
|
|
1303
1303
|
physics: (block) => {
|
|
1304
|
-
const phys =
|
|
1305
|
-
return
|
|
1304
|
+
const phys = chunkLXJ4667L_cjs.compilePhysicsBlock(block);
|
|
1305
|
+
return chunkLXJ4667L_cjs.physicsToVisionOS(phys, `db${blockIdx++}`);
|
|
1306
1306
|
},
|
|
1307
1307
|
vfx: (block) => {
|
|
1308
|
-
const ps =
|
|
1309
|
-
return
|
|
1308
|
+
const ps = chunkLXJ4667L_cjs.compileParticleBlock(block);
|
|
1309
|
+
return chunkLXJ4667L_cjs.particlesToVisionOS(ps, `db${blockIdx++}`);
|
|
1310
1310
|
},
|
|
1311
1311
|
postfx: (block) => {
|
|
1312
|
-
const pp =
|
|
1312
|
+
const pp = chunkLXJ4667L_cjs.compilePostProcessingBlock(block);
|
|
1313
1313
|
return `// Post-Processing: ${pp.keyword} \u2014 configure via RealityKit RenderCallbacks`;
|
|
1314
1314
|
},
|
|
1315
1315
|
audio: (block) => {
|
|
1316
|
-
const audio =
|
|
1317
|
-
return
|
|
1316
|
+
const audio = chunkLXJ4667L_cjs.compileAudioSourceBlock(block);
|
|
1317
|
+
return chunkLXJ4667L_cjs.audioSourceToVisionOS(audio, `db${blockIdx++}`);
|
|
1318
1318
|
},
|
|
1319
1319
|
weather: (block) => {
|
|
1320
|
-
const weather =
|
|
1320
|
+
const weather = chunkLXJ4667L_cjs.compileWeatherBlock(block);
|
|
1321
1321
|
const w = weather;
|
|
1322
1322
|
const layers = w.layers.map((l) => `// Layer: ${l.type} \u2014 ${JSON.stringify(l.properties)}`).join("\n");
|
|
1323
1323
|
return `// Weather: ${w.keyword} "${w.name || ""}" \u2014 implement via custom RealityKit particles
|
|
@@ -1366,9 +1366,7 @@ ${layers}`;
|
|
|
1366
1366
|
const rkType = typeMap[light.lightType];
|
|
1367
1367
|
if (rkType) {
|
|
1368
1368
|
this.emit(`let ${varName} = Entity()`);
|
|
1369
|
-
this.emit(
|
|
1370
|
-
`${varName}.name = "${this.escapeStringValue(light.name, "Swift")}"`
|
|
1371
|
-
);
|
|
1369
|
+
this.emit(`${varName}.name = "${this.escapeStringValue(light.name, "Swift")}"`);
|
|
1372
1370
|
const colorProp = light.properties.find((p) => p.key === "color");
|
|
1373
1371
|
const intensityProp = light.properties.find((p) => p.key === "intensity");
|
|
1374
1372
|
const posProp = light.properties.find((p) => p.key === "position");
|
|
@@ -1695,9 +1693,7 @@ ${layers}`;
|
|
|
1695
1693
|
this.emit(`// VStack {`);
|
|
1696
1694
|
if (obj.children) {
|
|
1697
1695
|
for (const child of obj.children) {
|
|
1698
|
-
this.emit(
|
|
1699
|
-
`// // Child: ${this.escapeStringValue(child.name, "Swift")}`
|
|
1700
|
-
);
|
|
1696
|
+
this.emit(`// // Child: ${this.escapeStringValue(child.name, "Swift")}`);
|
|
1701
1697
|
}
|
|
1702
1698
|
}
|
|
1703
1699
|
this.emit(`// }`);
|
|
@@ -1871,5 +1867,5 @@ ${layers}`;
|
|
|
1871
1867
|
|
|
1872
1868
|
exports.VisionOSCompiler_exports = VisionOSCompiler_exports;
|
|
1873
1869
|
exports.init_VisionOSCompiler = init_VisionOSCompiler;
|
|
1874
|
-
//# sourceMappingURL=chunk-
|
|
1875
|
-
//# sourceMappingURL=chunk-
|
|
1870
|
+
//# sourceMappingURL=chunk-5O6TQC6M.cjs.map
|
|
1871
|
+
//# sourceMappingURL=chunk-5O6TQC6M.cjs.map
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkLXJ4667L_cjs = require('./chunk-LXJ4667L.cjs');
|
|
4
|
+
var chunkBF2235SI_cjs = require('./chunk-BF2235SI.cjs');
|
|
5
|
+
var chunk3SAK5KFL_cjs = require('./chunk-3SAK5KFL.cjs');
|
|
6
|
+
var platform = require('@holoscript/platform');
|
|
6
7
|
|
|
7
8
|
// src/compiler/UnrealCompiler.ts
|
|
8
9
|
var UnrealCompiler_exports = {};
|
|
9
|
-
|
|
10
|
+
chunk3SAK5KFL_cjs.__export(UnrealCompiler_exports, {
|
|
10
11
|
UnrealCompiler: () => exports.UnrealCompiler,
|
|
11
12
|
compileToUnreal: () => compileToUnreal
|
|
12
13
|
});
|
|
13
14
|
function compileToUnreal(composition, options) {
|
|
14
15
|
const compiler = new exports.UnrealCompiler(options);
|
|
15
|
-
return compiler.compile(composition,
|
|
16
|
+
return compiler.compile(composition, chunkBF2235SI_cjs.createTestCompilerToken());
|
|
16
17
|
}
|
|
17
18
|
exports.UnrealCompiler = void 0;
|
|
18
|
-
var init_UnrealCompiler =
|
|
19
|
+
var init_UnrealCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
19
20
|
"src/compiler/UnrealCompiler.ts"() {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
exports.UnrealCompiler = class extends chunkQHVVVN47_cjs.CompilerBase {
|
|
21
|
+
chunkBF2235SI_cjs.init_CompilerBase();
|
|
22
|
+
chunkLXJ4667L_cjs.init_DomainBlockCompilerMixin();
|
|
23
|
+
exports.UnrealCompiler = class extends chunkBF2235SI_cjs.CompilerBase {
|
|
24
24
|
constructor(options = {}) {
|
|
25
25
|
super();
|
|
26
26
|
this.compilerName = "UnrealCompiler";
|
|
@@ -38,7 +38,7 @@ var init_UnrealCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
getRequiredCapability() {
|
|
41
|
-
return
|
|
41
|
+
return platform.ANSCapabilityPath.UNREAL;
|
|
42
42
|
}
|
|
43
43
|
compile(composition, agentToken, outputPath) {
|
|
44
44
|
this.validateCompilerAccess(agentToken, outputPath);
|
|
@@ -608,32 +608,32 @@ var init_UnrealCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
608
608
|
this.emitS("");
|
|
609
609
|
this.emitS("// === v4.2 Domain Blocks ===");
|
|
610
610
|
let blockIdx = 0;
|
|
611
|
-
const compiled =
|
|
611
|
+
const compiled = chunkLXJ4667L_cjs.compileDomainBlocks(
|
|
612
612
|
domainBlocks,
|
|
613
613
|
{
|
|
614
614
|
material: (block) => {
|
|
615
|
-
const mat =
|
|
616
|
-
return
|
|
615
|
+
const mat = chunkLXJ4667L_cjs.compileMaterialBlock(block);
|
|
616
|
+
return chunkLXJ4667L_cjs.materialToUnreal(mat, `DB${blockIdx++}`);
|
|
617
617
|
},
|
|
618
618
|
physics: (block) => {
|
|
619
|
-
const phys =
|
|
620
|
-
return
|
|
619
|
+
const phys = chunkLXJ4667L_cjs.compilePhysicsBlock(block);
|
|
620
|
+
return chunkLXJ4667L_cjs.physicsToUnreal(phys, `DB${blockIdx++}`);
|
|
621
621
|
},
|
|
622
622
|
vfx: (block) => {
|
|
623
|
-
const ps =
|
|
624
|
-
return
|
|
623
|
+
const ps = chunkLXJ4667L_cjs.compileParticleBlock(block);
|
|
624
|
+
return chunkLXJ4667L_cjs.particlesToUnreal(ps, `DB${blockIdx++}`);
|
|
625
625
|
},
|
|
626
626
|
postfx: (block) => {
|
|
627
|
-
const pp =
|
|
628
|
-
return
|
|
627
|
+
const pp = chunkLXJ4667L_cjs.compilePostProcessingBlock(block);
|
|
628
|
+
return chunkLXJ4667L_cjs.postProcessingToUnreal(pp, `DB${blockIdx++}`);
|
|
629
629
|
},
|
|
630
630
|
audio: (block) => {
|
|
631
|
-
const audio =
|
|
632
|
-
return
|
|
631
|
+
const audio = chunkLXJ4667L_cjs.compileAudioSourceBlock(block);
|
|
632
|
+
return chunkLXJ4667L_cjs.audioSourceToUnreal(audio, `DB${blockIdx++}`);
|
|
633
633
|
},
|
|
634
634
|
weather: (block) => {
|
|
635
|
-
const weather =
|
|
636
|
-
return
|
|
635
|
+
const weather = chunkLXJ4667L_cjs.compileWeatherBlock(block);
|
|
636
|
+
return chunkLXJ4667L_cjs.weatherToUnreal(weather);
|
|
637
637
|
}
|
|
638
638
|
},
|
|
639
639
|
(block) => `// Domain block: ${block.domain}/${block.keyword} "${this.escapeStringValue(block.name, "TypeScript")}"`
|
|
@@ -678,5 +678,5 @@ var init_UnrealCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
678
678
|
exports.UnrealCompiler_exports = UnrealCompiler_exports;
|
|
679
679
|
exports.compileToUnreal = compileToUnreal;
|
|
680
680
|
exports.init_UnrealCompiler = init_UnrealCompiler;
|
|
681
|
-
//# sourceMappingURL=chunk-
|
|
682
|
-
//# sourceMappingURL=chunk-
|
|
681
|
+
//# sourceMappingURL=chunk-5OEOHAAW.cjs.map
|
|
682
|
+
//# sourceMappingURL=chunk-5OEOHAAW.cjs.map
|
|
@@ -424,5 +424,5 @@ exports.SemanticSceneGraph = SemanticSceneGraph;
|
|
|
424
424
|
exports.SemanticSceneGraph_default = SemanticSceneGraph_default;
|
|
425
425
|
exports.generateSemanticSceneGraph = generateSemanticSceneGraph;
|
|
426
426
|
exports.generateSemanticSceneGraphObject = generateSemanticSceneGraphObject;
|
|
427
|
-
//# sourceMappingURL=chunk-
|
|
428
|
-
//# sourceMappingURL=chunk-
|
|
427
|
+
//# sourceMappingURL=chunk-5WUNN6ZN.cjs.map
|
|
428
|
+
//# sourceMappingURL=chunk-5WUNN6ZN.cjs.map
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkLXJ4667L_cjs = require('./chunk-LXJ4667L.cjs');
|
|
4
|
+
var chunkBF2235SI_cjs = require('./chunk-BF2235SI.cjs');
|
|
5
|
+
var chunk3SAK5KFL_cjs = require('./chunk-3SAK5KFL.cjs');
|
|
6
|
+
var platform = require('@holoscript/platform');
|
|
6
7
|
|
|
7
8
|
// src/compiler/URDFCompiler.ts
|
|
8
9
|
var URDFCompiler_exports = {};
|
|
9
|
-
|
|
10
|
+
chunk3SAK5KFL_cjs.__export(URDFCompiler_exports, {
|
|
10
11
|
URDFCompiler: () => exports.URDFCompiler,
|
|
11
12
|
compileForGazebo: () => compileForGazebo,
|
|
12
13
|
compileForIsaacSim: () => compileForIsaacSim,
|
|
@@ -198,12 +199,11 @@ function generateControllersYaml(robotName, jointNames, options) {
|
|
|
198
199
|
return lines.join("\n");
|
|
199
200
|
}
|
|
200
201
|
exports.URDFCompiler = void 0; exports.URDFCompiler_default = void 0;
|
|
201
|
-
var init_URDFCompiler =
|
|
202
|
+
var init_URDFCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
202
203
|
"src/compiler/URDFCompiler.ts"() {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
exports.URDFCompiler = class extends chunkQHVVVN47_cjs.CompilerBase {
|
|
204
|
+
chunkBF2235SI_cjs.init_CompilerBase();
|
|
205
|
+
chunkLXJ4667L_cjs.init_DomainBlockCompilerMixin();
|
|
206
|
+
exports.URDFCompiler = class extends chunkBF2235SI_cjs.CompilerBase {
|
|
207
207
|
constructor(options = {}) {
|
|
208
208
|
super();
|
|
209
209
|
this.compilerName = "URDFCompiler";
|
|
@@ -244,7 +244,7 @@ var init_URDFCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
246
|
getRequiredCapability() {
|
|
247
|
-
return
|
|
247
|
+
return platform.ANSCapabilityPath.URDF;
|
|
248
248
|
}
|
|
249
249
|
// ===========================================================================
|
|
250
250
|
// HELPER METHODS
|
|
@@ -556,11 +556,11 @@ var init_URDFCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
556
556
|
if (domainBlocks.length === 0) return;
|
|
557
557
|
this.emitBlank();
|
|
558
558
|
this.emit("<!-- v4.2 Domain Blocks -->");
|
|
559
|
-
const compiled =
|
|
559
|
+
const compiled = chunkLXJ4667L_cjs.compileDomainBlocks(
|
|
560
560
|
domainBlocks,
|
|
561
561
|
{
|
|
562
562
|
material: (block) => {
|
|
563
|
-
const mat =
|
|
563
|
+
const mat = chunkLXJ4667L_cjs.compileMaterialBlock(block);
|
|
564
564
|
const lines = [];
|
|
565
565
|
lines.push(
|
|
566
566
|
`<material name="${this.escapeStringValue(mat.name, "TypeScript")}">`
|
|
@@ -581,15 +581,15 @@ var init_URDFCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
581
581
|
return lines.join("\n");
|
|
582
582
|
},
|
|
583
583
|
physics: (block) => {
|
|
584
|
-
const phys =
|
|
585
|
-
return
|
|
584
|
+
const phys = chunkLXJ4667L_cjs.compilePhysicsBlock(block);
|
|
585
|
+
return chunkLXJ4667L_cjs.physicsToURDF(phys);
|
|
586
586
|
},
|
|
587
587
|
audio: (block) => {
|
|
588
|
-
const audio =
|
|
588
|
+
const audio = chunkLXJ4667L_cjs.compileAudioSourceBlock(block);
|
|
589
589
|
return `<!-- Audio: ${this.escapeStringValue(audio.name, "TypeScript")} (${audio.keyword}) clip="${audio.properties.clip || ""}" volume="${audio.properties.volume ?? 1}" -->`;
|
|
590
590
|
},
|
|
591
591
|
weather: (block) => {
|
|
592
|
-
const weather =
|
|
592
|
+
const weather = chunkLXJ4667L_cjs.compileWeatherBlock(block);
|
|
593
593
|
return `<!-- Weather: ${weather.keyword} "${weather.name || ""}" layers: ${weather.layers.map((l) => l.type).join(", ")} -->`;
|
|
594
594
|
}
|
|
595
595
|
},
|
|
@@ -1400,5 +1400,5 @@ exports.compileToURDF = compileToURDF;
|
|
|
1400
1400
|
exports.generateControllersYaml = generateControllersYaml;
|
|
1401
1401
|
exports.generateROS2LaunchFile = generateROS2LaunchFile;
|
|
1402
1402
|
exports.init_URDFCompiler = init_URDFCompiler;
|
|
1403
|
-
//# sourceMappingURL=chunk-
|
|
1404
|
-
//# sourceMappingURL=chunk-
|
|
1403
|
+
//# sourceMappingURL=chunk-6TZPZCOJ.cjs.map
|
|
1404
|
+
//# sourceMappingURL=chunk-6TZPZCOJ.cjs.map
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkLXJ4667L_cjs = require('./chunk-LXJ4667L.cjs');
|
|
4
|
+
var chunkBF2235SI_cjs = require('./chunk-BF2235SI.cjs');
|
|
5
|
+
var chunk3SAK5KFL_cjs = require('./chunk-3SAK5KFL.cjs');
|
|
6
|
+
var platform = require('@holoscript/platform');
|
|
6
7
|
|
|
7
8
|
// src/compiler/WASMCompiler.ts
|
|
8
9
|
var WASMCompiler_exports = {};
|
|
9
|
-
|
|
10
|
+
chunk3SAK5KFL_cjs.__export(WASMCompiler_exports, {
|
|
10
11
|
WASMCompiler: () => exports.WASMCompiler,
|
|
11
12
|
compileASTToWASM: () => compileASTToWASM,
|
|
12
13
|
compileToWASM: () => compileToWASM,
|
|
@@ -18,19 +19,18 @@ function createWASMCompiler(options) {
|
|
|
18
19
|
}
|
|
19
20
|
function compileToWASM(composition, options) {
|
|
20
21
|
const compiler = new exports.WASMCompiler(options);
|
|
21
|
-
return compiler.compile(composition,
|
|
22
|
+
return compiler.compile(composition, chunkBF2235SI_cjs.createTestCompilerToken());
|
|
22
23
|
}
|
|
23
24
|
function compileASTToWASM(ast, options) {
|
|
24
25
|
const compiler = new exports.WASMCompiler(options);
|
|
25
26
|
return compiler.compileAST(ast);
|
|
26
27
|
}
|
|
27
28
|
exports.WASMCompiler = void 0; exports.WASMCompiler_default = void 0;
|
|
28
|
-
var init_WASMCompiler =
|
|
29
|
+
var init_WASMCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
29
30
|
"src/compiler/WASMCompiler.ts"() {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
exports.WASMCompiler = class extends chunkQHVVVN47_cjs.CompilerBase {
|
|
31
|
+
chunkBF2235SI_cjs.init_CompilerBase();
|
|
32
|
+
chunkLXJ4667L_cjs.init_DomainBlockCompilerMixin();
|
|
33
|
+
exports.WASMCompiler = class extends chunkBF2235SI_cjs.CompilerBase {
|
|
34
34
|
constructor(options = {}) {
|
|
35
35
|
super();
|
|
36
36
|
this.compilerName = "WASMCompiler";
|
|
@@ -68,7 +68,7 @@ var init_WASMCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
getRequiredCapability() {
|
|
71
|
-
return
|
|
71
|
+
return platform.ANSCapabilityPath.WASM;
|
|
72
72
|
}
|
|
73
73
|
// ===========================================================================
|
|
74
74
|
// MAIN COMPILATION
|
|
@@ -89,11 +89,11 @@ var init_WASMCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
89
89
|
if (domainBlocks.length > 0) {
|
|
90
90
|
this.emit("");
|
|
91
91
|
this.emit(" ;; === v4.2 Domain Blocks ===");
|
|
92
|
-
|
|
92
|
+
chunkLXJ4667L_cjs.compileDomainBlocks(
|
|
93
93
|
domainBlocks,
|
|
94
94
|
{
|
|
95
95
|
material: (block) => {
|
|
96
|
-
const mat =
|
|
96
|
+
const mat = chunkLXJ4667L_cjs.compileMaterialBlock(block);
|
|
97
97
|
this.emit(
|
|
98
98
|
` ;; Material: "${this.escapeStringValue(mat.name, "TypeScript")}" type=${mat.type}`
|
|
99
99
|
);
|
|
@@ -555,7 +555,9 @@ var init_WASMCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
555
555
|
lines.push("export class HoloScriptWASM {");
|
|
556
556
|
lines.push(" private instance: WebAssembly.Instance | null = null;");
|
|
557
557
|
lines.push(" private memory: WebAssembly.Memory | null = null;");
|
|
558
|
-
lines.push(
|
|
558
|
+
lines.push(
|
|
559
|
+
" private eventHandlers: Map<string, Set<(payload: unknown) => void>> = new Map();"
|
|
560
|
+
);
|
|
559
561
|
lines.push("");
|
|
560
562
|
lines.push(" private static EVENT_IDS: Record<string, number> = {");
|
|
561
563
|
lines.push(" 'update': 0,");
|
|
@@ -767,5 +769,5 @@ exports.compileASTToWASM = compileASTToWASM;
|
|
|
767
769
|
exports.compileToWASM = compileToWASM;
|
|
768
770
|
exports.createWASMCompiler = createWASMCompiler;
|
|
769
771
|
exports.init_WASMCompiler = init_WASMCompiler;
|
|
770
|
-
//# sourceMappingURL=chunk-
|
|
771
|
-
//# sourceMappingURL=chunk-
|
|
772
|
+
//# sourceMappingURL=chunk-6UEHYZ7V.cjs.map
|
|
773
|
+
//# sourceMappingURL=chunk-6UEHYZ7V.cjs.map
|