Skip to content

Commit

Permalink
animation升级
Browse files Browse the repository at this point in the history
  • Loading branch information
kener committed Sep 30, 2013
1 parent 5fd3ba8 commit dbddd71
Show file tree
Hide file tree
Showing 14 changed files with 1,700 additions and 1,360 deletions.
2 changes: 1 addition & 1 deletion build/echarts-map.js

Large diffs are not rendered by default.

740 changes: 415 additions & 325 deletions build/echarts-original-map.js

Large diffs are not rendered by default.

740 changes: 415 additions & 325 deletions build/echarts-original.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/echarts.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/example/www/js/echarts-map.js

Large diffs are not rendered by default.

740 changes: 415 additions & 325 deletions doc/example/www/js/echarts-original-map.js

Large diffs are not rendered by default.

740 changes: 415 additions & 325 deletions doc/example/www/js/echarts-original.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/example/www/js/echarts.js

Large diffs are not rendered by default.

20 changes: 8 additions & 12 deletions src/chart/bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -745,10 +745,9 @@ define(function(require) {
{
x : x,
width : width
},
easing
}
)
.start();
.start(easing);
}
else {
zr.modShape(
Expand All @@ -764,10 +763,9 @@ define(function(require) {
duration + dataIndex * 100,
{
width : width
},
easing
}
)
.start();
.start(easing);
}
}
else {
Expand All @@ -788,10 +786,9 @@ define(function(require) {
duration + dataIndex * 100,
{
height : height
},
easing
}
)
.start();
.start(easing);
}
else {
zr.modShape(
Expand All @@ -809,10 +806,9 @@ define(function(require) {
{
y : y,
height : height
},
easing
}
)
.start();
.start(easing);
}
}
}
Expand Down
10 changes: 4 additions & 6 deletions src/chart/k.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,13 +467,11 @@ define(function(require) {
.when(
(self.deepQuery([serie],'animationDuration')
|| duration),

{scale : [1, 1, x, y]},

(self.deepQuery([serie], 'animationEasing')
|| easing)
{scale : [1, 1, x, y]}
)
.start();
.start(
self.deepQuery([serie], 'animationEasing') || easing
);
}
}
}
Expand Down
15 changes: 6 additions & 9 deletions src/chart/line.js
Original file line number Diff line number Diff line change
Expand Up @@ -894,13 +894,11 @@ define(function(require) {
(self.deepQuery([serie],'animationDuration')
|| duration)
+ dataIndex * 100,

{scale : [1, 1, x, y]},

(self.deepQuery([serie], 'animationEasing')
|| easing)
{scale : [1, 1, x, y]}
)
.start();
.start(
self.deepQuery([serie], 'animationEasing') || easing
);
}
else {
x = self.shapeList[i]._x || 0;
Expand All @@ -911,10 +909,9 @@ define(function(require) {
zr.animate(self.shapeList[i].id, '')
.when(
duration,
{scale : [1, 1, x, y]},
'QuinticOut'
{scale : [1, 1, x, y]}
)
.start();
.start('QuinticOut');
}
}
}
Expand Down
22 changes: 8 additions & 14 deletions src/chart/pie.js
Original file line number Diff line number Diff line change
Expand Up @@ -898,27 +898,22 @@ define(function(require) {
(self.deepQuery([serie],'animationDuration')
|| duration)
+ dataIndex * 10,

{
r0 : r0,
r : r
},

'QuinticOut'
}
)
.start();
.start('QuinticOut');
zr.animate(self.shapeList[i].id, '')
.when(
(self.deepQuery([serie],'animationDuration')
|| duration)
+ dataIndex * 100,

{rotation : [0, x, y]},

(self.deepQuery([serie], 'animationEasing')
|| easing)
{rotation : [0, x, y]}
)
.start();
.start(
self.deepQuery([serie], 'animationEasing') || easing
);
}
else {
dataIndex = self.shapeList[i]._dataIndex;
Expand All @@ -928,10 +923,9 @@ define(function(require) {
zr.animate(self.shapeList[i].id, '')
.when(
duration + dataIndex * 100,
{scale : [1, 1, x, y]},
'QuinticOut'
{scale : [1, 1, x, y]}
)
.start();
.start('QuinticOut');
}
}
}
Expand Down
15 changes: 6 additions & 9 deletions src/chart/radar.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,13 +476,11 @@
(self.deepQuery([serie],'animationDuration')
|| duration)
+ dataIndex * 100,

{scale : [1, 1, x, y]},

(self.deepQuery([serie], 'animationEasing')
|| easing)
{scale : [1, 1, x, y]}
)
.start();
.start(
self.deepQuery([serie], 'animationEasing') || easing
);
}
else {
x = self.shapeList[i]._x || 0;
Expand All @@ -493,10 +491,9 @@
zr.animate(self.shapeList[i].id, '')
.when(
duration,
{scale : [1, 1, x, y]},
'QuinticOut'
{scale : [1, 1, x, y]}
)
.start();
.start('QuinticOut');
}
}

Expand Down
10 changes: 4 additions & 6 deletions src/chart/scatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,13 +425,11 @@ define(function(require) {
.when(
(self.deepQuery([serie],'animationDuration')
|| duration),

{scale : [1, 1, x, y]},

(self.deepQuery([serie], 'animationEasing')
|| easing)
{scale : [1, 1, x, y]}
)
.start();
.start(
self.deepQuery([serie], 'animationEasing') || easing
);
}
}

Expand Down

0 comments on commit dbddd71

Please sign in to comment.