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

Function pathCorner

src/plots/polar/polar.js:876–891  ·  view source on GitHub ↗
(r, a)

Source from the content-addressed store, hash-verified

874 }
875
876 function pathCorner(r, a) {
877 if(r === 0) return _this.pathSector(2 * chw);
878
879 var da = chl / r;
880 var am = a - da;
881 var ap = a + da;
882 var rb = Math.max(0, Math.min(r, radius));
883 var rm = rb - chw;
884 var rp = rb + chw;
885
886 return 'M' + ra2xy(rm, am) +
887 'A' + [rm, rm] + ' 0,0,0 ' + ra2xy(rm, ap) +
888 'L' + ra2xy(rp, ap) +
889 'A' + [rp, rp] + ' 0,0,1 ' + ra2xy(rp, am) +
890 'Z';
891 }
892
893 // (x,y) is the pt at middle of the va0 <-> va1 edge
894 //

Callers 1

zoomMoveFunction · 0.85

Calls 1

ra2xyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…