From 505e93065ec98a45d75f0308255d4b3f42ba4389 Mon Sep 17 00:00:00 2001 From: yuri1969 <1969yuri1969@gmail.com> Date: Sat, 5 Aug 2017 16:57:48 +0200 Subject: [PATCH] NIFI-1027 - Treat label and node of a provenance graph event as one unit The JIRA issue asks for treating both node and its label as one unit. Described cursor issues seems to be fixed already. However, there is an annoying dead space between a node and label preventing displaying context menu, etc. Due to SVG group's nature there has been added an opaque joint to remove the dead space. Signed-off-by: Pierre Villard This closes #2059. --- .../js/nf/provenance/nf-provenance-lineage.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/provenance/nf-provenance-lineage.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/provenance/nf-provenance-lineage.js index c3157f7388..6295c0b595 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/provenance/nf-provenance-lineage.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/provenance/nf-provenance-lineage.js @@ -1019,6 +1019,20 @@ events .classed('event', true) + // join node to its label + .append('rect') + .attr({ + 'x': 0, + 'y': -8, + 'height': 16, + 'width': 14, + 'opacity': 0, + 'id': function (d) { + return 'event-filler-' + d.id; + } + }); + + events .append('circle') .classed('selected', function (d) { return d.id === eventId;