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

那如何使用stateStyles呢 #5

Description

@GuanJianSayWeee

我看文档介绍只有每个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) => { //... }, });

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions