Socket
Socket
Sign inDemoInstall

heatmap-ts

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    heatmap-ts

Forked from [pa7/heatmap.js](https://github.com/pa7/heatmap.js) for TypeScript.


Version published
Weekly downloads
104
decreased by-36.59%
Maintainers
1
Install size
54.2 kB
Created
Weekly downloads
 

Readme

Source

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
    }
  ]
})

Keywords

FAQs

Last updated on 14 Jul 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc