Specifies the strategies for tiling nodes in a TreeMapLayout.
Type Details
- yFiles module
- algorithms
Constants
A tiling strategy that places the child nodes one after another inside the parent node.
Remarks
Child nodes are either tiled vertically (slice), one on top of the other with the width equal to the parent's width. Or they are tiled horizontally (dice), one next to the other with the height equal to the parent's height. The tiling strategy alternates with the hierarchy levels, e.g., level 1 uses slice, level 2 uses dice, level 3 uses slice and so on.
This strategy keeps the ordering of the children defined by childNodeComparator stable. Either children are strictly ordered from left to right (dice) or from top to bottom (slice).
See Also
Sample Graphs
A tiling strategy that uses the so-called 'squarify' algorithm.
Remarks
It tries to generate nodes with a size close to a specified aspectRatio. This increases the readability of the tree maps.
The child ordering given by the comparison function defined as childNodeComparator is considered but it is not as predictable as for SLICE_AND_DICE. The order is not strictly from top to bottom or from left to right, but it might differ for different subsets of children. This is an inherent part of the squarified procedure.
The implementation follows the approach of Bruls et al. [Bruls, Mark; Huizing, Kees; van Wijk, Jarke J. (2000). 'Squarified treemaps'].
See Also
Sample Graphs
Static Methods
Converts the given argument to an enum constant of this enum type.
Remarks
Parameters
A map of options to pass to the method.
- value - TilingStrategy
- The value to convert to an enum constant.
Returns
- ↪TilingStrategy
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Parameters
A map of options to pass to the method.
- value - TilingStrategy
- The numeric value of an enum constant.
Returns
- ↪string
- The name of the enum constant.
Throws
- Exception({ name: 'Error' })
- If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.