Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
index.html
preview.png
fixture
baseline
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: node_js
os: linux
sudo: required
dist: trusty
addons:
apt:
packages:
- libxi-dev
- mesa-utils
- xvfb
- libgl1-mesa-dri
- libglapi-mesa
- libosmesa6
node_js:
- '10'
before_script:
- export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start
Binary file added baseline/1e6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baseline/mixed-markers-colors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 11 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Scatter2d plot built with regl",
"main": "./index.js",
"scripts": {
"test": "budo test",
"test": "node test",
"test-browser": "budo test",
"build": "browserify test.js -g bubleify | indexhtmlify | metadataify | github-cornerify | mobilify > gh-pages/no-snapping.html"
},
"repository": {
Expand All @@ -17,8 +18,7 @@
],
"browserify": {
"transform": [
"glslify",
"bubleify"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. You no longer convert es6 -> es5?

Copy link
Copy Markdown
Member Author

@dy dy Nov 15, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bubleify does not do async/await bublejs/buble#125, and seems there is no more maintenance.
I wished there was a way for browserify to indicate this transform for main export, but ignore that for running tests.
Probably I should include babelify. Or just simply rewrite the thing in ES5, that is not a lot of hassle. Rollup maybe?

"glslify"
]
},
"author": "Dima Yv <df.creative@gmail.com>",
Expand All @@ -30,12 +30,12 @@
"dependencies": {
"array-range": "^1.0.1",
"array-rearrange": "^2.2.2",
"bubleify": "^1.0.0",
"clamp": "^1.0.1",
"color-id": "^1.1.0",
"color-normalize": "^1.0.3",
"flatten-vertex-data": "^1.0.0",
"glslify": "^6.1.1",
"glslify": "^7.0.0",
"image-palette": "^2.1.0",
"is-iexplorer": "^1.0.0",
"object-assign": "^4.1.1",
"parse-rect": "^1.1.0",
Expand All @@ -46,22 +46,16 @@
},
"devDependencies": {
"array-bounds": "^1.0.1",
"bitmap-sdf": "^1.0.1",
"canvas-fit": "^1.5.0",
"draw-svg-path": "^1.0.0",
"enable-mobile": "^1.0.7",
"fps-indicator": "^1.1.2",
"gauss-random": "^1.0.1",
"gl": "^4.1.1",
"image-equal": "^4.1.2",
"image-output": "^2.2.3",
"image-pixels": "^2.2.0",
"mobilify": "^1.0.1",
"mouse-change": "^1.4.0",
"mouse-wheel": "^1.2.0",
"nanoraf": "^3.0.1",
"next-pow-2": "^1.0.0",
"nice-color-palettes": "^2.0.0",
"normalize-svg-coords": "^1.0.7",
"pan-zoom": "^2.0.0",
"parse-svg-path": "^0.1.2",
"regl": "^1.3.0",
"svg-path-bounds": "^1.0.1"
"seed-random": "^2.2.0",
"tape": "^4.9.1"
}
}
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# regl-scatter2d [![unstable](https://img.shields.io/badge/stability-unstable-green.svg)](http://github.com/badges/stability-badges)
# regl-scatter2d [![unstable](https://img.shields.io/badge/stability-unstable-green.svg)](http://github.com/badges/stability-badges) [![Build Status](https://img.shields.io/travis/gl-vis/regl-scatter2d.svg)](https://travis-ci.org/gl-vis/regl-scatter2d)

Fast and precise 2d scatter plot for lots of points.

![regl-scatter2d](https://github.com/dy/regl-scatter2d/blob/master/preview.png?raw=true)
![regl-scatter2d](https://github.com/gl-vis/regl-scatter2d/blob/master/preview.png?raw=true)

Remake on [gl-scatter2d](https://github.com/gl-vis/gl-scatter2d), covering other scatter-related components.

[Demo](https://dy.github.io/regl-scatter2d).
[Demo](https://gl-vis.github.io/regl-scatter2d).


## Usage
Expand Down Expand Up @@ -105,8 +105,8 @@ Dispose scatter instance and associated resources.

## Related

* [regl-line2d](https://github.com/dy/regl-line2d)
* [regl-error2d](https://github.com/dy/regl-error2d)
* [regl-line2d](https://github.com/gl-vis/regl-line2d)
* [regl-error2d](https://github.com/gl-vis/regl-error2d)

## Similar

Expand Down
Loading