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

[Bug report] 使用分组节点, 直接render数据时并收缩时,边会自动隐藏, 其余操作增加分组后, 边不能隐藏 #1261

Closed
baiyijun opened this issue Aug 3, 2023 · 0 comments · Fixed by #1268
Labels
bug Something isn't working

Comments

@baiyijun
Copy link

baiyijun commented Aug 3, 2023

问题描述

使用分组节点

  1. 在初始化后,直接将模拟数据进行render, 此时形成 2节点, 1边, 1分组, 分组包含这两个节点以及边, 此时点击收缩, 两个节点以及其连接线真能正常收缩, 如图1,图2, 此时表现正常与 预期相符
    image 图1
    image 图2

  2. 在初始化后,不适用模拟数据, 对下述这两种情况下,点击收缩, 节点能正常隐藏, 边无法正常隐藏, 如图3,图4

  • 直接通过鼠标框选两个节点[多个节点]形成, 并对这两个节点[多个节点]进行连线
  • 对两个[多个节点]已经连线的节点框选形成分组
    image 图3
    image 图4

正常情况应该是, 边与节点都能正常隐藏
期望两种方式的数据渲染能保持一致

复现链接: https://codesandbox.io/s/pensive-rosalind-6567fk?file=/src/index.js

Context

LogicFlow Version: 1.2.8 -1.2.10
Node Version: 18.16.1
Platform: windows10 windows11 Edge _Chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants