flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
22
VISUALIZACION/node_modules/d3-transition/src/transition/select.js
generated
vendored
Executable file
22
VISUALIZACION/node_modules/d3-transition/src/transition/select.js
generated
vendored
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
import {selector} from "d3-selection";
|
||||
import {Transition} from "./index.js";
|
||||
import schedule, {get} from "./schedule.js";
|
||||
|
||||
export default function(select) {
|
||||
var name = this._name,
|
||||
id = this._id;
|
||||
|
||||
if (typeof select !== "function") select = selector(select);
|
||||
|
||||
for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
|
||||
for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {
|
||||
if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {
|
||||
if ("__data__" in node) subnode.__data__ = node.__data__;
|
||||
subgroup[i] = subnode;
|
||||
schedule(subgroup[i], name, id, i, subgroup, get(node, id));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return new Transition(subgroups, this._parents, name, id);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue