mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 10:36:43 +02:00
Revert "fix: address failing argos tests"
This reverts commit 8f9ee39af7
.
This commit is contained in:
@@ -36,16 +36,10 @@ export async function textHelper<T extends SVGGraphicsElement>(
|
||||
|
||||
annotationGroup = shapeSvg.insert('g').attr('class', 'annotation-group text');
|
||||
if (node.annotations.length > 0) {
|
||||
const annotation = node.annotations[0];
|
||||
|
||||
await addText(annotationGroup, { text: `«${annotation}»` } as unknown as ClassMember, 0);
|
||||
|
||||
annotationGroup.style('opacity', '0');
|
||||
await addText(annotationGroup, { text: `` } as unknown as ClassMember, 0);
|
||||
|
||||
const annotationGroupBBox = annotationGroup.node()!.getBBox();
|
||||
annotationGroupHeight = annotationGroupBBox.height;
|
||||
} else {
|
||||
annotationGroupHeight = 0;
|
||||
}
|
||||
|
||||
labelGroup = shapeSvg.insert('g').attr('class', 'label-group text');
|
||||
|
@@ -53,10 +53,6 @@ g.clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
g.annotation-group[style*="opacity: 0"] {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
g.classGroup rect {
|
||||
fill: ${options.mainBkg};
|
||||
stroke: ${options.nodeBorder};
|
||||
|
Reference in New Issue
Block a user