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

Function styleConstant

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

Source from the content-addressed store, hash-verified

4765}
4766
4767function styleConstant(name, interpolate, value1) {
4768 var string00,
4769 string1 = value1 + "",
4770 interpolate0;
4771 return function() {
4772 var string0 = styleValue(this, name);
4773 return string0 === string1 ? null
4774 : string0 === string00 ? interpolate0
4775 : interpolate0 = interpolate(string00 = string0, value1);
4776 };
4777}
4778
4779function styleFunction(name, interpolate, value) {
4780 var string00,

Callers 1

transition_styleFunction · 0.85

Calls 2

styleValueFunction · 0.85
interpolateFunction · 0.85

Tested by

no test coverage detected