提交 433774c8 编写于 作者: L lang

Animation delay dataIndex in more chart

上级 d7d8f853
......@@ -76,7 +76,7 @@ define(function (require) {
style: {
opacity: opacity
}
}, seriesModel);
}, seriesModel, idx);
}
else {
graphic.updateProps(polygon, {
......@@ -86,7 +86,7 @@ define(function (require) {
shape: {
points: layout.points
}
}, seriesModel);
}, seriesModel, idx);
}
// Update common style
......@@ -123,14 +123,14 @@ define(function (require) {
shape: {
points: labelLayout.linePoints || labelLayout.linePoints
}
}, seriesModel);
}, seriesModel, idx);
graphic.updateProps(labelText, {
style: {
x: labelLayout.x,
y: labelLayout.y
}
}, seriesModel);
}, seriesModel, idx);
labelText.attr({
style: {
textAlign: labelLayout.textAlign,
......
......@@ -208,7 +208,7 @@ define(function (require) {
shape: {
percent: 1
}
}, seriesModel);
}, seriesModel, idx);
this.add(line);
......@@ -238,7 +238,7 @@ define(function (require) {
shape: {}
};
setLinePoints(target.shape, linePoints);
graphic.updateProps(line, target, seriesModel);
graphic.updateProps(line, target, seriesModel, idx);
zrUtil.each(SYMBOL_CATEGORIES, function (symbolCategory) {
var symbolType = lineData.getItemVisual(idx, symbolCategory);
......
......@@ -126,12 +126,12 @@ define(function (require) {
updateMethod(
this.childAt(this.bodyIndex),
{shape: {points: itemLayout.bodyEnds}},
seriesModel
seriesModel, idx
);
updateMethod(
this.childAt(this.whiskerIndex),
{shape: makeWhiskerEndsShape(itemLayout.whiskerEnds)},
seriesModel
seriesModel, idx
);
this.styleUpdater.call(null, this, data, idx);
......
......@@ -104,7 +104,7 @@ define(function (require) {
shape: {
points: pointPair
}
}, seriesModel);
}, seriesModel, newDataIndex);
}
}
);
......
......@@ -126,12 +126,12 @@ define(function (require) {
shape: {
endAngle: layout.endAngle
}
}, seriesModel);
}, seriesModel, idx);
}
else {
graphic.updateProps(sector, {
shape: sectorShape
}, seriesModel);
}, seriesModel, idx);
}
// Update common style
......@@ -206,14 +206,14 @@ define(function (require) {
[labelLayout.x, labelLayout.y], [labelLayout.x, labelLayout.y], [labelLayout.x, labelLayout.y]
]
}
}, seriesModel);
}, seriesModel, idx);
graphic.updateProps(labelText, {
style: {
x: labelLayout.x,
y: labelLayout.y
}
}, seriesModel);
}, seriesModel, idx);
labelText.attr({
style: {
textVerticalAlign: labelLayout.verticalAlign,
......
......@@ -51,7 +51,7 @@ define(function (require) {
graphic[isInit ? 'initProps' : 'updateProps'](
symbolPath, {
position: newPoints[i]
}, seriesModel
}, seriesModel, idx
);
}
else {
......@@ -82,8 +82,8 @@ define(function (require) {
};
polygon.shape.points = getInitialPoints(points);
polyline.shape.points = getInitialPoints(points);
graphic.initProps(polygon, target, seriesModel);
graphic.initProps(polyline, target, seriesModel);
graphic.initProps(polygon, target, seriesModel, idx);
graphic.initProps(polyline, target, seriesModel, idx);
var itemGroup = new graphic.Group();
var symbolGroup = new graphic.Group();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册