X6 icon indicating copy to clipboard operation
X6 copied to clipboard

How to nest node without ports

Open ourdark opened this issue 2 years ago • 5 comments

问题描述

I'm working on a ERD development, and X6 er diagram example use port for entity fields. I am wondering if I can define a nest node hierarchy for an entity, a entity rectangle with many field rectangles dynamically, is that possible?

重现链接

https://codesandbox.io/s/new)

重现步骤

https://x6.antv.vision/en/examples/showcase/practices#er

预期行为

https://x6.antv.vision/en/examples/showcase/practices#er

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • X6 版本: [1.28.2 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

ourdark avatar Sep 20 '22 02:09 ourdark

👋 @ourdark

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

x6-bot[bot] avatar Sep 20 '22 02:09 x6-bot[bot]

The ports is for the convenience of connecting. If it is shown in pure ER diagram, there is no need to ports.

NewByVector avatar Sep 20 '22 14:09 NewByVector

@NewByVector, good to know that, do you have any idea in mind to draw a Entity(with fields)?

ourdark avatar Sep 21 '22 03:09 ourdark

@NewByVector I've also working on custom node(Entity), the shortcut of custom node is working but regular extends not. I also considering custom node will take too much efforts on it, what would you think?

ourdark avatar Sep 21 '22 04:09 ourdark

If you are familiar with the React stack, check out this demo

image

NewByVector avatar Sep 21 '22 09:09 NewByVector

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

x6-bot[bot] avatar Jan 29 '24 01:01 x6-bot[bot]