svelte-plots-basic 3.1.1 → 3.1.3

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/README.md CHANGED
@@ -15,6 +15,10 @@ These websites and web-applications use `svelte-plots-basic` library:
15
15
 
16
16
  ## News
17
17
 
18
+ ### 3.1.1
19
+
20
+ * Added `markerSize` specification to legend items.
21
+
18
22
  ### 3.1.0
19
23
 
20
24
  * Added possibility to reverse the axis, just swap the limit values.
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": "3.1.1",
4
+ "version": "3.1.3",
5
5
  "author": "Sergey Kucheryavskiy",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -69,18 +69,22 @@
69
69
  }
70
70
 
71
71
  function handleDown(e) {
72
+ e.preventDefault();
72
73
  handleMouse(e, onmousedown)
73
74
  }
74
75
 
75
76
  function handleUp(e) {
77
+ e.preventDefault();
76
78
  handleMouse(e, onmouseup)
77
79
  }
78
80
 
79
81
  function handleMove(e) {
82
+ e.preventDefault();
80
83
  handleMouse(e, onmousemove)
81
84
  }
82
85
 
83
86
  function handleClick(e) {
87
+ e.preventDefault();
84
88
  handleMouse(e, onclick)
85
89
  }
86
90
 
@@ -110,6 +110,7 @@
110
110
  }
111
111
  item.point.faceColor = item.point.faceColor ? item.point.faceColor : 'transparent';
112
112
  item.point.lineWidth = item.point.lineWidth ? item.point.lineWidth : 1;
113
+ item.point.markerSize = item.point.markerSize ? item.point.markerSize : 1;
113
114
  item.point.lineColor = item.point.lineColor ? item.point.lineColor : Colors.PRIMARY;
114
115
  }
115
116
  }