-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Caption] node/edge size/color finished
- but edge by source/target
- Loading branch information
1 parent
c523568
commit bfad1ad
Showing
28 changed files
with
1,543 additions
and
191 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { FC } from "react"; | ||
import { useTranslation } from "react-i18next"; | ||
import cx from "classnames"; | ||
|
||
const ICON_NAMES = { | ||
color: { | ||
node: "icon-node_color", | ||
edge: "icon-node_link_color", | ||
}, | ||
size: { | ||
node: "icon-node_size", | ||
edge: "icon-node_link_weight", | ||
}, | ||
}; | ||
|
||
export const CaptionItemTitle: FC<{ itemType: "node" | "edge"; vizVariable: "color" | "size"; field: string }> = ({ | ||
itemType, | ||
field, | ||
vizVariable, | ||
}) => { | ||
const { t } = useTranslation(); | ||
const label = t(`graph.caption.${vizVariable}`, { | ||
itemType: t(`graph.model.${itemType}s`, { count: 2 }) + "", | ||
}).toString(); | ||
|
||
return ( | ||
<div className="d-flex align-items-center mb-1"> | ||
<i title={label} className={cx("fs-4 me-1", ICON_NAMES[vizVariable][itemType])} /> | ||
<div className="d-flex flex-column justify-content-center m-2"> | ||
<span className="text-muted small">{label}</span> | ||
<h4 className="fs-5 m-0">{field}</h4> | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
{ | ||
"home": { | ||
"greeting": "Bonjour", | ||
"blabla": "Très heureux de vous voir" | ||
"home": { | ||
"greeting": "Bonjour", | ||
"blabla": "Très heureux de vous voir" | ||
}, | ||
"graph": { | ||
"model": { | ||
"nodes": "nœuds", | ||
"edges": "liens" | ||
}, | ||
"graph": { | ||
"model": { | ||
"nodes": "nœuds" | ||
}, | ||
"caption": { | ||
"color": "Couleur des {{itemType}} :", | ||
"size": "Taille des {{itemType}} :" | ||
} | ||
}, | ||
"welcome": { | ||
"logo": "Gephi logo", | ||
"open_recent": "Récemment ouvert", | ||
"open_graph": "Ouvrir un fichier de graphe", | ||
"title": "Bienvenue sur Gephi Lite", | ||
"disclaimer-1": "Gephi Lite est actuellement en phase active de développement.", | ||
"disclaimer-2": "N'hésitez pas à consulter le projet sur GitHub pour en savoir plus sur les fonctionnalités à venir ou pour signaler des anomalies.", | ||
"no_recent": "Aucun fichier distant n'a été ouvert sur ce navigateur pour l'instant." | ||
"caption": { | ||
"color": "Couleur des {{itemType}} par", | ||
"size": "Taille des {{itemType}} par" | ||
} | ||
}, | ||
"welcome": { | ||
"logo": "Gephi logo", | ||
"open_recent": "Récemment ouvert", | ||
"open_graph": "Ouvrir un fichier de graphe", | ||
"title": "Bienvenue sur Gephi Lite", | ||
"disclaimer-1": "Gephi Lite est actuellement en phase active de développement.", | ||
"disclaimer-2": "N'hésitez pas à consulter le projet sur GitHub pour en savoir plus sur les fonctionnalités à venir ou pour signaler des anomalies.", | ||
"no_recent": "Aucun fichier distant n'a été ouvert sur ce navigateur pour l'instant." | ||
} | ||
} |
Oops, something went wrong.