Comments (4)
{
bottomExist: false,
nodeType: 2,
startNode: 1,
curTaskId: "295681174625189924",
preTaskId: "0",
x: 70,
y: 0
},
{
bottomExist: false,
nodeType: 2,
startNode: 0,
curTaskId: "295681174625189925",
preTaskId: "295681174625189924",
x: 70,
y: 175
nodeBusTipType: "1",
status: "1",
startPointX: 145,
startPointY: 90, //160,
endPointX: 145,
endPointY: 120,
pointTo: 2,
nodeStyleType: "2"
}
节点高120
from logicflow.
logicflow本身提供的矩形节点连线之间是没有间距的
能提供较为完整的demo看一下吗,只有两个节点配置 看不出有间距的原因是什么
from logicflow.
class CustomEdgeModel extends PolylineEdgeModel {
setAttributes() {
this.offset = 39;
if (findWorkingNode(this)) {
this.isAnimation = true;
this.zIndex = 999;
}
}
getOutlineStyle() {
const style = super.getOutlineStyle();
style.stroke = "#000000";
style.hover.stroke = "#000000";
return style;
}
getEdgeAnimationStyle(): EdgeAnimation {
const style = super.getEdgeAnimationStyle();
style.strokeDasharray = "5 5";
style.animationDuration = "2s";
style.stroke = "red";
return style;
}
getEdgeStyle(): {
[x: string]: any;
fill?: string;
stroke?: string;
strokeWidth?: number;
} {
const edgeStyle = super.getEdgeStyle();
edgeStyle.stroke = "blue";
return edgeStyle;
}
}
from logicflow.
怎么提供呢是个项目
通过 在线IDE(例如CodeSandbox) 或者 分享demo github/gitee项目地址 的方式提供都可以
from logicflow.
Related Issues (20)
- [Bug Report]: 不同分辨率的电脑流程图显示不一致
- 调用 setProperties 会记录一次历史,撤回之后重新 setProperties 视图和数据未发生 HOT 2
- [Bug Report]: 在特定版本下,节点缩放 NodeResize不生效。 HOT 9
- [Bug Report]: element滑动组件滑动过程中触发了自定义节点的拖动。
- [Feature]: 希望拖动画布可以选择左键中建还是右键进行拖动
- 右键菜单某项禁用
- [Bug Report]: GroupNode里在getTextStyle()里将style.textAlign='left',会出现字体随着node缩放向左移动
- [Bug Report]: groupNode.addChild(node.id)方法与group拖拽加入分组bug HOT 1
- [Bug Report]: groupNode.addChild方法有bug
- [Bug Report]: 右侧panel信息不更新
- [Bug Report]: 自定义节点setProperties方法首次触发多生成一个vue实例
- [Feature]: 折线polyline的拐点逻辑优化!
- vue3 使用时 切换显示状态 内存一直在增加 没有自动清楚缓存 HOT 6
- [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位置不是文本位置
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.