| ... |
... |
@@ -597,6 +597,22 @@ |
| 597 |
597 |
))) |
| 598 |
598 |
|(% colspan="1" %)(% colspan="1" %) |
| 599 |
599 |
((( |
|
600 |
+[[Port Anchor Offset>>doc:||anchor="portAnchor"]] |
|
601 |
+)))|(% colspan="1" %)(% colspan="1" %) |
|
602 |
+((( |
|
603 |
+de.cau.cs.kieler.klay.layered.portAnchor |
|
604 |
+)))|(% colspan="1" %)(% colspan="1" %) |
|
605 |
+((( |
|
606 |
+Object |
|
607 |
+)))|(% colspan="1" %)(% colspan="1" %) |
|
608 |
+((( |
|
609 |
+Ports |
|
610 |
+)))|(% colspan="1" %)(% colspan="1" %) |
|
611 |
+((( |
|
612 |
+ |
|
613 |
+))) |
|
614 |
+|(% colspan="1" %)(% colspan="1" %) |
|
615 |
+((( |
| 600 |
600 |
Port Index |
| 601 |
601 |
)))|(% colspan="1" %)(% colspan="1" %) |
| 602 |
602 |
((( |
| ... |
... |
@@ -831,8 +831,10 @@ |
| 831 |
831 |
|
| 832 |
832 |
This option controls additional port space left around the set of ports on each side: |
| 833 |
833 |
|
| 834 |
|
- |
|
850 |
+[[image:attach:addPortSpace.png]] |
| 835 |
835 |
|
|
852 |
+This option is only relevant if port constraints are {{code language="none"}}FREE{{/code}}, {{code language="none"}}FIXED_SIDE{{/code}}, or {{code language="none"}}FIXED_ORDER{{/code}}. If size constraints include {{code language="none"}}PORTS{{/code}}, the additional port space, together with the port spacing and the size of ports, determines a lower bound on the node size. |
|
853 |
+ |
| 836 |
836 |
=== Alignment === |
| 837 |
837 |
|
| 838 |
838 |
{{id name="alignment"/}} |
| ... |
... |
@@ -871,6 +871,18 @@ |
| 871 |
871 |
|
| 872 |
872 |
Elements that are marked with this option are excluded from layout. This is used to identify diagram objects that should not be regarded as graph elements. |
| 873 |
873 |
|
|
892 |
+=== Port Anchor Offset === |
|
893 |
+ |
|
894 |
+{{id name="portAnchor"/}} |
|
895 |
+ |
|
896 |
+ |
|
897 |
+ |
|
898 |
+Since ports have a size, we need a concrete point inside the port that edges should start or end in. In KLay Layered, this is referred to as the //port anchor//. By default, the center of each port is used as its port anchor, but this behavior can be overridden by setting an explicit port anchor. |
|
899 |
+ |
|
900 |
+In the following example, the port anchor of the left port was moved upwards, while the port anchor of the second port was moved downwards: |
|
901 |
+ |
|
902 |
+[[image:attach:KLay Layered Layout Options@port_anchors.png]] |
|
903 |
+ |
| 874 |
874 |
=== Port Offset === |
| 875 |
875 |
|
| 876 |
876 |
{{id name="portOffset"/}} |