如何给边添加鼠标悬浮或者选中边的时候,边高亮,以及高亮的颜色如何更改。 #3732
-
如题,在文档中没找到设置边鼠标悬浮改变样式的方式,官网图表示例上面的边鼠标悬浮以及选中都有样式,但是看代码就没看到怎么实现的 |
Beta Was this translation helpful? Give feedback.
Answered by
NewByVector
Jul 10, 2023
Replies: 1 comment 1 reply
-
两种方案:
.x6-edge:hover {
path:nth-child(2) {
stroke: #1890ff;
stroke-width: 1px;
}
}
.x6-edge-selected {
path:nth-child(2) {
stroke: #1890ff;
stroke-width: 1.5px !important;
}
}
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
edc-hui
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
两种方案:
edge:mousenter
中修改边的样式 ,修改方法参考文档。