2
2
sidebar_position : 2
3
3
---
4
4
5
+ import eventEdge from './assets/event-edge.png'
6
+ import eventSourceHandle from './assets/event-source-handle.png'
5
7
import Tabs from '@theme/Tabs ';
6
8
import TabItem from '@theme/TabItem ';
9
+ import timerSettings from './assets/timer-settings.png'
10
+ import triggerButtons from './assets/trigger-buttons.gif'
7
11
8
12
# The application graph editor
9
13
@@ -23,7 +27,9 @@ can also be used to navigate around the graph.
23
27
Component parameters and settings can be edited directly from the graph view. Click on the gear icon of the first Timer
24
28
component to open its settings panel. The settings panel can be closed with the X or by clicking anywhere in the graph.
25
29
26
- ![ timer settings] ( ./assets/timer-settings.png )
30
+ <div class =" text--center " >
31
+ <img src ={timerSettings} alt =" Timer settings " />
32
+ </div >
27
33
28
34
### Auto-lifecycle events
29
35
@@ -83,9 +89,6 @@ also be deleted by selecting them with a click and pressing the Delete key on yo
83
89
</TabItem>
84
90
</Tabs>
85
91
86
- To delete an element from the graph, press the small menu icon in its top right corner, then click Remove. Elements can
87
- also be deleted by selecting them with a click and pressing the Delete keyboard shortcut.
88
-
89
92
For this example, let's add a "Trigger Events Button" to the timer application by clicking on it in the sidebar. A new
90
93
button should appear on the graph and in the code. This is an interactive elements that can be used to trigger events
91
94
through mouse clicks and interact with the flow of the application.
@@ -103,7 +106,9 @@ changes again and the draft edge snaps in place, at which point you can let go o
103
106
valid, it will create a new event edge with the default event (Load). Event source handles are found under transitions
104
107
and predicates of a component and look like that:
105
108
106
- 
109
+ <div class="text--center">
110
+ <img src={eventSourceHandle} alt="Event source handle" />
111
+ </div>
107
112
108
113
:::note
109
114
@@ -124,15 +129,19 @@ desired event. This will close the selection menu and update the YAML code accor
124
129
125
130
For this example, choose the Deactivate event in order to pause the timer on click of the button.
126
131
127
- 
132
+ <div class="text--center">
133
+ <img src={eventEdge} alt="Event edge" />
134
+ </div>
128
135
129
136
Clicking on an edge also selects it, which is indicated by the increased line thickness. Clicking away from the edge
130
137
will deselect it. While the edge is selected, press the Delete key to delete the edge. This will also remove the
131
138
event from the YAML representation.
132
139
133
140
Now add a second trigger button, create a new event edge to Timer 2 and choose the Activate event type.
134
141
135
- 
142
+ <div class="text--center">
143
+ <img src={triggerButtons} alt="Trigger buttons example" />
144
+ </div>
136
145
137
146
## Renaming elements in the graph
138
147
0 commit comments