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

array-blur

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-blur - npm Package Compare versions

Comparing version 0.0.1 to 1.0.0

2

dist/array-blur.js

@@ -1,2 +0,2 @@

// https://github.com/fil/blur v0.0.1 Copyright 2020 Fil
// https://github.com/fil/blur v1.0.0 Copyright 2020 Fil
(function (global, factory) {

@@ -3,0 +3,0 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :

@@ -1,2 +0,2 @@

// https://github.com/fil/blur v0.0.1 Copyright 2020 Fil
// https://github.com/fil/blur v1.0.0 Copyright 2020 Fil
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).d3=t.d3||{})}(this,(function(t){"use strict";const e=Math.floor,o=Math.max,n=Math.min;function r(t,e,o,n){if(!e)return;const r=Math.floor(e);if(e===r)for(let r=0;r<3;r++)f(t,e,o,n);else{const i=e-r,l=1-i,d=t[0].slice();for(let e=0;e<3;e++)f(t,r+1,o,n);const s=t[0];if(t[0]=d,r>0)for(let e=0;e<3;e++)f(t,r,o,n);for(let e=0;e<d.length;e++)t[0][e]=t[0][e]*l+s[e]*i}}function f(t,r,f,i){const[l,d]=t,s=e(l.length/f),u=2*r+1,a=1/u,c=i?s:1,h=i?1:f,p=u*c,y=r*c;for(let t=0;t<s;++t){const e=h*t,i=e+c*(f-1);for(let s=0,g=u*l[e];s<f+r;++s){const r=c*s+h*t;g+=l[n(r,i)]-l[o(r-p,e)],d[o(r-y,e)]=g*a}}t.reverse()}t.blur=function(){let t,e,o=5,n=o;function f(f){const i=e||f.length,l=Math.round(f.length/i),d=[t?Float32Array.from(f,t):Float32Array.from(f),new Float32Array(f.length)];return r(d,o,i,!1),r(d,n,l,!0),d[0].width=i,d[0].height=l,d[0]}return f.radius=t=>void 0===t?(o+n)/2:(o=n=+t,f),f.radiusX=t=>void 0===t?o:(o=+t,f),f.radiusY=t=>void 0===t?n:(n=+t,f),f.width=t=>void 0===t?e:(e=Math.round(+t),f),f.value=e=>"function"==typeof e?(t=e,f):t,f},Object.defineProperty(t,"__esModule",{value:!0})}));
{
"name": "array-blur",
"version": "0.0.1",
"version": "1.0.0",
"description": "Array & image blurring.",

@@ -5,0 +5,0 @@ "keywords": [

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