Skip to content

Commit

Permalink
Merge branch '1592-IncorrectSVGytntax' of git://github.com/jgreywolf/…
Browse files Browse the repository at this point in the history
…mermaid into jgreywolf-1592-IncorrectSVGytntax
  • Loading branch information
knsv committed Aug 13, 2020
2 parents 9223173 + 5e72416 commit 62260aa
Show file tree
Hide file tree
Showing 11 changed files with 68 additions and 5 deletions.
21 changes: 21 additions & 0 deletions dist/mermaid.core.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion dist/mermaid.core.js.map

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions dist/mermaid.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion dist/mermaid.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion dist/mermaid.min.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion dist/mermaid.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Setup.md
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions src/diagrams/class/classRenderer-v2.js
Expand Up @@ -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');
Expand Down
2 changes: 2 additions & 0 deletions src/diagrams/class/classRenderer.js
Expand Up @@ -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
Expand All @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/diagrams/flowchart/flowRenderer-v2.js
Expand Up @@ -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');
Expand Down
1 change: 1 addition & 0 deletions src/diagrams/flowchart/flowRenderer.js
Expand Up @@ -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');
Expand Down

0 comments on commit 62260aa

Please sign in to comment.