@miris-inc/core 0.0.7-29419eb → 0.0.7-2a22202

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.
Files changed (2) hide show
  1. package/core.mjs +24 -9
  2. package/package.json +1 -1
package/core.mjs CHANGED
@@ -169,10 +169,16 @@ class LA {
169
169
  #C;
170
170
  #B = !1;
171
171
  #g = {};
172
- addVariantCollection(w) {
172
+ /**
173
+ * @internal
174
+ */
175
+ _addVariantCollection(w) {
173
176
  this.#g[w] || (this.#g[w] = { id: w, children: [] });
174
177
  }
175
- findAndAddToVariantSet(w, o) {
178
+ /**
179
+ * @internal
180
+ */
181
+ _findAndAddToVariantSet(w, o) {
176
182
  const U = (k) => {
177
183
  if (!k) return !1;
178
184
  if (k.id === w)
@@ -194,10 +200,16 @@ class LA {
194
200
  for (const k of Object.values(this.#g))
195
201
  if (U(k)) return;
196
202
  }
197
- addVariant(w, o) {
198
- this.findAndAddToVariantSet(w, o);
203
+ /**
204
+ * @internal
205
+ */
206
+ _addVariant(w, o) {
207
+ this._findAndAddToVariantSet(w, o);
199
208
  }
200
- exportVariantHierarchies() {
209
+ /**
210
+ * @internal
211
+ */
212
+ _exportVariantHierarchies() {
201
213
  return Object.entries(this.#g).map(
202
214
  ([w, o]) => ({
203
215
  hierarchyId: Number(w),
@@ -205,7 +217,10 @@ class LA {
205
217
  })
206
218
  );
207
219
  }
208
- setVariantSelection(w) {
220
+ /**
221
+ * @internal
222
+ */
223
+ _setVariantSelection(w) {
209
224
  this.engine.setVariantSelection(w);
210
225
  }
211
226
  get key() {
@@ -5633,10 +5648,10 @@ class xE {
5633
5648
  const e = new xA({ type: "created", lod: t });
5634
5649
  this.#g.push(e);
5635
5650
  } else if (h == wA.SceneObjectType.VariantSetCollection)
5636
- w.getStreamForDescendentId(K)?.addVariantCollection(K);
5651
+ w.getStreamForDescendentId(K)?._addVariantCollection(K);
5637
5652
  else if (h == wA.SceneObjectType.VariantSet) {
5638
5653
  const S = w.getStreamForDescendentId(K), t = o.getName(K), e = o.getSceneObjectParent(K);
5639
- S?.addVariant(e, {
5654
+ S?._addVariant(e, {
5640
5655
  id: K,
5641
5656
  name: t,
5642
5657
  options: [],
@@ -5644,7 +5659,7 @@ class xE {
5644
5659
  });
5645
5660
  } else if (h == wA.SceneObjectType.VariantSetOption) {
5646
5661
  const S = w.getStreamForDescendentId(K), t = o.getName(K), e = o.getSceneObjectParent(K);
5647
- S?.addVariant(e, {
5662
+ S?._addVariant(e, {
5648
5663
  id: K,
5649
5664
  name: t,
5650
5665
  type: "option"
package/package.json CHANGED
@@ -11,5 +11,5 @@
11
11
  "@types/emscripten": "^1.41.5",
12
12
  "core-js": "^3.47.0"
13
13
  },
14
- "version": "0.0.7-29419eb"
14
+ "version": "0.0.7-2a22202"
15
15
  }