Coder Social home page Coder Social logo

Comments (4)

luomings avatar luomings commented on June 6, 2024

{
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.

DymoneLewis avatar DymoneLewis commented on June 6, 2024

logicflow本身提供的矩形节点连线之间是没有间距的
能提供较为完整的demo看一下吗,只有两个节点配置 看不出有间距的原因是什么

from logicflow.

luomings avatar luomings commented on June 6, 2024

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.

DymoneLewis avatar DymoneLewis commented on June 6, 2024

怎么提供呢是个项目

通过 在线IDE(例如CodeSandbox) 或者 分享demo github/gitee项目地址 的方式提供都可以

from logicflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.