Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions specs/proposal/135_arrange_port_selection/135.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,31 @@ _Relevant tickets_ :
### User Interface

* Add entry `Arrange Linked Border Nodes of the Selection` in the arrange selection toolbar menu (fig. 1) and in `Layout` sub menu of contextual menu when there are an active selection (fig. 2).
* Add checkbox entry `Consider Pin`, in the arrange toolbar menu, in the arrange selection toolbar menu (fig. 1) and in `Layout` sub menu of contextual menu (fig. 2).
* Add checkbox entry `Move Pinned Elements`, in the arrange toolbar menu, in the arrange selection toolbar menu (fig. 1) and in `Layout` sub menu of contextual menu (fig. 2).

Figure 1:
!toolbar_arrange_port.png!

![images/toolbar_arrange_port](images/toolbar_arrange_port.png)

Figure 2:
!context_menu_consider_pin.png!

### Consider Pin behavior
![images/context_menu_consider_pin](images/context_menu_consider_pin.png)

### Move Pinned Elements behavior

* If `Consider Pin` is checked, the behavior of arrange remains the same as before, i.e. pinned element do not move or change size.
* If `Consider Pin` is not checked, the behavior of arrange is the same as when all the elements are unpinned.
* If `Move Pinned Elements` is not checked, the behavior of arrange remains the same as before, i.e. pinned element do not move or change size.
* If `Move Pinned Elements` is checked, the behavior of arrange is the same as when all the elements are unpinned.

### Arrange Linked Border Nodes of the Selection behavior

The behavior is the same as `Arrange Linked Border Nodes` but with a different scope. The scope is all ports of all selected element.

For example in this diagram, if B is selected (in blue here), the port in green is arranged (1 port):
!arrange_border_node_selection1.png!
For example in this diagram, if B is selected (in blue here), the port in green are arranged (2 ports):

![images/arrange_border_node_selection1](images/arrange_border_node_selection1.png)

And if we add D to the selection (in blue here), the ports in green are arranged (5 ports):
!arrange_border_node_selection2.png!

If port is pinned and `Consider Pin` is checked, the port is not arranged.
![images/arrange_border_node_selection2](images/arrange_border_node_selection2.png)

If port is pinned and `Move Pinned Elements` is not checked, the port is not arranged.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.