MCPcopy Create free account
hub / github.com/plotly/plotly.js / rotate

Function rotate

src/components/drawing/symbol_defs.js:734–744  ·  view source on GitHub ↗
(t, xy)

Source from the content-addressed store, hash-verified

732 lastPathIn = path;
733
734 function rotate(t, xy) {
735 var cosT = cos(t);
736 var sinT = sin(t);
737
738 var x = xy[0];
739 var y = xy[1] + (standoff || 0);
740 return [
741 x * cosT - y * sinT,
742 x * sinT + y * cosT
743 ];
744 }
745
746 var t = angle / 180 * PI;
747

Callers 1

alignFunction · 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…