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

Function outside

src/plots/geo/zoom.js:121–130  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

119 function position(x) { return projection.invert(x); }
120
121 function outside(x) {
122 var pos = position(x);
123 if(!pos) return true;
124
125 var pt = projection(pos);
126 return (
127 Math.abs(pt[0] - x[0]) > INSIDETOLORANCEPXS ||
128 Math.abs(pt[1] - x[1]) > INSIDETOLORANCEPXS
129 );
130 }
131
132 function handleZoomstart() {
133 d3.select(this).style(zoomstartStyle);

Callers 1

handleZoomFunction · 0.85

Calls 1

positionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…