Carries information about a reshape operation.
Remarks
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.input.ReshapeRectangleContext
Constructors
ReshapeRectangleContext
(initialBounds: Rect, minimumSize: ISize, maximumSize: ISize, minimumEnclosedArea: IRectangle, maximumBoundingArea: IRectangle, reshapePosition: HandlePositions, topLeftChangeFactor: Point, bottomRightChangeFactor: Point, sizeChangeFactor: Size, reshapePolicy: ReshapePolicy, ratio: number)Initializes a new instance of the ReshapeRectangleContext class.
Parameters
A map of options to pass to the method.
- initialBounds - Rect
- The initial bounds of the node.
- minimumSize - ISize
- The minimum size of the node.
- maximumSize - ISize
- The maximum size of the node.
- minimumEnclosedArea - IRectangle
- The minimum area the node's layout needs to encompass. Providing an empty rectangle will disable this restriction.
- maximumBoundingArea - IRectangle
- The maximum bounding area the node's layout may fill. Providing an infinite rectangle will disable this restriction.
- reshapePosition - HandlePositions
- The position of the reshape handle.
- topLeftChangeFactor - Point
- The factor by which the top left corner of the node layout changes when the handle is dragged.
- bottomRightChangeFactor - Point
- The factor by which the bottom right corner of the node layout changes when the handle is dragged.
- sizeChangeFactor - Size
- The factor by which the size of the node layout changes when the handle is dragged.
- reshapePolicy - ReshapePolicy
- The policy used for aspect ratio resizing.
- ratio - number
- The aspect ratio used for aspect ratio resizing.
Properties
Gets the factor by which the bottom right corner of the node layout changes when the handle is dragged.
Gets the initial bounds of the node.
Gets the maximal bounds the node's layout may fill.
Remarks
Gets or sets the maximum size of the node.
Gets minimum area the node's layout needs to encompass
Gets the minimum size of the node.
Gets the ratio between the change of the width and the change of the height that is kept during the reshape gesture.
Gets the policy if and how the change in size of the reshapeable keeps the ratio during the reshape gesture.
See Also
Gets the position of the reshape handle.
Gets the factor by which the size of the node layout changes when the handle is dragged.
Gets the factor by which the top left corner of the node layout changes when the handle is dragged.