Commit 67a8413e authored by SergeyLuzyanin's avatar SergeyLuzyanin

remove connection on resize

parent b73a4a33
......@@ -823,6 +823,17 @@ function ResizeTrackShapeImage(originalObject, cardDirection, drawingsController
this.overlayObject.updateExtents(this.resizedExtX, this.resizedExtY);
this.recalculateTransform();
if(this.bConnector){
if(this.numberHandle === 0){
this.beginShapeIdx = null;
this.beginShapeId = null;
}
else{
this.endShapeIdx = null;
this.endShapeId = null;
}
}
};
this.resizeRelativeCenter = function(kd1, kd2, ShiftKey)
......@@ -1054,6 +1065,20 @@ function ResizeTrackShapeImage(originalObject, cardDirection, drawingsController
}
}
if(this.bConnector){
var nvUniSpPr = this.originalObject.nvSpPr.nvUniSpPr.copy();
if(this.numberHandle === 0){
nvUniSpPr.stCnxIdx = this.beginShapeIdx;
nvUniSpPr.stCnxId = this.beginShapeId;
this.originalObject.nvSpPr.setUniSpPr(nvUniSpPr);
}
else{
nvUniSpPr.endCnxIdx = this.endShapeIdx;
nvUniSpPr.endCnxId = this.endShapeId;
this.originalObject.nvSpPr.setUniSpPr(nvUniSpPr);
}
}
}
else{
var _xfrm = this.originalObject.spPr.xfrm;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment