Skip to content

Commit 44a5044

Browse files
committed
docs: 1.2.9 released
1 parent 635c3a7 commit 44a5044

File tree

2 files changed

+46
-29
lines changed

2 files changed

+46
-29
lines changed

docs/en/release/1.2.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,22 @@
33
### Breaking Changes
44

55
- In version 1.2, we have standardized the difference between the methods that can be overridden in custom elements in 'model' and 'view'. If you do not need to change the DOM structure of an element but only modify its style based on the properties in the model, you can override the method provided by the model to get the style. If you need to change the DOM structure of the element, you need to override the method provided by the 'view' to modify the DOM structure. The detailed modification methods are as follows:
6+
67
1. The 'getArrowStyle' method in 'view' is deprecated, please use the 'getArrowStyle' method in 'model' instead.
78

89
- In version 1.1, LogicFlow provided the feature of automatically expanding the canvas area when dragging nodes or edges to the canvas boundary. However, based on the feedback received, this feature resulted in certain explanation costs. Therefore, in version 1.2, this feature is disabled by default. You can enable it by passing the 'autoExpand' parameter as 'true' when initializing LogicFlow. It is now set as 'false' by default.
910

1011
- In version 1.2, we have optimized the support for React 18.
11-
12+
13+
## 1.2.9
14+
15+
- Bugfix:
16+
- Fixed the issue of setting `isSilentMode = true` repeatedly, leading to subsequent incorrect settings. [#1180](https://github.com/didi/LogicFlow/issues/1180)
17+
- Fixed the issue of abnormal background length when text is truncated. [#1151](https://github.com/didi/LogicFlow/issues/1151)
18+
- Fixed the issue of overlap between connectors and node edges when the aspect ratio of nodes is too large. [#817](https://github.com/didi/LogicFlow/issues/817)
19+
- Fixed the issue of text not being moved when moving nodes along with their corresponding connectors. [#1194](https://github.com/didi/LogicFlow/pull/1194)
20+
- Fixed the issue of nested subgroups remaining in the collapsed state when opening the nested grouping. [#1145](https://github.com/didi/LogicFlow/issues/1145)
21+
1222
## 1.2.8
1323

1424
- Bugfix:
@@ -69,6 +79,7 @@
6979
- Fixed compatibility issues of `LogicFlow` in the `React 18` environment.
7080

7181
### 1.2.0-next.5
82+
7283
- bugfix
7384
- Fixed the issue where it was not possible to delete a selected HTML node for the first time in a React environment.[#1029](https://github.com/didi/LogicFlow/issues/1029),[#933](https://github.com/didi/LogicFlow/issues/933)
7485
- Fixed the issue where some plugins were not working in development mode under React.StrictMode.
@@ -87,18 +98,16 @@
8798
- Fixed the issue where, after adjusting the nodes connected by an edge, new edges could not be clicked and selected intermittently.[#974](https://github.com/didi/LogicFlow/issues/974)
8899
- "Fixed the issue where the 'isHovered' property of edges would remain true and not change to false.[#989](https://github.com/didi/LogicFlow/issues/989)
89100
- When selecting both a group and the nodes within the group at the same time, there may be an issue with incorrect movement distances of the nodes within the group.[#1004](https://github.com/didi/LogicFlow/issues/1004)
90-
101+
91102
### 1.2.0-next.2
92103

93104
- features
94105
- When omitting the overflow text, mouse over the text and the tip will display the full text. [#984](https://github.com/didi/LogicFlow/issues/984)
95106
- The element will be selected by default when the right mouse button clicks on the node or edge. [#949](https://github.com/didi/LogicFlow/pull/949)
96-
97107
- bugfix
98108
- Disable the ability to use the right mouse button for box selection, to fix an issue that could cause multiple checkboxes to exist on the canvas that would not disappear. [#984](https://github.com/didi/LogicFlow/issues/985)
99109
- Fixed the problem that after `adjustEdgeStartAndEnd` is enabled, the API used for adjusting edges is not the same as the default new edge. [973](https://github.com/didi/LogicFlow/pull/973)[979](https://github.com/didi/LogicFlow/pull/979)[968](https://github.com/didi/LogicFlow/pull/968)
100110
- The parameters of anchor's drop and dragend events are optimized to the event object not nested under the e object. [#969](https://github.com/didi/LogicFlow/pull/969)
101111
- Fixed the problem that the `CurvedEdge` plugin reported an error in some cases. [#953](https://github.com/didi/LogicFlow/pull/953)
102112
- The `node:add` event is no longer triggered when a node is added by dragging and dropping. [#916](https://github.com/didi/LogicFlow/pull/916)
103113
- Fixed the problem of inaccurate `edgeModel.targetAnchorId` after manual connection. [#944](https://github.com/didi/LogicFlow/issues/944)
104-

docs/zh/release/1.2.md

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,60 @@
1-
# 从1.1升级到1.2
2-
1+
# 从 1.1 升级到 1.2
32

43
### Breaking Changes
54

6-
-`1.2`版本中,我们规范了在自定义元素可重写方法在`model``view`中的区别。如果不改变元素的DOM结构,只是需要基于model中的属性来修改元素的样式,则可以通过重写model提供的获取样式的方法来实现。如果需要修改元素的DOM结构,则需要重写`view`中提供的修改DOM结构方法实现。详细修改的方法如下:
5+
-`1.2`版本中,我们规范了在自定义元素可重写方法在`model``view`中的区别。如果不改变元素的 DOM 结构,只是需要基于 model 中的属性来修改元素的样式,则可以通过重写 model 提供的获取样式的方法来实现。如果需要修改元素的 DOM 结构,则需要重写`view`中提供的修改 DOM 结构方法实现。详细修改的方法如下:
6+
77
1. `view`中的`getArrowStyle`废弃,使用`model`中的`getArrowStyle`替代。
88

9-
-`1.2`版本,我们对源码中一些拼写错误进行了修改,但是不涉及到 LogicFlow 提供的 API。但是 LogicFlow 提供的基于继承的自定义机制,可以让熟悉 LogicFlow 源码的同学绕过 LogicFlow 文档上的API进行高度自定义,所以我们选择发布一个新的 minor 版本。若您是基于LogicFlow提供的API或者示例开发,可以直接升级。若您在LogicFlow 上涉及到绕过API进行自定义,可以安装 VSCode 插件 `Code Spell Checker` 快速找到拼写错误。
9+
-`1.2`版本,我们对源码中一些拼写错误进行了修改,但是不涉及到 LogicFlow 提供的 API。但是 LogicFlow 提供的基于继承的自定义机制,可以让熟悉 LogicFlow 源码的同学绕过 LogicFlow 文档上的 API 进行高度自定义,所以我们选择发布一个新的 minor 版本。若您是基于 LogicFlow 提供的 API 或者示例开发,可以直接升级。若您在 LogicFlow 上涉及到绕过 API 进行自定义,可以安装 VSCode 插件 `Code Spell Checker` 快速找到拼写错误。
10+
11+
- LogicFlow 在`1.1`提供了拖动节点或者连线到画布边界时会自动扩展画布区域,在后续收到的反馈来看,这个交互会带来一定的解释成本,所以在`1.2`版本默认关闭此功能。大家可以在初始化 LogicFlow 时传如参数`autoExpand``true`来开启,现在改成默认为`false`
1012

11-
- LogicFlow在`1.1`提供了拖动节点或者连线到画布边界时会自动扩展画布区域,在后续收到的反馈来看,这个交互会带来一定的解释成本,所以在`1.2`版本默认关闭此功能。大家可以在初始化LogicFlow时传如参数`autoExpand``true`来开启,现在改成默认为`false`
13+
- `1.2`版本中,我们对 React 18 的支持做了优化
1214

13-
-`1.2`版本中,我们对React 18的支持做了优化。
15+
## 1.2.9
16+
17+
- bugfix:
18+
- 修复重复设置`isSilentMode = true`导致后续设置错误的问题. [#1180](https://github.com/didi/LogicFlow/issues/1180)
19+
- 修复文字省略出现背景长度异常的问题. [#1151](https://github.com/didi/LogicFlow/issues/1151)
20+
- 修复节点宽高比太大出现连线与节点边重合的问题. [#817](https://github.com/didi/LogicFlow/issues/817)
21+
- 修复移动节点时,节点对应的连线上文本未移动的问题. [#1194](https://github.com/didi/LogicFlow/pull/1194)
22+
- 修复打开嵌套分组时,内部子分组仍处于折叠状态的问题. [#1145](https://github.com/didi/LogicFlow/issues/1145)
1423

1524
## 1.2.8
1625

1726
- bugfix:
1827
- 修复了自定义连线开始箭头不生效的问题。[#1167](https://github.com/didi/LogicFlow/issues/1167)
1928
- 修复了调整连线起终点并删除原节点后,无法移动连线文本的问题。
20-
- 修复了node:dnd-add事件触发时,未抛出event对象的问题[#1170](https://github.com/didi/LogicFlow/issues/1170)
29+
- 修复了 node:dnd-add 事件触发时,未抛出 event 对象的问题[#1170](https://github.com/didi/LogicFlow/issues/1170)
2130

2231
## 1.2.7
2332

2433
- bugfix:
2534
- 修复了快照导出贝塞尔曲线不完整的问题。[#1147](https://github.com/didi/LogicFlow/issues/1147)
26-
- 修复了bpmn xml格式数据错误的问题[#1155](https://github.com/didi/LogicFlow/issues/1155)
35+
- 修复了 bpmn xml 格式数据错误的问题[#1155](https://github.com/didi/LogicFlow/issues/1155)
2736

2837
## 1.2.6
2938

3039
- bugfix:
3140
- 修复了在边上插入节点未触发两边节点校验规则的问题。[#1078](https://github.com/didi/LogicFlow/issues/1078)
32-
- 修复了bpmn xml格式数据某些属性错误的问题。[#1142](https://github.com/didi/LogicFlow/pull/1142)
33-
- 修复了undefined被pick后覆盖默认值导致某些问题。[#1153](https://github.com/didi/LogicFlow/issues/1153)
41+
- 修复了 bpmn xml 格式数据某些属性错误的问题。[#1142](https://github.com/didi/LogicFlow/pull/1142)
42+
- 修复了 undefined 被 pick 后覆盖默认值导致某些问题。[#1153](https://github.com/didi/LogicFlow/issues/1153)
43+
3444
## 1.2.5
3545

36-
- bugfix:
37-
- 修复了bpmnAdapter在处理xml格式数据时支持不完整的问题[#718](https://github.com/didi/LogicFlow/issues/718)
46+
- bugfix:
47+
- 修复了 bpmnAdapter 在处理 xml 格式数据时支持不完整的问题[#718](https://github.com/didi/LogicFlow/issues/718)
3848
- 修复了在边上插入节点未触发两边节点校验规则的问题。
39-
- 修改了React 18的兼容性问题[#1089](https://github.com/didi/LogicFlow/issues/1089)
49+
- 修改了 React 18 的兼容性问题[#1089](https://github.com/didi/LogicFlow/issues/1089)
4050
- 修复了分组折叠按钮被遮挡的问题。[#1099](https://github.com/didi/LogicFlow/issues/1099)
4151
- 修复了文本节点内容被完全删除后不显示的问题。[#1067](https://github.com/didi/LogicFlow/issues/1067)
4252
- 修复了节点被多选选中后,移动一个节点不能带着其他选中节点移动的问题。[#894](https://github.com/didi/LogicFlow/issues/894)
4353

4454
## 1.2.4
4555

4656
- bugfix
47-
- LogicFlow bpmn插件默认生成的xml isExecutable为false[#571](https://github.com/didi/LogicFlow/issues/571)
57+
- LogicFlow bpmn 插件默认生成的 xml isExecutable 为 false[#571](https://github.com/didi/LogicFlow/issues/571)
4858

4959
## 1.2.3
5060

@@ -56,11 +66,10 @@
5666
- features
5767
- 增加自定义连线调整点样式方法`getAdjustPointShape`
5868
- bugfix
59-
- 修复了主题的typescript类型定义错误[#1052](https://github.com/didi/LogicFlow/issues/1052)
60-
- 修复了group节点导出的children属性包含虚拟节点的问题[#1022](https://github.com/didi/LogicFlow/issues/1022)
69+
- 修复了主题的 typescript 类型定义错误[#1052](https://github.com/didi/LogicFlow/issues/1052)
70+
- 修复了 group 节点导出的 children 属性包含虚拟节点的问题[#1022](https://github.com/didi/LogicFlow/issues/1022)
6171
- 修复了开启快捷键后,浏览器的默认复制、粘贴功能失效的问题。[#1046](https://github.com/didi/LogicFlow/issues/1046)
6272

63-
6473
### 1.2.1
6574

6675
- bugfix
@@ -72,8 +81,9 @@
7281
- 修复了`LogicFlow``React` 18 环境下的兼容性问题。
7382

7483
### 1.2.0-next.5
84+
7585
- bugfix
76-
- 修复了在react环境下,第一次选中html节点无法进行删除的问题[#1029](https://github.com/didi/LogicFlow/issues/1029),[#933](https://github.com/didi/LogicFlow/issues/933)
86+
- 修复了在 react 环境下,第一次选中 html 节点无法进行删除的问题[#1029](https://github.com/didi/LogicFlow/issues/1029),[#933](https://github.com/didi/LogicFlow/issues/933)
7787
- 修复了在`React.StrictMode`模式下,部分插件在开发环境不能使用的问题。
7888

7989
### 1.2.0-next.4
@@ -88,20 +98,18 @@
8898

8999
- bugfix
90100
- 修复在调整边连接的节点后,偶现新的边不能被点击选择。[#974](https://github.com/didi/LogicFlow/issues/974)
91-
- 修复边的isHovered属性会一直保持true,不会改为false的问题[#989](https://github.com/didi/LogicFlow/issues/989)
101+
- 修复边的 isHovered 属性会一直保持 true,不会改为 false 的问题[#989](https://github.com/didi/LogicFlow/issues/989)
92102
- 同时选中分组和分组内部的节点,会出现分组内部的节点移动距离错误的问题。[#1004](https://github.com/didi/LogicFlow/issues/1004)
93103

94104
### 1.2.0-next.2
95105

96106
- features
97-
- 增加本文溢出省略时鼠标移动到文本tip显示全文[#984](https://github.com/didi/LogicFlow/issues/984)
107+
- 增加本文溢出省略时鼠标移动到文本 tip 显示全文[#984](https://github.com/didi/LogicFlow/issues/984)
98108
- 右键点击节点、连线默认会选中这个元素。[#949](https://github.com/didi/LogicFlow/pull/949)
99-
100109
- bugfix
101110
- 禁用画布右键框选功能修复可能会导致画布存在多个框选框不会消失的问题。[#984](https://github.com/didi/LogicFlow/issues/985)
102-
- 修复了开启`adjustEdgeStartAndEnd`后,调整连线导致API与默认新建连线不一致的问题[973](https://github.com/didi/LogicFlow/pull/973)[979](https://github.com/didi/LogicFlow/pull/979)[968](https://github.com/didi/LogicFlow/pull/968)
103-
- anchor的drop和dragend事件的参数传递优化成event对像不嵌套在e对像下[#969](https://github.com/didi/LogicFlow/pull/969)
111+
- 修复了开启`adjustEdgeStartAndEnd`后,调整连线导致 API 与默认新建连线不一致的问题[973](https://github.com/didi/LogicFlow/pull/973)[979](https://github.com/didi/LogicFlow/pull/979)[968](https://github.com/didi/LogicFlow/pull/968)
112+
- anchor 的 drop 和 dragend 事件的参数传递优化成 event 对像不嵌套在 e 对像下[#969](https://github.com/didi/LogicFlow/pull/969)
104113
- 修复了`CurvedEdge`插件在某些情况下,出现报错的问题。[#953](https://github.com/didi/LogicFlow/pull/953)
105114
- 拖拽新增节点时,不再触发`node:add`事件。[#916](https://github.com/didi/LogicFlow/pull/916)
106-
- 修复连线后,edgeModel.targetAnchorId不准确问题。[#944](https://github.com/didi/LogicFlow/issues/944)
107-
115+
- 修复连线后,edgeModel.targetAnchorId 不准确问题。[#944](https://github.com/didi/LogicFlow/issues/944)

0 commit comments

Comments
 (0)