1.0.2 • Published 7 years ago
gl-spikes2d v1.0.2
gl-spikes2d
Draws axis spikes for 2D plots
Example
Check back later
Install
npm i gl-spikes2dAPI
Constructor
var spikes = require('gl-spikes2d')(plot, options)
Creates a new spike overlay for the given 2d plot
plotis agl-plot2dinstanceoptionsis an object with a set of properties for the spike object
The properties of the options object are as follows:
enableEnables rendering of the spikes for each axiswidthThe width of each spikecolorColor of each spikecenterCenter 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