如何在边上连接到顶点的左侧中间高度
How to connect on edge to the left-side-mid-height of a vertex
var vertex = graph.createVertex(null, null, value, x, y, width, height, style);
cell = graph.addCell(vertex, null);
edge = graph.createEdge(null, null, '', parent, cell, graph.createCurrentEdgeStyle());
edge = graph.addEdge(edge, null, parent, cell);
如何告诉这个 edge
连接到目标单元格的 left-side-mid-height
?
parent
和 cell
是 vertex
的
好的,终于找到了我自己的答案,只需要为边缘创建添加一个样式
exitX=1;exitY=0.5;exitPerimeter=1;entryX=0;entryY=0.5;entryPerimeter=1;
此样式将强制边缘从源的右中部退出并进入目标的左中部。
var vertex = graph.createVertex(null, null, value, x, y, width, height, style);
cell = graph.addCell(vertex, null);
edge = graph.createEdge(null, null, '', parent, cell, graph.createCurrentEdgeStyle());
edge = graph.addEdge(edge, null, parent, cell);
如何告诉这个 edge
连接到目标单元格的 left-side-mid-height
?
parent
和 cell
是 vertex
的
好的,终于找到了我自己的答案,只需要为边缘创建添加一个样式
exitX=1;exitY=0.5;exitPerimeter=1;entryX=0;entryY=0.5;entryPerimeter=1;
此样式将强制边缘从源的右中部退出并进入目标的左中部。