fix: address failing argos tests

on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
darshanr0107
2025-09-01 20:04:05 +05:30
parent eb81bdd617
commit 8f9ee39af7
2 changed files with 11 additions and 1 deletions

View File

@@ -36,10 +36,16 @@ export async function textHelper<T extends SVGGraphicsElement>(
annotationGroup = shapeSvg.insert('g').attr('class', 'annotation-group text');
if (node.annotations.length > 0) {
await addText(annotationGroup, { text: `` } as unknown as ClassMember, 0);
const annotation = node.annotations[0];
await addText(annotationGroup, { text: `«${annotation}»` } as unknown as ClassMember, 0);
annotationGroup.style('opacity', '0');
const annotationGroupBBox = annotationGroup.node()!.getBBox();
annotationGroupHeight = annotationGroupBBox.height;
} else {
annotationGroupHeight = 0;
}
labelGroup = shapeSvg.insert('g').attr('class', 'label-group text');

View File

@@ -53,6 +53,10 @@ g.clickable {
cursor: pointer;
}
g.annotation-group[style*="opacity: 0"] {
pointer-events: none;
}
g.classGroup rect {
fill: ${options.mainBkg};
stroke: ${options.nodeBorder};