From 30cba5145b801ca1071330843733613107db2394 Mon Sep 17 00:00:00 2001 From: Tim Stallard Date: Mon, 13 Mar 2017 09:15:58 +0000 Subject: [PATCH] Changed comment --- src/pageInteraction/joining.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pageInteraction/joining.js b/src/pageInteraction/joining.js index 0c2d5cc..02406ce 100644 --- a/src/pageInteraction/joining.js +++ b/src/pageInteraction/joining.js @@ -4,7 +4,7 @@ var events = require("../events.js"); var $ = require("jquery"); function moveLine(elem, a, b, c, d){ - [[a, b], [c, d]] = [[a, b], [c, d]].sort((a, b)=>(a[0] - b[0])); //swap coords based on x-value, a will always be smaller than b + [[a, b], [c, d]] = [[a, b], [c, d]].sort((a, b)=>(a[0] - b[0])); //swap coords based on x-value, a will now be smaller than c var l = Math.sqrt(Math.pow(a - c, 2) + Math.pow(d - b, 2)); //get length of line //calculate coords var x = (a + c - l) / 2;