MCPcopy Create free account
hub / github.com/breck7/scroll / selection_selectAll

Function selection_selectAll

external/.d3.js:1725–1739  ·  view source on GitHub ↗
(select)

Source from the content-addressed store, hash-verified

1723}
1724
1725function selection_selectAll(select) {
1726 if (typeof select === "function") select = arrayAll(select);
1727 else select = selectorAll(select);
1728
1729 for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {
1730 for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
1731 if (node = group[i]) {
1732 subgroups.push(select.call(node, node.__data__, i, group));
1733 parents.push(node);
1734 }
1735 }
1736 }
1737
1738 return new Selection$1(subgroups, parents);
1739}
1740
1741function matcher(selector) {
1742 return function() {

Callers

nothing calls this directly

Calls 2

arrayAllFunction · 0.85
selectorAllFunction · 0.85

Tested by

no test coverage detected