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

Function couldHaveActiveShape

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

Source from the content-addressed store, hash-verified

72}
73
74function couldHaveActiveShape(gd) {
75 // for now keep config.editable: true as it was before shape-drawing PR
76 return !gd._context.edits.shapePosition;
77}
78
79function drawOne(gd, index) {
80 // remove the existing shape if there is one.

Callers 4

drawShapeFunction · 0.85
activateShapeFunction · 0.85
deactivateShapeFunction · 0.85
eraseActiveShapeFunction · 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…