Skip to content

Self-hosted homelab infrastructure visualizer — interactive network diagram with live status monitoring

fix: add border_width, text_size, label_position to custom_colors type

Pouzor37cb97dca1c4
diff --git a/frontend/src/types/index.ts b/frontend/src/types/index.ts
index 1bd9915..59379a8 100644
--- a/frontend/src/types/index.ts
+++ b/frontend/src/types/index.ts
@@ -72,6 +72,9 @@ export interface NodeData extends Record<string, unknown> {
text_position?: TextPosition
font?: string
border_style?: 'solid' | 'dashed' | 'dotted' | 'double' | 'none'
+ border_width?: number
+ label_position?: 'inside' | 'outside'
+ text_size?: number
z_order?: number
width?: number
height?: number
@@ -88,7 +91,7 @@ export interface EdgeData extends Record<string, unknown> {
speed?: string
custom_color?: string
path_style?: EdgePathStyle
- animated?: boolean
+ animated?: boolean | 'snake' | 'flow' | 'none'
}
export const NODE_TYPE_LABELS: Record<NodeType, string> = {