Comparing version 1.2.0 to 1.2.1
@@ -1,2 +0,2 @@ | ||
// https://github.com/fil/array-blur v1.2.0 Copyright 2021 Fil | ||
// https://github.com/fil/array-blur v1.2.1 Copyright 2021 Fil | ||
(function (global, factory) { | ||
@@ -3,0 +3,0 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : |
@@ -1,2 +0,2 @@ | ||
// https://github.com/fil/array-blur v1.2.0 Copyright 2021 Fil | ||
// https://github.com/fil/array-blur v1.2.1 Copyright 2021 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,s=t[0].slice();for(let e=0;e<3;e++)f(t,r+1,o,n);const d=t[0];if(t[0]=s,r>0)for(let e=0;e<3;e++)f(t,r,o,n);for(let e=0;e<s.length;e++)t[0][e]=t[0][e]*l+d[e]*i}}function f(t,r,f,i){const[l,s]=t,d=e(l.length/f),u=2*r+1,a=1/u,c=i?d:1,h=i?1:f,g=u*c,y=r*c;for(let t=0;t<d;++t){const e=h*t,i=e+c*(f-1);for(let d=0,p=u*l[e];d<f+r;++d){const r=c*d+h*t;p+=l[n(r,i)]-l[o(r-g,e)],s[o(r-y,e)]=p*a}}t.reverse()}t.blur=function(){let t,e,o=5,n=o;const f=[];function i(i){var l;t||!f[0]||f[0].length!==i.length?(f[0]=t?Float32Array.from(i,t):Float32Array.from(i),f[1]=new Float32Array(f[0].length)):f[0].set("object"!=typeof(l=i)||"length"in l?l:Array.from(l));const s=e||f[0].length,d=Math.round(f[0].length/s);return r(f,o,s,!1),r(f,n,d,!0),f[0].width=s,f[0].height=d,f[0]}return i.radius=t=>void 0===t?(o+n)/2:(o=n=+t,i),i.radiusX=t=>void 0===t?o:(o=+t,i),i.radiusY=t=>void 0===t?n:(n=+t,i),i.width=t=>void 0===t?e:(e=Math.round(+t),i),i.value=e=>"function"==typeof e?(t=e,i):t,i},Object.defineProperty(t,"__esModule",{value:!0})})); |
{ | ||
"name": "array-blur", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Array & image blurring.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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