Socket
Socket
Sign inDemoInstall

gl-spikes2d

Package Overview
Dependencies
0
Maintainers
27
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gl-spikes2d

Axes spikes for 2d webgl plots


Version published
Weekly downloads
76K
increased by5.61%
Maintainers
27
Install size
5.49 kB
Created
Weekly downloads
 

Readme

Source

gl-spikes2d

Draws axis spikes for 2D plots

Example

Check back later

Install

npm i gl-spikes2d

API

Constructor

var spikes = require('gl-spikes2d')(plot, options)

Creates a new spike overlay for the given 2d plot

  • plot is a gl-plot2d instance
  • options is an object with a set of properties for the spike object

The properties of the options object are as follows:

  • enable Enables rendering of the spikes for each axis
  • width The width of each spike
  • color Color of each spike
  • center Center of spikes

Methods

spikes.update(options)

Updates the spike object in place. Similar behavior to constructor.

spikes.dispose()

Destroys the spikes object

License

(c) 2015 Mikola Lysenko. MIT License

Keywords

FAQs

Last updated on 09 Jan 2019

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