uncharted-aske / HMI

Apache License 2.0
1 stars 0 forks source link

[REFACTOR] Load Grafer data from Bio view and send to grafer component #177

Closed adamocarolli closed 3 years ago

adamocarolli commented 3 years ago

What?

Loaded data from static file server in the Bio view and then sent that data to be rendered in the Grafer component.

Why?

Loading data in the Grafer component prevents upstream components from using this data. In this case we want the bio view to have Grafer data so that when bgraph makes a query it can combine the results of these queries with Grafer's layer data to highlight specific edges/nodes.

How?

I'm using an event emitter to pass data from the parent Bio view component to the child Grafer component. The emitter is being used instead of Vue class properties to avoid storing large datasets in the bio view unnecessarily.

Testing?

Visually compare the graph before and after the change to ensure it is the same.

Anything Else?

This PR sets us up for BGraph query results being rendered on Grafer.