gl-spikes2d

WebJar for gl-spikes2d

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

gl-spikes2d
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

gl-spikes2d
WebJar for gl-spikes2d
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/gl-vis/gl-spikes2d

Download gl-spikes2d

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/gl-spikes2d/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>gl-spikes2d</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/gl-spikes2d/
implementation 'org.webjars.npm:gl-spikes2d:1.0.2'
// https://jarcasting.com/artifacts/org.webjars.npm/gl-spikes2d/
implementation ("org.webjars.npm:gl-spikes2d:1.0.2")
'org.webjars.npm:gl-spikes2d:jar:1.0.2'
<dependency org="org.webjars.npm" name="gl-spikes2d" rev="1.0.2">
  <artifact name="gl-spikes2d" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='gl-spikes2d', version='1.0.2')
)
libraryDependencies += "org.webjars.npm" % "gl-spikes2d" % "1.0.2"
[org.webjars.npm/gl-spikes2d "1.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

org.webjars.npm

Versions

Version
1.0.2
1.0.1