MCPcopy Index your code
hub / github.com/plotly/plotly.js / rx2px

Function rx2px

src/traces/sunburst/plot.js:168–170  ·  view source on GitHub ↗
(r, x)

Source from the content-addressed store, hash-verified

166 };
167 // (radial px value, partition angle ('x')) to px [x,y]
168 var rx2px = function (r, x) {
169 return [r * Math.cos(x), -r * Math.sin(x)];
170 };
171 // slice path generation fn
172 var pathSlice = function (d) {
173 return Lib.pathAnnulus(d.rpx0, d.rpx1, d.x0, d.x1, cx, cy);

Callers 2

plotOneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…