MCPcopy Create free account
hub / github.com/idank/explainshell / d3_scale_identity

Function d3_scale_identity

explainshell/web/static/js/d3.v3.js:6799–6819  ·  view source on GitHub ↗
(domain)

Source from the content-addressed store, hash-verified

6797 return d3_scale_identity([ 0, 1 ]);
6798 };
6799 function d3_scale_identity(domain) {
6800 function identity(x) {
6801 return +x;
6802 }
6803 identity.invert = identity;
6804 identity.domain = identity.range = function(x) {
6805 if (!arguments.length) return domain;
6806 domain = x.map(identity);
6807 return identity;
6808 };
6809 identity.ticks = function(m) {
6810 return d3_scale_linearTicks(domain, m);
6811 };
6812 identity.tickFormat = function(m, format) {
6813 return d3_scale_linearTickFormat(domain, m, format);
6814 };
6815 identity.copy = function() {
6816 return d3_scale_identity(domain);
6817 };
6818 return identity;
6819 }
6820 d3.svg.arc = function() {
6821 var innerRadius = d3_svg_arcInnerRadius, outerRadius = d3_svg_arcOuterRadius, startAngle = d3_svg_arcStartAngle, endAngle = d3_svg_arcEndAngle;
6822 function arc() {

Callers 1

d3.v3.jsFile · 0.85

Calls 2

d3_scale_linearTicksFunction · 0.85

Tested by

no test coverage detected