Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@logicflow/extension

didi22.3kApache-2.02.0.21TypeScript support: included

LogicFlow Extensions

@logicflow/extension, LogicFlow

readme

extension

LogicFlow 扩展包

使用方式

import LogicFlow from '@logicflow/core';
import { BpmnAdapter } from '@logicflow/extension';

LogicFlow.use(BpmnAdapter);

changelog

Change Log

2.0.21

Patch Changes

2.0.20

Patch Changes

2.0.19

Patch Changes

2.0.18

Patch Changes

  • fix:(extension): 所有导出方式支持局部导出+修复相对路径导出问题 & 渐进连线+highlight优化

2.0.17

Patch Changes

2.0.16

Patch Changes

  • fix: 修复及优化一些已知问题
    • feat(extension): menu插件功能完善
    • fix(extension): 优化多选、框选与分组插件的联动
  • Updated dependencies

2.0.15

Patch Changes

  • fix: 修复一些已知问题
    • fix: 修复调整窗口大小后,小地图插件表现异常的问题 fix #2017
    • fix(extension): dynamic-group 的 addChild 没有处理 nodeGroupMap fix #2041 #2042
  • Updated dependencies

2.0.14

Patch Changes

  • fix(extension/label): 修复isMultiple设置false后仍能创建多个label的问题&增加input回调事件&增加便签示例
  • fix(extension): 【dynamic-group】DynamicGroup 使用 moveNode 进行移动时子节点没有跟随移动
  • fix(extension): 【dynamic-group】DynamicGroup 嵌套时子分组内元素被重复移动 n 次
  • fix(extension): 【selection-select】修复框选组件的不选中分组节点内部元素的逻辑,避免在选择后拖拽时,与分组移动逻辑重复
  • Updated dependencies

2.0.13

Patch Changes

2.0.12

Patch Changes

  • fix(core/extension): 新增渐进连线能力 & 修复Label、MiniMap和DynamicGroup等插件的已知问题
    • feat(NodeSelection): 新增 NodeSelection 支持自节点移动或resize时自动更新大小,新增resize NodeSelection 节点时,自动缩放其关联的子节点
    • feat(extension): 新增渐进连线插件&插件说明文档&增加源码调试示例
    • fix(extension): group插件isAllowMoveTo方法的参数名优化
    • 修复 DynamicGroup 相关 bug
    • feat(MiniMap): 新增MiniMap组件跟随的当前容器一起缩放
    • fix(extension/label): 修复label文本框固定展示白底、hover后内容偏移、单击后无法拖动、拖拽面板遮挡、状态更新问题,支持label删除
  • Updated dependencies

2.0.11

