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

Function attrFunctionNS

external/.d3.js:4487–4500  ·  view source on GitHub ↗
(fullname, interpolate, value)

Source from the content-addressed store, hash-verified

4485}
4486
4487function attrFunctionNS(fullname, interpolate, value) {
4488 var string00,
4489 string10,
4490 interpolate0;
4491 return function() {
4492 var string0, value1 = value(this), string1;
4493 if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local);
4494 string0 = this.getAttributeNS(fullname.space, fullname.local);
4495 string1 = value1 + "";
4496 return string0 === string1 ? null
4497 : string0 === string00 && string1 === string10 ? interpolate0
4498 : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));
4499 };
4500}
4501
4502function transition_attr(name, value) {
4503 var fullname = namespace(name), i = fullname === "transform" ? interpolateTransformSvg : interpolate$1;

Callers

nothing calls this directly

Calls 1

interpolateFunction · 0.85

Tested by

no test coverage detected