Skip to content

Commit 8159fc6

Browse files
committed
fix #719: 修复autoExpand为true的模式下,边界自动扩充无法停止的问题
1 parent 386f157 commit 8159fc6

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

docs/release/1.1.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
- 1.1版本对插件进行规范,现在要求所有的插件必须使用class的方式实现。然后插件的方法可以通过`lf.extension.插件名称.插件方法`来调用。原来的`lf.插件方法`仍然可用,后续版本将废弃。
66
- `MiniMap` api不兼容更新。`MiniMap.show()` -> `lf.extension.miniMap.show()`; `MiniMap.hide()` -> `lf.extension.miniMap.hide()`
77

8+
### 1.1.23
9+
10+
> 发版时间:2022/08/04
11+
12+
- bugfix
13+
- fix [#719](https://github.com/didi/LogicFlow/pull/665): 修复autoExpand为true的模式下,边界自动扩充无法停止的问题
14+
815
### 1.1.22
916

1017
> 发版时间: 2022/07/13

packages/core/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@
451451
// nodeSelectedOutline: false,
452452
multipleSelectKey: 'shift',
453453
disabledTools: ['multipleSelect'],
454-
autoExpand: true,
454+
// autoExpand: true,
455455
// metaKeyMultipleSelected: false,
456456
// adjustEdgeMiddle: true,
457457
// stopMoveGraph: true,

packages/core/src/view/Anchor.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ class Anchor extends Component<IProps, IState> {
172172
};
173173
onDragEnd = (event) => {
174174
if (this.t) {
175-
clearInterval(this.t);
175+
cancelRaf(this.t);
176176
}
177+
console.log(555, 'dragend');
177178
this.checkEnd(event);
178179
this.setState({
179180
startX: 0,

0 commit comments

Comments
 (0)