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

Function findAROByColor

test/jasmine/assets/domain_ref_components.js:460–469  ·  view source on GitHub ↗
(color, id, type, colorAttribute)

Source from the content-addressed store, hash-verified

458}
459
460function findAROByColor(color, id, type, colorAttribute) {
461 id = (id === undefined) ? '' : id + ' ';
462 type = (type === undefined) ? 'path' : type;
463 colorAttribute = (colorAttribute === undefined) ? 'stroke' : colorAttribute;
464 var selector = id + type;
465 var ret = d3SelectAll(selector).filter(function() {
466 return this.style[colorAttribute] === color;
467 }).node();
468 return ret;
469}
470
471function findImage(id) {
472 id = (id === undefined) ? '' : id + ' ';

Callers 2

annotationTestFunction · 0.85
checkAROPositionFunction · 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…