@holoscript/core 8.0.5 → 8.0.6
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/dist/{GLTFPipeline-EK3LFJKW.cjs → GLTFPipeline-PVLTKDBD.cjs} +11 -11
- package/dist/{GLTFPipeline-37FPRVPH.js → GLTFPipeline-QPI4I7DL.js} +7 -7
- package/dist/{HoloScriptRuntime-ACDFKVVH.js → HoloScriptRuntime-6ZGLUCFS.js} +3 -3
- package/dist/{HoloScriptRuntime-ON2OQVEF.cjs → HoloScriptRuntime-ALUASIL2.cjs} +4 -4
- package/dist/{chunk-V6MKC2FZ.js → chunk-2GQHTXOK.js} +3 -3
- package/dist/{chunk-ROHLEP2W.cjs → chunk-2J5WZLF5.cjs} +19 -19
- package/dist/{chunk-HKEXJUWS.cjs → chunk-2VL6SJ33.cjs} +7 -7
- package/dist/{chunk-YWOBW2PV.cjs → chunk-3B5NVDHJ.cjs} +18 -18
- package/dist/{chunk-J7XZV333.js → chunk-3B7AY37W.js} +4 -4
- package/dist/{chunk-LKWQNUE6.cjs → chunk-3OIZJNVT.cjs} +5 -5
- package/dist/{chunk-HNDK4IQU.cjs → chunk-3SBVODUP.cjs} +19 -19
- package/dist/{chunk-JBNDTXXV.cjs → chunk-44GM3P4G.cjs} +18 -18
- package/dist/{chunk-MVPBWHAC.js → chunk-4DO425P5.js} +3 -3
- package/dist/{chunk-ON5QSY35.cjs → chunk-4FDL7JLJ.cjs} +76 -45
- package/dist/{chunk-XB274MW5.cjs → chunk-5BLWXOIP.cjs} +13 -13
- package/dist/{chunk-QACVP4PM.js → chunk-5BQIJG3O.js} +33 -5
- package/dist/{chunk-XKTPFXGA.js → chunk-5IHG2LGT.js} +3 -3
- package/dist/{chunk-7M3PNU2M.cjs → chunk-5TIZXMED.cjs} +10 -10
- package/dist/{chunk-UFZZ7TSN.cjs → chunk-6DOKCECB.cjs} +20 -20
- package/dist/{chunk-ONDAWTW4.js → chunk-6OTFG3EB.js} +3 -3
- package/dist/{chunk-OJXHYNXN.js → chunk-7MVLEZB2.js} +3 -3
- package/dist/{chunk-5NWINHR5.cjs → chunk-A3GFOZAF.cjs} +38 -38
- package/dist/{chunk-OBIYPYYS.cjs → chunk-BFROVZOF.cjs} +5 -5
- package/dist/{chunk-UWJHCOH2.js → chunk-BKCK3IU6.js} +4 -4
- package/dist/{chunk-DHO2YRIM.js → chunk-C34AJIJO.js} +4 -4
- package/dist/{chunk-QPSKHBJP.js → chunk-CXS3DUKD.js} +12 -6
- package/dist/{chunk-ANXZFVY2.js → chunk-D63CGNJU.js} +3 -3
- package/dist/{chunk-CCATWPXM.js → chunk-DBPGNHFS.js} +4 -4
- package/dist/{chunk-6DO5IZ5N.cjs → chunk-DCE3LDO3.cjs} +36 -6
- package/dist/{chunk-BOVPWH4H.js → chunk-DPZXVDGM.js} +3 -3
- package/dist/{chunk-FXKAW7ZO.cjs → chunk-DQRQZB33.cjs} +3 -3
- package/dist/{chunk-QD32ADK6.js → chunk-E64LOLJU.js} +4 -4
- package/dist/{chunk-IUTY5WQ2.cjs → chunk-E767PVC6.cjs} +5 -5
- package/dist/{chunk-CMT5NMMS.js → chunk-EK7L4DW7.js} +4 -4
- package/dist/{chunk-D3STJ56J.js → chunk-F63LYRVE.js} +4 -4
- package/dist/{chunk-OBP5REIV.js → chunk-GCYR3D2K.js} +5 -5
- package/dist/{chunk-ZMCVKFXI.cjs → chunk-H5PUZHJV.cjs} +95 -9
- package/dist/{chunk-2X7NGX3M.js → chunk-HBEN5TQR.js} +4 -4
- package/dist/{chunk-2IWC4FP7.cjs → chunk-HBLKLLG5.cjs} +10 -10
- package/dist/{chunk-NCWCUZNS.cjs → chunk-IBXT6UP3.cjs} +14 -14
- package/dist/{chunk-DAJXW4KX.js → chunk-IIUFMUTV.js} +3 -3
- package/dist/{chunk-OH2FAIVU.js → chunk-IS4AEGLU.js} +4 -4
- package/dist/{chunk-PY37LNDP.js → chunk-ISG3TQ2O.js} +4 -4
- package/dist/{chunk-ADADVMXY.js → chunk-ISM4NX6N.js} +2 -2
- package/dist/{chunk-WRKUDAZJ.js → chunk-JEB5UU3E.js} +3 -3
- package/dist/{chunk-KMC6CQH3.js → chunk-K5UGRXKR.js} +5 -5
- package/dist/{chunk-OMXII44L.js → chunk-KDZRD6EI.js} +3 -3
- package/dist/{chunk-ZU7NIRT6.js → chunk-LAUFLPB6.js} +3 -3
- package/dist/{chunk-JC5YBPSF.cjs → chunk-LY4DMQOW.cjs} +5 -5
- package/dist/{chunk-KQCN6AKJ.cjs → chunk-N5YOAFNA.cjs} +5 -5
- package/dist/{chunk-WQKJSGVS.js → chunk-NDUX553L.js} +36 -6
- package/dist/{chunk-5H2G27PK.cjs → chunk-NE5CZ2NC.cjs} +38 -38
- package/dist/{chunk-4SDKXQ4C.js → chunk-NPDNFPTU.js} +4 -4
- package/dist/{chunk-S3MDHNKB.cjs → chunk-NTGBEMYL.cjs} +5 -5
- package/dist/{chunk-CR4FMIWL.cjs → chunk-NTJZJ5IP.cjs} +14 -14
- package/dist/{chunk-3WZEJHUQ.cjs → chunk-OXGPGQXN.cjs} +7 -7
- package/dist/{chunk-YN2YWTXW.js → chunk-P4AIF7OQ.js} +4 -4
- package/dist/{chunk-YVD3CSO3.js → chunk-P52PPB5R.js} +4 -4
- package/dist/{chunk-YT5L3B57.cjs → chunk-PVWNU4QT.cjs} +5 -5
- package/dist/{chunk-KKP7JKN4.cjs → chunk-QWAR3GY6.cjs} +12 -6
- package/dist/{chunk-UWXE23BT.cjs → chunk-QWSB553J.cjs} +4 -4
- package/dist/{chunk-GYZE55MO.js → chunk-RCZHLCX2.js} +3 -3
- package/dist/{chunk-FFAOS5HQ.js → chunk-RXU4PQKA.js} +6 -6
- package/dist/{chunk-5KVXXUD4.js → chunk-S6OVFUXD.js} +3 -3
- package/dist/{chunk-TWUXUCEW.cjs → chunk-TCBJMNXS.cjs} +38 -38
- package/dist/{chunk-J6M4FPK5.js → chunk-TDCJ7YPA.js} +3 -3
- package/dist/{chunk-4V2E7U7Q.cjs → chunk-TFUMBR7G.cjs} +7 -7
- package/dist/{chunk-XIVIE43A.cjs → chunk-TFWYKOOB.cjs} +5 -5
- package/dist/{chunk-7H33U5SM.cjs → chunk-TJIMBJ6L.cjs} +2 -2
- package/dist/{chunk-QXH7QDSZ.js → chunk-U36W76U7.js} +3 -3
- package/dist/{chunk-E4M5OAYO.js → chunk-ULXWSPCK.js} +38 -7
- package/dist/{chunk-UO4WPSGQ.js → chunk-VATGR4EM.js} +95 -10
- package/dist/{chunk-6FH72EB2.cjs → chunk-VFKXK4GR.cjs} +16 -16
- package/dist/{chunk-LHAXPADA.js → chunk-VHAONJBY.js} +4 -4
- package/dist/{chunk-YN6V7R3L.cjs → chunk-WOH6LKYT.cjs} +5 -5
- package/dist/{chunk-R24NNAEG.js → chunk-X4EBCG4K.js} +4 -4
- package/dist/{chunk-AVJHHUC5.cjs → chunk-X7LYK5TX.cjs} +21 -21
- package/dist/{chunk-FYSPZT4V.cjs → chunk-X7QB5PL5.cjs} +7 -7
- package/dist/{chunk-IUDGEUDO.cjs → chunk-XHZCF3AS.cjs} +13 -13
- package/dist/{chunk-PJGFU5DN.cjs → chunk-YAPPQYJH.cjs} +5 -5
- package/dist/{chunk-U44IKGG7.cjs → chunk-YG3OAHJZ.cjs} +30 -30
- package/dist/{chunk-I5CDNPPE.cjs → chunk-YTR32ZEB.cjs} +80 -49
- package/dist/{chunk-UJXISJBN.js → chunk-YU5RJQPE.js} +3 -3
- package/dist/{chunk-IWC5DM2M.cjs → chunk-ZXZ2AL2J.cjs} +14 -14
- package/dist/compiler/agent-inference.cjs +6 -6
- package/dist/compiler/agent-inference.js +2 -2
- package/dist/compiler/android-xr.cjs +6 -6
- package/dist/compiler/android-xr.js +4 -4
- package/dist/compiler/android.cjs +5 -5
- package/dist/compiler/android.js +3 -3
- package/dist/compiler/ar.cjs +5 -5
- package/dist/compiler/ar.js +3 -3
- package/dist/compiler/babylon.cjs +5 -5
- package/dist/compiler/babylon.js +4 -4
- package/dist/compiler/business-quest.cjs +9 -9
- package/dist/compiler/business-quest.js +1 -1
- package/dist/compiler/context.cjs +5 -5
- package/dist/compiler/context.js +2 -2
- package/dist/compiler/domain-block-utils.cjs +152 -152
- package/dist/compiler/domain-block-utils.js +3 -3
- package/dist/compiler/dtdl.cjs +6 -6
- package/dist/compiler/dtdl.js +3 -3
- package/dist/compiler/gltf-pipeline.cjs +8 -8
- package/dist/compiler/gltf-pipeline.js +1 -1
- package/dist/compiler/godot.cjs +5 -5
- package/dist/compiler/godot.js +4 -4
- package/dist/compiler/incremental.cjs +7 -7
- package/dist/compiler/incremental.js +2 -2
- package/dist/compiler/index.cjs +375 -185
- package/dist/compiler/index.js +236 -57
- package/dist/compiler/ios.cjs +5 -5
- package/dist/compiler/ios.js +3 -3
- package/dist/compiler/llm-provider-capabilities.cjs +5 -5
- package/dist/compiler/llm-provider-capabilities.js +2 -2
- package/dist/compiler/multi-layer.cjs +7 -7
- package/dist/compiler/multi-layer.js +6 -6
- package/dist/compiler/openxr.cjs +5 -5
- package/dist/compiler/openxr.js +4 -4
- package/dist/compiler/playcanvas.cjs +5 -5
- package/dist/compiler/playcanvas.js +4 -4
- package/dist/compiler/r3f.cjs +10 -10
- package/dist/compiler/r3f.js +5 -5
- package/dist/compiler/sdf.cjs +6 -6
- package/dist/compiler/sdf.js +4 -4
- package/dist/compiler/state.cjs +5 -5
- package/dist/compiler/state.js +3 -3
- package/dist/compiler/trait-composition.cjs +6 -6
- package/dist/compiler/trait-composition.js +2 -2
- package/dist/compiler/unity.cjs +5 -5
- package/dist/compiler/unity.js +4 -4
- package/dist/compiler/unreal.cjs +6 -6
- package/dist/compiler/unreal.js +4 -4
- package/dist/compiler/urdf.cjs +13 -13
- package/dist/compiler/urdf.js +4 -4
- package/dist/compiler/usd-physics.cjs +6 -6
- package/dist/compiler/usd-physics.js +3 -3
- package/dist/compiler/visionos.cjs +5 -5
- package/dist/compiler/visionos.js +4 -4
- package/dist/compiler/vrchat.cjs +6 -6
- package/dist/compiler/vrchat.js +4 -4
- package/dist/compiler/vrr.cjs +6 -6
- package/dist/compiler/vrr.js +4 -4
- package/dist/compiler/wasm.cjs +9 -9
- package/dist/compiler/wasm.js +4 -4
- package/dist/compiler/webgpu.cjs +5 -5
- package/dist/compiler/webgpu.js +4 -4
- package/dist/debugger.cjs +4 -4
- package/dist/debugger.js +2 -2
- package/dist/index.cjs +570 -1940
- package/dist/index.js +86 -1456
- package/dist/reconstruction/index.cjs +31 -31
- package/dist/reconstruction/index.js +2 -2
- package/dist/runtime.cjs +14 -6
- package/dist/runtime.js +2 -2
- package/dist/traits/botanical-lotus.cjs +52 -48
- package/dist/traits/botanical-lotus.js +2 -2
- package/dist/traits/index.cjs +481 -473
- package/dist/traits/index.js +12 -8
- package/package.json +40 -40
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk2VL6SJ33_cjs = require('./chunk-2VL6SJ33.cjs');
|
|
4
|
+
var chunkQWAR3GY6_cjs = require('./chunk-QWAR3GY6.cjs');
|
|
5
5
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
6
6
|
var ans = require('@holoscript/core-types/ans');
|
|
7
7
|
|
|
@@ -205,9 +205,9 @@ function generateControllersYaml(robotName, jointNames, options) {
|
|
|
205
205
|
exports.URDFCompiler = void 0; exports.URDFCompiler_default = void 0;
|
|
206
206
|
var init_URDFCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
207
207
|
"src/compiler/URDFCompiler.ts"() {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
exports.URDFCompiler = class extends
|
|
208
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
209
|
+
chunk2VL6SJ33_cjs.init_DomainBlockCompilerMixin();
|
|
210
|
+
exports.URDFCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
211
211
|
constructor(options = {}) {
|
|
212
212
|
super();
|
|
213
213
|
this.compilerName = "URDFCompiler";
|
|
@@ -560,11 +560,11 @@ var init_URDFCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
560
560
|
if (domainBlocks.length === 0) return;
|
|
561
561
|
this.emitBlank();
|
|
562
562
|
this.emit("<!-- v4.2 Domain Blocks -->");
|
|
563
|
-
const compiled =
|
|
563
|
+
const compiled = chunk2VL6SJ33_cjs.compileDomainBlocks(
|
|
564
564
|
domainBlocks,
|
|
565
565
|
{
|
|
566
566
|
material: (block) => {
|
|
567
|
-
const mat =
|
|
567
|
+
const mat = chunk2VL6SJ33_cjs.compileMaterialBlock(block);
|
|
568
568
|
const lines = [];
|
|
569
569
|
lines.push(
|
|
570
570
|
`<material name="${this.escapeStringValue(mat.name, "TypeScript")}">`
|
|
@@ -585,15 +585,15 @@ var init_URDFCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
585
585
|
return lines.join("\n");
|
|
586
586
|
},
|
|
587
587
|
physics: (block) => {
|
|
588
|
-
const phys =
|
|
589
|
-
return
|
|
588
|
+
const phys = chunk2VL6SJ33_cjs.compilePhysicsBlock(block);
|
|
589
|
+
return chunk2VL6SJ33_cjs.physicsToURDF(phys);
|
|
590
590
|
},
|
|
591
591
|
audio: (block) => {
|
|
592
|
-
const audio =
|
|
592
|
+
const audio = chunk2VL6SJ33_cjs.compileAudioSourceBlock(block);
|
|
593
593
|
return `<!-- Audio: ${this.escapeStringValue(audio.name, "TypeScript")} (${audio.keyword}) clip="${audio.properties.clip || ""}" volume="${audio.properties.volume ?? 1}" -->`;
|
|
594
594
|
},
|
|
595
595
|
weather: (block) => {
|
|
596
|
-
const weather =
|
|
596
|
+
const weather = chunk2VL6SJ33_cjs.compileWeatherBlock(block);
|
|
597
597
|
return `<!-- Weather: ${weather.keyword} "${weather.name || ""}" layers: ${weather.layers.map((l) => l.type).join(", ")} -->`;
|
|
598
598
|
}
|
|
599
599
|
},
|
|
@@ -1405,5 +1405,5 @@ exports.createURDFCompiler = createURDFCompiler;
|
|
|
1405
1405
|
exports.generateControllersYaml = generateControllersYaml;
|
|
1406
1406
|
exports.generateROS2LaunchFile = generateROS2LaunchFile;
|
|
1407
1407
|
exports.init_URDFCompiler = init_URDFCompiler;
|
|
1408
|
-
//# sourceMappingURL=chunk-
|
|
1409
|
-
//# sourceMappingURL=chunk-
|
|
1408
|
+
//# sourceMappingURL=chunk-XHZCF3AS.cjs.map
|
|
1409
|
+
//# sourceMappingURL=chunk-XHZCF3AS.cjs.map
|
|
@@ -5,7 +5,7 @@ var chunk3FOKASKO_cjs = require('./chunk-3FOKASKO.cjs');
|
|
|
5
5
|
var chunk4PDEPEQW_cjs = require('./chunk-4PDEPEQW.cjs');
|
|
6
6
|
var chunkXJAN7CZG_cjs = require('./chunk-XJAN7CZG.cjs');
|
|
7
7
|
var chunkXHIV6326_cjs = require('./chunk-XHIV6326.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunkH5PUZHJV_cjs = require('./chunk-H5PUZHJV.cjs');
|
|
9
9
|
var chunkTVHSPJ4N_cjs = require('./chunk-TVHSPJ4N.cjs');
|
|
10
10
|
var chunkILRBGFVD_cjs = require('./chunk-ILRBGFVD.cjs');
|
|
11
11
|
var chunkE7JP3BS3_cjs = require('./chunk-E7JP3BS3.cjs');
|
|
@@ -54819,7 +54819,7 @@ var gotchaHandler = {
|
|
|
54819
54819
|
};
|
|
54820
54820
|
|
|
54821
54821
|
// src/traits/VRTraitSystem.ts
|
|
54822
|
-
|
|
54822
|
+
chunkH5PUZHJV_cjs.init_BotanicalLotusTrait();
|
|
54823
54823
|
|
|
54824
54824
|
// src/traits/FluidSimulationTrait.ts
|
|
54825
54825
|
var SpatialHash = class {
|
|
@@ -55749,7 +55749,7 @@ var VRTraitRegistry = class {
|
|
|
55749
55749
|
for (const handler of vfxParticleHandlers) this.register(handler);
|
|
55750
55750
|
this.register(gpuPhysicsHandler);
|
|
55751
55751
|
this.register(gpuBufferHandler);
|
|
55752
|
-
this.register(
|
|
55752
|
+
this.register(chunkH5PUZHJV_cjs.botanicalLotusHandler);
|
|
55753
55753
|
this.register(phyllotaxisHandler);
|
|
55754
55754
|
this.register(bloomReactiveHandler);
|
|
55755
55755
|
this.register(lotusRootHandler);
|
|
@@ -56579,5 +56579,5 @@ exports.windHandler = windHandler;
|
|
|
56579
56579
|
exports.withNegotiation = withNegotiation;
|
|
56580
56580
|
exports.wotThingHandler = wotThingHandler;
|
|
56581
56581
|
exports.zkPrivateHandler = zkPrivateHandler;
|
|
56582
|
-
//# sourceMappingURL=chunk-
|
|
56583
|
-
//# sourceMappingURL=chunk-
|
|
56582
|
+
//# sourceMappingURL=chunk-YAPPQYJH.cjs.map
|
|
56583
|
+
//# sourceMappingURL=chunk-YAPPQYJH.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQWAR3GY6_cjs = require('./chunk-QWAR3GY6.cjs');
|
|
4
4
|
var chunkYKGPCZEE_cjs = require('./chunk-YKGPCZEE.cjs');
|
|
5
5
|
var chunk6EX3I5P4_cjs = require('./chunk-6EX3I5P4.cjs');
|
|
6
6
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
@@ -12,7 +12,7 @@ function generateViewFile(compiler, composition) {
|
|
|
12
12
|
compiler.indentLevel = 0;
|
|
13
13
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler");
|
|
14
14
|
compiler.emit(
|
|
15
|
-
`// Source: composition "${
|
|
15
|
+
`// Source: composition "${chunkQWAR3GY6_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
16
16
|
);
|
|
17
17
|
compiler.emit(`// iOS: ${compiler.options.iosVersion}`);
|
|
18
18
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -232,7 +232,7 @@ function generateSceneFile(compiler, composition) {
|
|
|
232
232
|
compiler.lines = [];
|
|
233
233
|
compiler.indentLevel = 0;
|
|
234
234
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler");
|
|
235
|
-
compiler.emit(`// Scene: ${
|
|
235
|
+
compiler.emit(`// Scene: ${chunkQWAR3GY6_cjs.escapeStringValue(composition.name, "Swift")}`);
|
|
236
236
|
compiler.emit("");
|
|
237
237
|
compiler.emit("import Foundation");
|
|
238
238
|
compiler.emit("import SceneKit");
|
|
@@ -251,7 +251,7 @@ function generateSceneFile(compiler, composition) {
|
|
|
251
251
|
for (const obj of composition.objects || []) {
|
|
252
252
|
const varName = compiler.sanitizeName(obj.name);
|
|
253
253
|
compiler.emit(
|
|
254
|
-
`nodes["${
|
|
254
|
+
`nodes["${chunkQWAR3GY6_cjs.escapeStringValue(obj.name, "Swift")}"] = make${varName}()`
|
|
255
255
|
);
|
|
256
256
|
}
|
|
257
257
|
compiler.emit("return nodes");
|
|
@@ -285,7 +285,7 @@ function generateStateFile(compiler, composition) {
|
|
|
285
285
|
compiler.lines = [];
|
|
286
286
|
compiler.indentLevel = 0;
|
|
287
287
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler");
|
|
288
|
-
compiler.emit(`// State: ${
|
|
288
|
+
compiler.emit(`// State: ${chunkQWAR3GY6_cjs.escapeStringValue(composition.name, "Swift")}`);
|
|
289
289
|
compiler.emit("");
|
|
290
290
|
compiler.emit("import Foundation");
|
|
291
291
|
compiler.emit("import SceneKit");
|
|
@@ -302,7 +302,7 @@ function generateStateFile(compiler, composition) {
|
|
|
302
302
|
const swiftType = compiler.toSwiftType(prop.value);
|
|
303
303
|
const swiftValue = compiler.toSwiftValue(prop.value);
|
|
304
304
|
compiler.emit(
|
|
305
|
-
`@Published var ${
|
|
305
|
+
`@Published var ${chunkQWAR3GY6_cjs.escapeStringValue(prop.key, "Swift")}: ${swiftType} = ${swiftValue}`
|
|
306
306
|
);
|
|
307
307
|
}
|
|
308
308
|
compiler.emit("");
|
|
@@ -456,7 +456,7 @@ function generateInfoPlist(compiler, composition) {
|
|
|
456
456
|
<true/>
|
|
457
457
|
</dict>
|
|
458
458
|
<key>CFBundleDisplayName</key>
|
|
459
|
-
<string>${
|
|
459
|
+
<string>${chunkQWAR3GY6_cjs.escapeStringValue(composition.name, "XML")}</string>
|
|
460
460
|
<key>MinimumOSVersion</key>
|
|
461
461
|
<string>${compiler.options.iosVersion}</string>
|
|
462
462
|
</dict>
|
|
@@ -490,7 +490,7 @@ function compileObjectFactory(compiler, obj) {
|
|
|
490
490
|
compiler.emit("geometry.materials = [material]");
|
|
491
491
|
compiler.emit("");
|
|
492
492
|
compiler.emit("let node = SCNNode(geometry: geometry)");
|
|
493
|
-
compiler.emit(`node.name = "${
|
|
493
|
+
compiler.emit(`node.name = "${chunkQWAR3GY6_cjs.escapeStringValue(obj.name, "Swift")}"`);
|
|
494
494
|
const pos = compiler.findObjProp(obj, "position");
|
|
495
495
|
if (pos && Array.isArray(pos)) {
|
|
496
496
|
compiler.emit(`node.position = SCNVector3(${pos[0]}, ${pos[1]}, ${pos[2]})`);
|
|
@@ -549,7 +549,7 @@ function compileLightFactory(compiler, light) {
|
|
|
549
549
|
}
|
|
550
550
|
compiler.emit("");
|
|
551
551
|
compiler.emit("let node = SCNNode()");
|
|
552
|
-
compiler.emit(`node.name = "${
|
|
552
|
+
compiler.emit(`node.name = "${chunkQWAR3GY6_cjs.escapeStringValue(light.name, "Swift")}"`);
|
|
553
553
|
compiler.emit("node.light = light");
|
|
554
554
|
const posProp = light.properties.find((p) => p.key === "position");
|
|
555
555
|
if (posProp && Array.isArray(posProp.value)) {
|
|
@@ -596,7 +596,7 @@ function compileAction(compiler, action) {
|
|
|
596
596
|
const name = compiler.sanitizeName(action.name);
|
|
597
597
|
compiler.emit(`func ${name}() {`);
|
|
598
598
|
compiler.indentLevel++;
|
|
599
|
-
compiler.emit(`print("[HoloScript] Action: ${
|
|
599
|
+
compiler.emit(`print("[HoloScript] Action: ${chunkQWAR3GY6_cjs.escapeStringValue(action.name, "Swift")}")`);
|
|
600
600
|
compiler.emit("// Action implementation");
|
|
601
601
|
compiler.indentLevel--;
|
|
602
602
|
compiler.emit("}");
|
|
@@ -682,14 +682,14 @@ function emitGeoAnchorMethods(compiler, composition) {
|
|
|
682
682
|
});
|
|
683
683
|
const headingConfig = typeof headingTrait === "string" ? {} : headingTrait?.config || {};
|
|
684
684
|
const heading = headingConfig.degrees ?? 0;
|
|
685
|
-
compiler.emit(`// Geo-anchor: ${
|
|
685
|
+
compiler.emit(`// Geo-anchor: ${chunkQWAR3GY6_cjs.escapeStringValue(obj.name, "Swift")}`);
|
|
686
686
|
if (usesARGeoAnchor) {
|
|
687
687
|
compiler.emit(
|
|
688
|
-
`createGeoAnchor(name: "${
|
|
688
|
+
`createGeoAnchor(name: "${chunkQWAR3GY6_cjs.escapeStringValue(obj.name, "Swift")}", latitude: ${lat}, longitude: ${lng}, altitude: ${alt}, heading: ${heading})`
|
|
689
689
|
);
|
|
690
690
|
} else {
|
|
691
691
|
compiler.emit(
|
|
692
|
-
`createLocationAnchor(name: "${
|
|
692
|
+
`createLocationAnchor(name: "${chunkQWAR3GY6_cjs.escapeStringValue(obj.name, "Swift")}", latitude: ${lat}, longitude: ${lng}, altitude: ${alt})`
|
|
693
693
|
);
|
|
694
694
|
}
|
|
695
695
|
}
|
|
@@ -812,7 +812,7 @@ function emitGeoAnchorMethods(compiler, composition) {
|
|
|
812
812
|
}
|
|
813
813
|
var init_IOSARGenerators = chunkHCCQLAA4_cjs.__esm({
|
|
814
814
|
"src/compiler/IOSARGenerators.ts"() {
|
|
815
|
-
|
|
815
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
816
816
|
}
|
|
817
817
|
});
|
|
818
818
|
|
|
@@ -832,7 +832,7 @@ function generateRoomPlanFile(compiler, composition) {
|
|
|
832
832
|
const cls = compiler.options.className;
|
|
833
833
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 RoomPlan integration");
|
|
834
834
|
compiler.emit(
|
|
835
|
-
`// Source: composition "${
|
|
835
|
+
`// Source: composition "${chunkQWAR3GY6_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
836
836
|
);
|
|
837
837
|
compiler.emit("// Requires iOS 16.0+, RoomPlan framework");
|
|
838
838
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -1188,7 +1188,7 @@ function generateLiDARScannerFile(compiler, composition) {
|
|
|
1188
1188
|
const traits = collectLiDARTraits(composition);
|
|
1189
1189
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 LiDAR Scanner integration");
|
|
1190
1190
|
compiler.emit(
|
|
1191
|
-
`// Source: composition "${
|
|
1191
|
+
`// Source: composition "${chunkQWAR3GY6_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
1192
1192
|
);
|
|
1193
1193
|
compiler.emit("// Requires iOS 15.0+, device with LiDAR sensor");
|
|
1194
1194
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -1665,7 +1665,7 @@ function generateNPUSceneFile(compiler, composition) {
|
|
|
1665
1665
|
const defaults = chunk6EX3I5P4_cjs.NPU_SCENE_DEFAULTS;
|
|
1666
1666
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 NPU Scene Understanding");
|
|
1667
1667
|
compiler.emit(
|
|
1668
|
-
`// Source: composition "${
|
|
1668
|
+
`// Source: composition "${chunkQWAR3GY6_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
1669
1669
|
);
|
|
1670
1670
|
compiler.emit("// Requires iOS 15.0+, Vision + CoreML frameworks");
|
|
1671
1671
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -2071,7 +2071,7 @@ function generatePortalARFile(compiler, composition) {
|
|
|
2071
2071
|
const cls = compiler.options.className;
|
|
2072
2072
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 Portal AR integration");
|
|
2073
2073
|
compiler.emit(
|
|
2074
|
-
`// Source: composition "${
|
|
2074
|
+
`// Source: composition "${chunkQWAR3GY6_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
2075
2075
|
);
|
|
2076
2076
|
compiler.emit("// Requires iOS 15.0+, ARKit with scene reconstruction");
|
|
2077
2077
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -2405,7 +2405,7 @@ function generatePortalARFile(compiler, composition) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
var init_IOSSpatialGenerators = chunkHCCQLAA4_cjs.__esm({
|
|
2407
2407
|
"src/compiler/IOSSpatialGenerators.ts"() {
|
|
2408
|
-
|
|
2408
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
2409
2409
|
chunkYKGPCZEE_cjs.init_roomplan();
|
|
2410
2410
|
chunkYKGPCZEE_cjs.init_lidar_scanner();
|
|
2411
2411
|
chunk6EX3I5P4_cjs.init_npu_scene();
|
|
@@ -2439,7 +2439,7 @@ function generateHandTrackingFile(compiler, composition) {
|
|
|
2439
2439
|
const hasToSpatial = compiler.compositionHasTrait(composition, "camera_hand_to_spatial");
|
|
2440
2440
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 Hand Tracking integration");
|
|
2441
2441
|
compiler.emit(
|
|
2442
|
-
`// Source: composition "${
|
|
2442
|
+
`// Source: composition "${chunkQWAR3GY6_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
2443
2443
|
);
|
|
2444
2444
|
compiler.emit("// Requires iOS 14.0+, Vision framework");
|
|
2445
2445
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -2735,7 +2735,7 @@ function generateObjectCaptureFile(compiler, composition) {
|
|
|
2735
2735
|
const traits = collectObjectCaptureTraits(composition);
|
|
2736
2736
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 Object Capture integration");
|
|
2737
2737
|
compiler.emit(
|
|
2738
|
-
`// Source: composition "${
|
|
2738
|
+
`// Source: composition "${chunkQWAR3GY6_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
2739
2739
|
);
|
|
2740
2740
|
compiler.emit("// Requires iOS 17.0+, RealityKit Object Capture API");
|
|
2741
2741
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -3260,7 +3260,7 @@ function generateSharePlayFile(compiler, composition) {
|
|
|
3260
3260
|
const cls = compiler.options.className;
|
|
3261
3261
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 SharePlay Multi-User AR");
|
|
3262
3262
|
compiler.emit(
|
|
3263
|
-
`// Source: composition "${
|
|
3263
|
+
`// Source: composition "${chunkQWAR3GY6_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
3264
3264
|
);
|
|
3265
3265
|
compiler.emit("// Requires iOS 15.4+, GroupActivities framework");
|
|
3266
3266
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -3862,7 +3862,7 @@ function generateFaceTrackingFile(compiler, composition) {
|
|
|
3862
3862
|
const hasTongue = compiler.compositionHasTrait(composition, "face_tongue_detect");
|
|
3863
3863
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 TrueDepth Face Tracking");
|
|
3864
3864
|
compiler.emit(
|
|
3865
|
-
`// Source: composition "${
|
|
3865
|
+
`// Source: composition "${chunkQWAR3GY6_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
3866
3866
|
);
|
|
3867
3867
|
compiler.emit("// Requires iOS 11.0+, ARKit, TrueDepth camera");
|
|
3868
3868
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -4256,7 +4256,7 @@ function generateUWBPositioningFile(compiler, composition) {
|
|
|
4256
4256
|
const cls = compiler.options.className;
|
|
4257
4257
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 UWB Positioning");
|
|
4258
4258
|
compiler.emit(
|
|
4259
|
-
`// Source: composition "${
|
|
4259
|
+
`// Source: composition "${chunkQWAR3GY6_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
4260
4260
|
);
|
|
4261
4261
|
compiler.emit("// Requires iOS 16+, U1/U2 chip (iPhone 11+), Nearby Interaction framework");
|
|
4262
4262
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -4784,7 +4784,7 @@ function generateSpatialAudioFile(compiler, composition) {
|
|
|
4784
4784
|
const traits = collectSpatialAudioTraits(composition);
|
|
4785
4785
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 AirPods Spatial Audio");
|
|
4786
4786
|
compiler.emit(
|
|
4787
|
-
`// Source: composition "${
|
|
4787
|
+
`// Source: composition "${chunkQWAR3GY6_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
4788
4788
|
);
|
|
4789
4789
|
compiler.emit("// Requires iOS 15+, AirPods Pro/Max with head tracking");
|
|
4790
4790
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -5208,7 +5208,7 @@ function generateSpatialAudioFile(compiler, composition) {
|
|
|
5208
5208
|
}
|
|
5209
5209
|
var init_IOSPeripheralGenerators = chunkHCCQLAA4_cjs.__esm({
|
|
5210
5210
|
"src/compiler/IOSPeripheralGenerators.ts"() {
|
|
5211
|
-
|
|
5211
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
5212
5212
|
chunk6EX3I5P4_cjs.init_camera_hand_tracking();
|
|
5213
5213
|
chunkYKGPCZEE_cjs.init_face_tracking();
|
|
5214
5214
|
chunkYKGPCZEE_cjs.init_ios_object_capture();
|
|
@@ -5231,11 +5231,11 @@ function compileToIOS(composition, options) {
|
|
|
5231
5231
|
exports.IOSCompiler = void 0;
|
|
5232
5232
|
var init_IOSCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
5233
5233
|
"src/compiler/IOSCompiler.ts"() {
|
|
5234
|
-
|
|
5234
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
5235
5235
|
init_IOSARGenerators();
|
|
5236
5236
|
init_IOSSpatialGenerators();
|
|
5237
5237
|
init_IOSPeripheralGenerators();
|
|
5238
|
-
exports.IOSCompiler = class extends
|
|
5238
|
+
exports.IOSCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
5239
5239
|
constructor(options = {}) {
|
|
5240
5240
|
super();
|
|
5241
5241
|
this.compilerName = "IOSCompiler";
|
|
@@ -5386,5 +5386,5 @@ var init_IOSCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
5386
5386
|
exports.IOSCompiler_exports = IOSCompiler_exports;
|
|
5387
5387
|
exports.compileToIOS = compileToIOS;
|
|
5388
5388
|
exports.init_IOSCompiler = init_IOSCompiler;
|
|
5389
|
-
//# sourceMappingURL=chunk-
|
|
5390
|
-
//# sourceMappingURL=chunk-
|
|
5389
|
+
//# sourceMappingURL=chunk-YG3OAHJZ.cjs.map
|
|
5390
|
+
//# sourceMappingURL=chunk-YG3OAHJZ.cjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk4FDL7JLJ_cjs = require('./chunk-4FDL7JLJ.cjs');
|
|
4
4
|
var chunk5S7RKFGR_cjs = require('./chunk-5S7RKFGR.cjs');
|
|
5
5
|
var chunkOIQYIIO3_cjs = require('./chunk-OIQYIIO3.cjs');
|
|
6
6
|
var chunkAIA52I7T_cjs = require('./chunk-AIA52I7T.cjs');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var chunk2VL6SJ33_cjs = require('./chunk-2VL6SJ33.cjs');
|
|
8
|
+
var chunkQWAR3GY6_cjs = require('./chunk-QWAR3GY6.cjs');
|
|
9
9
|
var chunkKKFZ3B6J_cjs = require('./chunk-KKFZ3B6J.cjs');
|
|
10
10
|
var chunkE7JP3BS3_cjs = require('./chunk-E7JP3BS3.cjs');
|
|
11
11
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
@@ -21,7 +21,7 @@ var init_ThreeJSCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
21
21
|
"src/compiler/ThreeJSCompiler.ts"() {
|
|
22
22
|
chunkOIQYIIO3_cjs.init_TraitCompositor();
|
|
23
23
|
chunk5S7RKFGR_cjs.init_ProvenanceSemiring();
|
|
24
|
-
|
|
24
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
25
25
|
SHAPE_TO_THREE_GEOMETRY = {
|
|
26
26
|
sphere: "SphereGeometry",
|
|
27
27
|
orb: "SphereGeometry",
|
|
@@ -36,7 +36,7 @@ var init_ThreeJSCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
36
36
|
ring: "TorusGeometry",
|
|
37
37
|
capsule: "CapsuleGeometry"
|
|
38
38
|
};
|
|
39
|
-
exports.ThreeJSCompiler = class extends
|
|
39
|
+
exports.ThreeJSCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
40
40
|
constructor(options = {}) {
|
|
41
41
|
super();
|
|
42
42
|
this.compilerName = "ThreeJSCompiler";
|
|
@@ -653,9 +653,9 @@ chunkHCCQLAA4_cjs.__export(Native2DCompiler_exports, {
|
|
|
653
653
|
exports.Native2DCompiler = void 0;
|
|
654
654
|
var init_Native2DCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
655
655
|
"src/compiler/Native2DCompiler.ts"() {
|
|
656
|
-
|
|
656
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
657
657
|
chunkE7JP3BS3_cjs.init_safeJsonParse();
|
|
658
|
-
exports.Native2DCompiler = class extends
|
|
658
|
+
exports.Native2DCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
659
659
|
constructor() {
|
|
660
660
|
super(...arguments);
|
|
661
661
|
this.compilerName = "Native2DCompiler";
|
|
@@ -1153,8 +1153,8 @@ chunkHCCQLAA4_cjs.__export(A2AAgentCardCompiler_exports, {
|
|
|
1153
1153
|
exports.A2AAgentCardCompiler = void 0; var A2AAgentCardCompiler_default;
|
|
1154
1154
|
var init_A2AAgentCardCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
1155
1155
|
"src/compiler/A2AAgentCardCompiler.ts"() {
|
|
1156
|
-
|
|
1157
|
-
exports.A2AAgentCardCompiler = class extends
|
|
1156
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
1157
|
+
exports.A2AAgentCardCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
1158
1158
|
constructor(options = {}) {
|
|
1159
1159
|
super();
|
|
1160
1160
|
this.compilerName = "A2AAgentCardCompiler";
|
|
@@ -2215,9 +2215,9 @@ chunkHCCQLAA4_cjs.__export(NIRCompiler_exports, {
|
|
|
2215
2215
|
exports.NIRCompiler = void 0; var NIRCompiler_default;
|
|
2216
2216
|
var init_NIRCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
2217
2217
|
"src/compiler/NIRCompiler.ts"() {
|
|
2218
|
-
|
|
2218
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
2219
2219
|
init_NIRTraitMap();
|
|
2220
|
-
exports.NIRCompiler = class extends
|
|
2220
|
+
exports.NIRCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
2221
2221
|
constructor(options = {}) {
|
|
2222
2222
|
super();
|
|
2223
2223
|
this.compilerName = "NIRCompiler";
|
|
@@ -2562,9 +2562,39 @@ var init_NIRCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2562
2562
|
}
|
|
2563
2563
|
});
|
|
2564
2564
|
|
|
2565
|
+
// src/compiler/CodeEditorCompiler.ts
|
|
2566
|
+
var KNOWN_TRAITS = /* @__PURE__ */ new Set([
|
|
2567
|
+
"code_editor",
|
|
2568
|
+
"lsp_client",
|
|
2569
|
+
"editor_gutters",
|
|
2570
|
+
"editor_keybindings",
|
|
2571
|
+
"store_diagnostics",
|
|
2572
|
+
"editor_toolbar",
|
|
2573
|
+
"spatial_blame"
|
|
2574
|
+
]);
|
|
2575
|
+
var CodeEditorCompiler = class {
|
|
2576
|
+
constructor() {
|
|
2577
|
+
this.compilerName = "CodeEditorCompiler";
|
|
2578
|
+
}
|
|
2579
|
+
compile(composition, _agentToken, _outputPath, options) {
|
|
2580
|
+
const indent = options?.indent ?? 2;
|
|
2581
|
+
const strict = options?.strictTraits ?? false;
|
|
2582
|
+
const config = {};
|
|
2583
|
+
const allTraits = [...composition.traits ?? []];
|
|
2584
|
+
for (const obj of composition.objects) {
|
|
2585
|
+
allTraits.push(...obj.traits ?? []);
|
|
2586
|
+
}
|
|
2587
|
+
for (const trait of allTraits) {
|
|
2588
|
+
if (strict && !KNOWN_TRAITS.has(trait.name)) continue;
|
|
2589
|
+
config[trait.name] = trait.config;
|
|
2590
|
+
}
|
|
2591
|
+
return JSON.stringify(config, null, indent);
|
|
2592
|
+
}
|
|
2593
|
+
};
|
|
2594
|
+
|
|
2565
2595
|
// src/compiler/USDZPipeline.ts
|
|
2566
|
-
|
|
2567
|
-
|
|
2596
|
+
chunk2VL6SJ33_cjs.init_DomainBlockCompilerMixin();
|
|
2597
|
+
chunk4FDL7JLJ_cjs.init_R3FCompiler();
|
|
2568
2598
|
function presetString(p, k) {
|
|
2569
2599
|
const v = p[k];
|
|
2570
2600
|
return typeof v === "string" ? v : void 0;
|
|
@@ -2795,8 +2825,8 @@ ${domainBlocksOutput}` : materials,
|
|
|
2795
2825
|
const matName = `Material_${this.sanitizeName(obj.name)}`;
|
|
2796
2826
|
const mat = { name: matName };
|
|
2797
2827
|
const presetName = typeof material === "string" ? material : typeof materialPreset === "string" ? materialPreset : void 0;
|
|
2798
|
-
if (presetName &&
|
|
2799
|
-
const preset =
|
|
2828
|
+
if (presetName && chunk4FDL7JLJ_cjs.MATERIAL_PRESETS[presetName]) {
|
|
2829
|
+
const preset = chunk4FDL7JLJ_cjs.MATERIAL_PRESETS[presetName];
|
|
2800
2830
|
const colorStr = presetString(preset, "color");
|
|
2801
2831
|
if (colorStr) mat.baseColor = this.hexToRGB(colorStr);
|
|
2802
2832
|
const metal = presetNumber(preset, "metalness");
|
|
@@ -3297,59 +3327,59 @@ ${domainBlocksOutput}` : materials,
|
|
|
3297
3327
|
generateDomainBlocks(composition) {
|
|
3298
3328
|
const domainBlocks = composition.domainBlocks ?? [];
|
|
3299
3329
|
if (domainBlocks.length === 0) return "";
|
|
3300
|
-
const compiled =
|
|
3330
|
+
const compiled = chunk2VL6SJ33_cjs.compileDomainBlocks(
|
|
3301
3331
|
domainBlocks,
|
|
3302
3332
|
{
|
|
3303
3333
|
material: (block) => {
|
|
3304
|
-
const mat =
|
|
3305
|
-
return
|
|
3334
|
+
const mat = chunk2VL6SJ33_cjs.compileMaterialBlock(block);
|
|
3335
|
+
return chunk2VL6SJ33_cjs.materialToUSD(mat);
|
|
3306
3336
|
},
|
|
3307
3337
|
physics: (block) => {
|
|
3308
|
-
const phys =
|
|
3338
|
+
const phys = chunk2VL6SJ33_cjs.compilePhysicsBlock(block);
|
|
3309
3339
|
return `# Physics: ${phys.keyword} "${phys.name || ""}" \u2014 ${JSON.stringify(phys.properties)}`;
|
|
3310
3340
|
},
|
|
3311
3341
|
vfx: (block) => {
|
|
3312
|
-
const ps =
|
|
3313
|
-
return
|
|
3342
|
+
const ps = chunk2VL6SJ33_cjs.compileParticleBlock(block);
|
|
3343
|
+
return chunk2VL6SJ33_cjs.particlesToUSD(ps);
|
|
3314
3344
|
},
|
|
3315
3345
|
postfx: (block) => {
|
|
3316
|
-
const pp =
|
|
3317
|
-
return
|
|
3346
|
+
const pp = chunk2VL6SJ33_cjs.compilePostProcessingBlock(block);
|
|
3347
|
+
return chunk2VL6SJ33_cjs.postProcessingToUSD(pp);
|
|
3318
3348
|
},
|
|
3319
3349
|
audio: (block) => {
|
|
3320
|
-
const audio =
|
|
3321
|
-
return
|
|
3350
|
+
const audio = chunk2VL6SJ33_cjs.compileAudioSourceBlock(block);
|
|
3351
|
+
return chunk2VL6SJ33_cjs.audioSourceToUSD(audio);
|
|
3322
3352
|
},
|
|
3323
3353
|
weather: (block) => {
|
|
3324
|
-
const weather =
|
|
3325
|
-
return
|
|
3354
|
+
const weather = chunk2VL6SJ33_cjs.compileWeatherBlock(block);
|
|
3355
|
+
return chunk2VL6SJ33_cjs.weatherToUSD(weather);
|
|
3326
3356
|
},
|
|
3327
3357
|
narrative: (block) => {
|
|
3328
|
-
const narr =
|
|
3329
|
-
return
|
|
3358
|
+
const narr = chunk2VL6SJ33_cjs.compileNarrativeBlock(block);
|
|
3359
|
+
return chunk2VL6SJ33_cjs.narrativeToUSDA(narr);
|
|
3330
3360
|
},
|
|
3331
3361
|
payment: (block) => {
|
|
3332
|
-
const pay =
|
|
3333
|
-
return
|
|
3362
|
+
const pay = chunk2VL6SJ33_cjs.compilePaymentBlock(block);
|
|
3363
|
+
return chunk2VL6SJ33_cjs.paymentToUSDA(pay);
|
|
3334
3364
|
},
|
|
3335
3365
|
healthcare: (block) => {
|
|
3336
|
-
const h =
|
|
3337
|
-
return
|
|
3366
|
+
const h = chunk2VL6SJ33_cjs.compileHealthcareBlock(block);
|
|
3367
|
+
return chunk2VL6SJ33_cjs.healthcareToUSDA(h);
|
|
3338
3368
|
},
|
|
3339
3369
|
robotics: (block) => {
|
|
3340
|
-
const r =
|
|
3341
|
-
return
|
|
3370
|
+
const r = chunk2VL6SJ33_cjs.compileRoboticsBlock(block);
|
|
3371
|
+
return chunk2VL6SJ33_cjs.roboticsToUSDA(r);
|
|
3342
3372
|
},
|
|
3343
|
-
iot: (block) =>
|
|
3344
|
-
dataviz: (block) =>
|
|
3345
|
-
education: (block) =>
|
|
3346
|
-
music: (block) =>
|
|
3347
|
-
architecture: (block) =>
|
|
3348
|
-
web3: (block) =>
|
|
3349
|
-
procedural: (block) =>
|
|
3350
|
-
rendering: (block) =>
|
|
3351
|
-
navigation: (block) =>
|
|
3352
|
-
input: (block) =>
|
|
3373
|
+
iot: (block) => chunk2VL6SJ33_cjs.iotToUSDA(chunk2VL6SJ33_cjs.compileIoTBlock(block)),
|
|
3374
|
+
dataviz: (block) => chunk2VL6SJ33_cjs.datavizToUSDA(chunk2VL6SJ33_cjs.compileDataVizBlock(block)),
|
|
3375
|
+
education: (block) => chunk2VL6SJ33_cjs.educationToUSDA(chunk2VL6SJ33_cjs.compileEducationBlock(block)),
|
|
3376
|
+
music: (block) => chunk2VL6SJ33_cjs.musicToUSDA(chunk2VL6SJ33_cjs.compileMusicBlock(block)),
|
|
3377
|
+
architecture: (block) => chunk2VL6SJ33_cjs.architectureToUSDA(chunk2VL6SJ33_cjs.compileArchitectureBlock(block)),
|
|
3378
|
+
web3: (block) => chunk2VL6SJ33_cjs.web3ToUSDA(chunk2VL6SJ33_cjs.compileWeb3Block(block)),
|
|
3379
|
+
procedural: (block) => chunk2VL6SJ33_cjs.proceduralToUSDA(chunk2VL6SJ33_cjs.compileProceduralBlock(block)),
|
|
3380
|
+
rendering: (block) => chunk2VL6SJ33_cjs.renderingToUSDA(chunk2VL6SJ33_cjs.compileRenderingBlock(block)),
|
|
3381
|
+
navigation: (block) => chunk2VL6SJ33_cjs.navigationToUSDA(chunk2VL6SJ33_cjs.compileNavigationBlock(block)),
|
|
3382
|
+
input: (block) => chunk2VL6SJ33_cjs.inputToUSDA(chunk2VL6SJ33_cjs.compileInputBlock(block))
|
|
3353
3383
|
},
|
|
3354
3384
|
(block) => `# Domain block: ${block.domain}/${block.keyword} "${block.name}"`
|
|
3355
3385
|
);
|
|
@@ -3380,7 +3410,7 @@ _USDZPipeline.TEXTURE_CHANNEL_MAP = {
|
|
|
3380
3410
|
var USDZPipeline = _USDZPipeline;
|
|
3381
3411
|
|
|
3382
3412
|
// src/compiler/GaussianSplattingCompiler.ts
|
|
3383
|
-
|
|
3413
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
3384
3414
|
var GAUSSIAN_SPLAT_TRAIT_NAME = "gaussian_splat";
|
|
3385
3415
|
var MULTIPLAYER_TRAIT_NAME = "multiplayer";
|
|
3386
3416
|
function detectMultiUserSharedSort(composition) {
|
|
@@ -3406,7 +3436,7 @@ function objectHasBothTraits(obj) {
|
|
|
3406
3436
|
return false;
|
|
3407
3437
|
}
|
|
3408
3438
|
var SHARED_SORT_SHADER_PATH = "packages/engine/src/gpu/shaders/splat-shared-sort.wgsl";
|
|
3409
|
-
var GaussianSplattingCompiler = class extends
|
|
3439
|
+
var GaussianSplattingCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
3410
3440
|
constructor(options = {}) {
|
|
3411
3441
|
super();
|
|
3412
3442
|
this.compilerName = "GaussianSplattingCompiler";
|
|
@@ -6885,6 +6915,7 @@ exports.A2AAgentCardCompiler_exports = A2AAgentCardCompiler_exports;
|
|
|
6885
6915
|
exports.BUILTIN_RESOURCES = BUILTIN_RESOURCES;
|
|
6886
6916
|
exports.CAPABILITY_HIERARCHY = CAPABILITY_HIERARCHY;
|
|
6887
6917
|
exports.CATEGORY_DEFAULT_EMBODIMENT = CATEGORY_DEFAULT_EMBODIMENT;
|
|
6918
|
+
exports.CodeEditorCompiler = CodeEditorCompiler;
|
|
6888
6919
|
exports.CompilerBridge = CompilerBridge;
|
|
6889
6920
|
exports.CrossRealityTraitRegistry = CrossRealityTraitRegistry;
|
|
6890
6921
|
exports.EFFECTS_BY_CATEGORY = EFFECTS_BY_CATEGORY;
|
|
@@ -6943,5 +6974,5 @@ exports.runSafetyPass = runSafetyPass;
|
|
|
6943
6974
|
exports.selectModality = selectModality;
|
|
6944
6975
|
exports.selectModalityForAll = selectModalityForAll;
|
|
6945
6976
|
exports.spatialPartition = spatialPartition;
|
|
6946
|
-
//# sourceMappingURL=chunk-
|
|
6947
|
-
//# sourceMappingURL=chunk-
|
|
6977
|
+
//# sourceMappingURL=chunk-YTR32ZEB.cjs.map
|
|
6978
|
+
//# sourceMappingURL=chunk-YTR32ZEB.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_CompilerBase, CompilerBase } from './chunk-CXS3DUKD.js';
|
|
2
2
|
import { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
3
3
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
4
4
|
|
|
@@ -483,5 +483,5 @@ var init_ARCompiler = __esm({
|
|
|
483
483
|
});
|
|
484
484
|
|
|
485
485
|
export { ARCompiler, ARCompiler_default, ARCompiler_exports, init_ARCompiler };
|
|
486
|
-
//# sourceMappingURL=chunk-
|
|
487
|
-
//# sourceMappingURL=chunk-
|
|
486
|
+
//# sourceMappingURL=chunk-YU5RJQPE.js.map
|
|
487
|
+
//# sourceMappingURL=chunk-YU5RJQPE.js.map
|