New release

This commit is contained in:
knsv
2015-01-11 15:02:35 +01:00
parent 27687fc742
commit 911cd09dd8
11 changed files with 47 additions and 16 deletions

View File

@@ -60,6 +60,8 @@ exports.addVertices = function (vert, g) {
verticeText = vertice.text;
}
console.log(verticeText);
var radious = 0;
var _shape = '';

View File

@@ -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});
};

View File

@@ -220,7 +220,7 @@ verticeStatement:
vertex link vertex
{ yy.addLink($1,$3,$2);$$ = [$1,$3];}
| vertex
{$$ = 'yo';}
{$$ = [$1];}
;
vertex: alphaNum SQS text SQE

View File

@@ -127,7 +127,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');