Merge branch 'optional-tweening' into release

This commit is contained in:
Mike Bostock 2011-06-11 12:20:34 -07:00
Родитель d756caa0d8 de35e0d094
Коммит a9b5476da7
3 изменённых файлов: 12 добавлений и 12 удалений

10
d3.js поставляемый
Просмотреть файл

@ -1938,7 +1938,7 @@ function d3_transition(groups) {
/** @this {Element} */
function attrTween(d, i) {
var f = tween.call(this, d, i, this.getAttribute(name));
return function(t) {
return f && function(t) {
this.setAttribute(name, f(t));
};
}
@ -1946,7 +1946,7 @@ function d3_transition(groups) {
/** @this {Element} */
function attrTweenNS(d, i) {
var f = tween.call(this, d, i, this.getAttributeNS(name.space, name.local));
return function(t) {
return f && function(t) {
this.setAttributeNS(name.space, name.local, f(t));
};
}
@ -1965,7 +1965,7 @@ function d3_transition(groups) {
/** @this {Element} */
function styleTween(d, i) {
var f = tween.call(this, d, i, window.getComputedStyle(this, null).getPropertyValue(name));
return function(t) {
return f && function(t) {
this.style.setProperty(name, f(t), priority);
};
}
@ -2019,8 +2019,8 @@ function d3_transition(groups) {
function d3_transitionTween(b) {
return typeof b === "function"
? function(d, i, a) { return d3.interpolate(a, String(b.call(this, d, i))); }
: (b = String(b), function(d, i, a) { return d3.interpolate(a, b); });
? function(d, i, a) { var v = b.call(this, d, i) + ""; return a != v && d3.interpolate(a, v); }
: (b = b + "", function(d, i, a) { return a != b && d3.interpolate(a, b); });
}
var d3_timer_queue = null,
d3_timer_interval, // is an interval (or frame) active?

4
d3.min.js поставляемый

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -154,7 +154,7 @@ function d3_transition(groups) {
/** @this {Element} */
function attrTween(d, i) {
var f = tween.call(this, d, i, this.getAttribute(name));
return function(t) {
return f && function(t) {
this.setAttribute(name, f(t));
};
}
@ -162,7 +162,7 @@ function d3_transition(groups) {
/** @this {Element} */
function attrTweenNS(d, i) {
var f = tween.call(this, d, i, this.getAttributeNS(name.space, name.local));
return function(t) {
return f && function(t) {
this.setAttributeNS(name.space, name.local, f(t));
};
}
@ -181,7 +181,7 @@ function d3_transition(groups) {
/** @this {Element} */
function styleTween(d, i) {
var f = tween.call(this, d, i, window.getComputedStyle(this, null).getPropertyValue(name));
return function(t) {
return f && function(t) {
this.style.setProperty(name, f(t), priority);
};
}
@ -235,6 +235,6 @@ function d3_transition(groups) {
function d3_transitionTween(b) {
return typeof b === "function"
? function(d, i, a) { return d3.interpolate(a, String(b.call(this, d, i))); }
: (b = String(b), function(d, i, a) { return d3.interpolate(a, b); });
? function(d, i, a) { var v = b.call(this, d, i) + ""; return a != v && d3.interpolate(a, v); }
: (b = b + "", function(d, i, a) { return a != b && d3.interpolate(a, b); });
}