Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lunit/heatmap

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lunit/heatmap - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

__stories__/posMap.sample.json

10

index.d.ts
export * from './components/HeatmapScaleSVGImage';
export * from './components/useHeatmapScaleImageURI';
export * from './getAlpha';
export * from './getRGBAArray';
export * from './getRGBArray';
export * from './posMapToImageData';
export * from './hooks/useHeatmapScaleImageURI';
export * from './draw/getAlpha';
export * from './draw/getRGBAArray';
export * from './draw/getRGBArray';
export * from './draw/posMapToImageData';

@@ -104,3 +104,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap

// CONCATENATED MODULE: ./src/_packages/@lunit/heatmap/getAlpha.ts
// CONCATENATED MODULE: ./src/_packages/@lunit/heatmap/draw/getAlpha.ts
function getAlpha(_ref) {

@@ -111,3 +111,3 @@ var stop = _ref.stop,

}
// CONCATENATED MODULE: ./src/_packages/@lunit/heatmap/getRGBArray.ts
// CONCATENATED MODULE: ./src/_packages/@lunit/heatmap/draw/getRGBArray.ts
function getRGBArray(value) {

@@ -135,3 +135,3 @@ var r = 1.0;

}
// CONCATENATED MODULE: ./src/_packages/@lunit/heatmap/getRGBAArray.ts
// CONCATENATED MODULE: ./src/_packages/@lunit/heatmap/draw/getRGBAArray.ts
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }

@@ -164,3 +164,3 @@

}
// CONCATENATED MODULE: ./src/_packages/@lunit/heatmap/components/useHeatmapScaleImageURI.ts
// CONCATENATED MODULE: ./src/_packages/@lunit/heatmap/hooks/useHeatmapScaleImageURI.ts

@@ -230,3 +230,3 @@

}
// CONCATENATED MODULE: ./src/_packages/@lunit/heatmap/posMapToImageData.ts
// CONCATENATED MODULE: ./src/_packages/@lunit/heatmap/draw/posMapToImageData.ts
function posMapToImageData_slicedToArray(arr, i) { return posMapToImageData_arrayWithHoles(arr) || posMapToImageData_iterableToArrayLimit(arr, i) || posMapToImageData_nonIterableRest(); }

@@ -245,5 +245,7 @@

function posMapToImageData(ctx, posMap, threshold) {
function posMapToImageData(posMap, threshold) {
var width = posMap[0].length;
var height = posMap.length;
var canvas = document.createElement('canvas');
var ctx = canvas.getContext('2d');
var imageData = ctx.createImageData(width, height); // [r, g, b, a, r, g, b, a, ...]

@@ -250,0 +252,0 @@

{
"name": "@lunit/heatmap",
"version": "0.2.2",
"version": "0.2.3",
"description": "Heatmap Library",

@@ -5,0 +5,0 @@ "author": {

@@ -9,3 +9,3 @@ # Install

- [heatmap.test.ts](https://github.com/lunit-io/opt-tool-frontend/blob/develop/src/_packages/%40lunit/heatmap/heatmap.test.ts)
- [components/HeatmapScaleSVGImage.stories.tsx](https://github.com/lunit-io/opt-tool-frontend/blob/develop/src/_packages/%40lunit/heatmap/components/HeatmapScaleSVGImage.stories.tsx)
- <https://lunit-io.github.io/opt-tool-frontend>
- [heatmap.test.ts](https://github.com/lunit-io/opt-tool-frontend/blob/develop/src/_packages/%40lunit/heatmap/__tests__/heatmap.test.ts)
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc