Limiting the interaction between the mermaid diagram and Mermaid to the diagramAPI

This commit is contained in:
Knut Sveidqvist
2022-09-12 08:51:52 +02:00
parent 213309f5e2
commit 9e5e7b31e9
4 changed files with 16 additions and 12 deletions

View File

@@ -1,4 +1,3 @@
const lineBreakRegex = /<br\s*\/?>/gi;
import { select } from 'd3';
import * as db from './mindmapDb';
@@ -15,7 +14,6 @@ function wrap(text, width) {
.reverse(),
word,
line = [],
lineNumber = 0,
lineHeight = 1.1, // ems
y = text.attr('y'),
dy = parseFloat(text.attr('dy')),