svelte-plots-basic 2.3.0 → 2.3.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/2d/Axes.svelte +15 -13
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.0",
4
+ "version": "2.3.1",
5
5
  "author": "Sergey Kucheryavskiy",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -66,26 +66,26 @@
66
66
 
67
67
  // font size for plot element
68
68
  const LEGEND_FONT_SIZE = {
69
- "small": 10,
70
- "medium": 12,
71
- "large": 14,
72
- "xlarge": 16
69
+ "small": 11,
70
+ "medium": 13,
71
+ "large": 15,
72
+ "xlarge": 17
73
73
  };
74
74
 
75
75
  // font size for legend items in pixels
76
76
  const PLOT_FONT_SIZE = {
77
- "small": 11,
78
- "medium": 13,
79
- "large": 16,
80
- "xlarge": 19
77
+ "small": 12,
78
+ "medium": 14,
79
+ "large": 17,
80
+ "xlarge": 20
81
81
  };
82
82
 
83
83
  // margin between plot series elements and data labels
84
84
  const LABELS_MARGIN = {
85
- 'small': 10,
86
- 'medium': 13,
87
- 'large': 15,
88
- 'xlarge': 17
85
+ 'small': 11,
86
+ 'medium': 14,
87
+ 'large': 16,
88
+ 'xlarge': 18
89
89
  };
90
90
 
91
91
  // line styles for different scales and types
@@ -440,9 +440,11 @@
440
440
  z-index: 10;
441
441
  padding: 0.5em 1em 0.5em 1em;
442
442
  background: #fefefe;
443
- border-top-left-radius: 0.5em;
443
+ border-radius: 0.5em;
444
444
  transition: bottom 0.35s ease;
445
445
  box-shadow: 0 0 1em #00000040;
446
+ margin: 0.5em;
447
+ box-sizing: border-box;
446
448
 
447
449
  display: flex;
448
450
  align-items: center;