Series-parallel Layout
This chapter describes the major API changes to the SeriesParallelLayout introduced with yFiles for HTML 3.0 and how to migrate from the older version.
As with all major layout algorithms, the SeriesParallelLayout no longer inherits from MultiStageLayout, but implements ILayoutAlgorithm directly. The layout stages are now managed by a LayoutStageStack, which can be obtained via the layoutStages property; see the migration chapter Layout Stages and Multi-Stage Layouts for more details.
Renamed, Moved, and Removed Classes and Members
The following table contains the renamed, moved, and removed classes and members of the major classes of the SeriesParallelLayout.
yFiles for HTML 2.6 | yFiles for HTML 3.0 | Remarks |
---|---|---|
Changed Default Values and Behavior Changes
Non-series-parallel graphs are now handled by default.
The property generalGraphHandling
is no longer required and has been removed.
Node labels are now considered by default. To change this behavior, set the nodeLabelPlacement property to the desired value. It is now also easier to place the node labels with GenericLabeling by setting the value to GENERIC.
Edge labels are now placed by an integrated edge labeling algorithm. To change this behavior, set the edgeLabelPlacement property to the desired value. It is now also easier to place the edge labels with GenericLabeling by setting the value to GENERIC.
Port placement now takes the specified port candidates into account. The ports are placed in a post-processing step by the PortPlacementStage. Port candidates can be specified via the properties on the sub-data SeriesParallelLayoutData.ports. See also the section Ports.