documentationfor yFiles for HTML 3.0.0.3

Usages of SnapConstraint

Properties

constraintin SnapResultGets the snap constraint describing valid pointer locations for this result.

Method Return Values

calculateConstraintForBottomLocation (CollectSnapResultsEventArgs, Rect, Point, number, number)in ReshapeRectangleContextCalculates a constraint for pointer locations so that the bottom side of the rectangle ends up at the snapLocation.
calculateConstraintForHeight (CollectSnapResultsEventArgs, Rect, Point, number, number)in ReshapeRectangleContextCalculates a constraint for pointer locations so that the node height ends up to be height.
calculateConstraintForLeftLocation (CollectSnapResultsEventArgs, Rect, Point, number, number)in ReshapeRectangleContextCalculates a constraint for pointer locations so that the left side of the rectangle ends up at the snapLocation.
calculateConstraintForRightLocation (CollectSnapResultsEventArgs, Rect, Point, number, number)in ReshapeRectangleContextCalculates a constraint for pointer locations so that the right side of the rectangle ends up at the snapLocation.
calculateConstraintForTopLocation (CollectSnapResultsEventArgs, Rect, Point, number, number)in ReshapeRectangleContextCalculates a constraint for pointer locations so that the top side of the rectangle ends up at the snapLocation.
calculateConstraintForWidth (CollectSnapResultsEventArgs, Rect, Point, number, number)in ReshapeRectangleContextCalculates a constraint for pointer locations so that the node width ends up being width.
createCircleConstraint (Point, Point, number, Point, number, number?, number?)in SnapConstraintCreates a constraint describing the points on a circle defined by the given center and radius.
createLineConstraint (Point, Point, number, Point)in SnapConstraintCreates a constraint describing an affine line defined by the given location and direction.
createPointConstraint (Point)in SnapConstraintCreates a constraint describing the single valid given location.
tryMerge (SnapConstraint)in SnapConstraintTries to merge the current with the given constraint.

Method Parameters

tryMerge (SnapConstraint)in SnapConstraintTries to merge the current with the given constraint.
SnapResult (SnapConstraint, number, any?, IModelItem?, Point?, SnapReference?, IObjectRenderer<SnapResult>?)in SnapResultInitializes the tag, weight and constraint with the given values.
createCircleSnapResult (SnapConstraint, number, any, IModelItem, Point, SnapCircle, IObjectRenderer<SnapResult>?)in SnapResultFactory method that creates a SnapResult that snaps to a given circle.
createLineSnapResult (SnapConstraint, number, any, IModelItem, Point, SnapLine, IObjectRenderer<SnapResult>?)in SnapResultFactory method that creates a SnapResult which represents a SnapLine to which the current moved item will potentially snap.
createResizeSnapResult (SnapConstraint, number, any, IModelItem?, SnapSize?, IObjectRenderer<SnapResult>?)in SnapResultFactory method that creates a SnapResult which snaps to a given size through a resize operation.
createSnapResult (SnapConstraint, number, any?, IModelItem?, Point?, SnapReference?, IObjectRenderer<SnapResult>?)in SnapResultFactory method that creates a SnapResult using the given constraint.