Interface for an object that can be interactively reshaped in a CanvasComponent
Remarks
Type Details
- yFiles module
- view
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 coordinates of the bounds property at the time of initializeReshape.
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.
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.
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.
Static Methods
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.