You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,10 @@
1
+
## 1.12.0
2
+
3
+
- Feat: add support for adjusting the anti-aliasing via `scatterplot.set({ antiAliasing: 1 })`. ([#175](https://github.com/flekschas/regl-scatterplot/issues/175))
4
+
- Feat: add support for aligning points with the pixel grid via `scatterplot.set({ pixelAligned: true })`. ([#175](https://github.com/flekschas/regl-scatterplot/issues/175))
5
+
- Feat: enhance `scatterplot.export()` by allowing to adjust the scale, anti-aliasing, and pixel alignment. Note that when customizing the render setting for export, the function returns a promise that resolves into `ImageData`.
6
+
- Feat: expose `resize()` method of the `renderer`.
7
+
1
8
## 1.11.4
2
9
3
10
- Fix: allow setting the lasso long press indicator parent element
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -707,9 +707,12 @@ Sets the view back to the initially defined view. This will trigger a `view` eve
707
707
708
708
**Arguments:**
709
709
710
-
-`options` is an object for customizing how to export. See [regl.read()](https://github.com/regl-project/regl/blob/master/API.md#reading-pixels) for details.
710
+
-`options` is an object for customizing the render settings during the export:
711
+
-`scale`: is a float number allowning to adjust the exported image size
712
+
-`antiAliasing`: is a float allowing to adjust the anti-aliasing factor
713
+
-`pixelAligned`: is a Boolean allowing to adjust the point alignment with the pixel grid
711
714
712
-
**Returns:** an object with three properties: `pixels`, `width`, and `height`. The `pixels` is a `Uint8ClampedArray`.
715
+
**Returns:** an [`ImageData`](https://developer.mozilla.org/en-US/docs/Web/API/ImageData)object if `option` is `undefined`. Otherwise it returns a Promise resolving to an [`ImageData`](https://developer.mozilla.org/en-US/docs/Web/API/ImageData) object.
0 commit comments