Samyuth / LomandoCrawler

A crawler for various choice based games
https://samyuth.github.io/LomandoCrawler/
MIT License
1 stars 4 forks source link

Replicate leveled tree functionality on frontend #5

Open Samyuth opened 1 year ago

Samyuth commented 1 year ago

Currently this functionality has been replicated however more work needs to be done to make it presentable. As can be seen in the immage below there is a large area between the nodes. To account for this the render may need to account for other things and vary the heights of nodes that are technically even in the same level. This may also require a change to the algorithm to account for such factors.

Capture
Samyuth commented 1 year ago

In general currently the algorithm runs completely from the backend however there might be benefit in integrating this algorithm on the frontend so that the tree can be generated as you are clicking through the nodes. For example if there is a single node there shouldn't really be that huge space seen in the image from the previous comment. In fact in the current render, starting from the far left, one of the source nodes is not even visible. This can be seen in the image below:

Capture

An approach to fix this may be having the renders done on the frontend directly though api calls could be made for more expensive calculations.