Themes
Light and dark themes with full customization of node, edge, arrow, ring, cluster, lasso, and canvas colors.
Import
import { lightTheme, darkTheme, GraphCanvas } from 'reagraph';
Theme Interface
interface Theme {
canvas?: {
background?: ColorRepresentation;
fog?: ColorRepresentation | null;
};
node: {
fill: ColorRepresentation;
activeFill: ColorRepresentation;
opacity: number;
selectedOpacity: number;
inactiveOpacity: number;
[Description truncada. Veja o README completo no GitHub.]