Skip to content

Commit

Permalink
graph style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
evc29 committed Jul 30, 2024
1 parent 37b74a8 commit f3f148d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 17 deletions.
1 change: 0 additions & 1 deletion src/components/Graph/ControlPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ const ControlPanel: React.FC<ControlPanelProps> = ({
justifyContent: 'center',
alignItems: 'center',
display: 'inline-block',
fontFamily: 'Roboto',
}}
>
Controls
Expand Down
2 changes: 1 addition & 1 deletion src/components/Graph/Graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const Graph: React.FC<GraphProps> = ({
legendNodeLabel,
legendEdgeLabel,
order,
fontFamily = 'Roboto',
fontFamily = 'Arial',
}) => {
const cyRef = useRef<Core | null>(null);

Expand Down
11 changes: 2 additions & 9 deletions src/components/Graph/Legend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ const Legend: React.FC<LegendProps> = ({
padding: '5px',
}}
>
<Typography
style={{ fontSize: '18px', margin: '3px', fontFamily: 'Roboto' }}
>
<Typography style={{ fontSize: '18px', margin: '3px' }}>
{legendNodeLabel ? legendNodeLabel : 'Node Type'}
</Typography>
{uniqueCat
Expand Down Expand Up @@ -108,7 +106,6 @@ const Legend: React.FC<LegendProps> = ({
marginLeft: '4px',
cursor: 'pointer',
fontSize: '14px',
fontFamily: 'Roboto',
}}
onClick={() => onToggle(category)}
>
Expand Down Expand Up @@ -157,7 +154,6 @@ const Legend: React.FC<LegendProps> = ({
marginLeft: '4px',
cursor: 'pointer',
fontSize: '14px',
fontFamily: 'Roboto',
}}
onClick={() => onToggle(category)}
>
Expand All @@ -171,9 +167,7 @@ const Legend: React.FC<LegendProps> = ({

{edgeType && edgeTypes !== null ? (
<div>
<Typography
style={{ fontSize: '18px', margin: '3px', fontFamily: 'Roboto' }}
>
<Typography style={{ fontSize: '18px', margin: '3px' }}>
{legendEdgeLabel ? legendEdgeLabel : 'Edge Type'}
</Typography>
{edgeTypes.map((category) => {
Expand Down Expand Up @@ -214,7 +208,6 @@ const Legend: React.FC<LegendProps> = ({
marginLeft: '4px',
cursor: 'pointer',
fontSize: '14px',
fontFamily: 'Roboto',
}}
onClick={() => onToggle(category)}
>
Expand Down
6 changes: 0 additions & 6 deletions src/components/Graph/ScaleLegend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ const ScaleLegend: React.FC<ScaleProps> = ({ scales, width }) => {
style={{
margin: '3px 0',
fontSize: '16px',
fontFamily: 'Roboto',
}}
>
Edge Weight Scale:
Expand All @@ -60,7 +59,6 @@ const ScaleLegend: React.FC<ScaleProps> = ({ scales, width }) => {
style={{
margin: '3px 0',
fontSize: '14px',
fontFamily: 'Roboto',
}}
>
{scaleFormula}
Expand Down Expand Up @@ -88,7 +86,6 @@ const ScaleLegend: React.FC<ScaleProps> = ({ scales, width }) => {
style={{
marginLeft: '10px',
fontSize: '14px',
fontFamily: 'Roboto',
}}
>
{min.toFixed(2)}
Expand All @@ -108,7 +105,6 @@ const ScaleLegend: React.FC<ScaleProps> = ({ scales, width }) => {
style={{
marginLeft: '10px',
fontSize: '14px',
fontFamily: 'Roboto',
}}
>
{mid1.toFixed(2)}
Expand All @@ -128,7 +124,6 @@ const ScaleLegend: React.FC<ScaleProps> = ({ scales, width }) => {
style={{
marginLeft: '10px',
fontSize: '14px',
fontFamily: 'Roboto',
}}
>
{mid2.toFixed(2)}
Expand All @@ -148,7 +143,6 @@ const ScaleLegend: React.FC<ScaleProps> = ({ scales, width }) => {
style={{
marginLeft: '10px',
fontSize: '14px',
fontFamily: 'Roboto',
}}
>
{max.toFixed(2)}
Expand Down

0 comments on commit f3f148d

Please sign in to comment.