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

Function endDrag

src/components/shapes/draw.js:478–487  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

476 }
477
478 function endDrag() {
479 if (shouldSkipEdits(gd)) return;
480
481 setCursor(shapePath);
482 removeVisualCues(shapeLayer);
483
484 // Don't rely on clipPath being activated during re-layout
485 setClipPath(shapePath, gd, shapeOptions);
486 Registry.call('_guiRelayout', gd, editHelpers.getUpdateObj());
487 }
488
489 function abortDrag() {
490 if (shouldSkipEdits(gd)) return;

Callers

nothing calls this directly

Calls 3

shouldSkipEditsFunction · 0.85
removeVisualCuesFunction · 0.85
setClipPathFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…