@equinor/esv-intersection 3.0.8 → 3.0.9

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.mjs CHANGED
@@ -5273,7 +5273,7 @@ async function J0(e, t, n, i = { isLeftToRight: !0 }) {
5273
5273
  }, u = t[0][0] - t[t.length - 1][0], f = Math.abs(Math.floor(u / 5)), p = e.yAxisValues.length, d = 1e3, g = su(n, d), y = new Uint8ClampedArray(f * p * 4);
5274
5274
  let _ = 0;
5275
5275
  const x = (d - 1) / l.difference;
5276
- let v = (i == null ? void 0 : i.isLeftToRight) == null ? t[0][0] : t[t.length - 1][0];
5276
+ let v = i != null && i.isLeftToRight ? t[0][0] : t[t.length - 1][0];
5277
5277
  const A = u / f * (i != null && i.isLeftToRight ? -1 : 1);
5278
5278
  let b, S, T, F, L;
5279
5279
  const O = [0, 0, 0];