A specialized version of the IHandleProvider interface that can be used to query IHandle implementation for resizing an object.
Inheritance Hierarchy
IReshapeHandleProvider
Related Programming Samples
- Reshape Handle Provider Configuration
- Shows how resizing of nodes can be customized.
- Reshape Handle Provider
- Shows how to add resize handles to ports.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.input.IReshapeHandleProvider
See Also
Methods
Returns a bitwise combination of all of the HandlePositions this interface can provide an implementation for.
Remarks
Client code will use this method to query the available positions and may then call for each of the positions the getHandle method to retrieve an implementation.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- context - IInputModeContext
- The context for which the handles are queried.
Returns
- ↪HandlePositions
- A bitwise combination of all positions the getHandle method can be queried for.
See Also
Returns an implementation of an IHandle for the given position, that can be used to reshape an object.
Remarks
This method may be called for each possible single position contained in the set as returned by getAvailableHandles.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- context - IInputModeContext
- The context for which the handles are queried.
- position - HandlePositions
- The single position a handle implementation should be returned for.
Returns
See Also
Static Methods
Creates an implementation of the interface IReshapeHandleProvider from the given definition.
Remarks
The given object must contain exactly the abstract members of the IReshapeHandleProvider interface. No member may be omitted and no additional members can be added. While additional custom members can later be added directly on the instance, this is discouraged.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- getAvailableHandles - function(IInputModeContext):HandlePositions
Returns a bitwise combination of all of the HandlePositions this interface can provide an implementation for.
This property holds the implementation for getAvailableHandles.
- getHandle - function(IInputModeContext, HandlePositions):IHandle
Returns
- ↪IReshapeHandleProvider
- An instance of the IReshapeHandleProvider interface based on the given definition.