mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 15:30:03 +02:00
Release 0.2.6
* Default shape set to rect when none is set
This commit is contained in:
@@ -50,7 +50,7 @@ var addVertices = function (vert, g) {
|
||||
style = styleFromStyleArr(style, vertice.styles);
|
||||
|
||||
// Use vertice id as text in the box if no text is provided by the graph definition
|
||||
if (vertice.text === undefined) {
|
||||
if (typeof vertice.text === 'undefined') {
|
||||
verticeText = vertice.id;
|
||||
}
|
||||
else {
|
||||
@@ -78,8 +78,9 @@ var addVertices = function (vert, g) {
|
||||
case 'circle':
|
||||
_shape = 'circle';
|
||||
break;
|
||||
default:
|
||||
_shape = 'rect';
|
||||
}
|
||||
|
||||
// Add the node
|
||||
g.setNode(vertice.id, {labelType: "html",shape:_shape, label: verticeText, rx: radious, ry: radious, style: style, id:vertice.id});
|
||||
});
|
||||
@@ -296,12 +297,14 @@ var init = function () {
|
||||
|
||||
};
|
||||
|
||||
exports.tester = function(){};
|
||||
|
||||
/**
|
||||
* Version management
|
||||
* @returns {string}
|
||||
*/
|
||||
exports.version = function(){
|
||||
return '0.2.5';
|
||||
return '0.2.6';
|
||||
};
|
||||
|
||||
var equals = function (val, variable){
|
||||
|
Reference in New Issue
Block a user