Skip to content

Commit

Permalink
Release 0.2.5
Browse files Browse the repository at this point in the history
* Support for new shapes circle,  irregular rectangle
* Support for styling of links
* Support for newlines in texts
* Centered text on links
* Shaded background for text on links
* Support for click on nodes
  • Loading branch information
knsv committed Nov 27, 2014
1 parent 18be0e0 commit 9a35844
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 21 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.2.4",
"version": "0.2.5",
"authors": [
"knsv <knut@sveido.com>"
],
Expand Down
10 changes: 5 additions & 5 deletions dist/mermaid.full.js

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

4 changes: 2 additions & 2 deletions dist/mermaid.full.min.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/mermaid.slim.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ var addVertices = function (vert, g) {
}

return styleStr;
}
};

// Iterate through each item in the vertice object (containing all the vertices found) in the graph definition
keys.forEach(function (id) {
Expand Down Expand Up @@ -722,6 +722,7 @@ var addVertices = function (vert, g) {
*/
var addEdges = function (edges, g) {
var cnt=0;
var aHead;
edges.forEach(function (edge) {
cnt++;

Expand Down Expand Up @@ -922,16 +923,16 @@ var init = function () {
}

}
;

};

/**
* Version management
* @returns {string}
*/
exports.version = function(){
return '0.2.4';
}
return '0.2.5';
};

var equals = function (val, variable){
if(typeof variable === 'undefined'){
Expand Down Expand Up @@ -1033,7 +1034,6 @@ exports.addLink = function (start, end, type, linktext) {
* @param style
*/
exports.updateLink = function (pos, style) {
console.log('Updating '+pos+'link:'+style);
var position = pos.substr(1);
edges[pos].style = style;
};
Expand Down
4 changes: 2 additions & 2 deletions dist/mermaid.slim.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/graphDb.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ exports.addLink = function (start, end, type, linktext) {
* @param style
*/
exports.updateLink = function (pos, style) {
console.log('Updating '+pos+'link:'+style);
var position = pos.substr(1);
edges[pos].style = style;
};
Expand Down
9 changes: 5 additions & 4 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var addVertices = function (vert, g) {
}

return styleStr;
}
};

// Iterate through each item in the vertice object (containing all the vertices found) in the graph definition
keys.forEach(function (id) {
Expand Down Expand Up @@ -92,6 +92,7 @@ var addVertices = function (vert, g) {
*/
var addEdges = function (edges, g) {
var cnt=0;
var aHead;
edges.forEach(function (edge) {
cnt++;

Expand Down Expand Up @@ -292,16 +293,16 @@ var init = function () {
}

}
;

};

/**
* Version management
* @returns {string}
*/
exports.version = function(){
return '0.2.4';
}
return '0.2.5';
};

var equals = function (val, variable){
if(typeof variable === 'undefined'){
Expand Down
2 changes: 1 addition & 1 deletion src/main.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('when detecting chart type ',function() {
div = document.createElement('div');
mermaid_config ={startOnLoad : false};
main = rewire('./main');
expect(main.version()).toBe('0.2.4');
expect(main.version()).toBe('0.2.5');
});
it('should not call start anything with an empty document', function () {

Expand Down

0 comments on commit 9a35844

Please sign in to comment.