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

Function deactivateShape

src/components/shapes/draw.js:745–754  ·  view source on GitHub ↗
(gd)

Source from the content-addressed store, hash-verified

743}
744
745function deactivateShape(gd) {
746 if (!couldHaveActiveShape(gd)) return;
747
748 var id = gd._fullLayout._activeShapeIndex;
749 if (id >= 0) {
750 clearOutlineControllers(gd);
751 delete gd._fullLayout._activeShapeIndex;
752 draw(gd);
753 }
754}
755
756function eraseActiveShape(gd) {
757 if (!couldHaveActiveShape(gd)) return;

Callers 1

activateShapeFunction · 0.85

Calls 3

couldHaveActiveShapeFunction · 0.85
clearOutlineControllersFunction · 0.85
drawFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…