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

Function _transFn

src/traces/indicator/plot.js:431–436  ·  view source on GitHub ↗
(rad)

Source from the content-addressed store, hash-verified

429 return -0.5 * (1 + Math.sin(rad)) * h;
430 };
431 var _transFn = function(rad) {
432 return strTranslate(
433 gaugePosition[0] + radius * Math.cos(rad),
434 gaugePosition[1] - radius * Math.sin(rad)
435 );
436 };
437 transFn = function(d) {
438 return _transFn(t2g(d));
439 };

Callers 2

drawAngularGaugeFunction · 0.70
transFn2Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…