@hpcc-js/layout 3.6.7 → 3.6.8

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 CHANGED
@@ -14,7 +14,7 @@ var D = Object.create, O = Object.defineProperty, __name = (e, t) => O(e, "name"
14
14
  }, __toESM = (e, t, n) => (n = e == null ? {} : D(j(e)), __copyProps(t || !e || !e.__esModule || !M.call(e, "default") ? O(n, "default", {
15
15
  value: e,
16
16
  enumerable: !0
17
- }) : n, e)), N = "@hpcc-js/layout", te = "3.6.7", ne = "3.31.1", AbsoluteSurface = class extends r {
17
+ }) : n, e)), N = "@hpcc-js/layout", te = "3.6.8", ne = "3.32.0", AbsoluteSurface = class extends r {
18
18
  constructor() {
19
19
  super(), this._tag = "div";
20
20
  }
@@ -809,10 +809,12 @@ Path.prototype = path.prototype = {
809
809
  var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
810
810
  if (i < 0) throw Error("negative radius: " + i);
811
811
  if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
812
- else if (d > I) if (!(Math.abs(u * s - c * l) > I) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
813
- else {
814
- var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((P - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
815
- Math.abs(y - 1) > I && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
812
+ else if (d > I) {
813
+ if (!(Math.abs(u * s - c * l) > I) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
814
+ else {
815
+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((P - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
816
+ Math.abs(y - 1) > I && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
817
+ }
816
818
  }
817
819
  },
818
820
  arc: function(e, t, n, r, i, a) {