antvis / X6

🚀 JavaScript diagramming library that uses SVG and HTML for rendering.
https://x6.antv.antgroup.com
MIT License
5.64k stars 1.69k forks source link

选择框层级问题 #1628

Open joze2016 opened 2 years ago

joze2016 commented 2 years ago

开启画布选择功能后,点选节点,会有一个高亮选择框,这个选择框zIndex比较高,当拖拽画布,节点滚出画布后,会在画布外面显示一个选择框,另外如果节点是容器类节点,还会造成点选容器类节点后,无法再选择容器内部节点。 整体来说目前选中框的实现机制可能存在一些问题。

x6-bot[bot] commented 2 years ago

👋 @joze2016

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.

NewByVector commented 2 years ago

selection 确实有一些影响体验的地方,我们正在优化中。

lijing666 commented 2 years ago

selection 确实有一些影响体验的地方,我们正在优化中。

刚刚也发现群组选中后,其内部的元素无法选中,必须取消选中容器后,才可以选中

lijing666 commented 2 years ago

selection 确实有一些影响体验的地方,我们正在优化中。

另外选中节点或者边的时候,addTools添加的例如删除按钮button-remove等由于层级问题,无法点击,使用偏移移到选框外部,边按钮的还是异常的 image 节点的正常: image 添加按钮的偏移设置如下:

cell.addTools([
      {
        name: 'button-remove',
        args: {
          x: '100%',
          y: 0,
          offset: { x: 12, y: 10 }
        }
      }
    ]);
x6-bot[bot] commented 2 years ago

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the AntV community! 💪💯

x6-bot[bot] commented 2 years ago

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the AntV community! 💪💯

aquarius-wing commented 2 years ago

请问有计划什么时候上线2.0吗?

NewByVector commented 2 years ago

@Wing-Lo 2.0 的规划在这里。

aquarius-wing commented 2 years ago

看起来好棒!

NewByVector commented 2 years ago

@Wing-Lo 谢谢!

JackFeng7 commented 2 years ago

当选中群组时,群组会把群组内的节点覆盖掉

打开调试工具,发下点击群组,群组g标签的顺序会变化到最后(选中节点也是这样)

控制台打印选中节点的zIndex,节点的zIndex会变化

请问群组的选中如何阻止,g标签顺序的变化?