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

Function attrConstant

external/.d3.js:4448–4458  ·  view source on GitHub ↗
(name, interpolate, value1)

Source from the content-addressed store, hash-verified

4446}
4447
4448function attrConstant(name, interpolate, value1) {
4449 var string00,
4450 string1 = value1 + "",
4451 interpolate0;
4452 return function() {
4453 var string0 = this.getAttribute(name);
4454 return string0 === string1 ? null
4455 : string0 === string00 ? interpolate0
4456 : interpolate0 = interpolate(string00 = string0, value1);
4457 };
4458}
4459
4460function attrConstantNS(fullname, interpolate, value1) {
4461 var string00,

Callers

nothing calls this directly

Calls 2

interpolateFunction · 0.85
getAttributeMethod · 0.80

Tested by

no test coverage detected