Comparing version 1.0.1 to 1.0.2
@@ -1,2 +0,2 @@ | ||
// https://github.com/fil/blur v1.0.1 Copyright 2020 Fil | ||
// https://github.com/fil/array-blur v1.0.2 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 v1.0.1 Copyright 2020 Fil | ||
// https://github.com/fil/array-blur v1.0.2 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": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Array & image blurring.", | ||
@@ -11,3 +11,3 @@ "keywords": [ | ||
], | ||
"homepage": "https://github.com/fil/blur", | ||
"homepage": "https://github.com/fil/array-blur", | ||
"license": "BSD-3-Clause", | ||
@@ -23,3 +23,3 @@ "author": { | ||
"type": "git", | ||
"url": "https://github.com/fil/blur.git" | ||
"url": "https://github.com/fil/array-blur.git" | ||
}, | ||
@@ -26,0 +26,0 @@ "files": [ |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
11710
0