You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2021/06/23 13:07:40 UTC
[brooklyn-ui] 05/10: Hidden attribute is not required in
relationship label text anymore
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 <my...@cloudsoftcorp.com>
AuthorDate: Wed Jun 23 12:05:17 2021 +0100
Hidden attribute is not required in relationship label text anymore
Signed-off-by: Mykola Mandra <my...@cloudsoftcorp.com>
---
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 ? '█'.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));