C

MovementInfo
abstract

Used in the context of GraphSnapContext to describe the movement of entities during the edit process.
Inheritance Hierarchy

Members

Show:

Constructors

Initializes a new instance of the MovementInfo class.
protected

Parameters

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.
readonlyabstract

Property Value

The current location.
Gets or sets the horizontal movement info to which this info is anchored horizontally.
This info can be declared to be implicitly anchored to another info. Method movesHorizontallySynchronizedWith will try to match against the anchors to determine if two infos are moving synchronized.
final

Property Value

The horizontal anchor or null.
Gets a value indicating whether the x coordinate of the item is fixed during the move operation.
readonlyfinal
Gets a value indicating whether the y-coordinate of the item is fixed during the move operation.
readonlyfinal
Gets the item that is being moved.
readonlyfinal

Property Value

The moved item.
Gets or sets the type of movement for this instance.
conversionfinal
Gets the original location of the element at the time the editing started.
readonlyfinal

Property Value

The original location.
Gets or sets the vertical movement info to which this info is anchored vertically.
This info can be declared to be implicitly anchored to another info. Method movesVerticallySynchronizedWith will try to match against the anchors to determine if two infos are moving synchronized.
final

Property Value

The vertical anchor or null.

Methods

Gets the new x coordinate of the element if the mouse has been moved by dx during the gesture.
This takes the moveType and originalLocation into account.
final

Parameters

dx: number
The delta x coordinate.

Return Value

number
The new x coordinate.
Gets the new y coordinate of the element if the mouse has been moved by dy during the gesture.
This takes the moveType and originalLocation into account.
final

Parameters

dy: number
The delta y coordinate.

Return Value

number
The new y coordinate.
Determines whether this instance moves synchronized with the provided info.

Parameters

info: MovementInfo
The info to check.

Return Value

boolean
Whether this info and the given info move horizontally synchronized.

See Also

API
horizontalAnchor
Determines whether this instance moves synchronized with the provided info.

Parameters

info: MovementInfo
The info to check.

Return Value

boolean
Whether this info and the given info move vertically synchronized.

See Also

API
verticalAnchor