documentationfor yFiles for HTML 2.6

IPositionHandler

Interface for an object that can handle the position of an item displayed in a CanvasComponent

Remarks

The point as indicated by location describes the current world coordinate position of the element. It is up to the implementation how this position is interpreted. The values returned by that instance will be used for the "originalLocation" parameter in the handleMove, cancelDrag and dragFinished methods. Items can be dragged with the mouse and an instance of this class will modify their position accordingly. Typically client code will use the location's coordinates to determine the current position of the elements. A drag will trigger the invocation of initializeDrag, zero or more handleMove calls, and finally by either dragFinished or cancelDrag.

Related Programming Samples

Position Handler
Shows how to customize and restrict the movement behavior of nodes.

Type Details

yfiles module
view-component
yfiles-umd modules
All view modules
Legacy UMD name
yfiles.input.IPositionHandler

See Also

Properties

Methods

Static Methods