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

Function _verifyPointInCircle

test/jasmine/tests/pie_test.js:326–329  ·  view source on GitHub ↗
(x, y, circleCenter, radius)

Source from the content-addressed store, hash-verified

324 });
325
326 function _verifyPointInCircle(x, y, circleCenter, radius) {
327 var dist = Math.pow(x - circleCenter[0], 2) + Math.pow(y - circleCenter[1], 2);
328 return Math.abs(Math.sqrt(dist) - radius);
329 }
330
331 it('scales multiline title to fit in hole', function(done) {
332 Plotly.newPlot(gd, [{

Callers 1

pie_test.jsFile · 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…