Comparing version 8.0.0-beta.5 to 8.0.0-beta.6
{ | ||
"name": "mermaid", | ||
"version": "8.0.0-beta.5", | ||
"version": "8.0.0-beta.6", | ||
"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.1", | ||
"dagre-d3-renderer": "^0.5.3", | ||
"dagre-layout": "^0.8.6", | ||
@@ -44,0 +44,0 @@ "graphlibrary": "^2.2.0", |
@@ -321,3 +321,3 @@ import * as d3 from 'd3' | ||
const type = typeof item | ||
if (item === ' ') { | ||
if (item.trim() === '') { | ||
return false | ||
@@ -333,3 +333,3 @@ } | ||
const subGraph = { id: 'subGraph' + subCount, nodes: nodeList, title: title } | ||
const subGraph = { id: 'subGraph' + subCount, nodes: nodeList, title: title.trim() } | ||
subGraphs.push(subGraph) | ||
@@ -336,0 +336,0 @@ subCount = subCount + 1 |
@@ -25,2 +25,13 @@ import flowDb from '../flowDb' | ||
it('should handle subgraph with tab indentation', function () { | ||
const res = flow.parser.parse('graph TB\nsubgraph One\n\ta1-->a2\nend') | ||
const subgraphs = flow.parser.yy.getSubGraphs() | ||
expect(subgraphs.length).toBe(1) | ||
const subgraph = subgraphs[0] | ||
expect(subgraph.nodes.length).toBe(2) | ||
expect(subgraph.nodes[0]).toBe('a1') | ||
expect(subgraph.nodes[1]).toBe('a2') | ||
expect(subgraph.title).toBe('One') | ||
}) | ||
it('should handle angle bracket ' > ' as direction LR', function () { | ||
@@ -27,0 +38,0 @@ const res = flow.parser.parse('graph >;A-->B;') |
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
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
11126825
84716
Updateddagre-d3-renderer@^0.5.3