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

Function modifyItem

src/plot_api/plot_template.js:285–293  ·  view source on GitHub ↗
(attr, value)

Source from the content-addressed store, hash-verified

283 }
284
285 function modifyItem(attr, value) {
286 if(templateItemName) {
287 // we're making a new object: edit that object
288 Lib.nestedProperty(update[itemStr], attr).set(value);
289 } else {
290 // we're editing an existing object: include *just* the edit
291 update[itemStr + '.' + attr] = value;
292 }
293 }
294
295 function getUpdateObj() {
296 var updateOut = update;

Callers 8

newselections.jsFile · 0.85
moveShapeFunction · 0.85
resizeShapeFunction · 0.85
newShapesFunction · 0.85
drawArrowFunction · 0.85
drawGraphicalElementsFunction · 0.85
drawRawFunction · 0.85
applyUpdateFunction · 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…