seachel / treehehe

An interactive visualization of proof tree representations of mathematical proofs using D3 and MathJax.
0 stars 0 forks source link

Set width of tree based on tree data #29

Open seachel opened 6 years ago

seachel commented 6 years ago

Parent Issue

If the d3 tree width can be updated, then pass the new width once the tree has been fully formatted and laid out.

Have a running sum of the width.

Otherwise, consider creating the tree with node size rather than tree size.

seachel commented 6 years ago

First solution:

Have width as field for each tree. The width will need to be found through trial and error for each example.

seachel commented 6 years ago

Later solution:

Find width of largest node and compute width of tree. Add in spaces, multiply by width of widest node.

seachel commented 5 years ago

Use an update function? See here