documentationfor yFiles for HTML 2.6

SnapContext

Manages interactive snapping of elements to other elements during drag operations like movements.

Inheritance Hierarchy

Remarks

This class should be used by IInputMode implementations and similar code as follows:
  • To initialize the operation initializeDrag needs to be called.
  • Method dragInitialized needs to be called after the mode has performed all of its own initialization.
  • Then a series of zero or more invocations handleMove needs to be called for each incremental movement of the user's input device.
  • After handleMove has been called, the mode should perform the move and report back to the instance by calling the dragged method.
  • If the operation is canceled by the user cancelDrag should be called.
  • If the operation is finalized the dragFinished method should be called.

Type Details

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

See Also

Constructors

Properties

Methods

Events