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

Function transform

src/plots/smith/helpers.js:21–29  ·  view source on GitHub ↗
(subplot, a)

Source from the content-addressed store, hash-verified

19}
20
21function transform(subplot, a) {
22 var x = a[0];
23 var y = a[1];
24
25 return [
26 x * subplot.radius + subplot.cx,
27 -y * subplot.radius + subplot.cy
28 ];
29}
30
31function scale(subplot, r) {
32 return r * subplot.radius;

Callers 2

reactanceArcFunction · 0.85
resistanceArcFunction · 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…