MCPcopy Create free account
hub / github.com/plotly/plotly.js / makePolygon

Function makePolygon

src/plots/polar/helpers.js:172–176  ·  view source on GitHub ↗
(r, a0, a1, vangles)

Source from the content-addressed store, hash-verified

170}
171
172function makePolygon(r, a0, a1, vangles) {
173 return Lib.isFullCircle([a0, a1]) ?
174 makeRegularPolygon(r, vangles) :
175 makeClippedPolygon(r, a0, a1, vangles);
176}
177
178function findPolygonOffset(r, a0, a1, vangles) {
179 var minX = Infinity;

Callers 4

isPtInsidePolygonFunction · 0.85
findPolygonOffsetFunction · 0.85
pathPolygonFunction · 0.85
pathPolygonAnnulusFunction · 0.85

Calls 2

makeRegularPolygonFunction · 0.85
makeClippedPolygonFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…