@relu-interactives/spatial-ecs 0.2.7 → 0.2.8
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-CIiWteft.d.cts → System-AV2_87Zr.d.cts} +1 -1
- package/dist/{System-CIiWteft.d.ts → System-AV2_87Zr.d.ts} +1 -1
- package/dist/{Video-Dj4KBqQ1.d.cts → Video-Bn93p6XV.d.cts} +27 -5
- package/dist/{Video-B-qMljTn.d.ts → Video-D6mObK_5.d.ts} +27 -5
- package/dist/{chunk-R5D5PWXV.js → chunk-AZR6SLQN.js} +16 -4
- package/dist/chunk-AZR6SLQN.js.map +1 -0
- package/dist/{chunk-EIC5B3A7.js → chunk-LE6ARNYQ.js} +84 -13
- package/dist/chunk-LE6ARNYQ.js.map +1 -0
- package/dist/{chunk-FDWNCXU3.js → chunk-ODCWJHPS.js} +3 -3
- package/dist/{chunk-FDWNCXU3.js.map → chunk-ODCWJHPS.js.map} +1 -1
- package/dist/{chunk-G2DUXNTQ.js → chunk-PHIEXEKJ.js} +10 -3
- package/dist/chunk-PHIEXEKJ.js.map +1 -0
- package/dist/{chunk-2F6T3BVO.js → chunk-TVBWYIGY.js} +42 -28
- package/dist/chunk-TVBWYIGY.js.map +1 -0
- package/dist/components/index.cjs +13 -1
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +1 -1
- package/dist/factories/index.cjs +92 -9
- package/dist/factories/index.cjs.map +1 -1
- package/dist/factories/index.d.cts +7 -4
- package/dist/factories/index.d.ts +7 -4
- package/dist/factories/index.js +3 -3
- package/dist/{index-Cf-PaKyN.d.ts → index-B4-ABchF.d.cts} +4 -3
- package/dist/{index-B12sx9yF.d.cts → index-BO49V8aS.d.ts} +4 -3
- package/dist/index.cjs +182 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +52 -14
- package/dist/index.js.map +1 -1
- package/dist/systems/index.cjs +39 -30
- 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 +3 -3
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/worldSnapshotUtils.cjs +8 -1
- package/dist/worldSnapshotUtils.cjs.map +1 -1
- package/dist/worldSnapshotUtils.d.cts +1 -1
- package/dist/worldSnapshotUtils.d.ts +1 -1
- package/dist/worldSnapshotUtils.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2F6T3BVO.js.map +0 -1
- package/dist/chunk-EIC5B3A7.js.map +0 -1
- package/dist/chunk-G2DUXNTQ.js.map +0 -1
- package/dist/chunk-R5D5PWXV.js.map +0 -1
|
@@ -1040,7 +1040,7 @@ var _InstancedMeshComponent = class _InstancedMeshComponent extends Component {
|
|
|
1040
1040
|
};
|
|
1041
1041
|
this.castShadow = options?.castShadow ?? false;
|
|
1042
1042
|
this.receiveShadow = options?.receiveShadow ?? false;
|
|
1043
|
-
this.
|
|
1043
|
+
this.instanceEntityIds = options?.instanceEntityIds ?? [];
|
|
1044
1044
|
this.instancedMesh = null;
|
|
1045
1045
|
}
|
|
1046
1046
|
/** Sanitize and return a copy of the current mesh parameters with valid values. */
|
|
@@ -1084,6 +1084,17 @@ var _InstancedMeshComponent = class _InstancedMeshComponent extends Component {
|
|
|
1084
1084
|
__name(_InstancedMeshComponent, "InstancedMeshComponent");
|
|
1085
1085
|
var InstancedMeshComponent = _InstancedMeshComponent;
|
|
1086
1086
|
|
|
1087
|
+
// core/components/InstanceSlotComponent.ts
|
|
1088
|
+
var _InstanceSlotComponent = class _InstanceSlotComponent extends Component {
|
|
1089
|
+
constructor(groupEntityId, slotIndex) {
|
|
1090
|
+
super();
|
|
1091
|
+
this.groupEntityId = groupEntityId;
|
|
1092
|
+
this.slotIndex = slotIndex;
|
|
1093
|
+
}
|
|
1094
|
+
};
|
|
1095
|
+
__name(_InstanceSlotComponent, "InstanceSlotComponent");
|
|
1096
|
+
var InstanceSlotComponent = _InstanceSlotComponent;
|
|
1097
|
+
|
|
1087
1098
|
// core/components/Physics.ts
|
|
1088
1099
|
var DEFAULT_RIGIDBODY_STATE = {
|
|
1089
1100
|
enabled: true,
|
|
@@ -1795,6 +1806,7 @@ exports.Environment = Environment;
|
|
|
1795
1806
|
exports.ImageComponent = ImageComponent;
|
|
1796
1807
|
exports.ImageTarget = ImageTarget;
|
|
1797
1808
|
exports.ImageTargetAnchor = ImageTargetAnchor;
|
|
1809
|
+
exports.InstanceSlotComponent = InstanceSlotComponent;
|
|
1798
1810
|
exports.InstancedMeshComponent = InstancedMeshComponent;
|
|
1799
1811
|
exports.LightComponent = LightComponent;
|
|
1800
1812
|
exports.MaterialComponent = MaterialComponent;
|