enhancement
major
minor
major
minor
enhancement
It would be nice to be able to double-click a node in the display to execute a command (e.g., open a dialog) or right-click a node to open a context menu.
Code Migration
- The nodeSelection configuration option in tl:GraphComponent for creating a selection channel has been removed (see r311254). Instead, tl:GraphComponent now extends tl:Selectable. Instead of nodeSelection, the source of the component selection can now be configured using selection.
- The setSelectedGraphParts and getSelectedGraphParts APIs have been generalized by moving them from tl:DiagramJSGraphModel to tl:GraphModel. As a result, the setNodeSelected and getSelectedNodes APIs have been removed from tl:GraphModel.
Test
Launch the Graph Demo. Double-clicking a node should display a message in the `tl:InfoService`; right-clicking opens the context menu with commands for the detail views. When creating new edges, you can set a priority that causes the edges to be given a different dynamic style. For example, a high priority colors the edge red.
TestCreateGraph.script.xml