@holoscript/core 8.0.0 → 8.0.2
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 +2 -2
- package/dist/{GLTFPipeline-M7WSSJED.cjs → GLTFPipeline-76QTLF4Z.cjs} +10 -9
- package/dist/{GLTFPipeline-276GE64O.js → GLTFPipeline-ES5YMBGT.js} +6 -5
- package/dist/HoloScriptRuntime-2DDYOPOR.js +10 -0
- package/dist/{HoloScriptRuntime-SXEAEU2N.cjs → HoloScriptRuntime-ZGRR5EB3.cjs} +5 -5
- package/dist/{chunk-JJBE3TIH.cjs → chunk-2IWC4FP7.cjs} +6 -6
- package/dist/{chunk-S4W6Z2MN.js → chunk-2X7NGX3M.js} +3 -3
- package/dist/{chunk-NGKREZ36.js → chunk-3OYVN53V.js} +505 -5
- package/dist/{chunk-GQT4TYKY.cjs → chunk-3OZACAFQ.cjs} +44 -19
- package/dist/{chunk-T2QCTZMO.js → chunk-4SDKXQ4C.js} +3 -3
- package/dist/{chunk-253GBQZY.cjs → chunk-5H2G27PK.cjs} +35 -35
- package/dist/{chunk-C2A5DUMF.cjs → chunk-5NWINHR5.cjs} +35 -35
- package/dist/{chunk-D54CNIAJ.cjs → chunk-7H33U5SM.cjs} +2 -2
- package/dist/{chunk-CXFDRBQU.cjs → chunk-7M3PNU2M.cjs} +7 -7
- package/dist/{chunk-WJIHFLMJ.js → chunk-ADADVMXY.js} +2 -2
- package/dist/{chunk-NHWSN2SD.cjs → chunk-AVJHHUC5.cjs} +17 -17
- package/dist/{chunk-JCLBKPMX.js → chunk-BOVPWH4H.js} +48 -4
- package/dist/{chunk-ZZEI7MV4.js → chunk-CCATWPXM.js} +3 -3
- package/dist/{chunk-NBMHU6SW.js → chunk-CMT5NMMS.js} +3 -3
- package/dist/{chunk-HINXWAOD.cjs → chunk-CR4FMIWL.cjs} +11 -11
- package/dist/{chunk-IZM5VQZD.js → chunk-D3STJ56J.js} +3 -3
- package/dist/{chunk-EUDQTK7N.cjs → chunk-DAKRKDZV.cjs} +27 -38
- package/dist/{chunk-ZBQXLH2L.js → chunk-DHO2YRIM.js} +3 -3
- package/dist/{chunk-RVBHAXFG.js → chunk-DXWOTOUK.js} +16 -11
- package/dist/{chunk-F43YAA34.js → chunk-E47Z63DF.js} +3 -3
- package/dist/{chunk-62FBK3B7.js → chunk-FFAOS5HQ.js} +4 -4
- package/dist/{chunk-UM6C3CGK.js → chunk-FS7BFHFN.js} +28 -3
- package/dist/{chunk-SJBGLS25.cjs → chunk-FXIO6GHT.cjs} +5 -5
- package/dist/{chunk-XUUVDHIF.cjs → chunk-HKEXJUWS.cjs} +48 -3
- package/dist/{chunk-NXZFOPVD.cjs → chunk-HNDK4IQU.cjs} +16 -16
- package/dist/{chunk-SMIWS6DE.cjs → chunk-IELX2OKI.js} +118 -7
- package/dist/{chunk-KH4CNH66.cjs → chunk-IMGDUSTT.cjs} +4 -4
- package/dist/{chunk-LICPB5HZ.cjs → chunk-IUDGEUDO.cjs} +10 -10
- package/dist/{chunk-73FELZVJ.cjs → chunk-IWC5DM2M.cjs} +11 -11
- package/dist/{chunk-PHVRG4I2.js → chunk-J7XZV333.js} +3 -3
- package/dist/{chunk-K4VVR7CN.cjs → chunk-JBNDTXXV.cjs} +15 -15
- package/dist/{chunk-3NFFOWGG.js → chunk-KFIXE2MB.js} +14 -5
- package/dist/{chunk-B4TFTDG4.js → chunk-LCEXRE5Z.js} +3 -3
- package/dist/{chunk-IVSZDECV.js → chunk-LHAXPADA.js} +3 -3
- package/dist/{chunk-7CUEMLDZ.cjs → chunk-LKBTCABN.cjs} +540 -38
- package/dist/{chunk-AYBXB26F.js → chunk-LOGP3JWH.js} +5 -5
- package/dist/{chunk-KVRSTFNH.cjs → chunk-NCWCUZNS.cjs} +8 -8
- package/dist/{chunk-NV4VMVXU.js → chunk-NNFA2C3Y.js} +3 -3
- package/dist/{chunk-HZSPDCXV.cjs → chunk-O7WLJ53D.cjs} +3 -3
- package/dist/{chunk-MGE5Z4GS.js → chunk-OH2FAIVU.js} +3 -3
- package/dist/{chunk-UMABK6SI.js → chunk-PY37LNDP.js} +3 -3
- package/dist/{chunk-23J755AR.js → chunk-QD32ADK6.js} +3 -3
- package/dist/chunk-QRPRIJ2W.js +1525 -0
- package/dist/{chunk-HZTDET3N.js → chunk-R24NNAEG.js} +3 -3
- package/dist/{chunk-W7VDOASB.cjs → chunk-RMTPN3G4.cjs} +5 -5
- package/dist/{chunk-6DPSFNJB.cjs → chunk-ROHLEP2W.cjs} +16 -16
- package/dist/{chunk-3HYYMEXI.cjs → chunk-SMRVK6BI.cjs} +17 -12
- package/dist/{chunk-25IQCHTO.cjs → chunk-TWUXUCEW.cjs} +35 -35
- package/dist/{chunk-KEFNV2WM.cjs → chunk-U7IUS5HJ.cjs} +13 -13
- package/dist/{chunk-3AO425MZ.cjs → chunk-UFZZ7TSN.cjs} +17 -17
- package/dist/chunk-UPXIY52O.cjs +1562 -0
- package/dist/{chunk-BE4UJCQT.js → chunk-UWJHCOH2.js} +3 -3
- package/dist/{chunk-7HIASF7S.cjs → chunk-XB274MW5.cjs} +10 -10
- package/dist/{chunk-RARB3MBR.js → chunk-YDPEHCCI.cjs} +127 -3
- package/dist/{chunk-KJLB4OPV.js → chunk-YN2YWTXW.js} +3 -3
- package/dist/{chunk-IPWSXCCN.js → chunk-YVD3CSO3.js} +3 -3
- package/dist/{chunk-OR4Q2BGL.cjs → chunk-YWOBW2PV.cjs} +15 -15
- package/dist/{chunk-JX7YL6ZE.js → chunk-ZPYP4RBA.js} +4 -4
- package/dist/compiler/android-xr.cjs +5 -5
- package/dist/compiler/android-xr.js +3 -3
- package/dist/compiler/babylon.cjs +4 -4
- package/dist/compiler/babylon.js +3 -3
- package/dist/compiler/business-quest.cjs +9 -9
- package/dist/compiler/business-quest.js +1 -1
- package/dist/compiler/domain-block-utils.cjs +154 -150
- package/dist/compiler/domain-block-utils.js +2 -2
- package/dist/compiler/gltf-pipeline.cjs +8 -8
- package/dist/compiler/gltf-pipeline.js +1 -1
- package/dist/compiler/godot.cjs +4 -4
- package/dist/compiler/godot.js +3 -3
- package/dist/compiler/index.cjs +129 -581
- package/dist/compiler/index.d.ts +12 -0
- package/dist/compiler/index.js +42 -498
- package/dist/compiler/multi-layer.cjs +5 -5
- package/dist/compiler/multi-layer.js +4 -4
- package/dist/compiler/nodetoy.d.ts +69 -0
- package/dist/compiler/openxr.cjs +4 -4
- package/dist/compiler/openxr.js +3 -3
- package/dist/compiler/playcanvas.cjs +4 -4
- package/dist/compiler/playcanvas.js +3 -3
- package/dist/compiler/r3f.cjs +9 -8
- package/dist/compiler/r3f.js +4 -3
- package/dist/compiler/sdf.cjs +5 -5
- package/dist/compiler/sdf.js +3 -3
- package/dist/compiler/unity.cjs +4 -4
- package/dist/compiler/unity.js +3 -3
- package/dist/compiler/unreal.cjs +5 -5
- package/dist/compiler/unreal.js +3 -3
- package/dist/compiler/urdf.cjs +12 -12
- package/dist/compiler/urdf.js +3 -3
- package/dist/compiler/usd-physics.cjs +5 -5
- package/dist/compiler/usd-physics.js +2 -2
- package/dist/compiler/visionos.cjs +4 -4
- package/dist/compiler/visionos.js +3 -3
- package/dist/compiler/vrchat.cjs +5 -5
- package/dist/compiler/vrchat.js +3 -3
- package/dist/compiler/vrr.cjs +5 -5
- package/dist/compiler/vrr.js +3 -3
- package/dist/compiler/wasm.cjs +8 -8
- package/dist/compiler/wasm.js +3 -3
- package/dist/compiler/webgpu.cjs +4 -4
- package/dist/compiler/webgpu.js +3 -3
- package/dist/debugger.cjs +5 -5
- package/dist/debugger.js +3 -3
- package/dist/dist-ACXG6IH5.cjs +3113 -0
- package/dist/dist-VD4L6V7Q.js +3076 -0
- package/dist/index.cjs +1894 -559
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1448 -113
- package/dist/reconstruction/index.cjs +31 -31
- package/dist/reconstruction/index.js +2 -2
- package/dist/runtime.cjs +150 -293
- package/dist/runtime.js +82 -23
- package/dist/src-4ROC227P.cjs +2094 -0
- package/dist/src-HCCCSYP7.js +2073 -0
- package/dist/traits/botanical-lotus.cjs +162 -10
- package/dist/traits/botanical-lotus.d.ts +330 -0
- package/dist/traits/botanical-lotus.js +4 -1
- package/dist/traits/index.cjs +610 -455
- package/dist/traits/index.js +9 -5
- package/package.json +23 -23
- package/dist/HoloScriptRuntime-3URVTKPJ.js +0 -10
- package/dist/chunk-VECQYRXL.js +0 -474
- package/dist/chunk-WDT3JTGM.cjs +0 -483
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compilePhysicsBlock, physicsToURDF, compileMaterialBlock } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compilePhysicsBlock, physicsToURDF, compileMaterialBlock } from './chunk-BOVPWH4H.js';
|
|
2
2
|
import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
3
3
|
import { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
4
4
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
@@ -1395,5 +1395,5 @@ var init_URDFCompiler = __esm({
|
|
|
1395
1395
|
});
|
|
1396
1396
|
|
|
1397
1397
|
export { URDFCompiler, URDFCompiler_default, URDFCompiler_exports, compileForGazebo, compileForIsaacSim, compileForROS2, compileToURDF, createURDFCompiler, generateControllersYaml, generateROS2LaunchFile, init_URDFCompiler };
|
|
1398
|
-
//# sourceMappingURL=chunk-
|
|
1399
|
-
//# sourceMappingURL=chunk-
|
|
1398
|
+
//# sourceMappingURL=chunk-R24NNAEG.js.map
|
|
1399
|
+
//# sourceMappingURL=chunk-R24NNAEG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFXIO6GHT_cjs = require('./chunk-FXIO6GHT.cjs');
|
|
4
4
|
|
|
5
5
|
// src/reconstruction/FusedAttentionKernel.ts
|
|
6
6
|
var FUSED_ATTENTION_WGSL = `
|
|
@@ -585,9 +585,9 @@ function mobileSensorBundleToFrames(bundle) {
|
|
|
585
585
|
}
|
|
586
586
|
async function replayMobileSensorBundle(bundle, config = {}) {
|
|
587
587
|
const frames = mobileSensorBundleToFrames(bundle);
|
|
588
|
-
const runtime =
|
|
588
|
+
const runtime = chunkFXIO6GHT_cjs.createHoloMapRuntime();
|
|
589
589
|
await runtime.init({
|
|
590
|
-
...
|
|
590
|
+
...chunkFXIO6GHT_cjs.HOLOMAP_DEFAULTS,
|
|
591
591
|
seed: 0,
|
|
592
592
|
modelHash: bundle.bundleId,
|
|
593
593
|
videoHash: bundle.bundleId,
|
|
@@ -635,5 +635,5 @@ exports.mergeAnchoredProvenance = mergeAnchoredProvenance;
|
|
|
635
635
|
exports.mobileSensorBundleToFrames = mobileSensorBundleToFrames;
|
|
636
636
|
exports.replayMobileSensorBundle = replayMobileSensorBundle;
|
|
637
637
|
exports.validateMobileSensorBundle = validateMobileSensorBundle;
|
|
638
|
-
//# sourceMappingURL=chunk-
|
|
639
|
-
//# sourceMappingURL=chunk-
|
|
638
|
+
//# sourceMappingURL=chunk-RMTPN3G4.cjs.map
|
|
639
|
+
//# sourceMappingURL=chunk-RMTPN3G4.cjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var chunk5S7RKFGR_cjs = require('./chunk-5S7RKFGR.cjs');
|
|
4
4
|
var chunkOIQYIIO3_cjs = require('./chunk-OIQYIIO3.cjs');
|
|
5
5
|
var chunkAIA52I7T_cjs = require('./chunk-AIA52I7T.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkHKEXJUWS_cjs = require('./chunk-HKEXJUWS.cjs');
|
|
7
7
|
var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
|
|
8
8
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
9
9
|
var ans = require('@holoscript/core-types/ans');
|
|
@@ -19,7 +19,7 @@ var init_BabylonCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
19
19
|
chunkOIQYIIO3_cjs.init_TraitCompositor();
|
|
20
20
|
chunk5S7RKFGR_cjs.init_ProvenanceSemiring();
|
|
21
21
|
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
22
|
-
|
|
22
|
+
chunkHKEXJUWS_cjs.init_DomainBlockCompilerMixin();
|
|
23
23
|
chunkAIA52I7T_cjs.init_PlatformConditionalCompilerMixin();
|
|
24
24
|
SHAPE_TO_MESH = {
|
|
25
25
|
sphere: "CreateSphere",
|
|
@@ -138,31 +138,31 @@ var init_BabylonCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
138
138
|
this.emit("");
|
|
139
139
|
this.emit("// === v4.2 Domain Blocks ===");
|
|
140
140
|
let blockIdx = 0;
|
|
141
|
-
const compiled =
|
|
141
|
+
const compiled = chunkHKEXJUWS_cjs.compileDomainBlocks(
|
|
142
142
|
domainBlocks,
|
|
143
143
|
{
|
|
144
144
|
material: (block) => {
|
|
145
|
-
const mat =
|
|
146
|
-
return
|
|
145
|
+
const mat = chunkHKEXJUWS_cjs.compileMaterialBlock(block);
|
|
146
|
+
return chunkHKEXJUWS_cjs.materialToBabylon(mat, `db${blockIdx++}`);
|
|
147
147
|
},
|
|
148
148
|
physics: (block) => {
|
|
149
|
-
const phys =
|
|
150
|
-
return
|
|
149
|
+
const phys = chunkHKEXJUWS_cjs.compilePhysicsBlock(block);
|
|
150
|
+
return chunkHKEXJUWS_cjs.physicsToBabylon(phys, `db${blockIdx++}`);
|
|
151
151
|
},
|
|
152
152
|
vfx: (block) => {
|
|
153
|
-
const ps =
|
|
154
|
-
return
|
|
153
|
+
const ps = chunkHKEXJUWS_cjs.compileParticleBlock(block);
|
|
154
|
+
return chunkHKEXJUWS_cjs.particlesToBabylon(ps, `db${blockIdx++}`);
|
|
155
155
|
},
|
|
156
156
|
postfx: (block) => {
|
|
157
|
-
const pp =
|
|
158
|
-
return
|
|
157
|
+
const pp = chunkHKEXJUWS_cjs.compilePostProcessingBlock(block);
|
|
158
|
+
return chunkHKEXJUWS_cjs.postProcessingToBabylon(pp);
|
|
159
159
|
},
|
|
160
160
|
audio: (block) => {
|
|
161
|
-
const audio =
|
|
162
|
-
return
|
|
161
|
+
const audio = chunkHKEXJUWS_cjs.compileAudioSourceBlock(block);
|
|
162
|
+
return chunkHKEXJUWS_cjs.audioSourceToBabylon(audio, `db${blockIdx++}`);
|
|
163
163
|
},
|
|
164
164
|
weather: (block) => {
|
|
165
|
-
const weather =
|
|
165
|
+
const weather = chunkHKEXJUWS_cjs.compileWeatherBlock(block);
|
|
166
166
|
const layers = weather.layers.map((l) => `// Layer: ${l.type} \u2014 ${JSON.stringify(l.properties)}`).join("\n");
|
|
167
167
|
return `// Weather: ${weather.keyword} "${weather.name || ""}" \u2014 implement via Babylon.js particle systems
|
|
168
168
|
${layers}`;
|
|
@@ -843,5 +843,5 @@ ${layers}`;
|
|
|
843
843
|
|
|
844
844
|
exports.BabylonCompiler_exports = BabylonCompiler_exports;
|
|
845
845
|
exports.init_BabylonCompiler = init_BabylonCompiler;
|
|
846
|
-
//# sourceMappingURL=chunk-
|
|
847
|
-
//# sourceMappingURL=chunk-
|
|
846
|
+
//# sourceMappingURL=chunk-ROHLEP2W.cjs.map
|
|
847
|
+
//# sourceMappingURL=chunk-ROHLEP2W.cjs.map
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkGMP623FG_cjs = require('./chunk-GMP623FG.cjs');
|
|
4
4
|
var chunk3FOKASKO_cjs = require('./chunk-3FOKASKO.cjs');
|
|
5
|
-
var chunkWDT3JTGM_cjs = require('./chunk-WDT3JTGM.cjs');
|
|
6
5
|
var chunk4PDEPEQW_cjs = require('./chunk-4PDEPEQW.cjs');
|
|
7
6
|
var chunkXJAN7CZG_cjs = require('./chunk-XJAN7CZG.cjs');
|
|
8
7
|
var chunkXHIV6326_cjs = require('./chunk-XHIV6326.cjs');
|
|
8
|
+
var chunkUPXIY52O_cjs = require('./chunk-UPXIY52O.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');
|
|
@@ -19773,7 +19773,7 @@ function createNetworkedTrait(config) {
|
|
|
19773
19773
|
}
|
|
19774
19774
|
|
|
19775
19775
|
// src/traits/NetworkedTraitHandler.ts
|
|
19776
|
-
var
|
|
19776
|
+
var _syncTierRates = null;
|
|
19777
19777
|
var handlerStates = /* @__PURE__ */ new Map();
|
|
19778
19778
|
function getNodeKey(node) {
|
|
19779
19779
|
return node.id || `__anon_${Math.random().toString(36).slice(2, 8)}`;
|
|
@@ -19812,6 +19812,10 @@ var networkedHandler = {
|
|
|
19812
19812
|
// onAttach
|
|
19813
19813
|
// ===========================================================================
|
|
19814
19814
|
onAttach(node, config, context) {
|
|
19815
|
+
void import('@holoscript/mesh').then((m) => {
|
|
19816
|
+
_syncTierRates ?? (_syncTierRates = m.SYNC_TIER_RATES);
|
|
19817
|
+
}).catch(() => {
|
|
19818
|
+
});
|
|
19815
19819
|
const key = getNodeKey(node);
|
|
19816
19820
|
const trait = new NetworkedTrait({
|
|
19817
19821
|
mode: config.mode,
|
|
@@ -19883,14 +19887,12 @@ var networkedHandler = {
|
|
|
19883
19887
|
// ===========================================================================
|
|
19884
19888
|
// onUpdate — per-frame sync
|
|
19885
19889
|
// ===========================================================================
|
|
19886
|
-
|
|
19890
|
+
onUpdate(node, config, context, delta) {
|
|
19887
19891
|
const key = getNodeKey(node);
|
|
19888
19892
|
const state = handlerStates.get(key);
|
|
19889
19893
|
if (!state || !state.registered) return;
|
|
19890
19894
|
const trait = state.trait;
|
|
19891
|
-
|
|
19892
|
-
const { SYNC_TIER_RATES } = _mesh2;
|
|
19893
|
-
const baseSyncRate = SYNC_TIER_RATES[config.syncTier] ?? config.syncRate;
|
|
19895
|
+
const baseSyncRate = _syncTierRates?.[config.syncTier] ?? config.syncRate;
|
|
19894
19896
|
const effectiveRate = baseSyncRate * state.priorityWeight;
|
|
19895
19897
|
const syncIntervalMs = effectiveRate > 0 ? 1e3 / effectiveRate : Infinity;
|
|
19896
19898
|
if (trait.isLocalOwner()) {
|
|
@@ -38501,7 +38503,7 @@ var characterHandler = {
|
|
|
38501
38503
|
if (typeof instance.onUpdate === "function") instance.onUpdate(node, ctx, dt);
|
|
38502
38504
|
}
|
|
38503
38505
|
};
|
|
38504
|
-
var
|
|
38506
|
+
var _mesh2 = null;
|
|
38505
38507
|
var DEFAULT_TRAIT_CONFIG = {
|
|
38506
38508
|
mechanism: "simple_majority",
|
|
38507
38509
|
timeout: 5e3
|
|
@@ -38524,8 +38526,8 @@ var ConsensusTrait = class extends events.EventEmitter {
|
|
|
38524
38526
|
*/
|
|
38525
38527
|
async start() {
|
|
38526
38528
|
if (this.isStarted) return;
|
|
38527
|
-
|
|
38528
|
-
const { RaftConsensus, ConsensusManager } =
|
|
38529
|
+
_mesh2 ?? (_mesh2 = await import('@holoscript/mesh'));
|
|
38530
|
+
const { RaftConsensus, ConsensusManager } = _mesh2;
|
|
38529
38531
|
const nodeId = this.config.nodeId || this.entityId;
|
|
38530
38532
|
const mechanism = this.config.mechanism || "simple_majority";
|
|
38531
38533
|
if (mechanism === "raft") {
|
|
@@ -54816,6 +54818,9 @@ var gotchaHandler = {
|
|
|
54816
54818
|
}
|
|
54817
54819
|
};
|
|
54818
54820
|
|
|
54821
|
+
// src/traits/VRTraitSystem.ts
|
|
54822
|
+
chunkUPXIY52O_cjs.init_BotanicalLotusTrait();
|
|
54823
|
+
|
|
54819
54824
|
// src/traits/FluidSimulationTrait.ts
|
|
54820
54825
|
var SpatialHash = class {
|
|
54821
54826
|
constructor(cellSize) {
|
|
@@ -55744,7 +55749,7 @@ var VRTraitRegistry = class {
|
|
|
55744
55749
|
for (const handler of vfxParticleHandlers) this.register(handler);
|
|
55745
55750
|
this.register(gpuPhysicsHandler);
|
|
55746
55751
|
this.register(gpuBufferHandler);
|
|
55747
|
-
this.register(
|
|
55752
|
+
this.register(chunkUPXIY52O_cjs.botanicalLotusHandler);
|
|
55748
55753
|
this.register(phyllotaxisHandler);
|
|
55749
55754
|
this.register(bloomReactiveHandler);
|
|
55750
55755
|
this.register(lotusRootHandler);
|
|
@@ -56574,5 +56579,5 @@ exports.windHandler = windHandler;
|
|
|
56574
56579
|
exports.withNegotiation = withNegotiation;
|
|
56575
56580
|
exports.wotThingHandler = wotThingHandler;
|
|
56576
56581
|
exports.zkPrivateHandler = zkPrivateHandler;
|
|
56577
|
-
//# sourceMappingURL=chunk-
|
|
56578
|
-
//# sourceMappingURL=chunk-
|
|
56582
|
+
//# sourceMappingURL=chunk-SMRVK6BI.cjs.map
|
|
56583
|
+
//# sourceMappingURL=chunk-SMRVK6BI.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkAIA52I7T_cjs = require('./chunk-AIA52I7T.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkHKEXJUWS_cjs = require('./chunk-HKEXJUWS.cjs');
|
|
5
5
|
var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
|
|
6
6
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
7
7
|
var ans = require('@holoscript/core-types/ans');
|
|
@@ -15,7 +15,7 @@ exports.UnityCompiler = void 0;
|
|
|
15
15
|
var init_UnityCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
16
16
|
"src/compiler/UnityCompiler.ts"() {
|
|
17
17
|
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
18
|
-
|
|
18
|
+
chunkHKEXJUWS_cjs.init_DomainBlockCompilerMixin();
|
|
19
19
|
chunkAIA52I7T_cjs.init_PlatformConditionalCompilerMixin();
|
|
20
20
|
exports.UnityCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
21
21
|
constructor(options = {}) {
|
|
@@ -219,63 +219,63 @@ var init_UnityCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
219
219
|
this.emit("");
|
|
220
220
|
this.emit("// === v4.2 Domain Blocks ===");
|
|
221
221
|
let blockIdx = 0;
|
|
222
|
-
const compiled =
|
|
222
|
+
const compiled = chunkHKEXJUWS_cjs.compileDomainBlocks(
|
|
223
223
|
domainBlocks,
|
|
224
224
|
{
|
|
225
225
|
material: (block) => {
|
|
226
|
-
const mat =
|
|
226
|
+
const mat = chunkHKEXJUWS_cjs.compileMaterialBlock(block);
|
|
227
227
|
const prefix = `db${blockIdx++}`;
|
|
228
|
-
return
|
|
228
|
+
return chunkHKEXJUWS_cjs.materialToUnity(mat, prefix);
|
|
229
229
|
},
|
|
230
230
|
physics: (block) => {
|
|
231
|
-
const phys =
|
|
231
|
+
const phys = chunkHKEXJUWS_cjs.compilePhysicsBlock(block);
|
|
232
232
|
const prefix = `db${blockIdx++}`;
|
|
233
|
-
return
|
|
233
|
+
return chunkHKEXJUWS_cjs.physicsToUnity(phys, prefix);
|
|
234
234
|
},
|
|
235
235
|
vfx: (block) => {
|
|
236
|
-
const ps =
|
|
236
|
+
const ps = chunkHKEXJUWS_cjs.compileParticleBlock(block);
|
|
237
237
|
const prefix = `db${blockIdx++}`;
|
|
238
|
-
return
|
|
238
|
+
return chunkHKEXJUWS_cjs.particlesToUnity(ps, prefix);
|
|
239
239
|
},
|
|
240
240
|
postfx: (block) => {
|
|
241
|
-
const pp =
|
|
242
|
-
return
|
|
241
|
+
const pp = chunkHKEXJUWS_cjs.compilePostProcessingBlock(block);
|
|
242
|
+
return chunkHKEXJUWS_cjs.postProcessingToUnity(pp);
|
|
243
243
|
},
|
|
244
244
|
audio: (block) => {
|
|
245
|
-
const audio =
|
|
245
|
+
const audio = chunkHKEXJUWS_cjs.compileAudioSourceBlock(block);
|
|
246
246
|
const prefix = `db${blockIdx++}`;
|
|
247
|
-
return
|
|
247
|
+
return chunkHKEXJUWS_cjs.audioSourceToUnity(audio, prefix);
|
|
248
248
|
},
|
|
249
249
|
weather: (block) => {
|
|
250
|
-
const weather =
|
|
251
|
-
return
|
|
250
|
+
const weather = chunkHKEXJUWS_cjs.compileWeatherBlock(block);
|
|
251
|
+
return chunkHKEXJUWS_cjs.weatherToUnity(weather);
|
|
252
252
|
},
|
|
253
253
|
narrative: (block) => {
|
|
254
|
-
const narr =
|
|
255
|
-
return
|
|
254
|
+
const narr = chunkHKEXJUWS_cjs.compileNarrativeBlock(block);
|
|
255
|
+
return chunkHKEXJUWS_cjs.narrativeToUnity(narr);
|
|
256
256
|
},
|
|
257
257
|
payment: (block) => {
|
|
258
|
-
const pay =
|
|
259
|
-
return
|
|
258
|
+
const pay = chunkHKEXJUWS_cjs.compilePaymentBlock(block);
|
|
259
|
+
return chunkHKEXJUWS_cjs.paymentToUnity(pay);
|
|
260
260
|
},
|
|
261
261
|
healthcare: (block) => {
|
|
262
|
-
const h =
|
|
263
|
-
return
|
|
262
|
+
const h = chunkHKEXJUWS_cjs.compileHealthcareBlock(block);
|
|
263
|
+
return chunkHKEXJUWS_cjs.healthcareToUnity(h);
|
|
264
264
|
},
|
|
265
265
|
robotics: (block) => {
|
|
266
|
-
const r =
|
|
267
|
-
return
|
|
266
|
+
const r = chunkHKEXJUWS_cjs.compileRoboticsBlock(block);
|
|
267
|
+
return chunkHKEXJUWS_cjs.roboticsToUnity(r);
|
|
268
268
|
},
|
|
269
|
-
iot: (block) =>
|
|
270
|
-
dataviz: (block) =>
|
|
271
|
-
education: (block) =>
|
|
272
|
-
music: (block) =>
|
|
273
|
-
architecture: (block) =>
|
|
274
|
-
web3: (block) =>
|
|
275
|
-
procedural: (block) =>
|
|
276
|
-
rendering: (block) =>
|
|
277
|
-
navigation: (block) =>
|
|
278
|
-
input: (block) =>
|
|
269
|
+
iot: (block) => chunkHKEXJUWS_cjs.iotToUnity(chunkHKEXJUWS_cjs.compileIoTBlock(block)),
|
|
270
|
+
dataviz: (block) => chunkHKEXJUWS_cjs.datavizToUnity(chunkHKEXJUWS_cjs.compileDataVizBlock(block)),
|
|
271
|
+
education: (block) => chunkHKEXJUWS_cjs.educationToUnity(chunkHKEXJUWS_cjs.compileEducationBlock(block)),
|
|
272
|
+
music: (block) => chunkHKEXJUWS_cjs.musicToUnity(chunkHKEXJUWS_cjs.compileMusicBlock(block)),
|
|
273
|
+
architecture: (block) => chunkHKEXJUWS_cjs.architectureToUnity(chunkHKEXJUWS_cjs.compileArchitectureBlock(block)),
|
|
274
|
+
web3: (block) => chunkHKEXJUWS_cjs.web3ToUnity(chunkHKEXJUWS_cjs.compileWeb3Block(block)),
|
|
275
|
+
procedural: (block) => chunkHKEXJUWS_cjs.proceduralToUnity(chunkHKEXJUWS_cjs.compileProceduralBlock(block)),
|
|
276
|
+
rendering: (block) => chunkHKEXJUWS_cjs.renderingToUnity(chunkHKEXJUWS_cjs.compileRenderingBlock(block)),
|
|
277
|
+
navigation: (block) => chunkHKEXJUWS_cjs.navigationToUnity(chunkHKEXJUWS_cjs.compileNavigationBlock(block)),
|
|
278
|
+
input: (block) => chunkHKEXJUWS_cjs.inputToUnity(chunkHKEXJUWS_cjs.compileInputBlock(block))
|
|
279
279
|
},
|
|
280
280
|
(block) => `// Domain block: ${block.domain}/${block.keyword} "${this.escapeStringValue(block.name, "CSharp")}"`
|
|
281
281
|
);
|
|
@@ -777,5 +777,5 @@ var init_UnityCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
777
777
|
|
|
778
778
|
exports.UnityCompiler_exports = UnityCompiler_exports;
|
|
779
779
|
exports.init_UnityCompiler = init_UnityCompiler;
|
|
780
|
-
//# sourceMappingURL=chunk-
|
|
781
|
-
//# sourceMappingURL=chunk-
|
|
780
|
+
//# sourceMappingURL=chunk-TWUXUCEW.cjs.map
|
|
781
|
+
//# sourceMappingURL=chunk-TWUXUCEW.cjs.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkEXUP2BUM_cjs = require('./chunk-EXUP2BUM.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk3OZACAFQ_cjs = require('./chunk-3OZACAFQ.cjs');
|
|
5
5
|
var chunkOIQYIIO3_cjs = require('./chunk-OIQYIIO3.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkHKEXJUWS_cjs = require('./chunk-HKEXJUWS.cjs');
|
|
7
7
|
var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
|
|
8
8
|
var ans = require('@holoscript/core-types/ans');
|
|
9
9
|
|
|
10
10
|
// src/compiler/GLTFPipeline.ts
|
|
11
11
|
chunkOIQYIIO3_cjs.init_TraitCompositor();
|
|
12
|
-
|
|
12
|
+
chunk3OZACAFQ_cjs.init_R3FCompiler();
|
|
13
13
|
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
14
|
-
|
|
14
|
+
chunkHKEXJUWS_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
|
+
chunk3OZACAFQ_cjs.init_ObjectPool();
|
|
124
|
+
var gltfNodePool = new chunk3OZACAFQ_cjs.ASTNodePool(
|
|
125
125
|
() => ({ name: "" }),
|
|
126
126
|
(node) => {
|
|
127
127
|
node.name = "";
|
|
@@ -1282,12 +1282,12 @@ var GLTFPipeline = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
const domainBlocks = composition.domainBlocks ?? [];
|
|
1284
1284
|
if (domainBlocks.length > 0) {
|
|
1285
|
-
|
|
1285
|
+
chunkHKEXJUWS_cjs.compileDomainBlocks(
|
|
1286
1286
|
domainBlocks,
|
|
1287
1287
|
{
|
|
1288
1288
|
material: (block) => {
|
|
1289
|
-
const mat =
|
|
1290
|
-
const gltfMat =
|
|
1289
|
+
const mat = chunkHKEXJUWS_cjs.compileMaterialBlock(block);
|
|
1290
|
+
const gltfMat = chunkHKEXJUWS_cjs.materialToGLTF(mat);
|
|
1291
1291
|
this.materials.push(gltfMat);
|
|
1292
1292
|
this.stats.materialCount++;
|
|
1293
1293
|
return "";
|
|
@@ -1601,8 +1601,8 @@ var GLTFPipeline = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
|
1601
1601
|
let attenuationColor;
|
|
1602
1602
|
let attenuationDistance;
|
|
1603
1603
|
const namedMat = this.findProp(object, "material");
|
|
1604
|
-
if (typeof namedMat === "string" &&
|
|
1605
|
-
const preset =
|
|
1604
|
+
if (typeof namedMat === "string" && chunk3OZACAFQ_cjs.MATERIAL_PRESETS[namedMat]) {
|
|
1605
|
+
const preset = chunk3OZACAFQ_cjs.MATERIAL_PRESETS[namedMat];
|
|
1606
1606
|
if (preset.color) color = this.parseColorString(preset.color);
|
|
1607
1607
|
if (preset.metalness !== void 0) metallic = preset.metalness;
|
|
1608
1608
|
if (preset.roughness !== void 0) roughness = preset.roughness;
|
|
@@ -2253,5 +2253,5 @@ exports.GLTFPipeline = GLTFPipeline;
|
|
|
2253
2253
|
exports.createGLTFPipeline = createGLTFPipeline;
|
|
2254
2254
|
exports.generateScaleNormalMap = generateScaleNormalMap;
|
|
2255
2255
|
exports.generateScaleTexture = generateScaleTexture;
|
|
2256
|
-
//# sourceMappingURL=chunk-
|
|
2257
|
-
//# sourceMappingURL=chunk-
|
|
2256
|
+
//# sourceMappingURL=chunk-U7IUS5HJ.cjs.map
|
|
2257
|
+
//# sourceMappingURL=chunk-U7IUS5HJ.cjs.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHKEXJUWS_cjs = require('./chunk-HKEXJUWS.cjs');
|
|
4
4
|
var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
|
|
5
5
|
var ans = require('@holoscript/core-types/ans');
|
|
6
6
|
|
|
7
7
|
// src/compiler/USDPhysicsCompiler.ts
|
|
8
8
|
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
9
|
-
|
|
9
|
+
chunkHKEXJUWS_cjs.init_DomainBlockCompilerMixin();
|
|
10
10
|
var USDPhysicsCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
11
11
|
constructor(options = {}) {
|
|
12
12
|
super();
|
|
@@ -260,34 +260,34 @@ var USDPhysicsCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
|
260
260
|
if (domainBlocks.length > 0) {
|
|
261
261
|
this.emitBlank();
|
|
262
262
|
this.emit(`# === v4.2 Domain Blocks ===`);
|
|
263
|
-
const compiled =
|
|
263
|
+
const compiled = chunkHKEXJUWS_cjs.compileDomainBlocks(
|
|
264
264
|
domainBlocks,
|
|
265
265
|
{
|
|
266
266
|
material: (block) => {
|
|
267
|
-
const mat =
|
|
268
|
-
return
|
|
267
|
+
const mat = chunkHKEXJUWS_cjs.compileMaterialBlock(block);
|
|
268
|
+
return chunkHKEXJUWS_cjs.materialToUSD(mat);
|
|
269
269
|
},
|
|
270
270
|
physics: (block) => {
|
|
271
|
-
const phys =
|
|
272
|
-
const urdf =
|
|
271
|
+
const phys = chunkHKEXJUWS_cjs.compilePhysicsBlock(block);
|
|
272
|
+
const urdf = chunkHKEXJUWS_cjs.physicsToURDF(phys);
|
|
273
273
|
return `# Physics: ${phys.keyword} "${phys.name || ""}"
|
|
274
274
|
` + urdf.split("\n").map((l) => `# URDF: ${l}`).join("\n");
|
|
275
275
|
},
|
|
276
276
|
vfx: (block) => {
|
|
277
|
-
const ps =
|
|
278
|
-
return
|
|
277
|
+
const ps = chunkHKEXJUWS_cjs.compileParticleBlock(block);
|
|
278
|
+
return chunkHKEXJUWS_cjs.particlesToUSD(ps);
|
|
279
279
|
},
|
|
280
280
|
postfx: (block) => {
|
|
281
|
-
const pp =
|
|
282
|
-
return
|
|
281
|
+
const pp = chunkHKEXJUWS_cjs.compilePostProcessingBlock(block);
|
|
282
|
+
return chunkHKEXJUWS_cjs.postProcessingToUSD(pp);
|
|
283
283
|
},
|
|
284
284
|
audio: (block) => {
|
|
285
|
-
const audio =
|
|
286
|
-
return
|
|
285
|
+
const audio = chunkHKEXJUWS_cjs.compileAudioSourceBlock(block);
|
|
286
|
+
return chunkHKEXJUWS_cjs.audioSourceToUSD(audio);
|
|
287
287
|
},
|
|
288
288
|
weather: (block) => {
|
|
289
|
-
const weather =
|
|
290
|
-
return
|
|
289
|
+
const weather = chunkHKEXJUWS_cjs.compileWeatherBlock(block);
|
|
290
|
+
return chunkHKEXJUWS_cjs.weatherToUSD(weather);
|
|
291
291
|
}
|
|
292
292
|
},
|
|
293
293
|
(block) => `# Domain block: ${block.domain}/${block.keyword} "${this.escapeStringValue(block.name, "TypeScript")}"`
|
|
@@ -882,5 +882,5 @@ function compileForIsaacSim(composition, options) {
|
|
|
882
882
|
exports.USDPhysicsCompiler = USDPhysicsCompiler;
|
|
883
883
|
exports.compileForIsaacSim = compileForIsaacSim;
|
|
884
884
|
exports.compileToUSDPhysics = compileToUSDPhysics;
|
|
885
|
-
//# sourceMappingURL=chunk-
|
|
886
|
-
//# sourceMappingURL=chunk-
|
|
885
|
+
//# sourceMappingURL=chunk-UFZZ7TSN.cjs.map
|
|
886
|
+
//# sourceMappingURL=chunk-UFZZ7TSN.cjs.map
|