-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core): 将节点 Resize 能力内置,并支持节点通过 properties 传入 width/height/r/rx/ry 等信息直接设置节点大小 #1644
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…re module mobx-preact
- todo: 后续需统一 nodejs 与 browser 端能力,目前有差异
- 解决 docs 中类型定义错误的问题 - 完成 core 包 roolup 打包及core 包中类型定义更新
- remove react-umi-app demo - rename lf-engine-browser -> engine-browser-examples - rename lf-engine-node -> engine-node-examples - extension 包中修改文件夹名大小写未生效,恢复成 Control 和 Node 文件夹,后续再处理
- engine-browser-examples 中增加 graph demo,方便后续在 vite 环境下调试包功能,测试 umi 与 vite 是否一致 - 优化 core 包中类型定义,增加 GraphData 类型,区别于 GraphConfigData - 解决 docs 中的一些类型定义问题
…法 this 为空的问题 - 确认解构后赋值和直接 this.props.model.getNodeStyle() 方法调用的区别 -> this 指向的问题 - LogicFlow Examples 中新增 Group 插件
- 通过监听 properties 变化的事件,触发节点的更新 - 通过 Portal 的方式,可以获取到宿主系统的数据(比如状态),保持组件渲染和系统同步
- 通过监听 properties 变化的事件,触发节点的更新 - 利用 Teleport 将组件内部的一部分模板传送到组件的 DOM 结构外层的位置去
- 用于解决当用于 stopMoveGraph 设置为 true 且启用了 selection-select 插件时,插件状态默认开启的 bug - 更新 LICENSE 文件,格式化内容 - 其它 demo 的一些样式更新
- 完善开源共享引导文档:README 以及 CONTRIBUTING - 项目根目录运行 pnpm run lint:ts,解决项目中 eslint 错误及 warning
- 小地图中可选择是否渲染连线,支持初始化时设置或通过`setShowEdge`方法更新设置 - 更完善的代码注释与类型定义 - 现在,小地图默认将位于画布的右下角,保留`show`方法设置画布位置的功能,新增`updatePosition`方法用于更新小地图相对画布的决定定位 - 在小地图等示例中增加了新增功能的演示(连线可选渲染与位置调整)
- feature-examples 类型完善
- Fix typo -> fakerNode 重命名为 fakeNode,意指虚拟节点 - 主要重构 LogicFlow.tsx 中代码: 将代码按 Register,Nodes,Edges,Element,Text,EditConfig,Graph,EventCenter,History 等分模块管理 - 重构 LogicFlow 中 getPointByClient 方法,通过重载,支持多种类型参数 - 重构 LogicFlow 中 focusOn 方法,通过重载,支持多种传参方式
…ing github actions
- 小地图插件现在支持设置关闭小地图时的回调,用于外部更新小地图的显示状态(#829) - 小地图插件示例增加与新增功能相关的内容
- 修复 349252c 提交后,extension 包中的类型错误问题 - 为 BaseNode 的范型设置默认类型
- 删除原有设置关闭时回调的逻辑 - 现在小地图插件在关闭时会抛出事件 `miniMap:close`,可以通过 `lf.on()` 监听该事件来设置小地图关闭时的回调
- 新增 Control 组件,用于控制节点放大缩小,并在 BaseNodeModel 中增加 resize 方法 - 更新 GitHub Actions 任务名 - 重命名 allowRotation -> allowRotate;后续增加 allowResize 选项,保持命名一致性
- add ResizeControl and ResizeControlGroup into project, and use them in NodeView - add defaultTheme and other options, such as allowResize (default to be false)
- add allowResize options - test resize function in BaseNodeModel and Control
- DefaultAnimation.ts -> defaultAnimation.ts - DefatultTheme.ts -> defaultTheme.ts - history/History.ts -> history/index.ts - 并更新项目中各个文件的引用地址
- 移除目前系统中无用的 defaultTheme 和 defaultAnimation 文件 - 通过 points 置原点并基于设定的 width 和 height 缩放的方法,解决多边形形状与边框定位异常的问题
- Control.tsx 中 new StepDrag 参数中 step 传入 graphModel.gridSize,保证调整时拖拽以 gridSize 为步长移动
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.