Skip to content

Commit 4e3d97b

Browse files
Integrated latest changes at 11-11-2024 4:30:48 PM
1 parent 37f2ee8 commit 4e3d97b

File tree

3 files changed

+34
-5
lines changed

3 files changed

+34
-5
lines changed

ej2-react/diagram/interaction.md

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,32 @@ The client-side method [`selectAll`](https://ej2.syncfusion.com/react/documentat
135135

136136
```ts
137137
let diagramInstance: DiagramComponent;
138-
let selectedNodes: NodeModel[] = diagramInstance.selectedItems.nodes;
139-
let selectedConnector: ConnectorModel[] = diagramInstance.selectedItems.connectors;
138+
let nodes: NodeModel[] = [
139+
{
140+
id: 'node1',
141+
width: 90,
142+
height: 60,
143+
offsetX: 100,
144+
offsetY: 100,
145+
style: {
146+
fill: '#6BA5D7',
147+
strokeColor: 'white',
148+
strokeWidth: 1,
149+
},
150+
},
151+
{
152+
id: 'node2',
153+
width: 90,
154+
height: 60,
155+
offsetX: 300,
156+
offsetY: 100,
157+
style: {
158+
fill: '#6BA5D7',
159+
strokeColor: 'white',
160+
strokeWidth: 1,
161+
},
162+
},
163+
];
140164
// initialize Diagram component
141165
function App() {
142166
return (
@@ -145,10 +169,15 @@ function App() {
145169
ref={(diagram) => (diagramInstance = diagram)}
146170
width={'100%'}
147171
height={'600px'}
172+
nodes={nodes}
173+
created={() => {
174+
//Select a specified collection of nodes and connectors in the diagram
175+
diagramInstance.selectAll();
176+
}}
148177
/>
149178
);
150179
}
151-
const root = ReactDOM.createRoot(document.getElementById('diagram'));
180+
const root = createRoot(document.getElementById('diagram'));
152181
root.render(<App />);
153182

154183
```

ej2-react/diagram/tools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ The following code illustrates how to draw a polyline connector.
124124

125125
![Polyline connector drawing](images/polyline-draw.gif)
126126

127-
N> To make the segment thumb visible, inject the [`ConnectorEditing`](../api/diagram/connectorEditing/) module into the diagram.
127+
N> To make the segment thumb visible, inject the [`ConnectorEditing`](https://ej2.syncfusion.com/react/documentation/api/diagram/connectorEditing/) module into the diagram.
128128

129129
### Freehand Drawing
130130

ej2-react/image-editor/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ documentation: ug
88
domainurl: ##DomainURL##
99
---
1010

11-
# Getting Started
11+
# Getting Started in the React Image Editor component
1212

1313
This section explains how to create and configure a simple [React Image Editor component](https://www.syncfusion.com/react-components/react-image-editor).
1414

0 commit comments

Comments
 (0)