通过查找
parent
8eca70acce
commit
0a9ca68dbd
|
@ -1007,18 +1007,6 @@ class AltiumSchematicRenderer
|
|||
e6.geometry.setTerminalPoint(new mxPoint(obj.points[obj.points.length - 1].x,
|
||||
obj.points[obj.points.length - 1].y), false)
|
||||
|
||||
var obj1 = this.graph.getCellAt(obj.points[0].x,obj.points[0].y,parent)
|
||||
var obj2 = this.graph.getCellAt(obj.points[obj.points.length - 1].x,
|
||||
obj.points[obj.points.length - 1].y,parent)
|
||||
for (let i in this.graph.model.cells){
|
||||
if(this.graph.model.cells[i].geometry != undefined){
|
||||
//
|
||||
if((this.graph.model.cells[i].geometry['x'] == obj.points[0].x)
|
||||
&&(this.graph.model.cells[i].geometry['y'] == obj.points[0].y)){
|
||||
console.log("find first")
|
||||
console.log(this.graph.model.cells[i].geometry)
|
||||
}
|
||||
}
|
||||
}
|
||||
// if (!this.#shouldShow(obj)) continue;
|
||||
|
||||
|
|
Loading…
Reference in New Issue