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

Function attrConstantNS

external/.d3.js:4460–4470  ·  view source on GitHub ↗
(fullname, interpolate, value1)

Source from the content-addressed store, hash-verified

4458}
4459
4460function attrConstantNS(fullname, interpolate, value1) {
4461 var string00,
4462 string1 = value1 + "",
4463 interpolate0;
4464 return function() {
4465 var string0 = this.getAttributeNS(fullname.space, fullname.local);
4466 return string0 === string1 ? null
4467 : string0 === string00 ? interpolate0
4468 : interpolate0 = interpolate(string00 = string0, value1);
4469 };
4470}
4471
4472function attrFunction(name, interpolate, value) {
4473 var string00,

Callers

nothing calls this directly

Calls 1

interpolateFunction · 0.85

Tested by

no test coverage detected