d3-brush

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

pretest

rm -rf build && mkdir build && rollup --banner "$(preamble)" -g d3-dispatch:d3,d3-drag:d3,d3-interpolate:d3,d3-selection:d3,d3-transition:d3 -f umd -n d3 -o build/d3-brush.js -- index.js

test

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

prepublish

npm run test && uglifyjs --preamble "$(preamble)" 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.2.js && cp build/d3-brush.min.js ../d3.github.com/d3-brush.v0.2.min.js && cd ../d3.github.com && git add d3-brush.v0.2.js d3-brush.v0.2.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