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

Function circle

external/.d3.js:10471–10481  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10469 }
10470
10471 function circle() {
10472 var c = center.apply(this, arguments),
10473 r = radius.apply(this, arguments) * radians,
10474 p = precision.apply(this, arguments) * radians;
10475 ring = [];
10476 rotate = rotateRadians(-c[0] * radians, -c[1] * radians, 0).invert;
10477 circleStream(stream, r, p, 1);
10478 c = {type: "Polygon", coordinates: [ring]};
10479 ring = rotate = null;
10480 return c;
10481 }
10482
10483 circle.center = function(_) {
10484 return arguments.length ? (center = typeof _ === "function" ? _ : constant$3([+_[0], +_[1]]), circle) : center;

Callers

nothing calls this directly

Calls 2

rotateRadiansFunction · 0.85
circleStreamFunction · 0.85

Tested by

no test coverage detected