Skip to content

Conversation

ai-qing-hai
Copy link
Contributor

  • 分别对 sankey 的 edge 和 node view 添加交互属性配置
    image

@visiky
Copy link
Member

visiky commented Jan 21, 2022

1、可以增加 nodeInteractions 和 edgeInteractions
2、增加一个 interactions 的 adaptor 处理器,在这里通过 viewId 从 chart 上获取 edgeView 和 nodeView。每个view的交互由以下组成:

  const { chart, options } = params;
  const { interactions } = options;

 const nodeInteractions = _.assign([], interactions, options.nodeInteractions);
 const edgeInteractions = _.assign([], interactions, options.edgeInteractions);

@ai-qing-hai
Copy link
Contributor Author

1、可以增加nodeInteractions 2、在这里增加一个adapter的交互处理器,通过viewId从上获取edgeView和nodeView。每个view的下面图表和edgeView由以下组成:

  常量 {图表,选项}  = 参数; 
  常量 {交互}  = 选项;

 常量 节点交互 =  _ 。分配([ ]  交互, 选项。nodeInteractions );_ 常量边缘交互= _ 。分配([ ] ,交互,选项。edgeInteractions );_
      

image

Copy link
Member

@visiky visiky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG;

@visiky visiky merged commit adc8883 into antvis:master Jan 24, 2022
@visiky visiky added the feature 特性需求 label Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants