Files
weave-scope/client/app/scripts/constants/naming.js
Filip Barl 36ee5db1da Improved rendering order of nodes/edges in Graph View (#2623)
* Rendering both nodes and edges from one component.

* Organized the render layers in a more readable manner.

* Rerendering optimization.

* Finer edge rendering layers.

* Moved the constants out of the component file.

* Typo fix.

* Include edge thickness in <Motion /> instead of fade-in effect.
2017-06-22 11:58:31 +02:00

19 lines
774 B
JavaScript

export const EDGE_ID_SEPARATOR = '---';
// NOTE: Inconsistent naming is a consequence of
// keeping it backwards-compatible with the old URLs.
export const GRAPH_VIEW_MODE = 'topo';
export const TABLE_VIEW_MODE = 'grid';
export const RESOURCE_VIEW_MODE = 'resource';
// Named constants to avoid typos that would result in hard-to-detect bugs.
export const BLURRED_EDGES_LAYER = 'blurred-edges';
export const BLURRED_NODES_LAYER = 'blurred-nodes';
export const NORMAL_EDGES_LAYER = 'normal-edges';
export const NORMAL_NODES_LAYER = 'normal-nodes';
export const HIGHLIGHTED_EDGES_LAYER = 'highlighted-edges';
export const HIGHLIGHTED_NODES_LAYER = 'highlighted-nodes';
export const HOVERED_EDGES_LAYER = 'hovered-edges';
export const HOVERED_NODES_LAYER = 'hovered-nodes';