| 4698 | } |
| 4699 | |
| 4700 | function 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 | |
| 4719 | function transition_selectAll(select) { |
| 4720 | var name = this._name, |