Change Log
2.0.1
Patch Changes: 修复 2.0 版本中 Core 包及 Extension 中 dynamic-group/label 等插件的 bug
- 修复初始化时 DyanmicGroup 插件折叠展开报错的问题 #1767
- 修复 RectNodeModel 初始化时设置 width、height、radius 为 0 时无效的 bug
- Rename: resizeFunction -> throttleResize 函数命名优化
- 修复 isRestrict 开启后子节点仍能拖拽出分组区域的 bug
- 优化分组旋转时,子节点的旋转逻辑,以分组中心为中心点旋转,并更新自身的 rotate 属性
- 增加 elementsModelMap 解决 Group 初始化时,children 中的元素未完成初始化导致 model 为空的bug
- Rename: outcomingEdgeList,getAnchorOutcomingEdge,outcoming -> outgoing#1449
- 修复画布加载完后新增节点时Label不展示问题 #1759
- 重新修改样式打包配置,用于修复引入插件包后起服务报错问题 #1760
- 修复画布切换后页面宽高变化时持续出现警告问题 #1756
- 统一数据类型, 修复textVal为数字时报错问题 #1612
- 修复节点id切换后某一次更新边拿不到NodeId问题 #864
2.0.0
Major Changes: Release 2.0 New Version 🎉🎉🎉🎉
refactor: 重构 LogicFlow 项目结构,升级打包工具,使用 pnpm 做包管理工具
- rename index.tsx -> index.ts, update dependencies and declare module mobx-preact
- 配置 husky pre-commit
- 完善 LogicFlow.tsx 主文件类型定义
- update .gitignore
- git rm -r --cached sites/docs/.dumi/tmp
- add index.less
解决项目中 core 包 TypeScript 类型错误导致打包失败的问题
项目代码重构,包括 examples、extension 及 core 包
- remove react-umi-app demo
- rename lf-engine-browser -> engine-browser-examples
- rename lf-engine-node -> engine-node-examples
- extension 包中修改文件夹名大小写未生效,恢复成 Control 和 Node 文件夹,后续再处理
- add feature-examples DEMO 项目,用于汇总所有官方 demo,后续再 docs 中使用
- 完成 feature-examples 中 demo 的改造,增加 graph 页面
- 优化 DndPanel 的demo
- 开发 feature-examples 中 BPMN 插件 demo
- feature-examples 中增加 BPMN demo
- engine-browser-examples 中增加 graph demo,方便后续在 vite 环境下调试包功能,测试 umi 与 vite 是否一致
- engine-browser-examples bpmn demo 更新
- 新增 next-app 用来测试服务端渲染项目中 window is not defined 的问题
- 修复 vue3-memory-leak 项目中引入 vue 文件报错的问题
- 新增 vue3-app 用于测试 vue-node-registry,后续使用该项目开发 vue 组件或 demo
- feature-examples 类型完善
- 修复 engine-browser-examples 中类型错误问题
- 优化 engine-browser-examples 样式
- 补充自定义折线、圆角折线、节点选择示例 (#1680)
- 添加insert-node-in-polyline,rules两个插件的demo
- 增加测试vue3性能demo
- 增加rect-label-node插件示例
- 增加高亮插件说明文档 - 优化高亮插件示例
文件夹重命名,将大驼峰命名修改为 小写+短横线
- DefaultAnimation.ts -> defaultAnimation.ts
- DefatultTheme.ts -> defaultTheme.ts
- history/History.ts -> history/index.ts
- 并更新项目中各个文件的引用地址
解决 git config core.ignorecase 为 true 导致修改文件夹名大小写不生效的问题
- 重命名 BPMN -> bpmn; Control -> control
- 命名规范:文件夹名小写(name or name1-name2-name3);.js or .ts 小驼峰;.tsx or .jsx 大驼峰
- 新增 Vue3-memory-leak demo 用于定位内存泄漏的问题,后续基于此 demo 增加 LogicFlow destroy 的方法
- 优化 properties 类型定义为 Record<string, any>,避免 unknow 引起的问题,后续再优化
- 解决 graph demo 中发现 BezierEdge 初始化 path 为空的问题,可以看 -> BezierEdgeModel.ts 的改动
通过 git rm --cached Xxxx 移除修改大小写的文件夹内容
完善 README.md 以及 CONTRIBUTING 相关文档,解决 eslint 问题
- 完善开源共享引导文档:README 以及 CONTRIBUTING
- 项目根目录运行 pnpm run lint:ts,解决项目中 eslint 错误及 warning
Update update_contributors.yml
update package.json, add changesets to generate CHANGELOG
- .gitnore add .umi/ and delete .npmrc file
- dependencies 中 'workspace:latest' -> 'workspace:*' 解决 changeset 中生成 CHANGELOG 报错的问题
- update build-docs shell
- add @changesets/cli and related scripts
更新 rollup config 并增加 umd 包使用 demo 文件
npm 包 dependencies 中新增 lodash-es 依赖,解决引入项目中报错的问题
- 开发节点文本换行等体验优化的功能
- 解决 examples 中报错的问题
移除文档中 lodash-es 依赖,移除无用 console
- 优化代码注释歧义的问题
- 更新 turbo 版本并解决 extension 打包 core 依赖报错的问题
Core & Extension 更新
- core 包中 'preact' -> 'preact/compat' 解决 svg 属性问题
- 完成 core 包 roolup 打包及core 包中类型定义更新
- extension 包中代码重构,解决 TypeScript 类型定义的问题,完成打包改造
- core 包中类型定义完善,解决在 extension 包重构过程中遇到的 Core 包问题
- 优化 core 包中类型定义,增加 GraphData 类型,区别于 GraphConfigData
- 优化 bpmn 插件的导出内容
修复 GraphModel 中 getAreaElement 方法的 bug 及一些其他类型定义的优化
修复 GroupNode 中 getNodeStyle 解构后调用,BaseNodeModel 中 getNodeStyle 方法 this 为空的问题
- 确认解构后赋值和直接 this.props.model.getNodeStyle() 方法调用的区别 -> this 指向的问题
- LogicFlow Examples 中新增 Group 插件
主要修复 TextEditTool 无效的 bug,后注原因
- TextEditTool 组件更新时,原先的 graphModel 和 LogicFlow props 不会触发组件的更新,通过将 textEditElement 传入触发组件更新
- 移除代码中无用的 console
- 更新依赖 @babel/plugin-proposal-class-properties -> @babel/plugin-transform-class-properties
- EventArgs 相关类型由 unknown 改为 any
框选插件重构与示例内容丰富
- 完善部分类型定义
- 框选插件示例内容丰富
- 修复使用框选插件后,网页滚轮事件被阻塞的问题
- 修复缩放后框选元素与鼠标位移不一致的问题(#1102)
- 增加新事件 selection:selected-area,返回框选范围(#1104)
- 优化框选工具在缩放时的边距与外边框宽度计算
feat: 小地图插件重构与相关示例增加
- 优化画布移动时,小地图的更新策略,减少性能消耗
- 小地图显示区域计算逻辑修改,现在由画布元素与视口共同决定
- 优化小地图预览视窗的拖拽交互
- 修复点击小地图预览视窗会触发不可预期的画布移动的问题
- 新增小地图插件的示例
selection-select 插件中 disabled 默认设置为 true
- 用于解决当用于 stopMoveGraph 设置为 true 且启用了 selection-select 插件时,插件状态默认开启的 bug
- 更新 LICENSE 文件,格式化内容
- 其它 demo 的一些样式更新
移除 extension 包中 examples 文件夹,已转移到 examples/feature-examples 项目中
- 完善core包与group插件的类型定义
完善与修正core包的部分类型定义
minimap插件功能完善与相关示例丰富
- 小地图中可选择是否渲染连线,支持初始化时设置或通过
setShowEdge
方法更新设置
- 更完善的代码注释与类型定义
- 现在,小地图默认将位于画布的右下角,保留
show
方法设置画布位置的功能,新增updatePosition
方法用于更新小地图相对画布的决定定位
- 在小地图等示例中增加了新增功能的演示(连线可选渲染与位置调整)
完善 BaseEdge 和 BaseNode 泛型类型,内置节点 props 定义更新
重构 LogicFlow.tsx 以及 GraphMode 代码,代码按功能分区管理
- Fix typo -> fakerNode 重命名为 fakeNode,意指虚拟节点
- 主要重构 LogicFlow.tsx 中代码: 将代码按 Register,Nodes,Edges,Element,Text,EditConfig,Graph,EventCenter,History 等分模块管理
- 重构 LogicFlow 中 getPointByClient 方法,通过重载,支持多种类型参数
- 重构 LogicFlow 中 focusOn 方法,通过重载,支持多种传参方式
core包类型定义完善
小地图插件新增功能与示例丰富
- 小地图插件现在支持设置关闭小地图时的回调,用于外部更新小地图的显示状态(#829)
- 小地图插件示例增加与新增功能相关的内容
extension包的类型定义修复
- 修复 349252c 提交后,extension 包中的类型错误问题
- 为 BaseNode 的范型设置默认类型
修复小地图的预览视窗无法拖拽的问题
小地图设置回调逻辑调整为抛出事件
- 删除原有设置关闭时回调的逻辑
- 现在小地图插件在关闭时会抛出事件
miniMap:close
,可以通过 lf.on()
监听该事件来设置小地图关闭时的回调
事件系统的类型定义完善
将节点 Resize 功能内置
修复 HtmlREsize 节点 outlineStyle fill 默认为 黑色的 bug
- 统一 NodeResize 中 getResizeOutlineStyle fill 和 stroke 的返回值
更新插件相关类型定义,完善插件相关方法 use/installPlugins/installPlugin 的功能
- 解决插件中一些类型问题
- 测试并修复 LogicFlow.use api 的功能 bug
- 调整安装插件的顺序,如有重名默认优先使用 plugins 中定义的插件
重构项目中 basic shape 组件,修复功能 bug、完善类型定义
- rename formateAnchorConnectValidateData - formatAnchorConnectValidateData
- rename setHoverON -> setHoverOn, setHoverOFF -> setHoverOff
- 修复 Text 文本节点,文本不在节点中间的显示 bug,通过设置 dominantBaseline: central 解决
- TextNode getBackground 中 rectAttr 设置 y: y-1, 移除该设置
新增 common 文件夹用于存放通用方法
增加用户设置画布 100% ,在调整视窗时,画布大小同步更新的逻辑,优化体验
- 优化初始化时设置画布大小的逻辑
- 优化 DEMO 代码,解决设置 theme 未生效的 bug( 代码问题。在初始化时 style 覆盖了 defaultConfig 中的 style)
支持导出节点中的网络图片
修复线的 menu 无法正常显示的 bug (#1679)
- 修复初始化时 edgeConfig 中 type 未传值场景下,未使用 graphModel.edgeType(默认边类型) 初始化边的 bug
优化 snapshot 交互体验,内容居中且开启拖拽画布,调整菜单顺序
- 完善snapshot使用方式和修复跨域报错
修复画布拖动阻止滚动 (#1700)
新增Label文本模式, 支持配置多文本和修改文本朝向
- graphModel 中增加 textMode 属性,用于标识当前使用什么文本模式
- BaseNodeMode and BaseEdgeModel 以及 graphModel 中增加 更新 textMode 的方法
- 更新 tool 中 props 名称,logicflow -> lf,便于理解
- 增加 next-label demo
- 重构 editConfigModel.ts,完善配置项优先级从 textEdit(全局) -> nodeTextEdit/edgeTextEdit(分类) -> 元素本身 editable
- 项目中后续可以移除 useLabelText 的判断逻辑及相关的事件触发
- 配置 tool 名称通过 短横线 隔开的方式命名, eg: text-edit-tool, multiple-select-tool
- tool 增加 disableTool 和 enableTool 的方法,用于互斥 Tool 注册时,禁用掉另一个
- 优化 mediumEditor 的配置项及初始化流程。移除无用配置项,增加默认主题样式
- 开发 NextLabel 插件,取得阶段性胜利
- 移除 BaseNodeModel 中 useLabelText 相关逻辑
- node:mousemove 事件中抛出 deltaX、deltaY 数据
- 调整 Control 的范围大小,解决调整大小时,鼠标离开区域后切换回默认鼠标样式,体验不好
- 调整 NextLabel 代码逻辑,LabelModel 只做数据的存储,不做更新。用于传递 props。在 Label 中触发
- element 数据更新,LabelOverlay 渲染,Label 更新
增加 API,updateTextMode 可切换 textMode 并更新页面
增加双击节点 or 边增加 Label 的功能
- 可传入设置样式 设置 label
- 富文本编辑内容无法同步到 content 的问题
- 如果 properties 中没有 _label 配置项时,MediumEditor 初始化有点问题,选中文本无法显示工具栏
- 更新完Label content 后,Label 拖拽无效的问题(isDragging state 更新时机问题)
完成 Label 溢出模式配置能力开发
- 将 PluginsOptions 中插件对应的属性值 当 props 传入到插件的实例化中
- label 的 textOverflowMode 增加 'ellipsis' | 'wrap' | 'clip' | 'nowrap' | 'default' 配置项
- 更新 Label dragging 时,兼容画布存在缩放的情况
- 完成 Label 在节点旋转时,保持位置不变,且 Label 自身跟阶段旋转角度保持一致
- 完成节点缩放时,Label 保持相对位置不变
- 增加 labelWidth 配置,可以统一项目中 labelWidth 的宽度,也可做单独个性化配置
- 优化 node:resize 以及 node:rotate 事件抛出的数据
移除或注释项目中无用的 console
移植 Label 在边上定位 的相关代码,在调整节点更新边时,保持 Label 位置
- 根据 PR 整理代码中 Text 和 Label 相关逻辑,移除无效代码
- next-label 中增加 Edge 计算相关的逻辑
同步节点的 zIndex 到 Label 上,过滤掉 text 为空时的 Label
- 修复 rangy.createClassApplier is not a function 的错误
- 修复 isMultiple 对于双击节点或边增加 label 无效的 bug
调整core包tool文件夹
- 将 snapline 移出 tool 文件夹,因为它本身非 tool,放这里面会有误导
- 优化 tool 文件夹,将 tool 内容移至 index 中,并更新项目中相关导入
新增 adjustEdgeStart 和 adjustEdgeEnd,可单独控制调整起始点或结束点
- 支持cmd - 鼠标滚动操作放大缩小画布
- 节点文本支样式持通过properties传入textStylele配置
重构 core 包中 properties 类型定义,通过泛型的方式约束其类型
- 修复 node-selection 中 properties 未定义类型导致的报错
升级 group 插件为 dynamic-group 插件
- 完成 dynamic-group 插件 isCollased 初始化及groupAddable 状态即时更新
- 优化 editConfigModel 中属性的初始化逻辑及其初始化值调整
- 调小 ResizeControl 的范围 30 -> 15,原因是会盖住 Group 折叠的小按钮
优化允许文本拖动的逻辑判断 -> nodeTextDraggable && draggable 才可以允许拖动
开发节点缩放旋转时,同步缩放 or 旋转节点内部元素功能
- 完善 node:resize 及 node:rotate 事件抛出的数据
- 将 Control 中 resize 相关的方法提取到 utils/resize.ts 中,方便在插件中直接调用
- 在 group 组件中监听 node:resize 和 node:rotate 事件,完成对子元素的更新
测试 SelectionSelct 与 DynamicGroup 不兼容的问题并修复
边支持传入自定义样式
- 优化高亮插件功能
- Breaking Change调整 pluginOptions 只传入插件对应的 options 数据(之前是全量传入)
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
1.2.28 (2024-07-29)
Bug Fixes
- core: snap the text pos of cloneNode to grid(#1545) (dc661bd)
- error when diamondNode's edge is dragging (4978bf1)
- optimize the experience of resizeNode (135a8e3)
- 修复使用框选插件会阻塞页面滚轮事件问题 (5266822)
- 更新readme logo & publish 1.2.25 (4da3db7)
- 框选拖动折线时更新起终点位置 (27ca25b)
1.2.27 (2024-05-06)
Bug Fixes
- core: snap the text pos of cloneNode to grid(#1545) (dc661bd)
- error when diamondNode's edge is dragging (4978bf1)
- optimize the experience of resizeNode (135a8e3)
- 更新readme logo & publish 1.2.25 (4da3db7)
- 框选拖动折线时更新起终点位置 (27ca25b)
1.2.26 (2024-04-10)
Bug Fixes
1.2.25 (2024-04-03)
Bug Fixes
1.2.24 (2024-04-03)
Bug Fixes
1.2.23 (2024-03-20)
Bug Fixes
Features
1.2.22 (2024-02-05)
Features
- update @logicflow/core @logicflow/extension version to 1.2.21 (55b865b)
1.2.19 (2024-02-05)
Bug Fixes
Features
1.2.18 (2023-11-22)
Bug Fixes
- core: anchorId missed after point adjusting(#1365) (d7778cc)
- core: fix Cannot read property 'document' of undefined bug(#1433) (9e1a2c9)
- core: rename textInput (1681484)
- core: zIndex problem in overlapMode(#1395) (ae41283)
- core: 修复 overflowMode 为 autoWrap 时,节点设置 textWidth 无效的 bug(#1432) (fa1cbc7)
- prevent node without anchors using InsertNodeInPolyline(#1077) (6e10d3a)
Features
1.2.17 (2023-10-25)
Bug Fixes
- core: refresh the value of model when mouse down(#1370) (1cb45dd)
- core: use mobx reaction to track the value of stepDrag.model(#1370) (a1e3bc3)
1.2.16 (2023-10-19)
Bug Fixes
- add edge copying when copying a group(#1346) (f53ec7f)
- core: filter NaN cases in getVirtualRectSize (045e80b)
- core: restore rotation (2748c17)
- extension: bug of menu initialization (#1359) (fabd8d7)
Features
- anchor dragend事件参数增加edgeModel (7b8a0ab)
- core: implement custom path for connecting (492a412)
- extension: override addElements to support group-node copy(#1346) (e9d0139)
1.2.15 (2023-09-21)
Bug Fixes
- core: wrong extreme value of draggable range (46c3ce9)
Features
1.2.14 (2023-09-11)
Features
- core: enable node rotation (267ebc8)
- core: optimize the using of matrix (d13fc5c)
- core: trigger edge:adjust when adjusting bezier(#947) (ad993c4)
1.2.13 (2023-09-08)
Features
- core: add a new function to set outer g attributes.(#880) (90aaccd)
- core: export egde utils and sampling utils (9a83d4a)
1.2.12 (2023-08-16)
Bug Fixes
- add a symbol to distinguish plugin registration method (1e0a40a)
Features
- optimize BPMNAdapter; add input props when register plugin (4e9a90e)
1.2.11 (2023-08-10)
Bug Fixes
- core: improve the appearance of Bezier curve arrows.(#951) (d631e74)
Features
1.2.10 (2023-07-17)
Note: Version bump only for package @logicflow/core
1.2.9 (2023-06-21)
Bug Fixes
- core: compute the first point direction of the rectangular polyline using the original width and height(#817) (7a0a8ee)
- core: fix the background width of the text on the side is not displayed correctly in ellipsis mode(#1151) (b1e0380)
- core: moveNodes() add the logic of the moveNode function to calculate the moving distance of the side text (a89b630)
- core: prevent isSilentMode=true from calling repeatedly(#1180) (d8a8f5a)
1.2.8 (2023-05-30)
Bug Fixes
- adjust edge cause text error when delete connected node (9e0ac91)
- fix the issue of getStartArrow not working.(didi#1167) (691ed40)
- node:dnd-add event throwing parameter add mouse:event(#1170) (0b9f22d)
- remove unnecessary code (e819c62)
1.2.6 (2023-05-13)
Bug Fixes
- add input of convertLf2ProcessData (a13ef07)
- add optional input of adpaterOut in class LogicFlow (ff0f23e)
- keep use JSON.parse format input data.(#1153) (684a581)
- 处理没有文本鼠标hover报错的问题 (7b174f8)
Features
- support undefined as render param (3577a15)
1.2.5 (2023-05-03)
Bug Fixes
- add new id to nodesMap in changeNodeId api (8c4fee6)
- can not edit text when delete all text(#1067) (b01e4b9)
- destory keyboard events while destoty LogicFlow.(#1110) (98e749c)
- fix ts's type bug (93146ae)
- folded icon not working when overflowMode is set to ellipsis(#1099) (cc82b6d)
- getNodeDataById error handing for incorrect nodeId parameter (8d74393)
- isolate mobx (ff6c24f)
- observable object cannot appear twice(#837) (16f338f)
- set orient to auto while start point and end point is null (3d55703)
Features
- optimize the local development process (1e188be)
- support move selected nodes when disabled multipleSelect.(#894) (5a97bcc)
- the end marker of cubic bezier curve with light deflection (cca4040)
- use deepclone instead of json parse(#304) (502abde)
1.2.4 (2023-04-10)
Bug Fixes
Features
- optimize the local development process (1e188be)
- use deepclone instead of json parse(#304) (502abde)
1.2.3 (2023-03-25)
Bug Fixes
1.2.2 (2023-03-25)
Bug Fixes
1.2.1 (2023-03-14)
Note: Version bump only for package @logicflow/core
1.2.0 (2023-03-13)
Bug Fixes
- trigger extension render in difference env (9be1f58)
Bug Fixes
- compatiable witch React.StrictMode (7da8266)
- 修复getData时出现报错的情况 (12cbb06)
- 修复初始化节点的时候不传入id导致箭头不显示的问题 (dfff4cd)
Note: Version bump only for package @logicflow/core
Bug Fixes
Bug Fixes
Features
- Modify the addNode event type (122f42c)
- node model增加getTaretAnchor方法获取手动连接边到节点时需要连接的锚点(默认返回距离目标位置最近的锚点) (dfa0421)
- 增加本文溢出省略时鼠标移动到文本tip显示全文 (f14897a)
- core&extension: add pluginOptions attribute on lf instance (47cd816)
1.1.31 (2022-11-12)
Features
- separate select and setZindex behavior (53d0293)
Bug Fixes
- core: fix the arrow position and getArrow type,fixes #851 (10eebe2)
Features
- add event parameter for node:dnd-add event (35466b1)
- allow use ctrl key to select multiple elements (e46a2d2)
1.1.30 (2022-10-30)
Bug Fixes
- 处理折线没拖拽成直线后继续拖到报错的问题 (8e1bf3f)
- keep GroupNode in bottom when select node (9e3086a)
Features
- keep typo (3a017c8)
- set selected element zindex 9999 instead of always front (b8a2708)
1.1.29 (2022-09-24)
Bug Fixes
- Fix typo: currrentProperties -> currentProperties (71650b7)
- Fix typo: getBackgroud -> getBackground (3ea0c36)
- Fix typo: getCorssPointOfLine -> getCrossPointOfLine (a2c44b0)
Features
1.1.28 (2022-09-17)
Features
- add api delete node and edge property (9a7c729)
1.1.27 (2022-09-13)
Note: Version bump only for package @logicflow/core
1.1.26 (2022-08-27)
Bug Fixes
- 修正 BaseEdgeModel 构造函数属性初始化顺序 (b4f8f3a)
Features
- 增加 edgeGenerator 选项, 可自定义连边规则 (a9aff50)
1.1.25 (2022-08-21)
Features
- group add isAllowAppendIn to support pick node append in group (e54f798)
1.1.24 (2022-08-11)
Note: Version bump only for package @logicflow/core
1.1.23 (2022-08-04)
Note: Version bump only for package @logicflow/core
1.1.22 (2022-07-13)
Note: Version bump only for package @logicflow/core
1.1.21 (2022-07-02)
Bug Fixes
1.1.20 (2022-06-08)
Bug Fixes
- edge:mouseenter trigger twice (2b4e80a)
- foreignObject support style (92e37f4)
Features
1.1.19 (2022-06-01)
Features
1.1.18 (2022-05-23)
Note: Version bump only for package @logicflow/core
1.1.17 (2022-05-23)
Note: Version bump only for package @logicflow/core
1.1.16 (2022-05-18)
Bug Fixes
- remove unnecessary object (fa6ad3f)
Features
- add lf-node-select className to node when it is selected (ce8f6ae)
- lf-edge-select className to edge when it is selected (6c5c301)
- setting horizontal and vertical offset separately for fitView (37c464c)
- support edge animation (d66edec)
- support wrapPadding for edge text which overflowMode is't autoWrap (f5cc079)
- triger anchor-drop event when edge created (4b355c2)
1.1.15 (2022-05-07)
Bug Fixes
- remove unnecessary object (b0b7507)
Features
- add lf-node-select className to node when it is selected (ce8f6ae)
- lf-edge-select className to edge when it is selected (6c5c301)
- setting horizontal and vertical offset separately for fitView (37c464c)
- support edge animation (d66edec)
- support wrapPadding for edge text which overflowMode is't autoWrap (f5cc079)
1.1.14 (2022-04-22)
Note: Version bump only for package @logicflow/core
1.1.13 (2022-04-16)
Features
- add useGlobalRules and customCssRules property (88dadb8)
1.1.12 (2022-04-13)
Note: Version bump only for package @logicflow/core
Bug Fixes
- cannot move node while width and height value is zero (39238a2)
Features
1.1.11 (2022-03-29)
Note: Version bump only for package @logicflow/core
1.1.10 (2022-03-29)
Note: Version bump only for package @logicflow/core
1.1.9 (2022-03-26)
Note: Version bump only for package @logicflow/core
Features
- optimize move group children behavior (d492f20)
- optimize move node behavior (d0e4e85)
Bug Fixes
Features
- optimize anchor line dragging behavior while near graph boundary (0d798cc)
- remove html demo (a744bb2)
1.1.8 (2022-03-25)
Bug Fixes
Features
- optimize anchor line dragging behavior while near graph boundary (0d798cc)
Bug Fixes
- 修复了
group
插件在多个group
节点一起被折叠报错的问题。 (396736e)
- group undo cannot fold (5860d7e)
Features
1.1.7 (2022-03-07)
Note: Version bump only for package @logicflow/core
Bug Fixes
- click node cancel edit text (a514665)
Features
- add getAnchorShape function which allow rewrite anchor shape (e5a7d77)
1.1.6 (2022-03-02)
Note: Version bump only for package @logicflow/core
1.1.5 (2022-03-02)
Bug Fixes
- change strokeDasharray type from array to string (dd9d42e)
- edge animation demo (e8895cc)
- trigger dragstart when dragging (5ff04c8)
Features
1.1.4 (2022-02-23)
Bug Fixes
- change node state to default when create edge success (9f57894)
- editConfigModel add isSilentMode (8fcd571)
Features
1.1.3 (2022-02-18)
Bug Fixes
- stop edit text when input enter + alt (438daec)
Note: Version bump only for package @logicflow/core
1.1.1 (2022-02-10)
Features
- check width and height type (141c667)
1.1.0 (2022-02-09)
Note: Version bump only for package @logicflow/core
Note: Version bump only for package @logicflow/core
Note: Version bump only for package @logicflow/core
Bug Fixes
- use autoToFront property take node to front (3a8a7cc)
Features
Note: Version bump only for package @logicflow/core
Note: Version bump only for package @logicflow/core
Note: Version bump only for package @logicflow/core
1.0.7 (2022-01-18)
Note: Version bump only for package @logicflow/core
Bug Fixes
Bug Fixes
Features
1.0.4 (2022-01-12)
Bug Fixes
Features
1.0.1 (2022-01-07)
Bug Fixes
Features
Bug Fixes
Bug Fixes
Bug Fixes
Features
Features
Bug Fixes
Features
- use deepclone return style (e2c2af3)
Bug Fixes
- node resize set default style (b9def97)
Bug Fixes
- edge setProperties in vue (ecdaf34)
- edge text use model getTextStyle (85b36ef)
- lf.select -> lf.selectElementById (f4eea2c)
- selection events (682ba34)
Bug Fixes
Features
Note: Version bump only for package @logicflow/core
Features
0.7.13 (2021-12-09)
Features
Features
Features
0.7.12 (2021-12-04)
Features
0.7.11 (2021-11-30)
Features
- support disabled tool in core package (1c7527f)
0.7.10 (2021-11-26)
Note: Version bump only for package @logicflow/core
0.7.9 (2021-11-23)
Bug Fixes
- nodeResize outline bugfix (8e76f5f)
0.7.8 (2021-11-22)
Note: Version bump only for package @logicflow/core
0.7.7 (2021-11-19)
Features
0.7.6 (2021-11-11)
Bug Fixes
0.7.5 (2021-11-08)
Bug Fixes
- core: update text position after draging edge (e430c14)
0.7.4 (2021-11-04)
Bug Fixes
Features
- core: add anchor properties (21b245e)
- core: adjust edge (0490ae0)
- core: support anchor setting properties (ecf7aaa)
0.7.3 (2021-11-03)
Bug Fixes
- edge setProperties observable (9517468)
- remove both sourceRuleResults and targetRuleResults (1ba045a)
- core: update evenetName of edge adjustment, fixes #330 (a973de2)
Features
- core: adjust edge startPoint or endPoint (db96695)
0.7.2 (2021-10-22)
Note: Version bump only for package @logicflow/core
0.7.1 (2021-10-21)
Note: Version bump only for package @logicflow/core
Bug Fixes
Features
- add change graph&node&edge id function (13d1c0b)
- add increase overlap mode (06068e4)
- add text background (dd1a89f)
- avoid add id in dom (37cccb6), closes #309
- remove object attributes (a242500)
- save data include zIndex in increase mode (cb79054)
0.6.16 (2021-09-04)
Bug Fixes
- core: isElementInArea fix (9e8bd62)
- examples: modified examples page title (3a9ae5e)
- isElementInArea bugfix (2050510)
0.6.13 (2021-08-19)
Bug Fixes
- silent mode support recovery (7c17585)
- text undefined cause undraggble (640ec9e)
Features
0.6.12 (2021-08-17)
Bug Fixes
- editconfig default type (575e566)
- isArray not fit mobx array (8392165)
- core: code optimization (b96dfb4)
- core: nodeText auto wrap build:type bugfix (fb43025)
- extension: snapshot forginObject in svg fix (ef937a0)
Features
- add custom TextPosition (352047d)
- edgemodel support override getTextPosition (5ede6f2)
- set anchors id (17c4105)
- core: nodeText auto wrap (f260d47)
- core: nodeText auto wrap lineHeight (fcc64c3)
- core: text auto wrap for customize element (ddf51c5)
- 新增move节点采用绝对位置 (c36d604)
0.6.8 (2021-08-06)
Bug Fixes
- core: code optimization (b96dfb4)
- core: nodeText auto wrap build:type bugfix (fb43025)
- extension: snapshot forginObject in svg fix (ef937a0)
Features
- edgemodel support override getTextPosition (5ede6f2)
- set anchors id (17c4105)
- core: nodeText auto wrap (f260d47)
- core: nodeText auto wrap lineHeight (fcc64c3)
- core: text auto wrap for customize element (ddf51c5)
- 新增move节点采用绝对位置 (c36d604)
0.6.5 (2021-07-29)
Bug Fixes
Features
0.6.4 (2021-07-28)
Bug Fixes
Features
- all core style use one css (3528505)
0.6.3 (2021-07-28)
Bug Fixes
0.6.2 (2021-07-28)
Bug Fixes
- text undefined cause undraggble (ae4f1db)
- 修复getSelectElements方法,即使选中元素,但是依然返回为undefined的bug (12df9f2)
0.6.1 (2021-07-19)
Bug Fixes
- setProperties not observable in htmlNode (9b47918)
0.6.0 (2021-07-14)
Bug Fixes
Features
- add createUniqueId API (edaf244)
- add html node (373db63)
- add idGenerator global option (b6fd441)
- html node support old register method (d83821b)
- text:update event emit element data (44a0d5d)
0.5.0 (2021-06-18)
Bug Fixes
Features
0.4.15 (2021-06-17)
Bug Fixes
Features
0.4.14 (2021-06-16)
Note: Version bump only for package @logicflow/core
0.4.13 (2021-06-09)
Note: Version bump only for package @logicflow/core
0.4.11 (2021-05-31)
Note: Version bump only for package @logicflow/core
0.4.9 (2021-05-28)
Bug Fixes
0.4.8 (2021-05-25)
Bug Fixes
0.4.7 (2021-05-24)
Features
0.4.6 (2021-05-21)
Note: Version bump only for package @logicflow/core
0.4.5 (2021-05-21)
Features
0.4.4 (2021-05-19)
Bug Fixes
- extenion render bind self instence (afac922)
Features
0.4.3 (2021-05-16)
Bug Fixes
- mobx4 anchorsOffset it`s not an array (4e05895)
- remove unnecessary console (102bd81)
- twoPointDistance methods support negative number (3f9b719)
Features
- extension: endEvent node hide anchor (6e2333f)
0.4.2 (2021-05-13)
Bug Fixes
- build support ie (4a90d5e)
- ie11 transform no work (f776592)
- occasionally read isAllPass of undefined (dac3d41)
- core: export function in util (5ecae8a)
- save register API & add registerElement API (916f6be)
- update registerElement API in extension (df25d11)
Features
Bug Fixes
- ie11 transform no work (95a069b)
- occasionally read isAllPass of undefined (e413970)
- core: export function in util (24655f3)
- extension: merge v0.4 (3ce2a7c)
Features
- support class as extension (e3c40d1)
- extension: rect node resize (9d25526)
Features
- support class as extension (e3c40d1)
0.4.0 (2021-04-30)
Bug Fixes
- save register API & add registerElement API (53304b3)
- update registerElement API in extension (7798dbb)
Features
0.3.6 (2021-04-29)
Bug Fixes
Features
- add change nodetype (15878a1)
- extension: drop node in polyline (94480ac)
0.3.5 (2021-04-29)
Bug Fixes
Features
- add change nodetype (15878a1)
- extension: drop node in polyline (94480ac)
0.3.4 (2021-04-22)
Note: Version bump only for package @logicflow/core
0.3.3 (2021-04-21)
Bug Fixes
0.3.2 (2021-04-20)
Bug Fixes
- show anchors when extend baseNode (12bd0db)
- show anchors when extend baseNode (d78d7df)
Features
- core: add clearData funcion in Logicflow (2a5b345)
0.3.1 (2021-04-19)
Bug Fixes
0.3.0 (2021-04-13)
Bug Fixes
- add hoverBackground (aca87e6)
- anchor hover style not hide (2ea9e54)
- edge updateText position (e333787)
- invalid setTheme for rect size (4ed7e1a)
- save input value when swich edit element (972e4cd)
- all: add rimraf (c526ad8)
- core: fix the bug when drag edges (36aed3a)
Features
- extension: curved-edge (1731b10)
- add the height field for hoverBackground and background (4d38c8a)
- add updateAttributes API (3112b69)
- added missing element tips (71674cd)
- support setting line of dashes for edges (4f39909)
Features
- edge text support hover style (ffc75d4)
Bug Fixes
- the text content misalignment caused by switching nodes (38193f7)
- extension: mini-map default disable control & selection-select (297cecf)
Bug Fixes
- extension: mini-map default disable control & selection-select (297cecf)
Bug Fixes
- minimap extension custom disabled plugin (3768d14)
- move clone guard to shortcut (c5643da)
Features
- change cloneElements to addElements (6c59d74)
Bug Fixes
- custom shortcut replace default shortcut (791a4e2)
- vue reactive object side effect (a2dc0f8)
Features
- add getSelectElements function (d6b5a81)
Bug Fixes
- 🐛 beforeClone is not be triggered by ctrl+v (969ab8d), closes #66
- 🐛 the incorrect way of anchor choice (4811f65)
- core: invalid style setting of snapline in setTheme function (dc963d5)
- core: remove outline in container & copy incomplete elements (370bbf5)
- core: select edge after mouseup event (f24aafd)
- core: trigger the edge:click and edge:dbclick with mousedown and mouseup (b267188)
Features
- 🎸 add anchorsOffset API (f23317b)
- add mini-map extension (fa621da)
- custom active plugin & add updateText function (c974e75)
- extension add destroy property (23e59e5)
- resize node (2bc595e)
- core: add disable extension config & extension need name (8bd9355)
- core: add drap event (746f5db)
0.2.9 (2021-03-10)
Bug Fixes
- 🐛 no dbclick event was triggered when textEdit is false (f295def)
- core: Fix the problem of invalid property settings in setProperties function (3e28d4e)
0.2.8 (2021-03-05)
Bug Fixes
- core: Compatible with the data of the vue project (4d94215)
- core: Fix the problem of invalid property settings in addNode and createEdge function (54eb760)
- core: Pick standardized data in the constructor function of nodeModel (fc6f6d7)
- 🐛 lack the outline style of edge (babeaac)
- 🐛 the render err of diamond (01c85bb)
0.2.7 (2021-03-01)
Bug Fixes
- 🐛 complete the type of nodes' common style (971f63e)
- core: get vue project responsive data error (e03d277)
0.2.6 (2021-03-01)
Bug Fixes
- core: immutable redo data (7a5dac6)
- extension: 🐛fix undo error when custom text position (fc6e7d7)
- 🐛 add the type of diamond class (90f70b5)
Features
- new plugin Selection & example (2e4b489)
- core: add edit config update function (695894c)
- core: copy paste and delete multiple selected elements (4a5be86)
- core: multiple elements drag moving (a59065f)
- core: support use meta key select multiple element (e137f9f)
0.2.4 (2021-02-20)
Bug Fixes
- 🐛 fix error when moving edge (9ac20c1)
0.2.3 (2021-02-19)
Bug Fixes
- core: print error when double click edge (a890ef7)
0.2.2 (2021-02-08)
Bug Fixes
- core: change the priority of events (5373797)
0.2.1 (2021-02-08)
Bug Fixes
- core: fix anchor error (7a30f23)
- core: fix checking repeatedly verification rules (f0efbf4)
- core: fix textEdit deviation (17db629)
- core: move the tool overlay out of the graph (fcc586d)
- core: optimize anchor selection (19d5fe8)
- core: recovery ellipse size (81e8ed3)
- Spelling errors EdgeConifg -> EdgeConfig and EdgeConfig Repeat Definitions in type/index.ts (401dfb5)
Features
- core: add getPointByClient API (983fa91)
- core: add new configuration items (66d562d)
- core: Add stroke-dasharray vlaue to outline of node & edge (4cb1bca), closes #12
- core: Add the select function for logicflow (6ae0671)
- core: Create text for polyline at the double-click position (ac7eeea)
- core: support open text edit by double click anchor (690d1d1)
- core: support setting hoverOutlineStrokeDash (ad09324)
- core: v0.2.0 (f11d143)
- extension: v0.2.0 (ee67636)
- 替换文件夹名称 (9155d8a)
0.2.0 (2021-02-01)
Bug Fixes
- Spelling errors EdgeConifg -> EdgeConfig and EdgeConfig Repeat Definitions in type/index.ts (401dfb5)
- core: fix anchor error (7a30f23)
- core: fix checking repeatedly verification rules (f0efbf4)
- core: move the tool overlay out of the graph (fcc586d)
Features
- 替换文件夹名称 (9155d8a)
- core: Add stroke-dasharray vlaue to outline of node & edge (4cb1bca), closes #12
- core: support open text edit by double click anchor (690d1d1)
- core: v0.2.0 (f11d143)
- extension: v0.2.0 (ee67636)
0.1.0 (2020-12-29)
Features