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: README.md
+22-31Lines changed: 22 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,22 +94,10 @@ For a complete example see [example/index.js](example/index.js).
94
94
95
95
**Returns:** a new scatterplot instance.
96
96
97
-
**Options:** is an object that accepts the following properties:
97
+
**Options:** is an object that accepts any of the [settable properties](scatterplot.set). Additionally, you can set the following properties:
98
98
99
99
-`regl` a Regl instance to be used for rendering.
100
-
-`background` background color of the scatterplot.
101
-
-`backgroundImage` background image for the scatterplot. This can either be a URL or a [regl texture object](https://github.com/regl-project/regl/blob/gh-pages/API.md#textures). The latter can be created with [`scatterplot.createTextureFromUrl`](#scatterplot.createTextureFromUrl).
102
-
-`canvas` canvas element.
103
-
-`colors` colormap.
104
-
-`pointSize` size of the points.
105
-
-`pointSizeSelected` additional size of the points when being selected. I.e., if set to `0` selected and deselect points have the same size.
106
-
-`pointOutlineWidth` width of the point outline when a point is being selected.
107
-
-`width` width of the canvas element.
108
-
-`height` height of the canvas element.
109
-
-`target` location that the camera should look at.
110
-
-`distance` distance of the camera to the target.
111
-
-`rotation` rotation of the camera around the target.
112
-
-`view` view matrix defining `target`, `distance`, and `rotation`. When given `target`, `distance`, and `rotation` are ignored.
0 commit comments