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

react-eyedrop

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-eyedrop - npm Package Compare versions

Comparing version 5.1.1 to 5.1.2

6

dist/eyeDropper.js

@@ -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

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