We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我使用DynimacGroup的addChild API 绑定了两个元素到动态分组,然后我想拖动这个动态分组到其他位置,但我框选整个动态分组并进行移动后,发现添加到动态分组中的元素会发生错位 完整代码如下
<script> import LogicFlow from "@logicflow/core"; import "@logicflow/core/lib/style/index.css"; import { Control, DynamicGroup, SelectionSelect } from "@logicflow/extension"; export default { data: () => ({ lf: null, }), mounted() { this.lf = new LogicFlow({ container: this.$refs.container, grid: true, plugins: [DynamicGroup, SelectionSelect], }); this.lf.render({ nodes: [ { id: 'circle_1', type: 'circle', x: 522, y: 170, text: { value: 'circle_1', x: 522, y: 170, draggable: true, }, }, { id: 'circle_2', type: 'circle', x: 680, y: 170, text: { value: 'circle_2', x: 680, y: 170, draggable: true, }, }, { id: 'dynamic-group_1', type: 'dynamic-group', x: 542, y: 189, text: 'dynamic-group_1', resizable: true, properties: { width: 420, height: 250, radius: 5, }, }, ] }); this.lf.openSelectionSelect() const groupModel = this.lf.getNodeModelById('dynamic-group_1') groupModel.addChild('circle_1') groupModel.addChild('circle_2') }, }; </script> <template> <div class="container" ref="container"></div> </template> <style> .container { width: 1000px; height: 500px; } </style>
2.0.10
2.0.14
No response
Chrome
The text was updated successfully, but these errors were encountered:
fix(extension): dynamic-group 的 addChild 没有处理 nodeGroupMap
f78b832
通过 addChild 添加的节点没有在 nodeGroupMap 中建立映射关系,导致相关逻辑异常。改为在 addChild触发的事件中建立映射 close didi#2041,didi#2042
您好,我也遇到同样的问题,请问您说在addChild触发的事件中建立映射是什么意思,有相关的例子吗
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
发生了什么?
我使用DynimacGroup的addChild API 绑定了两个元素到动态分组,然后我想拖动这个动态分组到其他位置,但我框选整个动态分组并进行移动后,发现添加到动态分组中的元素会发生错位
完整代码如下
logicflow/core版本
2.0.10
logicflow/extension版本
2.0.14
logicflow/engine版本
No response
浏览器&环境
Chrome
The text was updated successfully, but these errors were encountered: