Socket
Socket
Sign inDemoInstall

gl-select-box

Package Overview
Dependencies
82
Maintainers
17
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gl-select-box

Draws a user selection over the screen


Version published
Weekly downloads
60K
decreased by-36.04%
Maintainers
17
Install size
4.61 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 05 Apr 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc