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

Function set

src/plots/geo/zoom.js:50–60  ·  view source on GitHub ↗
(propStr, val)

Source from the content-addressed store, hash-verified

48 var eventData = {};
49
50 function set(propStr, val) {
51 preGUI[id + '.' + propStr] = Lib.nestedProperty(userOpts, propStr).get();
52 Registry.call('_storeDirectGUIEdit', layout, fullLayout._preGUI, preGUI);
53
54 var fullNp = Lib.nestedProperty(fullOpts, propStr);
55 if(fullNp.get() !== val) {
56 fullNp.set(val);
57 Lib.nestedProperty(userOpts, propStr).set(val);
58 eventData[id + '.' + propStr] = val;
59 }
60 }
61
62 cb(set);
63 set('projection.scale', projection.scale() / geo.fitScale);

Callers 3

syncFunction · 0.70
syncCbFunction · 0.70
make_baseline.pyFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected