- Only listen on mouse down events within the instance's canvas element (#16)
- Renames
target
,distance
,rotation
, andview
tocameraTarget
,cameraDistance
,cameraRotation
, andcameraView
- Add getter and setter for
cameraTarget
,cameraDistance
,cameraRotation
, andcameraView
- Fix setting initial camera position (#15)
- Improve documentation on how to color points (#14)
- Add background to lasso
- Fix horizontally-flipped background image (#13)
- Rename the
background
property tobackgroundColor
for clarity - Split the
colors
property intopointColor
,pointColorActive
, andpointColorHover
for clarity - Update camera
- Increase floating point precision
- Fix #5
- Add
clear()
to clear the scatter plot - Update the camera on refresh
- Fix issue when drawing new points: do not wrap setting new points with withRaf(). Only wrap the pure draw call!
- Fix a regression from removed scroll library
- Increase floating point precision (#5)
- Fix a rare glitch in the lasso selection where the lasso would be drawn with a far away point
- Smoothify lasso by lowering the min delay and min dist
- Update 2D camera and many dev packages
- Remove the minified ESM build as it's unnecessary
- Fix glitch in the npm release of
v0.7.2
.
- Provide proper ESM instead of pointing to the source code.
- Replaced
hover
event withpointover
andpointout
to be able to know when a point is not hovered anymore.
- Allow changing the lasso smoothness via
set({ lassoMinDelay, lassoMinDist })
wherelassoMinDelay
is the minimum number of milliseconds between mousemove events before the lasso is extended andlassoMinDist
is the minimum number of pixels the mouse has to move.
- Simplify API:
style()
,attr()
,scatterplot.canvas
,scatterplot.regl
, andscatterplot.version
are merged intoget()
andset()
. The function signature is identical tostyle()
andattr()
so all you have to do is rename. - Add recticle. It's not shown by default but can be activated with
set({ showRecticle, recticleColor })
. - Fix a regression that caused interrupted panning
- Fix a bug in categorical color encoding
- Set default aspect ratio to 1. It can be changed via
attr({ aspectRatio })
- Add property to set
lassoColor
viastyle({ lassoColor })
- Expose helper (
createTextureFromUrl
) for creating a texture from an image URL - Expose regl instance via
scatterplot.regl
- Replace
mouse-position
andmouse-pressed
with internal code - Avoid click selections upon mousedown + mousemove + mouseup
- Add tests for all public API endpoints
- Fix several smaller bugs
- Use a combination of linear and log2 scaling for point size
- Add support for background images
- Add API documentation
- Switch to single quotes
- Export version
- Add endpoint for changing the background color
- Allow setting view on initialization
- Remove event listeners on
destroy()
- Rename
camera
event toview
and publish the view matrix - Fix issues with setting colors
- Fix resetting view
- Update third party libraries
- Switch to browser-based tests
- Set more strict linting
- Fix nasty floating point issue when working with large textures (> 100.000 points)
- Make point size dependent on zoom level
- Optimize rendering: up to about 500K points render fine. Usable for up to 1M points.
- Add support for one categories and one value per point for color encoding.
- Add visual outline for selected points for better highlighting.
- Add test setup and some base tests.
- Many bug fixes and under the hood improvements.
- Add fast lasso selection
- Support rotations
- Initial working version. Warning: this version is not optimized yet and only works fluidly for up to 50.000 points.