mirror of https://github.com/apache/nifi.git
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 <pierre.villard.fr@gmail.com> This closes #2059.
This commit is contained in:
parent
5150dff70b
commit
505e93065e
|
@ -1019,6 +1019,20 @@
|
||||||
|
|
||||||
events
|
events
|
||||||
.classed('event', true)
|
.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')
|
.append('circle')
|
||||||
.classed('selected', function (d) {
|
.classed('selected', function (d) {
|
||||||
return d.id === eventId;
|
return d.id === eventId;
|
||||||
|
|
Loading…
Reference in New Issue