MCPcopy
hub / github.com/plotly/plotly.js / getCBFillAttributes

Function getCBFillAttributes

test/jasmine/tests/colorbar_test.js:518–530  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

516
517 it('creates the same colorbars attributes in newPlot and react', function(done) {
518 function getCBFillAttributes() {
519 var attrs = [];
520 var colorbars = d3Select(gd).selectAll('.colorbar');
521 colorbars.selectAll('.cbfill').each(function() {
522 var attrsForElem = {};
523 for(var i = 0; i < this.attributes.length; i++) {
524 var attr = this.attributes.item(i);
525 attrsForElem[attr.name] = attr.value;
526 }
527 attrs.push(attrsForElem);
528 });
529 return attrs;
530 }
531
532 var mock = require('../../image/mocks/contour_transposed');
533 var z = mock.data[0].z;

Callers 1

colorbar_test.jsFile · 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…