提交 bde6df9c 编写于 作者: S sushuang

Revert "fix(graph): Fix that line label can not return to its original opacity...

Revert "fix(graph): Fix that line label can not return to its original opacity after "focusNodeAdjacency"."

This reverts commit 1e3b663b.
上级 6df59da8
......@@ -49,11 +49,7 @@ function fadeOutItem(item, opacityPath, opacityRatio) {
el.downplay && el.downplay();
el.traverse(function (child) {
if (child.type !== 'group') {
var opct = child.lineLabelOriginalOpacity;
if (opct == null || opacityRatio != null) {
opct = opacity;
}
child.setStyle('opacity', opct);
child.setStyle('opacity', opacity);
}
});
}
......
......@@ -216,11 +216,7 @@ lineProto._createLine = function (lineData, idx, seriesScope) {
this.add(line);
var label = new graphic.Text({
name: 'label',
// FIXME
// Temporary solution for `focusNodeAdjacency`.
// line label do not use the opacity of lineStyle.
lineLabelOriginalOpacity: 1
name: 'label'
});
this.add(label);
......
......@@ -70,6 +70,9 @@ under the License.
}
}
},
lineStyle: {
width: 10
},
focusNodeAdjacency: focusNodeAdjacency,
data: [{
name: '节点1',
......@@ -89,13 +92,7 @@ under the License.
x: 550,
y: 500
}],
lineStyle: {
normal: {
width: 3,
color: '#184029',
curveness: 0
}
},
// links: [],
links: [{
source: 0,
target: 1,
......@@ -152,7 +149,12 @@ under the License.
}, {
source: '节点1',
target: '节点4'
}]
}],
lineStyle: {
normal: {
curveness: 0
}
}
}
]
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册