|
1 | | -    [](https://zenodo.org/badge/latestdoi/205590760) |
| 1 | +   [](https://zenodo.org/badge/latestdoi/205590760) |
2 | 2 |
|
3 | 3 | ## [Live demo 🚀](https://danchitnis.github.io/webgl-plot-examples/vanilla/) |
4 | 4 |
|
@@ -27,6 +27,10 @@ multi-line high-performance 2D plotting library using native WebGL. The advantag |
27 | 27 |
|
28 | 28 | However notice that due to computation of the line data points, the performance of the thick lines is nearly _6 times slower_ than the normal lines. Only use thick lines when you need to see the lines clearly for example when highlighting a specific line. Further information can be found below. For benchmarking, see the [benchmark](https://github.com/danchitnis/webgl-plot#benchmark) section. |
29 | 29 |
|
| 30 | +## Version `next` coming soon 🎉 |
| 31 | + |
| 32 | +The next version is currently under development. More computation is moved to the GPU, significantly improving performance. These improvements specifically benefit the rolling plot and the scatter plot. However, these changes require a rewrite of the main library and migration to `webgl2`. The current version will remain as no maintenance is needed since it is based on pure javascript. See an example [here](https://codesandbox.io/s/wbglscatteracc-krsvmy). |
| 33 | + |
30 | 34 | ## Python vesrion now released!! 🥳 |
31 | 35 |
|
32 | 36 | See [pyglplot](https://github.com/danchitnis/pyglplot) for the python equivalent of this library. However, please notice the python version is at its early stages. |
@@ -147,22 +151,14 @@ For ES6 module and direct browser import use: |
147 | 151 | and in your-code.js: |
148 | 152 |
|
149 | 153 | ```javascript |
150 | | -import { |
151 | | - WebglPlot, |
152 | | - WebglLine, |
153 | | - ColorRGBA, |
154 | | -} from "https://cdn.jsdelivr.net/gh/danchitnis/webgl-plot@master/dist/webglplot.esm.min.js"; |
| 154 | +import { WebglPlot, WebglLine, ColorRGBA } from "<http source>"; |
155 | 155 | ``` |
156 | 156 |
|
157 | | -Thanks to [TimDaub](https://github.com/TimDaub) for testing the ES6 module. |
158 | | - |
159 | | -Notice that this method is only recommended for test and small codes. |
160 | | - |
161 | | -## SkyPack |
162 | | - |
163 | | -[Skypack](https://www.skypack.dev/view/webgl-plot) is a new exciting CDN for ESM Javascript. See the example below on how to use it: |
| 157 | +You can use web-based bundlers such as [esm.sh](https://esm.sh/), [unpkng](https://unpkg.com/), [JSdeliver](https://www.jsdelivr.com/?docs=esm) ,and [jspm](https://jspm.org/) to import the library to get the appropriate `http source`. See an example here: |
164 | 158 | [JSfiddle](https://jsfiddle.net/danchitnis/tu1svwbp/) |
165 | 159 |
|
| 160 | +Thanks to [TimDaub](https://github.com/TimDaub) for testing the ES6 module. |
| 161 | + |
166 | 162 | ## Benchmark |
167 | 163 |
|
168 | 164 | [Native Line](https://danchitnis.github.io/webgl-plot/benchmark/bench1.html) and |
|
0 commit comments