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 +1 -1
- package/src/2d/ColormapLegend.svelte +1 -1
- package/src/Utils.js +0 -1
package/package.json
CHANGED
|
@@ -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':
|
|
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
|
|