Repository: incubator-atlas Updated Branches: refs/heads/master 6b33bcf64 -> d6f5d9da6
Vishal: Beautified Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/970115d0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/970115d0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/970115d0 Branch: refs/heads/master Commit: 970115d0862943a228f94477f24d8ac6f206e97e Parents: e426db2 Author: Vishal Kadam <[email protected]> Authored: Thu Jun 18 19:09:56 2015 -0400 Committer: Vishal Kadam <[email protected]> Committed: Thu Jun 18 19:09:56 2015 -0400 ---------------------------------------------------------------------- .../public/modules/lineage/lineageController.js | 30 ++++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/970115d0/dashboard/v2/public/modules/lineage/lineageController.js ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/modules/lineage/lineageController.js b/dashboard/v2/public/modules/lineage/lineageController.js index 6e4e1e3..b8bd09c 100755 --- a/dashboard/v2/public/modules/lineage/lineageController.js +++ b/dashboard/v2/public/modules/lineage/lineageController.js @@ -196,20 +196,20 @@ angular.module('dgc.lineage').controller('LineageController', ['$element', '$sco 'translate(' + margin.left + ',' + margin.right + ')'); //arrow svg.append("svg:defs").append("svg:marker").attr("id", "arrow").attr("viewBox", "0 0 10 10").attr("refX", 26).attr("refY", 5).attr("markerUnits", "strokeWidth").attr("markerWidth", 6).attr("markerHeight", 9).attr("orient", "auto").append("svg:path").attr("d", "M 0 0 L 10 5 L 0 10 z"); - + //marker for input type graph svg.append("svg:defs") - .append("svg:marker") - .attr("id", "input-arrow") - .attr("viewBox", "0 0 10 10") - .attr("refX", -15) - .attr("refY", 5) - .attr("markerUnits", "strokeWidth") - .attr("markerWidth", 6) - .attr("markerHeight", 9) - .attr("orient", "auto") - .append("svg:path") - .attr("d", "M -2 5 L 8 0 L 8 10 z"); + .append("svg:marker") + .attr("id", "input-arrow") + .attr("viewBox", "0 0 10 10") + .attr("refX", -15) + .attr("refY", 5) + .attr("markerUnits", "strokeWidth") + .attr("markerWidth", 6) + .attr("markerHeight", 9) + .attr("orient", "auto") + .append("svg:path") + .attr("d", "M -2 5 L 8 0 L 8 10 z"); var root = data; @@ -284,10 +284,10 @@ angular.module('dgc.lineage').controller('LineageController', ['$element', '$sco .style('stroke', 'green') .attr('d', diagonal); - if($scope.type === 'inputs') { - link.attr("marker-start", "url(#input-arrow)");//if input + if ($scope.type === 'inputs') { + link.attr("marker-start", "url(#input-arrow)"); //if input } else { - link.attr("marker-end", "url(#arrow)");//if input + link.attr("marker-end", "url(#arrow)"); //if input } }
