snap-points-2d

WebJar for snap-points-2d

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

snap-points-2d
Последняя версия

Последняя версия

3.2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

snap-points-2d
WebJar for snap-points-2d
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/gl-vis/snap-points-2d

Скачать snap-points-2d

Как подключить последнюю версию

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : array-bounds jar [1.0.1,2)

Модули Проекта

Данный проект не имеет модулей.

snap-points-2d

Runs iterative snap rounding on a set of 2D coordinates to produce a hierarchical level of detail for optimizing online rendering of huge 2D plots.

Install

npm i snap-points-2d

API

{levels, ids, weights, points} = require('snap-points-2d')(points, bounds?)

Reorders the points hierarchically such that those which are drawn at the same pixel coordinate are grouped together.

Inputs
  • points is an input array of 2*n coordinate values. It is kept untouched.
  • bounds is an optional array of 4 bounding box values of the points.
Outputs
  • points is an output float64 array with reordered an normalized to bounds point values.
  • ids is an output uint32 array which gets the reordered index of the points.
  • weights is an output uint32 array of point weights (number of points at the same pixel), which can be used for transparent rendering.
  • levels is an array of LOD scales. Each record is an object with the following properties:
    • pixelSize the pixel size of this level of detail in data units
    • offset the offset of this lod within the output array
    • count the number of items in the lod

License

(c) 2015 Mikola Lysenko. MIT License

org.webjars.npm

Версии библиотеки

Версия
3.2.0