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

Function update

src/components/shapes/display_outlines.js:47–65  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

45 }
46
47 function update(opts) {
48 var updateObject = {};
49
50 if(dragOptions.isActiveShape !== undefined) {
51 dragOptions.isActiveShape = false; // i.e. to disable shape controllers
52 updateObject = newShapes(outlines, dragOptions);
53 }
54
55 if(dragOptions.isActiveSelection !== undefined) {
56 dragOptions.isActiveSelection = false; // i.e. to disable selection controllers
57 updateObject = newSelections(outlines, dragOptions);
58
59 gd._fullLayout._reselect = true;
60 }
61
62 if(Object.keys(updateObject).length) {
63 Registry.call((opts || {}).redrawing ? 'relayout' : '_guiRelayout', gd, updateObject);
64 }
65 }
66
67 var fullLayout = gd._fullLayout;
68 var zoomLayer = fullLayout._zoomlayer;

Callers 4

redrawFunction · 0.70
endDragVertexControllerFunction · 0.70
removeVertexFunction · 0.70
endDragGroupControllerFunction · 0.70

Calls 1

newShapesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…