MCPcopy Create free account
hub / github.com/breck7/scroll / blur

Function blur

external/.d3.js:103–114  ·  view source on GitHub ↗
(values, r)

Source from the content-addressed store, hash-verified

101var bisect = bisectRight;
102
103function blur(values, r) {
104 if (!((r = +r) >= 0)) throw new RangeError("invalid r");
105 let length = values.length;
106 if (!((length = Math.floor(length)) >= 0)) throw new RangeError("invalid length");
107 if (!length || !r) return values;
108 const blur = blurf(r);
109 const temp = values.slice();
110 blur(values, temp, 0, length, 1);
111 blur(temp, values, 0, length, 1);
112 blur(values, temp, 0, length, 1);
113 return values;
114}
115
116const blur2 = Blur2(blurf);
117

Callers 4

Blur2Function · 0.85
blurhFunction · 0.85
blurvFunction · 0.85
blurfImageFunction · 0.85

Calls 2

blurfFunction · 0.85
sliceMethod · 0.80

Tested by

no test coverage detected