Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/plotly/plotly.js
/ pt
Function
pt
src/lib/angles.js:137–139 ·
view source on GitHub ↗
(r, a)
Source
from the content-addressed store, hash-verified
135
136
// N.B. svg coordinates here, where y increases downward
137
function
pt(r, a) {
138
return
[r * Math.cos(a) + cx, cy - r * Math.sin(a)];
139
}
140
141
var
largeArc = Math.abs(aEnd - aStart) <= PI ? 0 : 1;
142
function
arc(r, a, cw) {
Callers
2
arc
Function · 0.85
_path
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected