Merge branch '1592-IncorrectSVGytntax' of git://github.com/jgreywolf/mermaid into jgreywolf-1592-IncorrectSVGytntax

This commit is contained in:
Knut Sveidqvist 2020-08-13 20:26:47 +02:00
commit 62260aa30b
11 changed files with 68 additions and 5 deletions

21
dist/mermaid.core.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

21
dist/mermaid.js vendored

File diff suppressed because one or more lines are too long

6
dist/mermaid.js.map vendored

File diff suppressed because one or more lines are too long

6
dist/mermaid.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -109,7 +109,7 @@ Note: modifies options in-place
### Parameters
- `conf` the base currentConfig to reset to (default: current siteConfig ) (optional, default `getSiteConfig()`)
- `conf` the base currentConfig to reset to (default: current siteConfig )
## render

View File

@ -408,6 +408,7 @@ export const draw = function(text, id) {
// Set up an SVG group so that we can translate the final graph.
const svg = select(`[id="${id}"]`);
svg.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');
// Run the renderer. This is what draws the final graph.
const element = select('#' + id + ' g');

View File

@ -157,6 +157,7 @@ export const draw = function(text, id) {
// Fetch the default direction, use TD if none was found
const diagram = select(`[id='${id}']`);
diagram.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');
insertMarkers(diagram);
// Layout graph, Create a new directed graph
@ -176,6 +177,7 @@ export const draw = function(text, id) {
const classes = classDb.getClasses();
const keys = Object.keys(classes);
for (let i = 0; i < keys.length; i++) {
const classDef = classes[keys[i]];
const node = svgDraw.drawClass(diagram, classDef, conf);

View File

@ -397,6 +397,7 @@ export const draw = function(text, id) {
// Set up an SVG group so that we can translate the final graph.
const svg = select(`[id="${id}"]`);
svg.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');
// Run the renderer. This is what draws the final graph.
const element = select('#' + id + ' g');

View File

@ -385,6 +385,7 @@ export const draw = function(text, id) {
// Set up an SVG group so that we can translate the final graph.
const svg = select(`[id="${id}"]`);
svg.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');
// Run the renderer. This is what draws the final graph.
const element = select('#' + id + ' g');