svelte-plots-basic 2.1.3 → 2.1.5
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 +1 -4
- package/package.json +1 -1
- package/src/2d/ColormapLegend.svelte +2 -2
- package/src/2d/XAxis.svelte +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The library is under development and breaking changes may occur in the coming ve
|
|
|
6
6
|
|
|
7
7
|
New major release (v. 2.0.0) introduces many breaking changes as the library was completely re-written. If you use previous versions of `svelte-plots-basic` in your projects, and do not want to change anything, stick to the latest 1.x.x version (v. 1.1.4).
|
|
8
8
|
|
|
9
|
-
### 2.1.
|
|
9
|
+
### 2.1.1—2.1.5
|
|
10
10
|
|
|
11
11
|
* Small improvements and bug fixes.
|
|
12
12
|
|
|
@@ -37,9 +37,6 @@ or, to install it with yarn:
|
|
|
37
37
|
yarn add -D svelte-plots-basic
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
## Demo
|
|
41
|
-
|
|
42
|
-
There is on-line demo site with some examples of what you can do with the library: [https://mda.tools/svelteplotsdemo/](https://mda.tools/svelteplotsdemo/). All examples from this demo are available in corresponding GitHub repo: [](). Use code of the examples for inspiration and as a tutorial, although some basic information is also available below.
|
|
43
40
|
|
|
44
41
|
## Quick start (2D plots)
|
|
45
42
|
|
package/package.json
CHANGED
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
<g class="series colormap_legend" style="stroke:0;stroke-width:0px;">
|
|
91
91
|
{#each colmap as col, i}
|
|
92
92
|
<rect x={rx[i]} y={ry} width={rw} height={rh} fill="{col}"/>
|
|
93
|
-
<text x={rx[i]} y={ry} dx={0} dy={rh * 1.25}
|
|
93
|
+
<text x={rx[i]} y={ry} dx={0} dy={rh * 1.25} dominant-baseline="hanging" fill={labelColor} font-size="{fontSize}em" text-anchor="middle">{@html lLabels[i]}</text>
|
|
94
94
|
{/each}
|
|
95
|
-
<text x={rx[n]} y={ry} dx={0} dy={rh * 1.25}
|
|
95
|
+
<text x={rx[n]} y={ry} dx={0} dy={rh * 1.25} dominant-baseline="hanging" fill={labelColor} font-size="{fontSize}em" text-anchor="middle">{@html lLabels[n]}</text>
|
|
96
96
|
</g>
|
|
97
97
|
{/if}
|
|
98
98
|
|