Comparing version 8.0.0-rc.6 to 8.0.0-rc.7
{ | ||
"name": "mermaid", | ||
"version": "8.0.0-rc.6", | ||
"version": "8.0.0-rc.7", | ||
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.", | ||
@@ -41,3 +41,3 @@ "main": "dist/mermaid.core.js", | ||
"d3": "^4.13.0", | ||
"dagre-d3-renderer": "^0.5.6", | ||
"dagre-d3-renderer": "^0.5.8", | ||
"dagre-layout": "^0.8.8", | ||
@@ -44,0 +44,0 @@ "graphlibrary": "^2.2.0", |
@@ -296,3 +296,3 @@ import graphlib from 'graphlibrary' | ||
const h = bbox.height | ||
const s = (w + h) * 0.8 | ||
const s = (w + h) * 0.9 | ||
const points = [ | ||
@@ -409,19 +409,6 @@ { x: s / 2, y: 0 }, | ||
if (conf.useMaxWidth) { | ||
// Center the graph | ||
svg.attr('height', '100%') | ||
svg.attr('width', conf.width) | ||
svg.attr('viewBox', '0 0 ' + (g.graph().width + 64) + ' ' + (g.graph().height + 64)) | ||
svg.attr('style', 'max-width:' + (g.graph().width + 64) + 'px;') | ||
} else { | ||
// Center the graph | ||
svg.attr('height', g.graph().height + 64) | ||
if (typeof conf.width === 'undefined') { | ||
svg.attr('width', g.graph().width + 64) | ||
} else { | ||
svg.attr('width', conf.width) | ||
} | ||
svg.attr('viewBox', '0 0 ' + (g.graph().width + 64) + ' ' + (g.graph().height + 64)) | ||
} | ||
svg.select('g').attr('transform', 'translate(32, 32)') | ||
const padding = 8 | ||
svg.attr('width', g.maxX - g.minX + padding * 2) | ||
svg.attr('height', g.maxY - g.minY + padding * 2) | ||
svg.select('g').attr('transform', `translate(${padding - g.minX}, ${padding - g.minY})`) | ||
@@ -428,0 +415,0 @@ // Index nodes |
@@ -86,7 +86,2 @@ /** | ||
htmlLabels: true, | ||
/** | ||
* **useMaxWidth** - Flag for setting whether or not a all available width should be used for | ||
* the diagram. | ||
*/ | ||
useMaxWidth: true, | ||
@@ -93,0 +88,0 @@ curve: 'linear' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11141417
84703
Updateddagre-d3-renderer@^0.5.8