mirror of https://gitee.com/bigwinds/arangodb
GraphViewer: Nodes are now correctly reshaped if new events are bound
This commit is contained in:
parent
d8c3e7f464
commit
85420d7172
|
@ -1,5 +1,5 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 100, white: true plusplus: true */
|
/*jslint indent: 2, nomen: true, maxlen: 100, white: true plusplus: true */
|
||||||
/*global _, d3*/
|
/*global $, _, d3*/
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @brief Graph functionality
|
/// @brief Graph functionality
|
||||||
///
|
///
|
||||||
|
@ -84,6 +84,7 @@ function NodeShaper(parent, flags, idfunc) {
|
||||||
.selectAll(".node")
|
.selectAll(".node")
|
||||||
.attr("class", "node") // node is CSS class that might be edited
|
.attr("class", "node") // node is CSS class that might be edited
|
||||||
.attr("id",idFunction);
|
.attr("id",idFunction);
|
||||||
|
$(".node").empty();
|
||||||
additionalShaping(node);
|
additionalShaping(node);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -174,7 +175,6 @@ function NodeShaper(parent, flags, idfunc) {
|
||||||
data.exit().remove();
|
data.exit().remove();
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
console.log("Evil kniewil");
|
|
||||||
};
|
};
|
||||||
|
|
||||||
self.updateNodes = function () {
|
self.updateNodes = function () {
|
||||||
|
|
Loading…
Reference in New Issue