Skip to content

Commit

Permalink
New release
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed Jan 11, 2015
1 parent 27687fc commit 911cd09
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 16 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mermaid",
"version": "0.3.1",
"version": "0.3.2",
"authors": [
"knsv <knut@sveido.com>"
],
Expand Down
7 changes: 5 additions & 2 deletions dist/mermaid.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -13001,7 +13001,7 @@ process.chdir = function (dir) {
},{}],102:[function(require,module,exports){
module.exports={
"name": "mermaid",
"version": "0.3.1",
"version": "0.3.2",
"description": "Markdownish syntax for generating flowcharts",
"main": "src/main.js",
"bin": {
Expand Down Expand Up @@ -13142,6 +13142,8 @@ exports.addVertices = function (vert, g) {
verticeText = vertice.text;
}

console.log(verticeText);

var radious = 0;
var _shape = '';

Expand Down Expand Up @@ -13700,6 +13702,7 @@ exports.addSubGraph = function (list, title) {
var subG = [];

subG = uniq(subG.concat.apply(subG,list));
//console.log(subG);

subGraphs.push({nodes:subG,title:title});
};
Expand Down Expand Up @@ -14576,7 +14579,7 @@ case 36:
yy.addLink($$[$0-2],$$[$0],$$[$0-1]);this.$ = [$$[$0-2],$$[$0]];
break;
case 37:
this.$ = 'yo';
this.$ = [$$[$0]];
break;
case 38:
this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'square');
Expand Down
6 changes: 3 additions & 3 deletions dist/mermaid.full.min.js

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions dist/mermaid.slim.js
Original file line number Diff line number Diff line change
Expand Up @@ -12969,7 +12969,7 @@ process.chdir = function (dir) {
},{}],102:[function(require,module,exports){
module.exports={
"name": "mermaid",
"version": "0.3.1",
"version": "0.3.2",
"description": "Markdownish syntax for generating flowcharts",
"main": "src/main.js",
"bin": {
Expand Down Expand Up @@ -13110,6 +13110,8 @@ exports.addVertices = function (vert, g) {
verticeText = vertice.text;
}

console.log(verticeText);

var radious = 0;
var _shape = '';

Expand Down Expand Up @@ -13668,6 +13670,7 @@ exports.addSubGraph = function (list, title) {
var subG = [];

subG = uniq(subG.concat.apply(subG,list));
//console.log(subG);

subGraphs.push({nodes:subG,title:title});
};
Expand Down Expand Up @@ -14544,7 +14547,7 @@ case 36:
yy.addLink($$[$0-2],$$[$0],$$[$0-1]);this.$ = [$$[$0-2],$$[$0]];
break;
case 37:
this.$ = 'yo';
this.$ = [$$[$0]];
break;
case 38:
this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'square');
Expand Down
6 changes: 3 additions & 3 deletions dist/mermaid.slim.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mermaid",
"version": "0.3.1",
"version": "0.3.2",
"description": "Markdownish syntax for generating flowcharts",
"main": "src/main.js",
"bin": {
Expand Down
2 changes: 2 additions & 0 deletions src/diagrams/flowchart/flowRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ exports.addVertices = function (vert, g) {
verticeText = vertice.text;
}

console.log(verticeText);

var radious = 0;
var _shape = '';

Expand Down
1 change: 1 addition & 0 deletions src/diagrams/flowchart/graphDb.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ exports.addSubGraph = function (list, title) {
var subG = [];

subG = uniq(subG.concat.apply(subG,list));
//console.log(subG);

subGraphs.push({nodes:subG,title:title});
};
Expand Down
2 changes: 1 addition & 1 deletion src/diagrams/flowchart/parser/flow.jison
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ verticeStatement:
vertex link vertex
{ yy.addLink($1,$3,$2);$$ = [$1,$3];}
| vertex
{$$ = 'yo';}
{$$ = [$1];}
;

vertex: alphaNum SQS text SQE
Expand Down
2 changes: 1 addition & 1 deletion src/diagrams/flowchart/parser/flow.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 24 additions & 2 deletions test/web.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,29 @@ <h1>Shapes</h1>
class green B;
</div>
<h1>Sub graphs</h1>
<div class="mermaid">graph TB
<div class="mermaid">graph LR
subgraph old sys 1
a1(new client)-->b1(sys1 server)
oc1(Old client)-->b2
end

subgraph old sys 2
a2(new client)-->b2(sys2 server)
oc2(Old client)-->b2
end

subgraph old sys 3
a3(new client)-->b3(sys3 server)
end

subgraph New sys
a1
a2
a3
end

</div>
<div class="mermaid2">graph TB
subgraph one
a1-->a2
end
Expand All @@ -52,7 +74,7 @@ <h1>Sub graphs</h1>
c1-->a2

</div>
<div class="mermaid">graph TB
<div class="mermaid2">graph TB
subgraph
sq[Square shape] -.-> ci((Circle shape))
od>Odd shape]-. Two line<br>edge comment .-> ro
Expand Down

0 comments on commit 911cd09

Please sign in to comment.