@relu-interactives/spatial-ecs 0.8.0 → 0.10.0
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/{System-8D-XBDKZ.d.cts → System-BldSHxZV.d.cts} +214 -81
- package/dist/{System-DPMAW30g.d.ts → System-CADhPyQs.d.ts} +214 -81
- package/dist/{XRHandPose-G0Dl-F0w.d.ts → XRHandPose-BNSwd1y9.d.ts} +145 -2
- package/dist/{XRHandPose-VQMT1WXj.d.cts → XRHandPose-D3Ab1Dfs.d.cts} +145 -2
- package/dist/{chunk-G4XJ53LS.js → chunk-JEPUCLZX.js} +3 -3
- package/dist/{chunk-G4XJ53LS.js.map → chunk-JEPUCLZX.js.map} +1 -1
- package/dist/{chunk-NNDUOQ7O.js → chunk-JNYPJB55.js} +250 -3
- package/dist/chunk-JNYPJB55.js.map +1 -0
- package/dist/{chunk-SGF73YTF.js → chunk-NXASMBDS.js} +4 -4
- package/dist/{chunk-SGF73YTF.js.map → chunk-NXASMBDS.js.map} +1 -1
- package/dist/{chunk-JIJQFW6P.js → chunk-TY3XCHOR.js} +1390 -485
- package/dist/chunk-TY3XCHOR.js.map +1 -0
- package/dist/{chunk-U727NTWQ.js → chunk-WWP46AEF.js} +26 -4
- package/dist/chunk-WWP46AEF.js.map +1 -0
- package/dist/components/index.cjs +151 -0
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +3 -3
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +1 -1
- package/dist/docs/guide/bone-attachments-and-ik.md +1 -1
- package/dist/docs/guide/multiplayer.md +65 -0
- package/dist/docs/guide/spatial-ui.md +83 -7
- package/dist/factories/index.cjs +151 -0
- package/dist/factories/index.cjs.map +1 -1
- package/dist/factories/index.d.cts +2 -2
- package/dist/factories/index.d.ts +2 -2
- package/dist/factories/index.js +3 -3
- package/dist/{index-C61n65PE.d.ts → index-6pZO_gV7.d.ts} +27 -2
- package/dist/{index-D9DjrUn3.d.cts → index-BXjwEdNq.d.cts} +6 -3
- package/dist/{index-C70N4BYG.d.cts → index-BdghvXKE.d.cts} +27 -2
- package/dist/{index-DppafVu4.d.ts → index-CVG-hREM.d.ts} +6 -3
- package/dist/index.cjs +1800 -626
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -30
- package/dist/index.d.ts +8 -30
- package/dist/index.js +10 -10
- package/dist/network/index.cjs +858 -8
- package/dist/network/index.cjs.map +1 -1
- package/dist/network/index.d.cts +126 -5
- package/dist/network/index.d.ts +126 -5
- package/dist/network/index.js +683 -8
- package/dist/network/index.js.map +1 -1
- package/dist/systems/index.cjs +1702 -528
- package/dist/systems/index.cjs.map +1 -1
- package/dist/systems/index.d.cts +2 -2
- package/dist/systems/index.d.ts +2 -2
- package/dist/systems/index.js +4 -4
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/webgpu/index.d.ts +2 -2
- package/dist/worldSnapshotUtils.d.cts +1 -1
- package/dist/worldSnapshotUtils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-JIJQFW6P.js.map +0 -1
- package/dist/chunk-NNDUOQ7O.js.map +0 -1
- package/dist/chunk-U727NTWQ.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { applyTransform } from './chunk-
|
|
2
|
-
import { ScriptComponent, ParentId, Object3DRef, ScriptObjectComponent, XRRigComponent, VRTeleportAreaComponent, XRInteractableComponent, createAttachPoint, XRHandPoseComponent, createHandPoseEntry, XRAnchorComponent, BoneAttachmentComponent, NetworkIdentityComponent, NetworkTransformComponent, NetworkedPropsComponent, NetworkSpawnerComponent, IKComponent, normalizeIKChain, UIPanelComponent, UITextComponent, UIButtonComponent, UIToggleComponent, UISliderComponent, XRInteractorComponent, XRInteractorSideComponent, InstancedMeshComponent, InstanceSlotComponent, AnimationComponent, Name, TransformComponent, ModelComponent, ImageComponent, SpriteComponent, VideoComponent, AudioComponent, CameraComponent, Environment, Postprocessing, ImageTarget, LightComponent, MaterialComponent, MeshGeometryComponent, Selectable, PhysicsComponent, PrefabNode, PrefabInstance } from './chunk-
|
|
1
|
+
import { applyTransform } from './chunk-JEPUCLZX.js';
|
|
2
|
+
import { ScriptComponent, ParentId, Object3DRef, ScriptObjectComponent, XRRigComponent, VRTeleportAreaComponent, XRInteractableComponent, createAttachPoint, XRHandPoseComponent, createHandPoseEntry, XRAnchorComponent, BoneAttachmentComponent, NetworkIdentityComponent, NetworkTransformComponent, NetworkedPropsComponent, NetworkSpawnerComponent, IKComponent, normalizeIKChain, UIPanelComponent, UITextComponent, UIButtonComponent, UIToggleComponent, UISliderComponent, XRInteractorComponent, XRInteractorSideComponent, InstancedMeshComponent, InstanceSlotComponent, AnimationComponent, Name, TransformComponent, ModelComponent, ImageComponent, SpriteComponent, VideoComponent, AudioComponent, CameraComponent, Environment, Postprocessing, ImageTarget, LightComponent, MaterialComponent, MeshGeometryComponent, Selectable, PhysicsComponent, PrefabNode, PrefabInstance, normalizeUiStyle, normalizeUiTokens } from './chunk-JNYPJB55.js';
|
|
3
3
|
import { __name } from './chunk-XE4OXN2W.js';
|
|
4
4
|
import * as THREE from 'three';
|
|
5
5
|
|
|
@@ -361,6 +361,14 @@ function buildComponentValueMaps(snapshot) {
|
|
|
361
361
|
__name(buildComponentValueMaps, "buildComponentValueMaps");
|
|
362
362
|
|
|
363
363
|
// core/hydration/postCreateComponents.ts
|
|
364
|
+
var OPTIONAL_UI_FIELDS = {
|
|
365
|
+
pixelDensity: "number",
|
|
366
|
+
icon: "string",
|
|
367
|
+
iconPosition: "string",
|
|
368
|
+
variant: "string",
|
|
369
|
+
step: "number",
|
|
370
|
+
readOnly: "boolean"
|
|
371
|
+
};
|
|
364
372
|
function remapEntityRefsInScriptData(data, idMap) {
|
|
365
373
|
const result = {};
|
|
366
374
|
for (const [key, value] of Object.entries(data)) {
|
|
@@ -744,6 +752,20 @@ function restorePostCreateComponents(world, objectManagementSystem, targetEntity
|
|
|
744
752
|
const target = component;
|
|
745
753
|
for (const [key, value] of Object.entries(source)) {
|
|
746
754
|
const current = target[key];
|
|
755
|
+
if (key === "style") {
|
|
756
|
+
const style = normalizeUiStyle(value);
|
|
757
|
+
if (style) target.style = style;
|
|
758
|
+
continue;
|
|
759
|
+
}
|
|
760
|
+
if (key === "tokens") {
|
|
761
|
+
const tokens = normalizeUiTokens(value);
|
|
762
|
+
if (tokens) target.tokens = tokens;
|
|
763
|
+
continue;
|
|
764
|
+
}
|
|
765
|
+
if (OPTIONAL_UI_FIELDS[key] === typeof value) {
|
|
766
|
+
target[key] = value;
|
|
767
|
+
continue;
|
|
768
|
+
}
|
|
747
769
|
if ((typeof value === "string" || typeof value === "number" || typeof value === "boolean") && typeof current === typeof value) {
|
|
748
770
|
target[key] = value;
|
|
749
771
|
}
|
|
@@ -2852,5 +2874,5 @@ _Behaviour.__reluBehaviourClass = true;
|
|
|
2852
2874
|
var Behaviour = _Behaviour;
|
|
2853
2875
|
|
|
2854
2876
|
export { ADDED_NODE_MARKER_COMPONENT, Behaviour, HYDRATABLE_ENTITY_KINDS, NODE_KEY_SEPARATOR, OVERRIDE_DIFF_EXCLUDED_COMPONENTS, OVERRIDE_ROOT_EXCLUDED_COMPONENTS, PREFAB_FILE_VERSION, PREFAB_FILE_VERSION_NESTED, buildComponentValueMaps, buildNodeKeyMapsFromSnapshot, buildNodeMapsFromSnapshot, canonicalizeComponentValue, clearPrefabCache, collectDiffPaths, collectEntitySubtree, collectSnapshotSubtreeIds, computeInstanceOverrides, decanonicalizeComponentValue, defaultModuleLoader, despawnPrefab, encodeOverride, findSnapshotRootEntityIds, findTopLevelNestedRegions, groupOverridePaths, hydrateWorldFromSnapshot, hydrateWorldFromSnapshotDetailed, indexSnapshotByEntity, instantiateSubtree, loadPrefab, mergeComponentValue, mergeDataByCurrentDefaults, normalizeScriptData, parseOverride, parsePrefabAsset, prefabFileVersionFor, readScriptPhase, reportBehaviourHookError, reportScriptError, resolveInputData, resolvePrefabAssetUrl, resolveScriptCtor, restoreComponentState, restorePostCreateComponents, serializeDataForStorage, setPrefabAssetUrlResolver, spawnPrefab, toErrorMessage, toErrorStack, withScriptPhase };
|
|
2855
|
-
//# sourceMappingURL=chunk-
|
|
2856
|
-
//# sourceMappingURL=chunk-
|
|
2877
|
+
//# sourceMappingURL=chunk-WWP46AEF.js.map
|
|
2878
|
+
//# sourceMappingURL=chunk-WWP46AEF.js.map
|