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

Function pathPolygon

src/plots/polar/helpers.js:239–242  ·  view source on GitHub ↗

* path polygon * * @param {number} r : polygon 'radius' * @param {number} a0 : first angular coordinate in *radians* * @param {number} a1 : second angular coordinate in *radians* * @param {array} vangles : angles of polygon vertices in *radians* * @param {number (optional)} cx : x coordinate o

(r, a0, a1, vangles, cx, cy)

Source from the content-addressed store, hash-verified

237 *
238 */
239function pathPolygon(r, a0, a1, vangles, cx, cy) {
240 var poly = makePolygon(r, a0, a1, vangles);
241 return 'M' + transformForSVG(poly, cx, cy).join('L');
242}
243
244/**
245 * path a polygon 'annulus'

Callers

nothing calls this directly

Calls 2

makePolygonFunction · 0.85
transformForSVGFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…