This is an automated email from the ASF dual-hosted git repository.

heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git

commit c2feaaed1b7de623e8af77228b985b1bdc0e8a1d
Author: Mykola Mandra <[email protected]>
AuthorDate: Wed Jun 23 12:05:17 2021 +0100

    Hidden attribute is not required in relationship label text anymore
    
    Signed-off-by: Mykola Mandra <[email protected]>
---
 ui-modules/blueprint-composer/app/components/util/d3-blueprint.js | 2 --
 1 file changed, 2 deletions(-)

diff --git a/ui-modules/blueprint-composer/app/components/util/d3-blueprint.js 
b/ui-modules/blueprint-composer/app/components/util/d3-blueprint.js
index 9728628..27daf6c 100755
--- a/ui-modules/blueprint-composer/app/components/util/d3-blueprint.js
+++ b/ui-modules/blueprint-composer/app/components/util/d3-blueprint.js
@@ -796,7 +796,6 @@ export function D3Blueprint(container, options) {
             .attr('font-family', 'monospace')
             .attr('fill', '#f5f6fa') // colour of the canvas
                 .insert('textPath')
-                .attr('hidden', (d) => (d.label ? null : ''))
                 .attr('xlink:href', (d)=>('#' + d.source._id + '-' + 
d.target._id))
                 .attr('startOffset', '59%') // 59% roughly reflects `middle of 
the arch` minus `node radius`.
                 .html((d) => (d.label ? '&#9608;'.repeat(d.label.length + 2) : 
null));
@@ -805,7 +804,6 @@ export function D3Blueprint(container, options) {
             .attr('text-anchor', 'middle')
             .attr('font-family', 'monospace')
                 .insert('textPath')
-                .attr('hidden', (d) => (d.label ? null : ''))
                 .attr('xlink:href', (d)=>('#' + d.source._id + '-' + 
d.target._id))
                 .attr('startOffset', '59%') // 59% roughly reflects `middle of 
the arch` minus `node radius`.
                 .html((d) => (d.label ? ' ' + d.label + ' ': null));

Reply via email to