@windborne/grapher 1.0.6 → 1.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windborne/grapher",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Graphing library",
5
5
  "main": "bundle.js",
6
6
  "publishConfig": {},
package/src/grapher.scss CHANGED
@@ -449,9 +449,10 @@
449
449
  left: 0;
450
450
  right: 0;
451
451
 
452
- svg {
452
+ > svg {
453
453
  position: absolute;
454
454
  overflow: visible;
455
+ left: 0;
455
456
  }
456
457
  }
457
458
 
@@ -49,7 +49,7 @@ export default function pathsFrom(dataInRenderSpace, {splitAtY}={}) {
49
49
 
50
50
  if (typeof splitAtY === 'number' && i > 0) {
51
51
  const prevY = yValues[i-1];
52
- const signFlipped = !(nullMask[i-1] & 0b001) && (prevY < splitAtY && y >= splitAtY) || (prevY > splitAtY && y <= splitAtY);
52
+ const signFlipped = !(nullMask[i-1] & 0b001) && (prevY < splitAtY && y >= splitAtY) || (prevY > splitAtY && y <= splitAtY) || (prevY === splitAtY && y !== splitAtY);
53
53
 
54
54
  if (signFlipped) {
55
55
  if (!previouslyDiscontinuous) {