Used in the context of GraphSnapContext to describe the movement of entities during the edit process.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.input.MovementInfo
Constructors
Initializes a new instance of the MovementInfo class.
Parameters
A map of options to pass to the method.
- originalLocation - Point
- The original location.
- moveType - MoveTypes
- The type of the move.
- movedItem - IModelItem
- The item that is being moved.
Properties
Gets the current location as a live point.
Gets or sets the horizontal movement info to which this info is anchored horizontally.
Remarks
Gets the item that is being moved.
Gets or sets the type of the movement for this instance.
Gets the original location of the element at the time the editing started.
Gets or sets the vertical movement info to which this info is anchored vertically.
Remarks
Methods
Gets the new x coordinate of the element if the mouse has been moved by dx
during the gesture.
Remarks
Parameters
A map of options to pass to the method.
- dx - number
- The delta x coordinate.
Returns
- ↪number
- The new x coordinate.
Gets the new y coordinate of the element if the mouse has been moved by dy
during the gesture.
Remarks
Parameters
A map of options to pass to the method.
- dy - number
- The delta y coordinate.
Returns
- ↪number
- The new y coordinate.
Determines whether this instances moves synchronized with the provided info.
Parameters
A map of options to pass to the method.
- info - MovementInfo
- The info to check.
Returns
- ↪boolean
- Whether this info and the given info move horizontally synchronized.
See Also
Determines whether this instances moves synchronized with the provided info.
Parameters
A map of options to pass to the method.
- info - MovementInfo
- The info to check.
Returns
- ↪boolean
- Whether this info and the given info move vertically synchronized.