File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -59,29 +59,29 @@ export type OnConnectStartHandler = (
59
59
60
60
export interface DiagramProps {
61
61
/**
62
- * Whether the diagram should render in dark mode .
62
+ * Unique identifier for the diagram instance .
63
63
*/
64
- isDarkMode ?: boolean ;
64
+ id ?: string ;
65
65
66
66
/**
67
- * Nodes to render in the diagram.
67
+ * Title used for the diagram, displayed next to the controls .
68
68
*/
69
- nodes : Array < NodeProps > ;
69
+ title ?: string ;
70
70
71
71
/**
72
- * Edges to render in the diagram .
72
+ * Whether the diagram should render in dark mode .
73
73
*/
74
- edges : Array < EdgeProps > ;
74
+ isDarkMode ?: boolean ;
75
75
76
76
/**
77
- * Optional title for the diagram (used for accessibility or metadata) .
77
+ * Nodes to render in the diagram.
78
78
*/
79
- title ?: string ;
79
+ nodes : Array < NodeProps > ;
80
80
81
81
/**
82
- * Unique identifier for the diagram instance .
82
+ * Edges to render in the diagram.
83
83
*/
84
- id ?: string ;
84
+ edges : Array < EdgeProps > ;
85
85
86
86
/**
87
87
* Optional CSS class to apply to the React Flow container.
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export interface BaseNode {
20
20
position : Position ;
21
21
22
22
/**
23
- * Whether the node has been measured (e.g., for layout sizing) .
23
+ * The width and height of the node .
24
24
*/
25
25
measured ?: Measured ;
26
26
}
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ export interface NodeField {
151
151
glyphs ?: Array < NodeGlyph > ;
152
152
153
153
/**
154
- * The size of glyphs, in px .
154
+ * The size of glyphs, in pixels .
155
155
*/
156
156
glyphSize ?: number ;
157
157
You can’t perform that action at this time.
0 commit comments