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

Function moveGroup

src/components/shapes/display_outlines.js:291–302  ·  view source on GitHub ↗
(dx, dy)

Source from the content-addressed store, hash-verified

289 }
290
291 function moveGroup(dx, dy) {
292 if(!polygons.length) return;
293
294 for(var i = 0; i < polygons.length; i++) {
295 for(var j = 0; j < polygons[i].length; j++) {
296 for(var k = 0; k + 2 < polygons[i][j].length; k += 2) {
297 polygons[i][j][k + 1] = copyPolygons[i][j][k + 1] + dx;
298 polygons[i][j][k + 2] = copyPolygons[i][j][k + 2] + dy;
299 }
300 }
301 }
302 }
303
304 function moveGroupController(dx, dy) {
305 moveGroup(dx, dy);

Callers 1

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