gl-select-box
An overlay which draws select boxes for 2d webgl plots
Example
Check back later
Install
npm i gl-select-box
API
Constructor
var selectBox = require('gl-select-box')(plot, options)
Creates a select box primitive
plot
is agl-plot2d
instanceoptions
is a set of configuration parameters for the select box
The 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 color
Methods
selectBox.update(options)
Updates select box in place
selectBox.dispose()
Destroys the select box
License
(c) 2015 Mikola Lysenko. MIT License