esterpantaleo / etymology

This repository contains code behind the visualization of the Wikimedia tool etytree at http://tools.wmflabs.org/etytree/
https://esterpantaleo.github.io/etymology/
50 stars 9 forks source link

Set data independent of graph drawing #34

Closed xferguson closed 7 years ago

xferguson commented 7 years ago

I wrote a function to set a tree property etyBase.tree.data as a "complete" version of the allArray so that we could reference the property for graph drawing and graph refreshes without having to poll or edit the queries again when there is a change. This is the first step in setting the graph up to be collapsible, per issue #22 -- If we edit the data property and call parseEtymologyNodes, a different (collapsed?) graph could be drawn.