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

Function transition_attr

external/.d3.js:4502–4508  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

4500}
4501
4502function transition_attr(name, value) {
4503 var fullname = namespace(name), i = fullname === "transform" ? interpolateTransformSvg : interpolate$1;
4504 return this.attrTween(name, typeof value === "function"
4505 ? (fullname.local ? attrFunctionNS : attrFunction)(fullname, i, tweenValue(this, "attr." + name, value))
4506 : value == null ? (fullname.local ? attrRemoveNS : attrRemove)(fullname)
4507 : (fullname.local ? attrConstantNS : attrConstant)(fullname, i, value));
4508}
4509
4510function attrInterpolate(name, i) {
4511 return function(t) {

Callers

nothing calls this directly

Calls 2

namespaceFunction · 0.85
tweenValueFunction · 0.85

Tested by

no test coverage detected