svelte-plots-basic 2.3.0 → 2.3.2
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/Axes.svelte +15 -13
package/package.json
CHANGED
package/src/2d/Axes.svelte
CHANGED
|
@@ -66,26 +66,26 @@
|
|
|
66
66
|
|
|
67
67
|
// font size for plot element
|
|
68
68
|
const LEGEND_FONT_SIZE = {
|
|
69
|
-
"small":
|
|
70
|
-
"medium":
|
|
71
|
-
"large":
|
|
72
|
-
"xlarge":
|
|
69
|
+
"small": 11,
|
|
70
|
+
"medium": 13,
|
|
71
|
+
"large": 16,
|
|
72
|
+
"xlarge": 18
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
// font size for legend items in pixels
|
|
76
76
|
const PLOT_FONT_SIZE = {
|
|
77
|
-
"small":
|
|
78
|
-
"medium":
|
|
79
|
-
"large":
|
|
80
|
-
"xlarge":
|
|
77
|
+
"small": 12,
|
|
78
|
+
"medium": 14,
|
|
79
|
+
"large": 18,
|
|
80
|
+
"xlarge": 21
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
// margin between plot series elements and data labels
|
|
84
84
|
const LABELS_MARGIN = {
|
|
85
|
-
'small':
|
|
86
|
-
'medium':
|
|
87
|
-
'large':
|
|
88
|
-
'xlarge':
|
|
85
|
+
'small': 11,
|
|
86
|
+
'medium': 14,
|
|
87
|
+
'large': 17,
|
|
88
|
+
'xlarge': 19
|
|
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-
|
|
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;
|