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

Function clickVertexController

src/components/shapes/display_outlines.js:202–215  ·  view source on GitHub ↗
(numClicks, evt)

Source from the content-addressed store, hash-verified

200 }
201
202 function clickVertexController(numClicks, evt) {
203 if(numClicks === 2) {
204 indexI = +evt.srcElement.getAttribute('data-i');
205 indexJ = +evt.srcElement.getAttribute('data-j');
206
207 var cell = polygons[indexI];
208 if(
209 !pointsOnRectangle(cell) &&
210 !pointsOnEllipse(cell)
211 ) {
212 removeVertex();
213 }
214 }
215 }
216
217 function addVertexControllers(g) {
218 vertexDragOptions = [];

Callers

nothing calls this directly

Calls 1

removeVertexFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…