antvis/G6

Do you want to work on this issue?

You can request for a bounty in order to promote it!

【V5】combo-combined 布局时,数据只存在一个 combo 时,outerLayout 布局报错 #6104

MusicTen posted onGitHub

Describe the bug / 问题描述

image

https://stackblitz.com/edit/react-up1htr?file=index.js

Steps to Reproduce the Bug or Issue / 重现步骤

  1. 使用 combo-combined 布局
  2. nodes 都只在一个 combo 中
  3. outerLayout 外层布局报错

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

macOS

Browser / 浏览器

Chrome, Edge

Additional context / 补充说明

outerPositions 获取外层 node 位置信息兼容问题


给定复现示例并没有相关错误信息呢

posted by Aarebecca 9 months ago

给定复现示例并没有相关错误信息呢

image

posted by MusicTen 9 months ago

其实可以判断如何只有一个combo时setLayout使用普通布局就可以解决

posted by seifenk 6 months ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests