Release 0.2.6

* Default shape set to rect when none is set
This commit is contained in:
knsv
2014-11-28 18:08:36 +01:00
parent 9a35844731
commit 0c87128902
8 changed files with 77 additions and 44 deletions

View File

@@ -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){