documentationfor yFiles for HTML 2.6

GraphTransformer

This layout algorithm applies geometric transformations to (sub-)graphs.

Inheritance Hierarchy
MultiStageLayout
GraphTransformer
Implemented Interfaces

Remarks

Layout Style

There are several ways to transform the graph that include mirroring, rotating, scaling and translating.

The highlighted subgraph is rotated by 45 degrees

Features

The layout can be scaled with independent factors for the horizontal and vertical scaling. Optionally, the sizes of nodes can be scaled, too.

The layout can be mirrored either on the x-axis or the y-axis.

A rotation can be specified. Instead of defining a rotation angle the angle can be determined automatically to fit specific bounds.

The coordinates in the layout can be translated by a specific vector.

To only apply previously mentioned transformations to a subgraph, the SubgraphLayout needs to be enabled. Then the nodes in the subgraph must be marked in a IDataProvider registered with the according key.

Default Values of Properties

componentLayoutEnabledfalseThe stage that arranges connected graph components is activated.
hideGroupsStageEnabledfalseThe stage responsible for hiding group nodes is activated.
operationSCALE
parallelEdgeRouterEnabledfalseThe stage that routes parallel edges is activated.
preferredHeight1.0
preferredWidth1.41
rotationAngle0.0
scaleFactorX1.0
scaleFactorY1.0
selfLoopRouterEnabledfalseThe stage that routes self-loops is activated.
subgraphLayoutEnabledfalseThe stage that constrains the input graph to a subgraph is deactivated.
translateX0.0
translateY0.0

Type Details

yfiles module
layout-core
yfiles-umd modules
All layout modules, view-layout-bridge
Legacy UMD name
yfiles.layout.GraphTransformer
Labels are not affected by the transformation. They will stay at the location that is defined by their label model.

Constructors

Properties

Methods

Static Methods