svelte-plots-basic 2.3.4 → 2.3.6

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.3.4",
4
+ "version": "2.3.6",
5
5
  "author": "Sergey Kucheryavskiy",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -35,7 +35,7 @@
35
35
  const TOP_MARGIN = 0.25; // legend top margin is 25% of its height
36
36
 
37
37
  // height of the legend elements in pixels
38
- const EL_HEIGHTS_PX = {'small': 5, 'medium': 10, 'large': 15, 'xlarge': 20};
38
+ const EL_HEIGHTS_PX = {'small': 5, 'medium': 8, 'large': 12, 'xlarge': 15};
39
39
 
40
40
  // check breaks values
41
41
  $: if (!breaks || breaks.length < 2) {
package/src/Utils.js CHANGED
@@ -417,7 +417,6 @@ export function downloadPNG (svg, fileName, width, height, res) {
417
417
  canvas.width = svgWidth * scaleFactor;
418
418
  canvas.height = svgHeight * scaleFactor;
419
419
 
420
- console.log([svgHeight, svgWidth, height, width])
421
420
  svg.setAttribute('width', canvas.width);
422
421
  svg.setAttribute('height', canvas.height);
423
422