Commit 37f5ba8e authored by SergeyLuzyanin's avatar SergeyLuzyanin

connector tracks

parent 9d99abda
...@@ -708,13 +708,15 @@ RotateState.prototype = ...@@ -708,13 +708,15 @@ RotateState.prototype =
var aAllConnectors = drawingObjects.getAllConnectorsByDrawings(oOriginalObjects, [], undefined, true); var aAllConnectors = drawingObjects.getAllConnectorsByDrawings(oOriginalObjects, [], undefined, true);
var oGroupMaps = {}; var oGroupMaps = {};
for(i = 0; i < aAllConnectors.length; ++i){ for(i = 0; i < aAllConnectors.length; ++i){
if(!oMapOriginalsId[aAllConnectors[i].Get_Id()]){
var stSp = AscCommon.g_oTableId.Get_ById(aAllConnectors[i].getStCxnId());
var endSp = AscCommon.g_oTableId.Get_ById(aAllConnectors[i].getEndCxnId());
if((stSp && !oMapOriginalsId[stSp.Get_Id()]) || (endSp && !oMapOriginalsId[endSp.Get_Id()]) || !oMapOriginalsId[aAllConnectors[i].Get_Id()]){
aAllConnectors[i].calculateTransform(((oThis instanceof MoveInGroupState) || (oThis instanceof MoveState))); aAllConnectors[i].calculateTransform(((oThis instanceof MoveInGroupState) || (oThis instanceof MoveState)));
var oGroup = aAllConnectors[i].getMainGroup(); var oGroup = aAllConnectors[i].getMainGroup();
if(oGroup){ if(oGroup){
oGroupMaps[oGroup.Id] = oGroup;
} }
oGroupMaps[oGroup.Id] = oGroup;
} }
} }
for(var key in oGroupMaps){ for(var key in oGroupMaps){
......
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