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.
- package/dist/index.js +2 -2
- package/dist/index.module.js +13 -11
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
44798
|
-
|
|
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
|
|
44802
|
-
Math.pow(
|
|
44803
|
-
),
|
|
44804
|
-
|
|
44805
|
-
|
|
44806
|
-
}), n(
|
|
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.
|
|
1
|
+
declare const _default: "0.15.6";
|
|
2
2
|
export default _default;
|