vis-core 0.15.5 → 0.15.6

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.
@@ -41312,7 +41312,7 @@ function Kl(i) {
41312
41312
  const t = new _t();
41313
41313
  return t.color.setScalar(i), t;
41314
41314
  }
41315
- const sX = "0.15.5", L1 = !1;
41315
+ const sX = "0.15.6", L1 = !1;
41316
41316
  class ya {
41317
41317
  constructor(t, e = {}) {
41318
41318
  A(this, "container");
@@ -44793,17 +44793,19 @@ const rT = Je(zt({}, ds), {
44793
44793
  });
44794
44794
  }
44795
44795
  checkBehindEarth(e, n) {
44796
- const s = new N(0, 0, 0), l = new N(0, 0, 0), a = this.options.radius;
44797
- this.pencil.cameraControls.addEventListener("update", () => {
44798
- const o = e();
44799
- if (!o.length) return;
44796
+ const s = new N(0, 0, 0), l = new N(0, 0, 0), a = this.options.radius, o = () => {
44797
+ const c = e();
44798
+ if (!c.length) return;
44800
44799
  this.pencil.cameraControls.getPosition(l, !1);
44801
- const c = s.clone().sub(l), d = Math.sqrt(
44802
- Math.pow(c.length(), 2) - Math.pow(a, 2)
44803
- ), h = [], r = [];
44804
- o.forEach((u) => {
44805
- u.position.clone().sub(l).length() > d ? h.push(u) : r.push(u);
44806
- }), n(h, r);
44800
+ const d = s.clone().sub(l), h = Math.sqrt(
44801
+ Math.pow(d.length(), 2) - Math.pow(a, 2)
44802
+ ), r = [], u = [];
44803
+ c.forEach((m) => {
44804
+ m.position.clone().sub(l).length() > h ? r.push(m) : u.push(m);
44805
+ }), n(r, u);
44806
+ };
44807
+ o(), this.pencil.cameraControls.addEventListener("update", () => {
44808
+ o();
44807
44809
  });
44808
44810
  }
44809
44811
  };
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.15.5";
1
+ declare const _default: "0.15.6";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.15.5",
3
+ "version": "0.15.6",
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",