JSPM

gl-select-box

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 26249
  • Score
    100M100P100Q141057F
  • License MIT

Draws a user selection over the screen

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-box

API

Constructor

var selectBox = require('gl-select-box')(plot, options)

Creates a select box primitive

  • plot is a gl-plot2d instance
  • options is a set of configuration parameters for the select box

The parameters for options are as follows:

  • selectBox The bounding box for the selection region
  • innerFill If set, fill in the inner box
  • innerColor Color of the inner box
  • outerFill If set, fill region outside box
  • outerColor Color of outer fill
  • borderWidth Border of box in pixels
  • borderColor Border color

Methods

selectBox.update(options)

Updates select box in place

selectBox.dispose()

Destroys the select box

License

(c) 2015 Mikola Lysenko. MIT License