Sha256: 2cdae6a33c0c7db64c926be7414ff5c61289d75a160afdcb1a3e292d0d1e5bed
Contents?: true
Size: 653 Bytes
Versions: 5
Compression:
Stored size: 653 Bytes
Contents
import "linear"; import "scale"; d3.scale.identity = function() { return d3_scale_identity([0, 1]); }; function d3_scale_identity(domain) { function identity(x) { return +x; } identity.invert = identity; identity.domain = identity.range = function(x) { if (!arguments.length) return domain; domain = x.map(identity); return identity; }; identity.ticks = function(m) { return d3_scale_linearTicks(domain, m); }; identity.tickFormat = function(m, format) { return d3_scale_linearTickFormat(domain, m, format); }; identity.copy = function() { return d3_scale_identity(domain); }; return identity; }
Version data entries
5 entries across 5 versions & 3 rubygems