documentationfor yFiles for HTML 3.0.0.3

Usages of ShapeConstraint

Properties

shapeConstraintin InteractiveOrganicLayoutGets or sets an shapeConstraint which restricts the area for the layout result of this algorithm.
shapeConstraintin OrganicLayoutGets or sets the shape constraint for the result of the layout algorithm.

Fields

NONEin ShapeConstraintThis ShapeConstraint does not restrict the output by any means.

Method Return Values

createAspectRatioConstraint (number)in ShapeConstraintCreates a ShapeConstraint that confines the layout result to a rectangular area which roughly complies with the given aspect ratio.
createCircularConstraint (number, number, number)in ShapeConstraintCreates a ShapeConstraint that confines the layout result to a circle.
createEllipticalConstraint (number, number, number, number)in ShapeConstraintCreates a ShapeConstraint that confines the layout result to an elliptical area.
createRectangularConstraint (number, number, number, number)in ShapeConstraintCreates a ShapeConstraint that confines the layout to a rectangular area.

Method Parameters

InteractiveOrganicLayout ()in InteractiveOrganicLayoutCreates a new instance of the InteractiveOrganicLayout with default settings.
OrganicLayout ()in OrganicLayoutCreates a new OrganicLayout instance with default settings.