Commit bb102d1
committed
feat: make attributes order configurable in CytoViz component
This commit adds an 'elementsMetadata' prop, that can be used to define the
desired order of attributes when selecting a node or edge in the visualization
tool. The expected format for this prop is:
{
attributesOrder: {
nodes: { nodeType1: ['someImportantAttribute', 'attribute1', 'attribute2'] },
edges: { edgeType1: ['attributeA', 'attributeB']}},
}
}
If some attributes are missing in the list, they will be displayed after all the
other attributes.1 parent 1d7b590 commit bb102d1
File tree
2 files changed
+45
-6
lines changed- src/charts/CytoViz
- components/ElementData
2 files changed
+45
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
85 | 96 | | |
86 | 97 | | |
87 | 98 | | |
| |||
714 | 725 | | |
715 | 726 | | |
716 | 727 | | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
717 | 740 | | |
718 | 741 | | |
719 | 742 | | |
| |||
829 | 852 | | |
830 | 853 | | |
831 | 854 | | |
| 855 | + | |
832 | 856 | | |
833 | 857 | | |
834 | 858 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
72 | 79 | | |
73 | 80 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
78 | 90 | | |
79 | | - | |
| 91 | + | |
80 | 92 | | |
81 | 93 | | |
82 | 94 | | |
| |||
89 | 101 | | |
90 | 102 | | |
91 | 103 | | |
| 104 | + | |
| 105 | + | |
92 | 106 | | |
93 | 107 | | |
94 | 108 | | |
95 | 109 | | |
| 110 | + | |
96 | 111 | | |
97 | 112 | | |
98 | 113 | | |
| |||
0 commit comments