mirror of https://gitee.com/bigwinds/arangodb
Fixed Node shaper, if no shape is given nodes are not shaped, if an unknown shape is given an error is thrown
This commit is contained in:
parent
03661e765c
commit
8d291b29c1
|
@ -109,6 +109,8 @@ function NodeShaper(parent, flags, idfunc) {
|
|||
.attr("height", height); // Set height
|
||||
});
|
||||
break;
|
||||
case undefined:
|
||||
break;
|
||||
default:
|
||||
throw "Sorry given Shape not known!";
|
||||
}
|
||||
|
|
|
@ -246,8 +246,7 @@
|
|||
|
||||
beforeEach(function () {
|
||||
shaper = new NodeShaper(d3.select("svg"), {
|
||||
"label": "label",
|
||||
"shape": NodeShaper.shapes.CIRCLE
|
||||
"label": "label"
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -304,8 +303,7 @@
|
|||
|
||||
beforeEach(function () {
|
||||
shaper = new NodeShaper(d3.select("svg"), {
|
||||
"label": labelFunction,
|
||||
"shape": NodeShaper.shapes.CIRCLE
|
||||
"label": labelFunction
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue