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

Function isCrossing

src/traces/pie/plot.js:796–800  ·  view source on GitHub ↗
(pt, angle)

Source from the content-addressed store, hash-verified

794}
795
796function isCrossing(pt, angle) {
797 var start = pt.startangle;
798 var stop = pt.stopangle;
799 return (start > angle && angle > stop) || (start < angle && angle < stop);
800}
801
802function calcRadTransform(textBB, r, ring, halfAngle, midAngle) {
803 r = Math.max(0, r - 2 * TEXTPAD);

Callers 1

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