map/graph: implement render

This commit is contained in:
Nils Schneider 2015-07-12 00:11:18 +02:00
parent 9a950a2a8e
commit a95f466f3f
3 changed files with 16 additions and 4 deletions

View file

@ -501,7 +501,6 @@ define(["d3"], function (d3) {
el = document.createElement("div")
el.classList.add("graph")
self.div = el
zoomBehavior = d3.behavior.zoom()
.scaleExtent([1 / 3, 3])
@ -699,6 +698,13 @@ define(["d3"], function (d3) {
force.stop()
canvas.remove()
force = null
if (el.parentNode)
el.parentNode.removeChild(el)
}
self.render = function (d) {
d.appendChild(el)
}
return self