Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

那如何使用stateStyles呢 #5

Open
GuanJianSayWeee opened this issue Sep 26, 2021 · 0 comments
Open

那如何使用stateStyles呢 #5

GuanJianSayWeee opened this issue Sep 26, 2021 · 0 comments

Comments

@GuanJianSayWeee
Copy link

GuanJianSayWeee commented Sep 26, 2021

我看文档介绍只有每个shape的独立事件,那如果有个需求是悬浮高亮,其他的变透明,如何实现jsx中stateStyles功能呢
G6.registerNode('rect-xml', { options: { stateStyles: { highlight: { opacity: 1, }, dark: { opacity: 0.2, 'title': { opacity: 0.2 }, 'img': { opacity: 0.2 }, }, }, }, jsx: (cfg) => { //... }, });

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

No branches or pull requests

1 participant