In previous versions of OneZoom we had the concept of a "fake" leaf that represented a number of species, e.g. see the comment at
https://github.com/OneZoom/OZtree/blob/e32b3a76a6959460cf31d809143a9526a2d8f259/OZprivate/rawJS/OZTreeModule/src/themes/natural_theme.js#L53C12-L53C25
It looks like this sort of leaf was drawn when the node.richness_val was > 1, see
https://github.com/OneZoom/OZtree/blob/118bfba9b122d812386e438fb6d6b29cb51aed7e/OZprivate/rawJS/OZTreeModule/src/projection/layout/AT/leaf_layout.js#L32
It would be nice to reinstate this for the extinct tree, e.g. where the birds are all represented by a single tip. However, I'm not sure how in the new codebase we set a richness_val on a leaf without asking it to expand into all its children. Perhaps @jrosindell knows? I can't see anything in the db definition of the ordered_leaves table that stores the number of species represented by a leaf, but this code probably dates back to before we stored the leaf info in a database.
It could be that we need to introduce a new database field in the ordered_leaves table, to specify the number of tips. Alternatively, we could create a huge tree file by grafting the OneZoom tree onto the "fake" leaves in the extinct tree, but then flag up some nodes as "do not develop when zooming".
I would also suggest that we could possibly change the size of the circle, such that tips like "extant birds" are relatively large, whereas a single extinct genus is quite small / normal size. Note that as the comment above points out, there is a separate sort of "undeveloped" leaf that is shown while we are waiting for the javascript to expand the fractal.
In previous versions of OneZoom we had the concept of a "fake" leaf that represented a number of species, e.g. see the comment at
https://github.com/OneZoom/OZtree/blob/e32b3a76a6959460cf31d809143a9526a2d8f259/OZprivate/rawJS/OZTreeModule/src/themes/natural_theme.js#L53C12-L53C25
It looks like this sort of leaf was drawn when the
node.richness_valwas > 1, seehttps://github.com/OneZoom/OZtree/blob/118bfba9b122d812386e438fb6d6b29cb51aed7e/OZprivate/rawJS/OZTreeModule/src/projection/layout/AT/leaf_layout.js#L32
It would be nice to reinstate this for the extinct tree, e.g. where the birds are all represented by a single tip. However, I'm not sure how in the new codebase we set a
richness_valon a leaf without asking it to expand into all its children. Perhaps @jrosindell knows? I can't see anything in the db definition of the ordered_leaves table that stores the number of species represented by a leaf, but this code probably dates back to before we stored the leaf info in a database.It could be that we need to introduce a new database field in the ordered_leaves table, to specify the number of tips. Alternatively, we could create a huge tree file by grafting the OneZoom tree onto the "fake" leaves in the extinct tree, but then flag up some nodes as "do not develop when zooming".
I would also suggest that we could possibly change the size of the circle, such that tips like "extant birds" are relatively large, whereas a single extinct genus is quite small / normal size. Note that as the comment above points out, there is a separate sort of "undeveloped" leaf that is shown while we are waiting for the javascript to expand the fractal.