Closed lijinke666 closed 1 year ago
Latest commit: 084e84bd82339cb1cdce6983f2062cecaf913114
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
👋 @lijinke666
💖 Thanks for opening this pull request! 💖
Please follow the contributing guidelines. And we use semantic commit messages to streamline the release process.
Examples of commit messages with semantic prefixes:
fix: don't overwrite prevent_default if default wasn't prevented
feat: add graph.scale() method
docs: graph.getShortestPath is now available
Things that will help get your PR across the finish line:
npm run lint
locally to catch formatting errors earlier.We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can.
👋 @lijinke666
Congrats on merging your first pull request! 🎉🎉🎉
Description
修复开启群组后, 无法复制/粘贴群组里面的连接线, 目前发现有三个问题
复制
:getSelectedCells
里面不包含edges
, 按照官网的介绍 连接线也属于edges
, 但是却拿不到不知道是我理解有误, 还是 XFlow 依赖的 X6 对应版本有 bug, 所以修改为
getSelectedCells
+getEdges
组合的方式 (我看parseCells
已经有相应 edges 过滤的处理) 保证复制到正确的东西粘贴
: 断点看下来, 复制拿到的source
和target
并不是类型定义的string
, 而是{ port: string, cell: string }
, 而nodeMappingRecord
的 key 又是string
, 导致始终无法拿到需要粘贴edges
, 然后拿到的配置又是透传给X6
, 里面包含原 edge 的id
, 又会导致无法渲染空节点
: 空节点没有label
的时候也会拼一个xx_copied
的名称, 感觉有点奇怪, 不知道是故意的还是啥能力有限, 只能定位到这里的, 不确定这样修改会不会碰伤其他逻辑, 也没看到有任何的单测, 如果这个库还要维护的话, 请大佬 review 一下, 或者给出更好的解决方式
Motivation and Context
Types of changes
Self Check before Merge