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

Function dist

src/components/shapes/draw_newshape/helpers.js:215–222  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

213}
214
215function dist(a, b) {
216 var dx = b[1] - a[1];
217 var dy = b[2] - a[2];
218 return Math.sqrt(
219 dx * dx +
220 dy * dy
221 );
222}
223
224exports.pointsOnRectangle = function(cell) {
225 var len = cell.length;

Callers 1

helpers.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…