heatmap-ts
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

heatmap-ts

Forked from pa7/heatmap.js for TypeScript.

Tips: plugin register is not yet implemented. If you need it, please mention the problem or push your code through PR.

Install

yarn add heatmap-ts -S
# or
npm i heatmap-ts -S

Use

For more details, see heatmap.js.

import HeatMap from 'heatmap-ts'

const heatMap = new HeatMap({
  container: document.getElementById('view'),
  maxOpacity: .6,
  radius: 50,
  blur: 0.90,
})

heatMap.setData({
  max: 100,
  min: 1,
  data: [
    {
      x: 100,
      y: 100,
      value: 100,
      radius: 20
    },
    {
      x: 200,
      y: 250,
      value: 50,
      radius: 30
    }
  ]
})

Readme

Keywords

Package Sidebar

Install

npm i heatmap-ts

Weekly Downloads

87

Version

0.0.5

License

ISC

Unpacked Size

55.5 kB

Total Files

20

Last publish

Collaborators

  • xuek