提交 0c8726d0 编写于 作者: L lang

markLine fix arrow rotation, tooltip params always array in axis trigger

上级 f3e142d4
......@@ -37,6 +37,10 @@ define(function (require) {
return symbolPath;
}
function isSymbolArrow(symbol) {
return symbol.type === 'symbol' && symbol.shape.symbolType === 'arrow';
}
function updateSymbolBeforeLineUpdate () {
var line = this;
var symbolFrom = line.__symbolFrom;
......@@ -53,10 +57,10 @@ define(function (require) {
symbolTo.attr('position', toPos);
// Rotate the arrow
// FIXME Hard coded ?
if (symbolTo.type === 'arrow') {
if (isSymbolArrow(symbolTo)) {
symbolTo.attr('rotation', tangentRotation(fromPos, toPos));
}
if (symbolFrom.type === 'arrow') {
if (isSymbolArrow(symbolFrom)) {
symbolFrom.attr('rotation', tangentRotation(toPos, fromPos));
}
label.attr('position', toPos);
......
......@@ -679,9 +679,9 @@ define(function (require) {
});
// If only one series
// FIXME
if (paramsList.length === 1) {
paramsList = paramsList[0];
}
// if (paramsList.length === 1) {
// paramsList = paramsList[0];
// }
tooltipContent.show(rootTooltipModel);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册