@ianicdev/datatables2 0.5.2 → 0.6.1

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.
@@ -1,5 +1,5 @@
1
1
  import { c as Da, g as il } from "./printjs-DloSJk7-.js";
2
- import { _ as Va } from "./jspdf-DmPHr6in.js";
2
+ import { _ as Va } from "./jspdf-BkCd8wn_.js";
3
3
  var fn = {}, cn = {}, cr, vn;
4
4
  function Q() {
5
5
  if (vn) return cr;
@@ -2844,7 +2844,7 @@ function ku(n, e, r, t) {
2844
2844
  var i = 1e-6, a = e - n, s = r - e, o = 3 * a + 3 * (t - r) - 6 * s, u = 6 * (s - a), l = 3 * a;
2845
2845
  return Math.abs(o) < i ? [-l / u] : function(h, c, v) {
2846
2846
  var f = h * h / 4 - c;
2847
- if (f < -1e-6) return [];
2847
+ if (f < -v) return [];
2848
2848
  if (f <= v) return [-h / 2];
2849
2849
  var g = Math.sqrt(f);
2850
2850
  return [-h / 2 - g, -h / 2 + g];
@@ -4918,7 +4918,7 @@ class We extends ir {
4918
4918
  applyAnchoring() {
4919
4919
  if (!(this.textChunkStart >= this.leafTexts.length)) {
4920
4920
  var e = this.leafTexts[this.textChunkStart], r = e.getStyle("text-anchor").getString("start"), t = !1, i = 0;
4921
- r === "start" || r === "end" && t ? i = e.x - this.minX : r === "end" || r === "start" && t ? i = e.x - this.maxX : i = e.x - (this.minX + this.maxX) / 2;
4921
+ r === "start" && !t || r === "end" && t ? i = e.x - this.minX : r === "end" && !t || r === "start" && t ? i = e.x - this.maxX : i = e.x - (this.minX + this.maxX) / 2;
4922
4922
  for (var a = this.textChunkStart; a < this.leafTexts.length; a++)
4923
4923
  this.leafTexts[a].x += i;
4924
4924
  this.minX = Number.POSITIVE_INFINITY, this.maxX = Number.NEGATIVE_INFINITY, this.textChunkStart = this.leafTexts.length;