svelte-plots-basic 2.2.3 → 2.2.4

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,7 +1,7 @@
1
1
  {
2
2
  "name": "svelte-plots-basic",
3
3
  "description": "Svelte components for creating simple plots",
4
- "version": "2.2.3",
4
+ "version": "2.2.4",
5
5
  "author": "Sergey Kucheryavskiy",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -293,8 +293,8 @@
293
293
  left = xLabel && xLabel !== '' ? m : 0;
294
294
  bottom = yLabel && yLabel !== '' ? m : 0;
295
295
  top = title && title !== '' ? m : 0;
296
- width = pcr.width - left;
297
- height = pcr.height - bottom - top;
296
+ width = pcr.width > left ? pcr.width - left : 0;
297
+ height = pcr.height > (bottom + top) ? pcr.height - bottom - top : 0;
298
298
  }
299
299
  });
300
300