d3-brush

v0.1.2
Select a one- or two-dimensional region using the mouse or touch.
d3 brush interaction

pretest

rm -rf build && mkdir build && json2module package.json > build/package.js && rollup -g d3-dispatch:d3_dispatch,d3-drag:d3_drag,d3-interpolate:d3_interpolate,d3-selection:d3_selection,d3-transition:d3_transition -f umd -n d3_brush -o build/d3-brush.js -- index.js

test

tape 'test/**/*-test.js' && eslint index.js src

prepublish

npm run test && uglifyjs build/d3-brush.js -c -m -o build/d3-brush.min.js

postpublish

VERSION=`node -e 'console.log(require("./package.json").version)'`; git push && git push --tags && cp build/d3-brush.js ../d3.github.com/d3-brush.v0.1.js && cp build/d3-brush.min.js ../d3.github.com/d3-brush.v0.1.min.js && cd ../d3.github.com && git add d3-brush.v0.1.js d3-brush.v0.1.min.js && git commit -m "d3-brush ${VERSION}" && git push && cd - && zip -j build/d3-brush.zip -- LICENSE README.md build/d3-brush.js build/d3-brush.min.js

Metadata

Downloads

Maintainers