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

Function yCorners

src/plots/cartesian/dragbox.js:1225–1231  ·  view source on GitHub ↗
(box, x0)

Source from the content-addressed store, hash-verified

1223}
1224
1225function yCorners(box, x0) {
1226 return 'M' +
1227 (x0 - MINZOOM - 0.5) + ',' + (box.t - 0.5) +
1228 'v-3h' + (2 * MINZOOM + 1) + 'v3ZM' +
1229 (x0 - MINZOOM - 0.5) + ',' + (box.b + 0.5) +
1230 'v3h' + (2 * MINZOOM + 1) + 'v-3Z';
1231}
1232
1233function xyCorners(box) {
1234 var clen = Math.floor(Math.min(box.b - box.t, box.r - box.l, MINZOOM) / 2);

Callers 1

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