Skip to content

Commit 837f8df

Browse files
committed
bugfix/MIG-6876 Change wording
1 parent f1b6438 commit 837f8df

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/types/component-props.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,29 +59,29 @@ export type OnConnectStartHandler = (
5959

6060
export interface DiagramProps {
6161
/**
62-
* Whether the diagram should render in dark mode.
62+
* Unique identifier for the diagram instance.
6363
*/
64-
isDarkMode?: boolean;
64+
id?: string;
6565

6666
/**
67-
* Nodes to render in the diagram.
67+
* Title used for the diagram, displayed next to the controls.
6868
*/
69-
nodes: Array<NodeProps>;
69+
title?: string;
7070

7171
/**
72-
* Edges to render in the diagram.
72+
* Whether the diagram should render in dark mode.
7373
*/
74-
edges: Array<EdgeProps>;
74+
isDarkMode?: boolean;
7575

7676
/**
77-
* Optional title for the diagram (used for accessibility or metadata).
77+
* Nodes to render in the diagram.
7878
*/
79-
title?: string;
79+
nodes: Array<NodeProps>;
8080

8181
/**
82-
* Unique identifier for the diagram instance.
82+
* Edges to render in the diagram.
8383
*/
84-
id?: string;
84+
edges: Array<EdgeProps>;
8585

8686
/**
8787
* Optional CSS class to apply to the React Flow container.

src/types/layout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export interface BaseNode {
2020
position: Position;
2121

2222
/**
23-
* Whether the node has been measured (e.g., for layout sizing).
23+
* The width and height of the node.
2424
*/
2525
measured?: Measured;
2626
}

src/types/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export interface NodeField {
151151
glyphs?: Array<NodeGlyph>;
152152

153153
/**
154-
* The size of glyphs, in px.
154+
* The size of glyphs, in pixels.
155155
*/
156156
glyphSize?: number;
157157

0 commit comments

Comments
 (0)