Commands class exposes a standard set of IGraph-related editing and navigation constants.Remarks
true.See Also
Developer's Guide
API
- GraphEditorInputMode, GraphViewerInputMode, NavigationInputMode
Members
Constants
Adds another label to an ILabelOwner.
If the parameter to this command is an ILabelOwner instance, then we will use that item. If the parameter is null and there is exactly one selected ILabelOwner, then we will use the selected item.
The default shortcut for this command is Shift+F2.
See Also
Developer's Guide
API
- addCommandBinding, canExecuteCommand, executeCommand
If the parameter to this command is null, the sizes of the currently selected group nodes are adjusted. If the parameter is an INode instance, the size of that group node will be adjusted. If the parameter is an IEnumerable<T> instance, then the sizes of all group nodes in that enumeration are adjusted.
The default shortcut for this command is Ctrl-Shift-G.
See Also
Developer's Guide
API
- addCommandBinding, canExecuteCommand, executeCommand
Starts edge creation via installed CreateEdgeInputMode instances.
See Also
Developer's Guide
Collapses the group node specified by the parameter.
If the parameter to this command is null, the currently selected group nodes are collapsed. If the parameter is an INode instance, that group node will be collapsed. If the parameter is an IEnumerable<T> instance, then all group nodes in that enumeration are collapsed.
The default shortcut for this command is Alt+Left.
See Also
See Also
Developer's Guide
Deletes the selected graph items as in the method deleteSelection.
The default shortcut for this command is the Delete key.
See Also
Developer's Guide
See Also
See Also
Developer's Guide
API
- addCommandBinding, canExecuteCommand, executeCommand
Duplicate items of the current IGraph.
See Also
Developer's Guide
We first determine the item to edit: If the parameter to this command is an IModelItem instance, then we will use that item. If the parameter is null and there is exactly one selected item, then we will use the selected item.
Then we determine the label to edit from the given item: If the item is an ILabel instance, then that label will be edited. If the item is an ILabelOwner instance with an editable label, then that label will be edited. If the item is an ILabelOwner instance with no editable label, then a new label will be added and edited.
The default shortcut for this command is F2.
See Also
Developer's Guide
API
- addCommandBinding, canExecuteCommand, executeCommand
Switches the local root of the current IFoldingView view to the given group node.
If the parameter to this command is null, the currently selected group node is entered. If the parameter is an INode instance that is a group node, that group node will be entered.
The default shortcut for this command is Alt+Down.
See Also
Exits the current local root of the current IFoldingView view to the given parent view.
See Also
Expand the group node specified by the parameter.
If the parameter to this command is null, the currently selected group nodes are expanded. If the parameter is an INode instance, that node will be expanded. If the parameter is an IEnumerable<T> instance, then all group nodes in that enumeration are expanded.
The default shortcut for this command is Alt+Right.
See Also
Extends the selection downwards.
The default shortcut for this command is Shift+Down.
See Also
Developer's Guide
Extends the selection one level down in the hierarchy. This typically adds a child of the currently focused group node to the selection.
The default shortcut for this command is Ctrl+Shift+PageDown.
See Also
Developer's Guide
Extends the selection one level up in the hierarchy. This typically extends the selection to a child of the currently selected element.
The default shortcut for this command is Ctrl+Shift+PageUp.
See Also
Developer's Guide
Extends the selection to the left.
The default shortcut for this command is Shift+Left.
See Also
Developer's Guide
Extends the selection to the right.
The default shortcut for this command is Shift+Right.
See Also
Developer's Guide
Extends the selection upwards.
The default shortcut for this command is Shift+Up.
See Also
Developer's Guide
Invokes fitContent when executed.
See Also
Developer's Guide
Calls FIT_GRAPH_BOUNDS.
The parameter can be either an Insets or convertible that will be used to create an appropriately sized Insets object from.
This command considers margins defined by contentMargins. The margins define the visible whitespace around the actual contentBounds.
The default shortcut for this command is Alt+1
See Also
Developer's Guide
See Also
See Also
Developer's Guide
Lowers the visual representations of IModelItems one step back.
Lowers the main render tree element of IModelItems in their parent group one step back.
GraphEditorInputMode can execute this command if it is installed in a GraphComponent and. As parameter, the following values are accepted:
null, in which case the selection is lowered or the currentItem if useCurrentItemForCommands is set.- a single IModelItem that shall be lowered.
- an IEnumerable<IModelItem> which shall be lowered.
See Also
Developer's Guide
API
- lower, lowerSelection
Moves the selection down.
The default shortcut for this command is the Down cursor key.
Moves the focus down.
The default shortcut for this command is Ctrl+Down.
Moves the focus downwards in the hierarchy. This is used for moving the focus from a group node to its children.
The default shortcut for this command is Ctrl+PageDown.
Moves the focus upwards in the hierarchy. This is used for moving the focus from a node to its containing group node.
The default shortcut for this command is Ctrl+PageUp.
Moves the focus left.
The default shortcut for this command is Ctrl+Left.
Moves the focus right.
The default shortcut for this command is Ctrl+Right.
Moves the focus up.
The default shortcut for this command is Ctrl+Up.
Moves the focus downwards in the hierarchy. This is used for moving the focus from a group node to its children.
There default shortcut is Alt+PageDown.
Moves the selection one hierarchy level upwards.
The default shortcut for this command is Alt+PageUp.
Moves the selection left.
The default shortcut for this command is the Left cursor.
Moves the selection right.
The default shortcut for this command is the Right cursor key.
Moves the selection up.
The default shortcut for this command is the Up cursor key.
If supported, a print operation will be initiated.
The default shortcut for this command is Ctrl+P.
Raises the visual representations of IModelItems one step to the front.
Raises the main render tree element of IModelItems in their parent group one step to the front.
GraphEditorInputMode can execute this command if it is installed in a GraphComponent. As parameter the following values are accepted:
null, in which case the selection is raised or the currentItem if useCurrentItemForCommands is set.- a single IModelItem that shall be raised.
- an IEnumerable<IModelItem> which shall be raised.
See Also
Developer's Guide
API
- raise, raiseSelection
Redoes the last undone operation using redo.
The default shortcut for this command is Ctrl+Y.
See Also
Developer's Guide
GraphEditorInputMode can execute this command if it is installed in a GraphComponent. The parameter specifies the edges to be reversed and can be an IEdge, an IEnumerable<IEdge> or null. If the parameter is null the currently selected edges will be reversed.
The default shortcut for this command is Ctrl+R.
See Also
Developer's Guide
API
- reverseEdges
Scrolls the CanvasComponent one page down.
The default shortcut for this command is PageDown.
See Also
Developer's Guide
Scrolls the CanvasComponent one page left.
The default shortcut for this command is Shift+PageUp.
See Also
Developer's Guide
Scrolls the CanvasComponent one page right.
The default shortcut for this command is Shift+PageDown.
See Also
Developer's Guide
Scrolls the CanvasComponent one page up.
The default shortcut for this command is PageUp.
See Also
Developer's Guide
Selects all graph elements as supported by selectAll.
The default shortcut for this command is Ctrl+A.
See Also
Developer's Guide
See Also
Developer's Guide
API
- addCommandBinding, canExecuteCommand, executeCommand
Sets the currentItem when executed.
See Also
Developer's Guide
Brings the visual representations of IModelItems to the back.
Brings the main render tree element of IModelItems in their parent group to the back.
GraphEditorInputMode can execute this command if it is installed in a GraphComponent. As parameter, the following values are accepted:
null, in which case the selection is brought to the back or the currentItem if useCurrentItemForCommands is set.- a single IModelItem that shall be brought to the back.
- an IEnumerable<IModelItem> which shall be brought to the back.
See Also
Developer's Guide
API
- toBack, selectionToBack
Brings the visual representations of IModelItems to the front.
Brings the main render tree element of IModelItems in their parent group to the front.
GraphEditorInputMode can execute this command if it is installed in a GraphComponent. As parameter the following values are accepted:
null, in which case the selection is brought to the front or the currentItem if useCurrentItemForCommands is set.- a single IModelItem that shall be brought to the front.
- an IEnumerable<IModelItem> which shall be brought to the front.
See Also
Developer's Guide
API
- toFront, selectionToFront
Toggles the collapsed/expanded state of the currently selected group nodes.
If the parameter to this command is null, the currently selected group nodes are toggled. If the parameter is an INode instance, that group node will be toggled. If the parameter is an IEnumerable<T> instance, then all group nodes in that enumeration are toggled.
The default shortcuts for this command are Alt+Shift+Left and Alt+Shift+Right.
See Also
Developer's Guide
API
- addCommandBinding, canExecuteCommand, executeCommand
If the parameter to this command is an IModelItem instance, then the selection state of that item will be toggled. Otherwise, if there is a current item, its selection state will be toggled.
The default shortcut for this command is Ctrl+Space.
See Also
Developer's Guide
API
- addCommandBinding
Undoes the last operation using undo.
The default shortcut for this command is Ctrl+Z.
See Also
Developer's Guide
See Also
Invokes updateContentBounds when executed.
See Also
Developer's Guide
See Also
Developer's Guide
Sets the zoom and the viewPoint in an animated fashion such that the currentItem becomes fully visible.
This command considers margins defined by contentMargins. The margins define the visible whitespace around the rectangle in which the respective item is centered. This way it is also possible to get asymmetric whitespace around the item.
If a viewportLimiter is enabled, its bounds are respected such that it may also happen that the item is not fully visible.
See Also
Developer's Guide
This command considers margins defined by contentMargins. The margins define the visible whitespace around the rectangle in which the respective items are centered. This way it is also possible to get asymmetric whitespace around the items.
If a viewportLimiter is enabled, its bounds are respected such that it may also happen that the items are not fully visible.
The default shortcut for this command is Alt+2
See Also
Developer's Guide
Static Methods
Returns the name of the given enum constant.
Parameters
- value: Command
- The numeric value of an enum constant.
Return Value
- string
- The name of the enum constant.
Throws
- Exception ({ name: 'Error' })
- If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.