Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/plotly/plotly.js
/ calcRCenter
Function
calcRCenter
src/traces/pie/plot.js:828–830 ·
view source on GitHub ↗
(a, b)
Source
from the content-addressed store, hash-verified
826
}
827
828
function
calcRCenter(a, b) {
829
return
Math.cos(b) - a * b;
830
}
831
832
function
calcRotate(t) {
833
return
(((180 / Math.PI) * t + 720) % 180) - 90;
Callers
2
calcRadTransform
Function · 0.85
calcTanTransform
Function · 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…