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

Function assertPushMargins

test/jasmine/tests/updatemenus_test.js:363–369  ·  view source on GitHub ↗
(specs)

Source from the content-addressed store, hash-verified

361 });
362
363 function assertPushMargins(specs) {
364 specs.forEach(function(val, i) {
365 var push = gd._fullLayout._pushmargin['updatemenu-' + i];
366 if(val) expect(push).toBeDefined(i);
367 else expect(push).toBeUndefined(i);
368 });
369 }
370
371 it('should draw only visible menus', function(done) {
372 var initialUM1 = Lib.extendDeep({}, gd.layout.updatemenus[1]);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…