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

Function zoomMove

src/plots/polar/polar.js:990–1010  ·  view source on GitHub ↗
(dx, dy)

Source from the content-addressed store, hash-verified

988 }
989
990 function zoomMove(dx, dy) {
991 dx = dx * scaleX;
992 dy = dy * scaleY;
993
994 var x1 = x0 + dx;
995 var y1 = y0 + dy;
996
997 var rr0 = xy2r(x0, y0);
998 var rr1 = Math.min(xy2r(x1, y1), radius);
999 var a0 = xy2a(x0, y0);
1000 var path1;
1001 var cpath;
1002
1003 if(clampAndSetR0R1(rr0, rr1)) {
1004 path1 = path0 + _this.pathSector(r1);
1005 if(r0) path1 += _this.pathSector(r0);
1006 // keep 'starting' angle
1007 cpath = pathCorner(r0, a0) + pathCorner(r1, a0);
1008 }
1009 applyZoomMove(path1, cpath);
1010 }
1011
1012 function findPolygonRadius(x, y, va0, va1) {
1013 var xy = helpers.findIntersectionXY(va0, va1, va0, [x - cxx, cyy - y]);

Callers

nothing calls this directly

Calls 5

xy2rFunction · 0.85
xy2aFunction · 0.85
clampAndSetR0R1Function · 0.85
pathCornerFunction · 0.85
applyZoomMoveFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…