flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
18
BACK_BACK/node_modules/d3-selection/src/selection/selectChildren.js
generated
vendored
Executable file
18
BACK_BACK/node_modules/d3-selection/src/selection/selectChildren.js
generated
vendored
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
import {childMatcher} from "../matcher.js";
|
||||
|
||||
var filter = Array.prototype.filter;
|
||||
|
||||
function children() {
|
||||
return Array.from(this.children);
|
||||
}
|
||||
|
||||
function childrenFilter(match) {
|
||||
return function() {
|
||||
return filter.call(this.children, match);
|
||||
};
|
||||
}
|
||||
|
||||
export default function(match) {
|
||||
return this.selectAll(match == null ? children
|
||||
: childrenFilter(typeof match === "function" ? match : childMatcher(match)));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue