Skip to content

Commit

Permalink
fix: 修复stopMoveGraph从true置为false后画布仍无法移动问题
Browse files Browse the repository at this point in the history
  • Loading branch information
liuziqi authored and boyongjiong committed Jan 25, 2024
1 parent 5ffdffd commit 37b5c4a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/LogicFlow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,11 @@ export default class LogicFlow {
* @see todo docs link
*/
updateEditConfig(config: EditConfigInterface) {
this.graphModel.editConfigModel.updateEditConfig(config);
const { editConfigModel, transformModel } = this.graphModel;
editConfigModel.updateEditConfig(config);
if (config?.stopMoveGraph !== undefined) {
transformModel.updateTranslateLimits(config.stopMoveGraph);
}
}
/**
* 获取流程图当前编辑相关设置
Expand Down

0 comments on commit 37b5c4a

Please sign in to comment.