@lunit/heatmap
Advanced tools
Comparing version 0.2.2 to 0.2.3
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'; |
14
index.js
@@ -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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2327527
11
74754
11
1