$ cnpm install gl-select-box
An overlay which draws select boxes for 2d webgl plots
Check back later
npm i gl-select-box
var selectBox = require('gl-select-box')(plot, options)Creates a select box primitive
plot is a gl-plot2d instanceoptions is a set of configuration parameters for the select boxThe parameters for options are as follows:
selectBox The bounding box for the selection regioninnerFill If set, fill in the inner boxinnerColor Color of the inner boxouterFill If set, fill region outside boxouterColor Color of outer fillborderWidth Border of box in pixelsborderColor Border colorselectBox.update(options)Updates select box in place
selectBox.dispose()Destroys the select box
(c) 2015 Mikola Lysenko. MIT License
Copyright 2013 - present © cnpmjs.org