Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎样让指定节点高亮 #3744

Closed
bighhhh opened this issue Jul 6, 2023 · 2 comments
Closed

怎样让指定节点高亮 #3744

bighhhh opened this issue Jul 6, 2023 · 2 comments

Comments

@bighhhh
Copy link

bighhhh commented Jul 6, 2023

问题描述

cellView.highlight(elem, {
highlighter: {
name: 'stroke',
args: {
padding: 4,
attrs: {
'stroke-width': 2,
stroke: 'red',
}
},
},
})
文档每太看懂,我cellView是使用graph.findView(cell)获取到的,其中cell是我要高亮的节点。后边这个elem参数应该传什么?我传的cell这个参数也没有效果

重现链接

重现步骤

预期行为

cell这个节点可以高亮

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox ...]
  • X6 版本: [2.11.1 ...]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@bighhhh
Copy link
Author

bighhhh commented Jul 7, 2023

解决了,第一个参数需要传view.container

@bighhhh bighhhh closed this as completed Jul 7, 2023
@love666
Copy link

love666 commented Jul 3, 2024

所以怎么实现的高亮呀~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants