Interface for an object that can be interactively reshaped in a CanvasComponent
Remarks
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.input.IReshapeHandler
See Also
Properties
Gets a view of the bounds of the item.
Remarks
Methods
Called by clients to indicate that the reshaping has been canceled by the user.
Remarks
Parameters
A map of options to pass to the method.
- context - IInputModeContext
- The context to retrieve information about the reshaping from.
- originalBounds - Rect
- The value of the coordinate of the bounds property at the time of initializeReshape.
See Also
Called by clients to indicate that the element has been dragged and its position should be updated.
Remarks
Parameters
A map of options to pass to the method.
- context - IInputModeContext
- The context to retrieve information about the reshaping from.
- originalBounds - Rect
- The value of the bounds property at the time of initializeReshape.
- newBounds - Rect
- The coordinates of the bounds in the world coordinate system that the client wants the shape to be at. Depending on the implementation the bounds may or may not be modified to reflect the new value.
See Also
Called by clients to indicate that the element is going to be reshaped.
Remarks
Parameters
A map of options to pass to the method.
- context - IInputModeContext
- The context to retrieve information about the drag from.
See Also
Called by clients to indicate that the reshaping has just been finished.
Remarks
Parameters
A map of options to pass to the method.
- context - IInputModeContext
- The context to retrieve information about the drag from.
- originalBounds - Rect
- The value of the coordinate of the bounds property at the time of initializeReshape.
- newBounds - Rect
- The coordinates of the bounds in the world coordinate system that the client wants the shape to be at. Depending on the implementation the bounds may or may not be modified to reflect the new value. This is the same value as delivered in the last invocation of handleReshape
See Also
Static Methods
Creates an implementation of the interface IReshapeHandler from the given definition.
Remarks
Parameters
A map of options to pass to the method.
- initializeReshape - function(IInputModeContext):void
Called by clients to indicate that the element is going to be reshaped.
This property holds the implementation for initializeReshape.
- handleReshape - function(IInputModeContext, Rect, Rect):void
Called by clients to indicate that the element has been dragged and its position should be updated.
This property holds the implementation for handleReshape.
- cancelReshape - function(IInputModeContext, Rect):void
Called by clients to indicate that the reshaping has been canceled by the user.
This property holds the implementation for cancelReshape.
- reshapeFinished - function(IInputModeContext, Rect, Rect):void
Called by clients to indicate that the reshaping has just been finished.
This property holds the implementation for reshapeFinished.
- bounds - IRectangle
Gets a view of the bounds of the item.
This property holds the implementation for bounds.
Returns
- ↪IReshapeHandler
- An instance of the IReshapeHandler interface based on the given definition.