Type Details
- yfiles module
- layout-hierarchic
- yfiles-umd modules
- layout-familytree, layout-hierarchic, layout-radial, layout
- Legacy UMD name
- yfiles.layout.HierarchicLayoutSubcomponentPlacementPolicy
See Also
Constants
A placement policy that integrates subcomponents at a connector node if such a node exists.
Remarks
A component has a valid connector node if all edges to non-component nodes are adjacent to the connector node.
The connector node and its edges to the component are included and handled by the layout algorithm arranging the component. If there is no unique connecting node, the subcomponent is instead treated in an isolated way.
See Also
Sample Graphs
A placement policy that integrates subcomponents at a connector node if such an integration is possible without causing overlaps or violating constraints of the main layout algorithm.
Remarks
A component has a valid connector node if all edges to non-component nodes are adjacent to the connector node.
If there is a connector node and if the integration is possible, the connector node and its edges to the component are handled by the layout algorithm arranging the component. If an integration is not possible, the subcomponent is instead treated in an isolated way.
An important condition for the integration to be possible is that the orientation of the inner layout must be orthogonal with respect to the main layout, e.g., one top-to-bottom orientation and one left-to-right orientation. In other words, the component layout generated by the sub-layout must be completely on a side of the connector node which is orthogonal to the flow of the main hierarchic layout. If the sub-layout arranges the connector node somewhere in the middle of the component, then an integration of the connector into the main layout may lead to overlaps. This can be forced when using placement policy ALWAYS_INTEGRATED.
See Also
Sample Graphs
A placement policy that treats the component as a single node in the containing graph so that it is placed as such by the main layout algorithm.
Remarks
The hierarchic layout chooses a layer for the whole component like it does for normal nodes. All inter-edges are at that point re-directed to a component representative node.
An isolated component does not have a specific connector node but it can have many non-component nodes it is connected to.
See Also
Sample Graphs
Static Methods
from
(value: HierarchicLayoutSubcomponentPlacementPolicy) : HierarchicLayoutSubcomponentPlacementPolicyConverts the argument to HierarchicLayoutSubcomponentPlacementPolicy.
Parameters
A map of options to pass to the method.
- value - HierarchicLayoutSubcomponentPlacementPolicy
- The value to convert to HierarchicLayoutSubcomponentPlacementPolicy.
Returns
- ↪HierarchicLayoutSubcomponentPlacementPolicy
- Either
value
if it is already a HierarchicLayoutSubcomponentPlacementPolicy or an appropriate converted value.