You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/03.11-internal-actions.md
+15-10Lines changed: 15 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -3,17 +3,17 @@
3
3
Internal actions can be generated by the user either:
4
4
5
5
* Clicking a toolbar button or
6
-
* Clicking an option in a context menu or context toobar or
7
-
* Pressing a keyboard shortcut key(s) or
8
-
*Doing some direct manipulation like dragging one or more objects
6
+
* Clicking an option in a context menu or context toolbar or
7
+
* Pressing keyboard shortcut key(s) or
8
+
*Performing direct manipulation like dragging one or more objects on the canvas
9
9
10
-
Some actions can be generated from different sources. For example, the `deleteSelectedObjects` action can be generated by the user:
10
+
Some internal actions can be generated in multiple different ways. For example, the `deleteSelectedObjects` action can be generated by the user:
11
11
12
12
* Clicking the trash can icon in the toolbar or
13
13
* Pressing the Delete key or
14
-
* Clicking the Delete option in a context menu.
14
+
* Clicking the Delete option in a context menu or context toolbar.
15
15
16
-
In each case, the action generates calls to the [beforeEditActionHandler](03.03.02-before-edit-action-handler.md) callback and then the [editActionHandler](03.03.03-edit-action-handler.md) callback. For each callback, the `editType` field of the first parameter will be set to one of the actions listed below.
16
+
In each case, the action generates a call to the [beforeEditActionHandler](03.03.02-before-edit-action-handler.md) callback and then the [editActionHandler](03.03.03-edit-action-handler.md) callback. For each callback, the `editType` field of the first parameter will be set to one of the actions listed below.
17
17
18
18
These are the intenal actions:
19
19
@@ -27,7 +27,7 @@ These are the intenal actions:
27
27
| insertNodeIntoLink | Inserts a node from the canvas into the link it was dropped on |
28
28
| attachNodeToLinks | Attaches a node to one or more detached links it was dropped on |
29
29
| setNodeLabel | Sets the node label |
30
-
| setNodeLabelEditingMode | Puts a node label into eiting mode|
30
+
| setNodeLabelEditingMode | Puts a node label into editing mode |
31
31
| disconnectNode | Removes all links to the selected node |
32
32
|**Supernodes**||
33
33
| createSuperNode | Creates an internal supernode |
@@ -54,6 +54,7 @@ These are the intenal actions:
54
54
| colorSelectedObjects | Colors the background of the selected objects |
55
55
| deleteSelectedObjects | Deletes the selected objects |
56
56
| selectAll | Selects all canvas objects |
57
+
| deselectAll | Deselects all canvas objects |
57
58
|**Links**||
58
59
| updateLink | Updates the link info for detached links |
59
60
| editComment | Changes the comment text, position and dimension info |
@@ -64,7 +65,7 @@ These are the intenal actions:
64
65
| setLinksStyle | Sets the style property of one or more links |
65
66
| deleteLink | Deletes a link |
66
67
|**Decorations**||
67
-
| editDecorationLabel | Puts a label decoration into edit mode|
68
+
| editDecorationLabel | Puts a label decoration into editing mode |
68
69
|**Arrange nodes**||
69
70
| arrangeHorizontally | Arranges the nodes across the page from left to right |
70
71
| arrangeVertically | Arranges the nodes down the page from top to bottom |
@@ -97,7 +98,11 @@ These are the intenal actions:
97
98
98
99
## Action names with built in icons
99
100
100
-
If you use any of the following action names, Common Canvas will automatically display an appropriate Carbon icon for that action either if it appears as a button in the toolbar or if it appears in the overflow menu.
101
+
If you use any of the following action names, Common Canvas will automatically display an appropriate Carbon icon for that action if the action is for:
102
+
103
+
* a button in the canvas toolbar or an item in its overflow menu or
104
+
* a button in the context toolbar or an item in its overflow menu.
0 commit comments