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
|
.attr("height", height); // Set height
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case undefined:
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw "Sorry given Shape not known!";
|
throw "Sorry given Shape not known!";
|
||||||
}
|
}
|
||||||
|
|
|
@ -246,8 +246,7 @@
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
shaper = new NodeShaper(d3.select("svg"), {
|
shaper = new NodeShaper(d3.select("svg"), {
|
||||||
"label": "label",
|
"label": "label"
|
||||||
"shape": NodeShaper.shapes.CIRCLE
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -304,8 +303,7 @@
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
shaper = new NodeShaper(d3.select("svg"), {
|
shaper = new NodeShaper(d3.select("svg"), {
|
||||||
"label": labelFunction,
|
"label": labelFunction
|
||||||
"shape": NodeShaper.shapes.CIRCLE
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue