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

Function toRadians

src/plots/polar/set_convert.js:84–86  ·  view source on GitHub ↗
(v, unit)

Source from the content-addressed store, hash-verified

82}
83
84function toRadians(v, unit) {
85 return unit === 'degrees' ? deg2rad(v) : v;
86}
87
88function fromRadians(v, unit) {
89 return unit === 'degrees' ? rad2deg(v) : v;

Callers 1

setConvertAngularFunction · 0.85

Calls 1

deg2radFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…