Repository: incubator-atlas Updated Branches: refs/heads/branch-0.5-incubating ab79346a7 -> ed2a47514
show arrow pointing inwards for input tab (cherry picked from commit 2fa32ec) Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/ed2a4751 Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/ed2a4751 Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/ed2a4751 Branch: refs/heads/branch-0.5-incubating Commit: ed2a47514f20f4d7dba10241f44ba29c653d934d Parents: ab79346 Author: Mouly Kumar <[email protected]> Authored: Mon Jun 15 21:50:23 2015 -0700 Committer: Venkatesh Seetharam <[email protected]> Committed: Tue Jun 16 17:34:26 2015 -0700 ---------------------------------------------------------------------- .../public/modules/lineage/lineageController.js | 21 +++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/ed2a4751/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 6539375..6e4e1e3 100755 --- a/dashboard/v2/public/modules/lineage/lineageController.js +++ b/dashboard/v2/public/modules/lineage/lineageController.js @@ -196,6 +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"); var root = data; @@ -269,7 +283,12 @@ angular.module('dgc.lineage').controller('LineageController', ['$element', '$sco //.style('stroke', function(d) { return d.target.level; }) .style('stroke', 'green') .attr('d', diagonal); - link.attr("marker-end", "url(#arrow)"); + + if($scope.type === 'inputs') { + link.attr("marker-start", "url(#input-arrow)");//if input + } else { + link.attr("marker-end", "url(#arrow)");//if input + } }
