Module: nagvis Branch: master Commit: 1614bcf8fe69b0a513c808e78ddb026d639b1a3f URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=1614bcf8fe69b0a513c808e78ddb026d639b1a3f
Author: Lars Michelsen <[email protected]> Date: Tue Oct 19 18:43:18 2010 +0200 #374 Fixed calculation of simple line coords --- share/frontend/nagvis-js/js/lines.js | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/share/frontend/nagvis-js/js/lines.js b/share/frontend/nagvis-js/js/lines.js index 93ae87e..09c3284 100644 --- a/share/frontend/nagvis-js/js/lines.js +++ b/share/frontend/nagvis-js/js/lines.js @@ -197,13 +197,13 @@ function drawSimpleLine(objectId, x1, y1, x2, y2, z, w, colorFill, colorBorder) var yCoord = []; xCoord[0] = x1 + newX(x2-x1, y2-y1, 0, w); - xCoord[1] = x2 + newX(x2-x1, y2-y1, -4*w, w); - xCoord[2] = x2 + newX(x2-x1, y2-y1, -4*w, -w); + xCoord[1] = x2 + newX(x2-x1, y2-y1, w, w); + xCoord[2] = x2 + newX(x2-x1, y2-y1, w, -w); xCoord[3] = x1 + newX(x2-x1, y2-y1, 0, -w); yCoord[0] = y1 + newY(x2-x1, y2-y1, 0, w); - yCoord[1] = y2 + newY(x2-x1, y2-y1, -4*w, w); - yCoord[2] = y2 + newY(x2-x1, y2-y1, -4*w, -w); + yCoord[1] = y2 + newY(x2-x1, y2-y1, w, w); + yCoord[2] = y2 + newY(x2-x1, y2-y1, w, -w); yCoord[3] = y1 + newY(x2-x1, y2-y1, 0, -w); // First create the line itselfs by the calculated coords ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
