A more sophisticated IHandle implementation that modifies a rectangle.
Remarks
Type Details
- yFiles module
- view
Constructors
Creates a handle for the given rectangle
at the given position
.
Remarks
The location is calculated for the rectangle
using the position
.
The instance modifies the instances using the IMutableRectangle interface. The handle will automatically trim changes of the rectangle to the specified minimum and maximum size.
Parameters
A map of options to pass to the method.
- position - HandlePositions
- The position of the handle.
- rectangle - IMutableRectangle
- The rectangle to change.
Properties
Gets a view of the center of the handle.
Remarks
Implements
Gets the position of the handle.
Gets the rectangle instance to modify.
Gets or sets the optional tag object associated with the handle.
Implements
Gets or sets the type of the handle that can be used by the rendering engine to render types differently.
Implements
Methods
Delegates the original values to set.
Parameters
A map of options to pass to the method.
- context - IInputModeContext
- The context to retrieve information about the drag from.
- originalLocation - Point
- The value of the coordinate of the location property at the time of initializeDrag.
Implements
Calculates the Euclidean distance between two points.
Parameters
A map of options to pass to the method.
- point2 - IPoint
- The second point.
Returns
- ↪number
- The distance between the two points.
Overrides
Returns the euclidean distance between this point and a given point.
Parameters
A map of options to pass to the method.
- x - number
- the x coordinate of the second point
- y - number
- the y coordinate of the second point
Returns
- ↪number
- the Euclidean distance between this point and the point (x,y).
Overrides
This implementation does nothing.
Parameters
A map of options to pass to the method.
- context - IInputModeContext
- The context to retrieve information about the drag from.
- originalLocation - Point
- The value of the location property at the time of initializeDrag.
- newLocation - Point
- The coordinates in the world coordinate system that the client wants the handle to be at. Depending on the implementation the location may or may not be modified to reflect the new value. This is the same value as delivered in the last invocation of handleMove
Implements
Ignore clicking the handle.
Parameters
A map of options to pass to the method.
- evt - ClickEventArgs
- Arguments describing the click.
Implements
Delegates to set.
Parameters
A map of options to pass to the method.
- context - IInputModeContext
- The context to retrieve information about the drag from.
- originalLocation - Point
- The value of the location property at the time of initializeDrag.
- newLocation - Point
- The coordinates in the world coordinate system that the client wants the handle to be at. Depending on the implementation the location may or may not be modified to reflect the new value.
Implements
This implementation does nothing.
Parameters
A map of options to pass to the method.
- context - IInputModeContext
- The context to retrieve information about the drag from.
Implements
Delegates to moveBy.
Parameters
A map of options to pass to the method.
- x - number
- The amount to move in x-direction.
- y - number
- The amount to move in y-direction.