vis-core 0.16.4 → 0.16.5

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.
@@ -39564,6 +39564,7 @@ class $K extends yt {
39564
39564
  }
39565
39565
  instantiate() {
39566
39566
  return be(this, null, function* () {
39567
+ this.update();
39567
39568
  const t = yield this.line.instantiate(), i = yield this.drawController.instantiate(this, {
39568
39569
  create: (s) => {
39569
39570
  s.line = t, s.object3d = t.object3d;
@@ -42980,11 +42981,15 @@ class Yl {
42980
42981
  return Hn(this, arguments, function* (t, {
42981
42982
  create: i
42982
42983
  } = {}) {
42983
- const { objectType: s, objectOptions: l } = t, [, a] = s.split("#"), o = yield this.draw(a, bf(Ei({}, l || {}), {
42984
+ var s;
42985
+ const { objectType: l, objectOptions: a } = t, [, o] = l.split("#"), c = yield this.draw(o, bf(Ei({}, a || {}), {
42984
42986
  create: i,
42985
42987
  prefab: !1
42986
42988
  }));
42987
- return o.setMaterialList("instantiate", "clone"), o.useMaterial("instantiate"), o;
42989
+ return c.position.set(0, 0, 0), c.rotation.set(0, 0, 0), c.setMaterialList("instantiate", "clone"), c.useMaterial("instantiate"), (s = c.object3d) != null && s.userData.bloom && this.pencil.composerController.toggleBloomSelection(
42990
+ c.object3d,
42991
+ !0
42992
+ ), c;
42988
42993
  });
42989
42994
  }
42990
42995
  initGroup() {
@@ -43594,7 +43599,7 @@ function oa(n) {
43594
43599
  const e = new _e();
43595
43600
  return e.color.setScalar(n), e;
43596
43601
  }
43597
- const Gf = "0.16.4", rp = !1;
43602
+ const Gf = "0.16.5", rp = !1;
43598
43603
  class qa {
43599
43604
  constructor(e, t = {}) {
43600
43605
  A(this, "container");
@@ -48686,8 +48691,8 @@ class Ff extends K0 {
48686
48691
  this.editor.select(i.uuid);
48687
48692
  else
48688
48693
  this.editor.select(null);
48689
- this.obj.object3d.userData = new Proxy(
48690
- { bloom: !1, prefab: !1 },
48694
+ this.obj.objectType !== "BaseObject#Light" && (this.obj.object3d.userData = new Proxy(
48695
+ { bloom: !1, prefab: this.obj.prefab },
48691
48696
  {
48692
48697
  set: (a, o, c) => {
48693
48698
  if (o === "bloom")
@@ -48697,12 +48702,12 @@ class Ff extends K0 {
48697
48702
  );
48698
48703
  else if (o === "prefab") {
48699
48704
  const d = this.editor.pencil.getPlugin("draw");
48700
- c ? d.prefabGroup.attach(this.obj) : d.group.attach(this.obj);
48705
+ this.obj.prefab = c, c ? d.prefabGroup.attach(this.obj) : d.group.attach(this.obj);
48701
48706
  }
48702
48707
  return Reflect.set(a, o, c);
48703
48708
  }
48704
48709
  }
48705
- );
48710
+ ));
48706
48711
  });
48707
48712
  }
48708
48713
  undo() {
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.16.4";
1
+ declare const _default: "0.16.5";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.16.4",
3
+ "version": "0.16.5",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version &&PUBLIC_EXCLUDE=public/city bundler",
@@ -46,7 +46,7 @@
46
46
  "eslint-config-bundler": "^0.4.2",
47
47
  "esus": "^0.4.27",
48
48
  "fs-extra": "^11.1.1",
49
- "gl-draw": "0.9.14",
49
+ "gl-draw": "0.9.17",
50
50
  "idb-keyval": "^6.2.1",
51
51
  "pinia": "^2.1.7",
52
52
  "prettier-config-bundler": "^0.4.3",