flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
13
BACK_BACK/node_modules/d3-selection/src/selection/clone.js
generated
vendored
Executable file
13
BACK_BACK/node_modules/d3-selection/src/selection/clone.js
generated
vendored
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
function selection_cloneShallow() {
|
||||
var clone = this.cloneNode(false), parent = this.parentNode;
|
||||
return parent ? parent.insertBefore(clone, this.nextSibling) : clone;
|
||||
}
|
||||
|
||||
function selection_cloneDeep() {
|
||||
var clone = this.cloneNode(true), parent = this.parentNode;
|
||||
return parent ? parent.insertBefore(clone, this.nextSibling) : clone;
|
||||
}
|
||||
|
||||
export default function(deep) {
|
||||
return this.select(deep ? selection_cloneDeep : selection_cloneShallow);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue