流程图渲染时出现箭头指向的节点不存在报错
This commit is contained in:
parent
f91d0dab74
commit
6938ecdb55
@ -7677,6 +7677,13 @@ var Utils = {
|
||||
var R = Math.abs(aa.x - y.x);
|
||||
var I = Math.abs(aa.y - y.y);
|
||||
var K = 30;
|
||||
// 处理异常
|
||||
if (y.id != null && Model.getShapeById(y.id) == undefined) {
|
||||
y.id = null;
|
||||
}
|
||||
if (aa.id != null && Model.getShapeById(aa.id) == undefined) {
|
||||
aa.id = null;
|
||||
}
|
||||
if (y.id != null && aa.id != null) {
|
||||
var ab = this.getAngleDir(y.angle);
|
||||
var ac = this.getAngleDir(aa.angle);
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user