问题描述
mxgraph画图时,创建边连接,边不能与顶点对齐,代码为:
相关代码
// 请把代码文本粘贴到下方(请勿用图片代替代码)
var v1 = createVertex(parent, getVertexId(), '低压电源ss', 120, 20,24, 24, 'dydy');
var v3 = createVertex(parent, getVertexId(), '计量点:22', 120,300 , 18, 18, 'jld');
var e11 = createEdge(parent, getEdgeId(), '', v1, v3, 'edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;exitX=0.75;exitY=1;jettySize=auto;orthogonalLoop=1;'); //边的类型为orthogonalEdgeStyle