Merge pull request #11 from MPR-Global/HDPDGI-79 show arrow pointing inwards for input tab
Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/da9f12a3 Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/da9f12a3 Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/da9f12a3 Branch: refs/heads/master Commit: da9f12a334b2a5a00fee6675ecabc6763b309e52 Parents: eb9eb4c 2fa32ec Author: mouly <[email protected]> Authored: Mon Jun 15 21:56:12 2015 -0700 Committer: mouly <[email protected]> Committed: Mon Jun 15 21:56:12 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/da9f12a3/dashboard/v2/public/modules/lineage/lineageController.js ---------------------------------------------------------------------- diff --cc dashboard/v2/public/modules/lineage/lineageController.js index 6539375,368e9a5..6e4e1e3 --- a/dashboard/v2/public/modules/lineage/lineageController.js +++ b/dashboard/v2/public/modules/lineage/lineageController.js @@@ -189,13 -130,26 +189,27 @@@ angular.module('dgc.lineage').controlle var svg = element.select('svg') .attr('width', width + margin.right + margin.left) .attr('height', height + margin.top + margin.bottom) + /* Invoke the tip in the context of your visualization */ + .call(tooltip) .select('g') - - .attr('transform', - 'translate(' + margin.left + ',' + margin.right + ')'); + .attr('transform', + '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;
