map/graph: implement render
This commit is contained in:
parent
9a950a2a8e
commit
a95f466f3f
3 changed files with 16 additions and 4 deletions
lib
|
@ -28,7 +28,7 @@ function (chroma, Map, Sidebar, Tabs, Container, Meshstats, Linklist,
|
|||
router.removeTarget(content)
|
||||
dataTargetRemove(content)
|
||||
content.destroy()
|
||||
contentDiv.removeChild(content.div)
|
||||
|
||||
content = null
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ function (chroma, Map, Sidebar, Tabs, Container, Meshstats, Linklist,
|
|||
removeContent()
|
||||
|
||||
content = new K(config, linkScale, sidebar.getWidth, router, buttons)
|
||||
contentDiv.appendChild(content.div)
|
||||
content.render(contentDiv)
|
||||
|
||||
if (latestData)
|
||||
content.setData(latestData)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue