Package Exports
- gl-select-box
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gl-select-box) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gl-select-box
An overlay which draws select boxes for 2d webgl plots
Example
Check back later
Install
npm i gl-select-boxAPI
Constructor
var selectBox = require('gl-select-box')(plot, options)
Creates a select box primitive
plotis agl-plot2dinstanceoptionsis a set of configuration parameters for the select box
The parameters for options are as follows:
selectBoxThe bounding box for the selection regioninnerFillIf set, fill in the inner boxinnerColorColor of the inner boxouterFillIf set, fill region outside boxouterColorColor of outer fillborderWidthBorder of box in pixelsborderColorBorder color
Methods
selectBox.update(options)
Updates select box in place
selectBox.dispose()
Destroys the select box
License
(c) 2015 Mikola Lysenko. MIT License