| author | Sidharth Singh | 2012-09-06 10:43:08 (EDT) |
|---|---|---|
| committer | Stephan Born | 2012-09-06 10:43:08 (EDT) |
| commit | e037c3b6452da9a6cf7e10756e218bed051508fb (patch) (side-by-side diff) | |
| tree | 9147e657eee3b8d5a9b0465567fa93f8ebf4f681 | |
| parent | d9df53568aeaf11fa716f3d44734c1df4cd6e5d9 (diff) | |
| download | org.eclipse.stardust.ui.web-e037c3b6452da9a6cf7e10756e218bed051508fb.zip org.eclipse.stardust.ui.web-e037c3b6452da9a6cf7e10756e218bed051508fb.tar.gz org.eclipse.stardust.ui.web-e037c3b6452da9a6cf7e10756e218bed051508fb.tar.bz2 | |
CRNT-26071
1)Made changes in m_connection.js code reroute() for defaultIndicatorPath.
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@58980 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
| -rw-r--r-- | web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js index c1ee650..8c8f5d2 100644 --- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js +++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js @@ -871,63 +871,63 @@ define( this.segments.push(lastSegment);
}
- if (this.toAnchorPoint.orientation == m_constants.NORTH) {
+ if (this.fromAnchorPoint.orientation == m_constants.NORTH) {
this.defaultIndicatorPath
.attr({
'path' : "M"
- + (this.toAnchorPoint.x - m_constants.CONNECTION_DEFAULT_PATH_LENGTH / 2)
+ + (this.fromAnchorPoint.x - m_constants.CONNECTION_DEFAULT_PATH_LENGTH / 2)
+ " "
- + (this.toAnchorPoint.y
+ + (this.fromAnchorPoint.y
- m_constants.CONNECTION_DEFAULT_PATH_OFFSET - m_constants.CONNECTION_DEFAULT_PATH_LENGTH / 2)
+ "L"
- + (this.toAnchorPoint.x + m_constants.CONNECTION_DEFAULT_PATH_LENGTH / 2)
+ + (this.fromAnchorPoint.x + m_constants.CONNECTION_DEFAULT_PATH_LENGTH / 2)
+ " "
- + (this.toAnchorPoint.y
+ + (this.fromAnchorPoint.y
- m_constants.CONNECTION_DEFAULT_PATH_OFFSET + m_constants.CONNECTION_DEFAULT_PATH_LENGTH / 2)
});
- } else if (this.toAnchorPoint.orientation == m_constants.EAST) {
+ } else if (this.fromAnchorPoint.orientation == m_constants.EAST) {
this.defaultIndicatorPath
.attr({
'path' : "M"
- + (this.toAnchorPoint.x
+ + (this.fromAnchorPoint.x
+ m_constants.CONNECTION_DEFAULT_PATH_OFFSET - m_constants.CONNECTION_DEFAULT_PATH_LENGTH / 2)
+ " "
- + (this.toAnchorPoint.y - m_constants.CONNECTION_DEFAULT_PATH_LENGTH / 2)
+ + (this.fromAnchorPoint.y - m_constants.CONNECTION_DEFAULT_PATH_OFFSET/2)
+ "L"
- + (this.toAnchorPoint.x
- + m_constants.CONNECTION_DEFAULT_PATH_OFFSET + m_constants.CONNECTION_DEFAULT_PATH_LENGTH / 2)
+ + (this.fromAnchorPoint.x
+ + m_constants.CONNECTION_DEFAULT_PATH_OFFSET + m_constants.CONNECTION_DEFAULT_PATH_LENGTH)
+ " "
- + (this.toAnchorPoint.y
- - m_constants.CONNECTION_DEFAULT_PATH_OFFSET + m_constants.CONNECTION_DEFAULT_PATH_LENGTH / 2)
+ + (this.fromAnchorPoint.y
+ + m_constants.CONNECTION_DEFAULT_PATH_OFFSET/2)
});
- } else if (this.toAnchorPoint.orientation == m_constants.SOUTH) {
+ } else if (this.fromAnchorPoint.orientation == m_constants.SOUTH) {
this.defaultIndicatorPath
.attr({
'path' : "M"
- + (this.toAnchorPoint.x - m_constants.CONNECTION_DEFAULT_PATH_LENGTH / 2)
+ + (this.fromAnchorPoint.x - m_constants.CONNECTION_DEFAULT_PATH_OFFSET + m_constants.CONNECTION_DEFAULT_PATH_LENGTH)
+ " "
- + (this.toAnchorPoint.y
- + m_constants.CONNECTION_DEFAULT_PATH_OFFSET - m_constants.CONNECTION_DEFAULT_PATH_LENGTH / 2)
+ + (this.fromAnchorPoint.y
+ + m_constants.CONNECTION_DEFAULT_PATH_LENGTH)
+ "L"
- + (this.toAnchorPoint.x + m_constants.CONNECTION_DEFAULT_PATH_LENGTH / 2)
+ + (this.fromAnchorPoint.x + m_constants.CONNECTION_DEFAULT_PATH_OFFSET/2)
+ " "
- + (this.toAnchorPoint.y
- + m_constants.CONNECTION_DEFAULT_PATH_OFFSET + m_constants.CONNECTION_DEFAULT_PATH_LENGTH / 2)
+ + (this.fromAnchorPoint.y
+ + m_constants.CONNECTION_DEFAULT_PATH_OFFSET + m_constants.CONNECTION_DEFAULT_PATH_LENGTH)
});
- } else if (this.toAnchorPoint.orientation == m_constants.WEST) {
+ } else if (this.fromAnchorPoint.orientation == m_constants.WEST) {
this.defaultIndicatorPath
.attr({
'path' : "M"
- + (this.toAnchorPoint.x
+ + (this.fromAnchorPoint.x
- m_constants.CONNECTION_DEFAULT_PATH_OFFSET - m_constants.CONNECTION_DEFAULT_PATH_LENGTH / 2)
+ " "
- + (this.toAnchorPoint.y - m_constants.CONNECTION_DEFAULT_PATH_LENGTH / 2)
+ + (this.fromAnchorPoint.y - m_constants.CONNECTION_DEFAULT_PATH_LENGTH )
+ "L"
- + (this.toAnchorPoint.x
+ + (this.fromAnchorPoint.x
- m_constants.CONNECTION_DEFAULT_PATH_OFFSET + m_constants.CONNECTION_DEFAULT_PATH_LENGTH / 2)
+ " "
- + (this.toAnchorPoint.y
- - m_constants.CONNECTION_DEFAULT_PATH_OFFSET + m_constants.CONNECTION_DEFAULT_PATH_LENGTH / 2)
+ + (this.fromAnchorPoint.y
+ + m_constants.CONNECTION_DEFAULT_PATH_OFFSET/2)
});
}
|

