New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

zoom-image-data

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zoom-image-data - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

12

dist/index.js

@@ -42,3 +42,3 @@ (function (factory) {

update() {
const { inData, inw, zoomw, zoomh, cellW, cellH, outData, outw, outh, invScale, invDx, invDy, splitCell, splitCellSize, } = this;
const { inData, inw, inh, cellW, cellH, outData, outw, outh, invScale, invDx, invDy, splitCell, splitCellSize, } = this;
const splitX = splitCell && (cellW / invScale) > splitCellSize;

@@ -48,5 +48,4 @@ const splitY = splitCell && (cellH / invScale) > splitCellSize;

for (let i = 0; i < outh; i++) {
let zoomr = Math.round(i * invScale + invDy);
const r = ~~(zoomr / cellH);
if (zoomr < 0 || zoomr >= zoomh ||
const r = Math.floor((i * invScale + invDy) / cellH);
if (r < 0 || r >= inh ||
(splitY && lr !== r)) {

@@ -60,6 +59,5 @@ outData.fill(0, i * outw, (i + 1) * outw);

for (let j = 0; j < outw; j++) {
let zoomc = Math.round(j * invScale + invDx);
const c = Math.floor((j * invScale + invDx) / cellW);
let index = i * outw + j;
const c = ~~(zoomc / cellW);
if (zoomc < 0 || zoomc >= zoomw ||
if (c < 0 || c >= inw ||
(splitX && lc !== c)) {

@@ -66,0 +64,0 @@ outData[index] = 0;

{
"name": "zoom-image-data",
"version": "2.0.2",
"version": "2.0.3",
"description": "zoom-image-data",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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