Skip to content

如何给边添加鼠标悬浮或者选中边的时候,边高亮,以及高亮的颜色如何更改。 #3732

Answered by NewByVector
edc-hui asked this question in Q&A
Discussion options

You must be logged in to vote

两种方案:

  1. 使用 css 样式,比如:
.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;
  }
}
  1. 可以在 edge:mousenter 中修改边的样式 ,修改方法参考文档

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@edc-hui
Comment options

Answer selected by edc-hui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants