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

Function match

src/components/modebar/manage.js:69–79  ·  view source on GitHub ↗
(name, B)

Source from the content-addressed store, hash-verified

67 var context = gd._context;
68
69 function match(name, B) {
70 if(typeof B === 'string') {
71 if(B.toLowerCase() === name.toLowerCase()) return true;
72 } else {
73 var v0 = B.name;
74 var v1 = (B._cat || B.name);
75
76 if(v0 === name || v1 === name.toLowerCase()) return true;
77 }
78 return false;
79 }
80
81 var layoutAdd = fullLayout.modebar.add;
82 if(typeof layoutAdd === 'string') layoutAdd = [layoutAdd];

Callers 1

getButtonGroupsFunction · 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…