simpleheat

WebJar for simpleheat

Лицензия

Лицензия

BSD 2-Clause
Группа

Группа

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

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

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

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

0.4.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

simpleheat
WebJar for simpleheat
Ссылка на сайт

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

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

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

https://github.com/mourner/simpleheat

Скачать simpleheat

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

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

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

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

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

simpleheat

A super-tiny JavaScript library for drawing heatmaps with Canvas. Inspired by heatmap.js, but with focus on simplicity and performance.

Powers Leaflet.heat, a heatmap plugin for Leaflet.

Demo: http://mourner.github.io/simpleheat/demo

simpleheat('canvas').data(data).draw();

Reference

Constructor

// create a simpleheat object given an id or canvas reference
var heat = simpleheat(canvas);

Data

// set data of [[x, y, value], ...] format
heat.data(data);

// set max data value (1 by default)
heat.max(max);

// add a data point
heat.add(point);

// clear data
heat.clear();

Appearance

// set point radius and blur radius (25 and 15 by default)
heat.radius(r, r2);

// set gradient colors as {<stop>: '<color>'}, e.g. {0.4: 'blue', 0.65: 'lime', 1: 'red'}
heat.gradient(grad);

// call in case Canvas size changed
heat.resize();

Rendering

// draw the heatmap with optional minimum point opacity (0.05 by default)
heat.draw(minOpacity);

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

Версия
0.4.0