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

Function transition_select

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

Source from the content-addressed store, hash-verified

4698}
4699
4700function transition_select(select) {
4701 var name = this._name,
4702 id = this._id;
4703
4704 if (typeof select !== "function") select = selector(select);
4705
4706 for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
4707 for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {
4708 if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {
4709 if ("__data__" in node) subnode.__data__ = node.__data__;
4710 subgroup[i] = subnode;
4711 schedule(subgroup[i], name, id, i, subgroup, get(node, id));
4712 }
4713 }
4714 }
4715
4716 return new Transition(subgroups, this._parents, name, id);
4717}
4718
4719function transition_selectAll(select) {
4720 var name = this._name,

Callers

nothing calls this directly

Calls 3

selectorFunction · 0.85
scheduleFunction · 0.85
getFunction · 0.70

Tested by

no test coverage detected