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

Function findUIPattern

src/plot_api/plot_api.js:2367–2376  ·  view source on GitHub ↗
(key, patternSpecs)

Source from the content-addressed store, hash-verified

2365];
2366
2367function findUIPattern(key, patternSpecs) {
2368 for (var i = 0; i < patternSpecs.length; i++) {
2369 var spec = patternSpecs[i];
2370 var match = key.match(spec.pattern);
2371 if (match) {
2372 var head = match[1] || '';
2373 return { head: head, tail: key.slice(head.length + 1), attr: spec.attr };
2374 }
2375 }
2376}
2377
2378// We're finding the new uirevision before supplyDefaults, so do the
2379// inheritance manually. Note that only `undefined` inherits - other

Callers 1

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