The policy constant used by NodeReshapeHandleProvider and ReshapeHandlerHandle.
Remarks
The policy values determine how the mouse location is interpreted when the reshape gesture shall keep the aspect ratio.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.input.ReshapePolicy
See Also
Constants
Takes the bigger of the two bounds that would result when taking the HORIZONTAL and VERTICAL policies.
Takes the smaller of the two bounds that would result when taking the HORIZONTAL and VERTICAL policies.
Projects the mouse location onto the resize direction line.
Remarks
The line in resize direction runs through the moved handle and its opposite handle, so e.g. when moving the handle at NORTH_EAST, the line between the NORTH_EAST and SOUTH_WEST is used for the projection.
Static Methods
Converts the argument to ReshapePolicy.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - ReshapePolicy
- The value to convert to ReshapePolicy.
Returns
- ↪ReshapePolicy
- Either
value
if it is already a ReshapePolicy or an appropriate converted value.