Implemented 2D visualization for notes using Vue Flow
This commit is contained in:
22
node_modules/d3-transition/src/transition/select.js
generated
vendored
Normal file
22
node_modules/d3-transition/src/transition/select.js
generated
vendored
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user