Comments (6)
发现新增的这个自定义html节点没有删除 多次操作会一直增加 内存也在增加
from logicflow.
感谢反馈,确实有这样的问题,目前正在开发destroy方法,短期比较推荐在FlowChart的beforeDestroy里调用一下lf.clearData()方法清空画布或者使用v-show控制组件的显隐
from logicflow.
我尝试了lf.clearData()方法 节点还在 感觉作用不是太大
from logicflow.
我尝试了lf.clearData()方法 节点还在 感觉作用不是太大
我跑了下你给的示例
1、FlowChart组件销毁但是节点内存不释放的问题确实存在,无论是html节点还是一般的节点
2、内存的增长情况还好
一开始:
GC后:
3、尝试做了一些解除引用的动作,有一定作用,但是不影响结论1
from logicflow.
我尝试了你的这种方法 列子里面数据少 我用到项目组作用不大
这是我用例子跑的 先切换显隐看下是100mb 再切换很多次增加到了200mb,而且 componentWillMount() {
this.app.unmount()
}还会有警告
from logicflow.
我尝试了你的这种方法 列子里面数据少 我用到项目组作用不大 这是我用例子跑的 先切换显隐看下是100mb 再切换很多次增加到了200mb,而且 componentWillMount() { this.app.unmount() }还会有警告
销毁的方法目前看确实是需要的,内存未释放的问题需要整体看下、排查一下,工作量可能不小
from logicflow.
Related Issues (20)
- [Bug Report]: groupNode.addChild方法有bug
- [Bug Report]: 右侧panel信息不更新
- [Bug Report]: 自定义节点setProperties方法首次触发多生成一个vue实例
- [Feature]: 折线polyline的拐点逻辑优化!
- [Bug Report]: updateEditConfig方法对adjustEdgeStartAndEnd的更新似乎无法生效 HOT 1
- [Bug Report]: angular使用logicflow时需要引入preact和mobix这两个库感觉很怪异
- [Feature]: 流程图预览
- [Feature]: 希望支持自定义图片有url时,lf.getSnapshot();可以直接保存。
- 节点右键菜单如何根据节点状态可以实现动态的显隐 HOT 1
- [Bug Report]: 元素堆叠,鼠标点击zIndex大的上层节点后会被zIndex小的下层节点覆盖
- [Bug Report]: 1.2.18以上版本双击Edge位置不是文本位置
- [Feature]:基于LogicFlow做UML图形编辑器的可行性?
- [Bug Report]: 内置插件小地图miniMap的选中框变成了个蓝点,并且移动蓝点会疯狂报错
- [Bug Report]: 小地图中监听画布位置变化并重新setView中的限流过小,导致拖拽时会每隔300ms顿一下
- [Bug Report]: 渲染好画布后,鼠标在画布上移动,一直发出报错Unable to preventDefault inside passive event listener invocation HOT 4
- [Feature]: 请问Edges的id和type怎么改?
- [Bug Report]: 节点显示非指定坐标 HOT 2
- [锚点]: 锚点连线后 锚点位置发生变化 连线却没跟着锚点变化 HOT 1
- [Bug Report]: InsertNodeInPolyline扩展插件个性化配置设置不生效 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logicflow.