flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
20
VISUALIZACION/node_modules/d3-transition/src/transition/text.js
generated
vendored
Executable file
20
VISUALIZACION/node_modules/d3-transition/src/transition/text.js
generated
vendored
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
import {tweenValue} from "./tween.js";
|
||||
|
||||
function textConstant(value) {
|
||||
return function() {
|
||||
this.textContent = value;
|
||||
};
|
||||
}
|
||||
|
||||
function textFunction(value) {
|
||||
return function() {
|
||||
var value1 = value(this);
|
||||
this.textContent = value1 == null ? "" : value1;
|
||||
};
|
||||
}
|
||||
|
||||
export default function(value) {
|
||||
return this.tween("text", typeof value === "function"
|
||||
? textFunction(tweenValue(this, "text", value))
|
||||
: textConstant(value == null ? "" : value + ""));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue