@graphty/graphty-element / config / SuggestedStyleLayerMetadata
Interface: SuggestedStyleLayerMetadata ​
Defined in: graphty-element/src/config/SuggestedStyles.ts:94
Metadata for a suggested style layer
Example ​
typescript
const metadata: SuggestedStyleLayerMetadata = {
name: "Degree - Viridis Gradient",
description: "Colors nodes from purple (low) to yellow (high) based on degree",
priority: 10
};Properties ​
description? ​
optionaldescription:string
Defined in: graphty-element/src/config/SuggestedStyles.ts:98
Optional description of what this style visualizes
name ​
name:
string
Defined in: graphty-element/src/config/SuggestedStyles.ts:96
Human-readable name for this style layer
priority? ​
optionalpriority:number
Defined in: graphty-element/src/config/SuggestedStyles.ts:100
Priority for ordering when multiple algorithms suggest styles (higher = applied later)