-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Update article-23.md #1637
Open
VarianLIn
wants to merge
61
commits into
didi:next
Choose a base branch
from
VarianLIn:patch-1
base: next
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update article-23.md #1637
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 插件
- TextEditTool 组件更新时,原先的 graphModel 和 LogicFlow props 不会触发组件的更新,通过将 textEditElement 传入触发组件更新 - 移除代码中无用的 console - 更新依赖 @babel/plugin-proposal-class-properties -> @babel/plugin-transform-class-properties - EventArgs 相关类型由 unknown 改为 any
- 优化画布移动时,小地图的更新策略,减少性能消耗 - 小地图显示区域计算逻辑修改,现在由画布元素与视口共同决定 - 优化小地图预览视窗的拖拽交互 - 修复点击小地图预览视窗会触发不可预期的画布移动的问题 - 新增小地图插件的示例
- 通过监听 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
- 小地图插件现在支持设置关闭小地图时的回调,用于外部更新小地图的显示状态(didi#829) - 小地图插件示例增加与新增功能相关的内容
- 修复 349252c 提交后,extension 包中的类型错误问题 - 为 BaseNode 的范型设置默认类型
- 删除原有设置关闭时回调的逻辑 - 现在小地图插件在关闭时会抛出事件 `miniMap:close`,可以通过 `lf.on()` 监听该事件来设置小地图关闭时的回调
添加在连线上显示条件小图标vue3版本实现参考
f0bfa42
to
5e19268
Compare
这个建议新开一个 demo ,加一个页面写呢? next 分支, examples/vue3-app 中,新加一个路由,实现你在文章中加的这个能力 需要注意的点:
|
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.
添加在连线上显示条件小图标vue3版本实现参考