react-eyedrop
Advanced tools
Comparing version 5.1.1 to 5.1.2
@@ -5,4 +5,4 @@ "use strict"; | ||
const React = require("react"); | ||
const getCanvasPixelColor = require("get-canvas-pixel-color"); | ||
const html2canvas_1 = require("html2canvas"); | ||
const get_canvas_pixel_color_1 = require("get-canvas-pixel-color"); | ||
const calcAverageColor_1 = require("./calcAverageColor"); | ||
@@ -61,3 +61,3 @@ const extractColors_1 = require("./extractColors"); | ||
imageToCanvas_1.imageToCanvas(target).then((value) => { | ||
const { r, g, b } = get_canvas_pixel_color_1.default(value, offsetX, offsetY); | ||
const { r, g, b } = getCanvasPixelColor(value, offsetX, offsetY); | ||
updateColors({ r, g, b }); | ||
@@ -71,3 +71,3 @@ once && deactivateColorPicking(); | ||
if (pickRadius === undefined || pickRadius === 0) { | ||
const { r, g, b } = get_canvas_pixel_color_1.default(canvasEl, offsetX, offsetY); | ||
const { r, g, b } = getCanvasPixelColor(canvasEl, offsetX, offsetY); | ||
updateColors({ r, g, b }); | ||
@@ -74,0 +74,0 @@ } |
@@ -6,3 +6,3 @@ "use strict"; | ||
const getCanvasPixelColor = require("get-canvas-pixel-color"); | ||
const html2canvas = require("html2canvas"); | ||
const html2canvas_1 = require("html2canvas"); | ||
const imageToCanvas_1 = require("./imageToCanvas"); | ||
@@ -39,6 +39,6 @@ const extractColors_1 = require("./extractColors"); | ||
const { offsetX, offsetY } = e; | ||
html2canvas.default(target, { logging: false }) | ||
html2canvas_1.default(target, { logging: false }) | ||
.then((canvasEl) => { | ||
if (pickRadius === undefined || pickRadius === 0) { | ||
const { r, g, b } = getCanvasPixelColor.default(canvasEl, offsetX, offsetY); | ||
const { r, g, b } = getCanvasPixelColor(canvasEl, offsetX, offsetY); | ||
updateColors({ r, g, b }); | ||
@@ -45,0 +45,0 @@ } |
{ | ||
"name": "react-eyedrop", | ||
"version": "5.1.1", | ||
"version": "5.1.2", | ||
"description": "A reusable ColorPick EyeDropper written in React & TypeScript.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -258,3 +258,3 @@ # React EyeDrop | ||
* 5.1.1 | ||
* 5.1.2 | ||
* Pretty serious bugfix | ||
@@ -261,0 +261,0 @@ * 5.0.4 |
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
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
30384