gl-pointcloud2d

WebJar for gl-pointcloud2d

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

gl-pointcloud2d
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

gl-pointcloud2d
WebJar for gl-pointcloud2d
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download gl-pointcloud2d

How to add to project

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

Dependencies

compile (4)

Group / Artifact Type Version
org.webjars.npm : gl-buffer jar [2.1.2,3)
org.webjars.npm : gl-shader jar [4.2.1,5)
org.webjars.npm : glslify jar [7.0.0,8)
org.webjars.npm : typedarray-pool jar [1.1.0,2)

Project Modules

There are no modules declared in this project.

gl-pointcloud2d

WebGL 2D point cloud for lots of points

Example

... to be created

Install

Using npm, you can install this module as follows:

npm i gl-pointcloud2d

API

Constructor

var pointcloud = require('gl-pointcloud2d')(plot, options)

Creates a new 2D point cloud.

  • plot is a reference to a gl-plot2d object
  • options is a JSON object containing the parameters which are passed to the object when it is updated.

options has the following properties:

  • data is a packed 2*n length array of the unrolled xy coordinates of the points (required) - buffering is significantly faster if it's of type Float32Array
  • idToIndex is an optional array of length n where idToIndex[i] = i - buffering is significantly faster if it's supplied and of type Int32Array
  • color is the color of a marker as a length 4 RGBA array (default [1,0,0,1])
  • borderSize is the ratio of the border around each point (default 0)
  • borderColor is the color of the border of each point (default [0,0,0,1])
  • blend determines if gl blending is enabled for a translucency effect on overlaps; enabling it lowers draw speed somewhat (default false)

Returns A new point cloud plot object, which is also registered to plot

Methods

pointcloud.update(options)

Updates the point cloud plot.

  • options is an object with the same properties as in the point cloud plot constructor

pointcloud.dispose()

Destroys the point cloud plot and all associated resources.

License

(c) 2015 Mikola Lysenko. MIT License

Development supported by plot.ly

org.webjars.npm

Versions

Version
1.0.2
1.0.1