Patch Changes

  • fix: 修复一些问题
    • fix: 修复一些问题
    • fix: 修复文本拖拽不符合预期的问题 by ChangeSuger
    • feat: 支持动态修改 Grid 的配置 by ChangeSuger
    • fix: 修复 2.x 与 1.x 下相同的网格线宽,Grid 表现不一致的问题 by ChangeSuger
    • fix: node:dnd-drag 增加事件数据 by HeatonZ
    • fix(extension): 【dynamic-group】修复mousemove和isCollapsed相关问题 by wbccb
    • fix: 修复 windows 系统 node20 环境下样式文件打包失败的问题 by ChangeSuger
    • fix: 修复 node:dnd-drag 事件的类型检查问题 by ChangeSuger
    • fix(example): 修复文档中vue3自定义组件不能正常显示bug by zkt2002
    • fix(core): 在没有拖拽的情况下,Control组件突然销毁,不触发cancelDrag(#1926) by wbccb
    • fix(core): 修复笔记本触摸板点击边事件失效 by wuchenguang1998
    • feat(examples): 添加动画边demo by DymoneLewis
    • fix(core): 类型定义 properties:change 改为 node:properties-change by HeatonZ
    • feat: node-registry 自定义properties类型 by HeatonZ
    • fix(core): 修复 polyline 与多边形节点的交点不正确的问题 by Yuan-ZW
  • Updated dependencies

2.0.10

Patch Changes

  • feat(extension): 分组组件实现自动扩展 close #1750
  • fix(extension): 「dynamic-group」存入history时,将text坐标恢复到未折叠前的数据 close #1810

  • Updated dependencies

2.0.9

Patch Changes

  • fix(core&extension): fix bugs from issues
    • fix(extension): 【dynamic-group】修复resize和move的冲突问题(#1826)
    • Updated dependencies

2.0.8

Patch Changes

2.0.7

Patch Changes

  • fix: bugs from issues

    • fix(extension/bpmn-elements): 修复bpmn-elements插件中pool节点的node:resize事件取值参数错误的问题 close #1802
    • fix: 修复 bpmn-elements/Task/subProcess 中 onClick 方法报错的问题 close #1857

2.0.6

Patch Changes - Release @logicflow/extension@2.0.6

  • fix(extension): 修复lib/style/index.css引用报错问题

2.0.5

Patch Changes - Release New Extension Version

  • fix(extension): 修复 BpmnAdapter 导入含有边的 xml 报错问题

    • 修复 BpmnAdapter、BPMNAdapter 插件导入含有边的 xml 报错问题 close #1823
    • 修复 example 中 bpmn demo 用法错误
  • refactor(build): 修正 build:watch 脚本中的命令格式

    • 在 build:watch:esm 和 build:watch:cjs 脚本中添加反斜杠,以确保命令在各种环境中正确执行。这个修改提高了构建过程的可靠性和跨平台兼容性。 close #1818
  • docs(site): 获取画布数据 api 补充到快速上手页

  • fix(examples): 修复rect节点中radius属性在properties中使用方式错误

2.0.4

Patch Changes: Release 2.0.4 Version

  • chore: 新增 rollup.config 将 extension less 文件打包成 css,并不在 js 中引入 less
  • 解决 BaseEdgeModel 中 setProperty 方法使用 set 时报错的 bug
  • isIe 调整为方法,解决 ssr 项目中 window is not defined 的问题 close #1524

  • Updated dependencies

2.0.3

Patch Changes

  • 解决打包时 Extension 中三方 css 依赖无法找到的报错

2.0.2

Patch Changes: Release 2.0.2 Version

  • 修复自定义节点 Model 中 initNodeData 方法不生效
    • 修复circle、diamond、polygon、rect、ellipse 中 initNodeData 方法不生效
    • 修复官网教程- 基础教程- 节点文章中跳转错误
    • example中补充自定义circle、diamon、polygon节点
  • 解决 Menu 插件 setMenuByType 为私有方法导致用户无法调用的 bug close #1773
  • 修复单独引入less导致的用户侧启动服务报错的问题
  • 修复文档中 core 包 css 资源地址错误的问题 close #1798
  • 修复 model 中 width/height/radius 等 properties 传 0 无效的 bug

  • Updated dependencies

2.0.1

Patch Changes: 修复 2.0 版本中 Core 包及 Extension 中 dynamic-group/label 等插件的 bug

  • Release 2.0.1. Fix some issues on 2.0.0
  • Updated dependencies
  • 修复初始化时 DynamicGroup 插件折叠展开报错的问题 #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 功能内置

    • 新增 Control 组件,用于控制节点放大缩小,并在 BaseNodeModel 中增加 resize 方法
    • 更新 GitHub Actions 任务名
    • 重命名 allowRotation -> allowRotate;后续增加 allowResize 选项,保持命名一致性
    • circle/diamond/ellipse/polygon 等节点增加 resize 能力
    • 节点 model 中增加初始化时 properties 的保存,调试多边形节点 outline 不符合预期的问题

      • 解决resize 结束后节点重新定位的问题
        • Control.tsx 中 new StepDrag 参数中 step 传入 graphModel.gridSize,保证调整时拖拽以 gridSize 为步长移动
    • 完成自定义节点内置功能的开发

      • 移除目前系统中无用的 defaultTheme 和 defaultAnimation 文件
      • 通过 points 置原点并基于设定的 width 和 height 缩放的方法,解决多边形形状与边框定位异常的问题
    • 网格组件重构

      • 修正原有网格存在偏移的问题
      • 修正网格配置选项的类型声明
      • 由 Grid 类自行实现网格配置选项的初始化
      • 将Grid相关的类型声明与静态成员与方法移至命名空间
      • 修改点状网格中点的最大半径计算逻辑,并增加相关注释
  • 修复 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 数据(之前是全量传入)

Patch Changes

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

  • extension: perform topGroupZIndex calibration when add node(#1535) (2d6e41c)
  • extension: trigger updateEdgePointByAnchors() after moveTo(#1384) (65e7027)
  • optimize the experience of resizeNode (135a8e3)
  • 修复使用框选插件会阻塞页面滚轮事件问题 (5266822)
  • 修复选区插件无法触发鼠标事件的问题,同时兼容 Ctrl + 滚轮事件 (129f101)
  • 更新readme logo & publish 1.2.25 (4da3db7)

1.2.27 (2024-05-06)

Bug Fixes

  • extension: perform topGroupZIndex calibration when add node(#1535) (2d6e41c)
  • extension: trigger updateEdgePointByAnchors() after moveTo(#1384) (65e7027)
  • optimize the experience of resizeNode (135a8e3)
  • 修复选区插件无法触发鼠标事件的问题,同时兼容 Ctrl + 滚轮事件 (129f101)
  • 更新readme logo & publish 1.2.25 (4da3db7)

1.2.26 (2024-04-10)

Bug Fixes

  • extension: perform topGroupZIndex calibration when add node(#1535) (2d6e41c)
  • extension: trigger updateEdgePointByAnchors() after moveTo(#1384) (65e7027)
  • 修复选区插件无法触发鼠标事件的问题,同时兼容 Ctrl + 滚轮事件 (129f101)
  • 更新readme logo & publish 1.2.25 (4da3db7)

1.2.25 (2024-04-03)

Note: Version bump only for package @logicflow/extension

1.2.24 (2024-04-03)

Bug Fixes

  • 修复选区插件无法触发鼠标事件的问题,同时兼容 Ctrl + 滚轮事件 (129f101)

1.2.23 (2024-03-20)

Bug Fixes

  • 修复多实例时非首个实例导出不正确问题 (27148c0)

1.2.22 (2024-02-05)

Features

  • update @logicflow/core @logicflow/extension version to 1.2.21 (55b865b)

1.2.20 (2024-02-05)

Bug Fixes

  • extension: 修复task判定附加边界事件时的坐标判定问题 (5ffdffd)

1.2.19 (2023-11-22)

Bug Fixes

  • extension: 修复「小地图鼠标放上去会出现浮层展示」bug(#1419) (0a47b2d)
  • prevent node without anchors using InsertNodeInPolyline(#1077) (6e10d3a)

1.2.18 (2023-10-25)

Bug Fixes

  • extension: optimize radius and variable name (b0810b4)
  • extension: the outermost edges translate 0 when copy a group(#1379) (8368622)

1.2.17 (2023-10-19)

Bug Fixes

Features

  • extension: add test for curved-edge (c2a92dc)
  • extension: override addElements to support group-node copy(#1346) (e9d0139)

1.2.16 (2023-09-21)

Bug Fixes

  • extension: add group:remove-node and group:add-node event(#800) (58b78a0)

Features

1.2.15 (2023-09-11)

Features

  • core: enable node rotation (267ebc8)
  • extension: remove lf-rotate when using snapshot to export canvas (8aa6053)

1.2.14 (2023-09-08)

Note: Version bump only for package @logicflow/extension

1.2.13 (2023-08-16)

Bug Fixes

  • extension: change the way export icons and bpmnUtils (434b167)
  • extension: modify the content in bpmn-elements/README.md (1b37586)

1.2.12 (2023-08-16)

Bug Fixes

  • extension: change default value of cancelActivity (0fb5f35)
  • extension: ensure dpr>=1 when exporting images(#1222) (ac3a774)
  • extension: remove package ids from extension (a3fb1a8)

Features

  • optimize BPMNAdapter; add input props when register plugin (4e9a90e)

1.2.11 (2023-08-10)

Bug Fixes

  • extension: fix types error when run build:types (f3aaf91)
  • extension: nodeGroupMap was not set correctly when adding a group (8874af5)
  • extension: wrong GroupNode import lead to the failed deployment (01442a4)

Features

  • create logicflow eninge (c7d80f4)
  • extension: new bpmn plugin (bd3e76a)
  • extension: perfecting readme.md in extension/bpmn-elements (492a277)

1.2.10 (2023-07-17)

Bug Fixes

  • calculate the pos of the menu considering the bounds(#1019) (43961a6)
  • use anchors to adjust the pos of edges during dragging(#807#875) (83c7385)
  • 修正Control移除item不正确的问题 (560a007)

1.2.9 (2023-06-21)

Bug Fixes

  • extension: store the state of the children before folding, and restore the state when the parent is expanded(#1145) (9ca39a6)
  • fix the bug of getting error snapshot after scaling the graph (bad2c59)

1.2.8 (2023-05-30)

Note: Version bump only for package @logicflow/extension

1.2.7 (2023-05-17)

Bug Fixes

  • add dragging translation to offset while getting snapshot (e2fe1fe)
  • fix bad case about bezier line in snapshot output.didi#1147 (7923619)
  • remove extra content in bpmnAdapter output (865a1c6)
  • remove extra content in bpmnAdapter output(didi#1155) (57a6750)
  • remove extra content in bpmnAdapter output(issue#1155) (f76064e)
  • resolve issue with incomplete display of minimap (08a2c51)

1.2.6 (2023-05-13)

Bug Fixes

  • add input of convertLf2ProcessData (a13ef07)
  • add optional input in BpmnAdapter (d88d290)
  • add optional input of adpaterOut in class LogicFlow (ff0f23e)
  • remove extra $ in json2xml.ts (9c04d85)
  • 修复边上插入节点的规则问题 (a7e577e)
  • 处理没有文本鼠标hover报错的问题 (7b174f8)

1.2.5 (2023-05-03)

Bug Fixes

  • add xml node type reference, support #comment parsing (78b04b3)
  • add xml node type reference, support #comment parsing (b2ff0d4)
  • downgrade jest version to fix the compiling error of yargs types (cda318d)
  • edge insertion node checking rules (#1078) (e40df4d)
  • fix a mistake (aa8eb09)
  • fix bug 571 (90ba0cf)
  • fix bugs in code review (f0ade3c)
  • fix bugs in extension/src/bpmn-adapter/index.ts (b96c882)
  • fix execution bug in xml ⇄ json (4551d99)
  • fix the bug of cdata-transformation in extension: bpmn-adapter (d690412)
  • fix the transformation of xml⇋json in extension: bpmn-adapter (f7a9421)
  • fix ts's type bug (93146ae)
  • folded icon not working when overflowMode is set to ellipsis(#1099) (cc82b6d)
  • observable object cannot appear twice(#837) (16f338f)

1.2.4 (2023-04-10)

Bug Fixes

1.2.3 (2023-03-25)

Note: Version bump only for package @logicflow/extension

1.2.2 (2023-03-25)

Bug Fixes

  • export images compatible with Firefox(#269) (d87065e)
  • update logicflow site url (8774efe)
  • virtual models cannot be included in group children.(#1022) (76d559d)

1.2.1 (2023-03-14)

Note: Version bump only for package @logicflow/extension

1.2.0 (2023-03-13)

Bug Fixes

  • trigger extension render in difference env (9be1f58)

1.2.0-next.5 (2023-03-10)

Note: Version bump only for package @logicflow/extension

1.2.0-next.4 (2023-02-22)

Note: Version bump only for package @logicflow/extension

1.2.0-next.3 (2023-02-13)

Note: Version bump only for package @logicflow/extension

1.2.0-next.2 (2023-01-13)

Bug Fixes

Features

  • add event to dnd-penal (9707cfb)
  • core&extension: add pluginOptions attribute on lf instance (47cd816)
  • extension: minimap enhance, fixes #802 (15c6ca3)
  • extension: minimap pirvate modifier (238fc5f)

1.1.31 (2022-11-12)

1.2.0-next.1 (2022-10-10)

Bug Fixes

1.2.0-next.0 (2022-09-29)

Note: Version bump only for package @logicflow/extension

1.1.30 (2022-10-30)

Note: Version bump only for package @logicflow/extension

1.1.29 (2022-09-24)

Features

1.1.28 (2022-09-17)

Note: Version bump only for package @logicflow/extension

1.1.27 (2022-09-13)

Note: Version bump only for package @logicflow/extension

1.1.26 (2022-08-27)

Note: Version bump only for package @logicflow/extension

1.1.25 (2022-08-21)

Bug Fixes

  • 修复分组嵌套分组时子分组内部节点无法跟随移动的问题 (c7edb01)

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/extension

1.1.23 (2022-08-04)

Note: Version bump only for package @logicflow/extension

1.1.22 (2022-07-13)

Note: Version bump only for package @logicflow/extension

1.1.21 (2022-07-02)

Bug Fixes

  • extension-selection: 修复开启selection后,右键仍会出现上下文菜单的问题 (d15330c)

1.1.20 (2022-06-08)

Features

1.1.19 (2022-06-01)

Note: Version bump only for package @logicflow/extension

1.1.18 (2022-05-23)

Note: Version bump only for package @logicflow/extension

1.1.17 (2022-05-23)

Bug Fixes

  • use blank:drop instead of graph:transform (c7fc211)

1.1.16 (2022-05-18)

Note: Version bump only for package @logicflow/extension

1.1.15 (2022-05-07)

Note: Version bump only for package @logicflow/extension

1.1.14 (2022-04-22)

Bug Fixes

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/extension

1.1.12-alpha.0 (2022-04-09)

Note: Version bump only for package @logicflow/extension

1.1.11 (2022-03-29)

Note: Version bump only for package @logicflow/extension

1.1.10 (2022-03-29)

Note: Version bump only for package @logicflow/extension

1.1.9 (2022-03-26)

Note: Version bump only for package @logicflow/extension

1.1.9-alpha.1 (2022-03-26)

Features

  • optimize move group children behavior (d492f20)
  • optimize move node behavior (d0e4e85)

1.1.9-alpha.0 (2022-03-25)

Bug Fixes

  • 修复新增分组子节点未被记录的问题 (24d9fc9)

1.1.8 (2022-03-25)

Bug Fixes

  • 修复新增分组子节点未被记录的问题 (24d9fc9)

1.1.8-alpha.0 (2022-03-25)

Bug Fixes

  • 修复了group插件在多个group节点一起被折叠报错的问题。 (396736e)
  • group undo cannot fold (5860d7e)
  • node resize can`t set shape attributes (9811e93)

Features

  • add node resize maxwidth and maxheight (e98f575)
  • optimize drag node behavior (f88042d)

1.1.7 (2022-03-07)

Bug Fixes

  • node resize can`t set shape attributes (9811e93)

1.1.7-alpha.1 (2022-03-04)

Bug Fixes

  • node resize can`t set shape attributes (9811e93)

1.1.7-alpha.0 (2022-03-03)

Performance Improvements

1.1.6 (2022-03-02)

Note: Version bump only for package @logicflow/extension

1.1.5 (2022-03-02)

Note: Version bump only for package @logicflow/extension

1.1.4 (2022-02-23)

Note: Version bump only for package @logicflow/extension

1.1.3 (2022-02-18)

Note: Version bump only for package @logicflow/extension

1.1.3-alpha.0 (2022-02-18)

Features

1.1.2 (2022-02-10)

Features

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/extension

1.1.0-alpha.7 (2022-02-09)

Features

  • group listen node:dnd-drag event (3934d9c)

1.1.0-alpha.6 (2022-01-27)

Bug Fixes

  • not create new edge while edge source and target both in group (9ec3197)

1.1.0-alpha.5 (2022-01-27)

Bug Fixes

  • not create new edge while edge source and target both in group (9ec3197)

1.1.0-alpha.4 (2022-01-27)

Bug Fixes

  • extensition-GroupShrink console->throw error (c7cf0ef)
  • use autoToFront property take node to front (3a8a7cc)

Features

  • add attribute visible to element (4676427)
  • add extension-GroupShrink (99e5414)
  • add graph:rendered event (a3838c3)
  • add group hook (a955e7c)
  • group support fold (c1d8c10)
  • group support getAddableOutlineStyle (a34f58c)
  • group support resize (d9e2403)

1.1.0-alpha.2 (2022-01-21)

Note: Version bump only for package @logicflow/extension

1.1.0-alpha.1 (2022-01-21)

Note: Version bump only for package @logicflow/extension

1.1.0-alpha.0 (2022-01-20)

Features

  • change MiniMap.show -> lf.extension.miniMap.show (39e1a2f)
  • extension: htmlNode resize (24209af)

1.0.7 (2022-01-18)

Note: Version bump only for package @logicflow/extension

1.0.7-alpha.1 (2022-01-18)

Features

  • add lfJson2Xml and lfXml2Json (928a0d4)

1.0.7-alpha.0 (2022-01-18)

Bug Fixes

1.0.4 (2022-01-12)

Bug Fixes

Features

1.0.1-alpha.0 (2022-01-07)

Features

1.0.0-alpha.12 (2021-12-30)

Note: Version bump only for package @logicflow/extension

1.0.0-alpha.11 (2021-12-29)

Note: Version bump only for package @logicflow/extension

1.0.0-alpha.10 (2021-12-29)

Note: Version bump only for package @logicflow/extension

1.0.0-alpha.9 (2021-12-24)

Features

1.0.0-alpha.8 (2021-12-22)

Note: Version bump only for package @logicflow/extension

1.0.0-alpha.7 (2021-12-22)

Bug Fixes

  • node resize set default style (b9def97)

1.0.0-alpha.6 (2021-12-22)

Bug Fixes

1.0.0-alpha.4 (2021-12-21)

Bug Fixes

Features

1.0.0-alpha.3 (2021-12-09)

Note: Version bump only for package @logicflow/extension

1.0.0-alpha.1 (2021-12-09)

Bug Fixes

Features

  • use loose class properties (921a09b)

0.7.13 (2021-12-09)

Bug Fixes

  • add disabled_delete attr in node-selection (6b103d5)
  • add disableNodeSelection callback in node-selection (de21347)
  • fix addNodeSelection methods in node-selection plugin (f75afd4)

Features

0.7.13-alpha.1 (2021-12-07)

Features

0.7.13-alpha.0 (2021-12-07)

Bug Fixes

  • fix addNodeSelection methods in node-selection plugin (f75afd4)

0.7.12 (2021-12-04)

Note: Version bump only for package @logicflow/extension

0.7.11 (2021-11-30)

Features

  • support disabled tool in core package (1c7527f)

0.7.10 (2021-11-26)

Features

0.7.9 (2021-11-23)

Bug Fixes

  • context menu edge icon position (f06ead4)
  • nodeResize outline bugfix (8e76f5f)

Features

  • context-menu use className (e58eaea)

0.7.8 (2021-11-22)

Bug Fixes

  • nodeResize getResizeShape bugfix (e617013)

Features

0.7.7 (2021-11-19)

Features

  • add context menu plugin (8c5d7a8)

0.7.6 (2021-11-11)

Bug Fixes

  • minimap become invisible when repeat init (ad488fd)

0.7.5 (2021-11-08)

Note: Version bump only for package @logicflow/extension

0.7.4 (2021-11-04)

Note: Version bump only for package @logicflow/extension

0.7.3 (2021-11-03)

Note: Version bump only for package @logicflow/extension

0.7.2 (2021-10-22)

Note: Version bump only for package @logicflow/extension

0.7.1 (2021-10-21)

Note: Version bump only for package @logicflow/extension

0.7.1-alpha.0 (2021-10-21)

0.7.1-alpha.0 (2021-10-21)

Bug Fixes

Features

0.6.16 (2021-09-04)

Bug Fixes

  • examples: modified examples page title (3a9ae5e)
  • extension: snapshot bugfix after zooming (c23c0fa)

0.6.13 (2021-08-19)

Bug Fixes

  • extension: init isDefalutStopMoveGraph of SelectionSelect (88ec07b)

Features

0.6.12 (2021-08-17)

Bug Fixes

  • extension: snapshot forginObject in svg fix (ef937a0)

Features

  • add custom TextPosition (352047d)
  • edgemodel support override getTextPosition (5ede6f2)
  • increase width and height of snapshot data (e223510)
  • set anchors id (17c4105)
  • extension: support for obtaining snapshot data (aac9fe0)

0.6.8 (2021-08-06)

Bug Fixes

  • extension: snapshot forginObject in svg fix (ef937a0)

Features

  • edgemodel support override getTextPosition (5ede6f2)
  • set anchors id (17c4105)
  • extension: support for obtaining snapshot data (aac9fe0)

0.6.5 (2021-07-29)

Note: Version bump only for package @logicflow/extension

0.6.4 (2021-07-28)

Note: Version bump only for package @logicflow/extension

0.6.3 (2021-07-28)

Note: Version bump only for package @logicflow/extension

0.6.2 (2021-07-28)

Note: Version bump only for package @logicflow/extension

0.6.1 (2021-07-19)

Note: Version bump only for package @logicflow/extension

0.6.0 (2021-07-14)

Bug Fixes

  • new selection select (4fc34d4)
  • use pluginName replace name (2b2706a)
  • 修复control组件某些情况下无法销毁的问题 (47fc75d)
  • textension: rename function getShapeReise to getResizeShape (88d6d53)

Features

  • 解决bpmn element 导出model和view存在的问题 (c6a259a)
  • extension: node resize update (5434840)

0.5.0 (2021-06-18)

Bug Fixes

  • use pluginName replace name (8bf1a08)
  • 修复control组件某些情况下无法销毁的问题 (47fc75d)
  • textension: rename function getShapeReise to getResizeShape (88d6d53)

Features

  • extension: node resize update (5434840)

0.4.15 (2021-06-17)

Bug Fixes

  • 修复control组件某些情况下无法销毁的问题 (47fc75d)
  • textension: rename function getShapeReise to getResizeShape (88d6d53)

Features

  • extension: node resize update (5434840)

0.4.14 (2021-06-16)

Bug Fixes

  • 修复control组件某些情况下无法销毁的问题 (4f2875d)
  • textension: rename function getShapeReise to getResizeShape (88d6d53)

Features

  • extension: node resize update (5434840)

0.4.13 (2021-06-09)

Bug Fixes

  • textension: rename function getShapeReise to getResizeShape (88d6d53)

Features

  • extension: node resize update (5434840)

0.4.12 (2021-05-31)

Note: Version bump only for package @logicflow/extension

0.4.11 (2021-05-31)

Note: Version bump only for package @logicflow/extension

0.4.10 (2021-05-28)

Bug Fixes

0.4.9 (2021-05-28)

Bug Fixes

  • extension destroy domContainer is undefined (6f8fe13)

0.4.8 (2021-05-25)

Note: Version bump only for package @logicflow/extension

0.4.7 (2021-05-24)

Features

  • 自定义节点model支持获取graphModel (4ae15aa)

0.4.6 (2021-05-21)

Note: Version bump only for package @logicflow/extension

0.4.5 (2021-05-21)

Features

  • 自定义节点model支持获取graphModel (71927f6)

0.4.4 (2021-05-19)

Features

  • dndpanel support properties, related #181 (765416c)
  • docs: add docs for NodeResize (2a629bc)

0.4.3 (2021-05-16)

Bug Fixes

Features

  • extension: endEvent node hide anchor (6e2333f)

0.4.2 (2021-05-13)

Bug Fixes

Features

0.4.1-alpha.1 (2021-05-12)

Bug Fixes

Features

0.4.1-alpha.0 (2021-05-06)

Features

  • add get flow path extension (a56dd9a)
  • support class as extension (e3c40d1)
  • support keep path id (fc7d3a8)

0.4.0 (2021-04-30)

Bug Fixes

  • change the points type (a845deb)
  • update registerElement API in extension (7798dbb)

Features

0.3.6 (2021-04-29)

Features

  • extension: drop node in polyline (94480ac)

0.3.5 (2021-04-29)

Features

  • extension: drop node in polyline (94480ac)

0.3.4 (2021-04-22)

Bug Fixes

0.3.3 (2021-04-21)

Bug Fixes

0.3.2 (2021-04-20)

Bug Fixes

  • show anchors when extend baseNode (12bd0db)

0.3.1 (2021-04-19)

Bug Fixes

  • Gradient has outdated direction syntax (48fdc1f)
  • menu error in vue (4f123a9)

0.3.0 (2021-04-13)

Bug Fixes

  • minimap support register node (3a692e6)
  • set the start position of selection when mouse is down (c7d3715)
  • support custom style by class for mini-map (4c97625)
  • all: add rimraf (c526ad8)

Features

  • extension: curved-edge (1731b10)
  • add the switch of SelectionSelect in Extension (35baa89)
  • add the UMD dist of BpmnAdapter and TurboAdapter in extension (2edac3b)
  • extension: turbo-adapter (1b4c99e)

0.3.0-alpha.5 (2021-03-30)

Features

  • edge text support hover style (ffc75d4)

0.3.0-alpha.4 (2021-03-24)

Bug Fixes

  • extension: mini-map default disable control & selection-select (297cecf)

0.3.0-alpha.3 (2021-03-23)

Bug Fixes

  • extension: mini-map default disable control & selection-select (297cecf)

0.3.0-alpha.2 (2021-03-22)

Bug Fixes

  • minimap extension custom disabled plugin (3768d14)

0.3.0-alpha.1 (2021-03-19)

Features

  • add getSelectElements function (d6b5a81)

0.3.0-alpha.0 (2021-03-18)

Bug Fixes

  • 🐛 add the name field for the extension components (24a2831)
  • mini map import error type (99767e2)
  • typo menu (ad797e3)

Features

  • add mini map extension (10d4056)
  • add mini-map extension (fa621da)
  • extension add destroy property (23e59e5)
  • mini map position required (907990e)
  • resize node (2bc595e)
  • core: add disable extension config & extension need name (8bd9355)

0.2.9 (2021-03-10)

Note: Version bump only for package @logicflow/extension

0.2.8 (2021-03-05)

Note: Version bump only for package @logicflow/extension

0.2.7 (2021-03-01)

Note: Version bump only for package @logicflow/extension

0.2.6 (2021-03-01)

Bug Fixes

  • extension: 🐛fix undo error when custom text position (fc6e7d7)
  • extension: fix adapter out data (3941c4b)

Features

  • new plugin Selection & example (2e4b489)
  • core: copy paste and delete multiple selected elements (4a5be86)
  • core: support use meta key select multiple element (e137f9f)

0.2.5 (2021-02-23)

Bug Fixes

  • 🐛 fix the result of setting menu in model (74494a5)
  • extension: 🐛 fix bpmn demo download not work (6cec577)

0.2.4 (2021-02-20)

Note: Version bump only for package @logicflow/extension

0.2.3 (2021-02-19)

Note: Version bump only for package @logicflow/extension

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 checking repeatedly verification rules (f0efbf4)

Features

0.2.0 (2021-02-01)

Bug Fixes

  • core: fix checking repeatedly verification rules (f0efbf4)

Features

0.1.0 (2020-12-29)

Features