Tree paths are not being rendered for all vis, all screen sizes
nick-stebbings opened this issue · 0 comments
nick-stebbings commented
I need to systematically add and test the paths that are added to each vis to simulate the illusion of traversing one massive visualisation.
This only happens when the get_orbit_hierarchy_json
zome (the getOrbitHierarchy
graphql mutation) is called with a sphereEh
and level
parameter input.
- Remove old erroneous translationCoords code
- Get the eH of the root level hierarchy node OR use a sphere level query and use the first element of the 'level_tree' array
- Use useEffect to trigger a hook call to cache paths using the root level hierarchy node.
- Once this has been done, IF the current hierarchy is either an orbit that is not the root, or is a sphere level query with a level greater than the root level (which may later be negative, not just 0, since we are going to allow for prepending of nodes), THEN we append the path with the path id of the node, by looking in the cache
- Setup testing so that the mocked cache is updated with the correct path ids
- Make sure there are separate paths for XS screen size