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.
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.
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.
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.readonlyfinal
readonlyfinal
Gets the item that is being moved.
Gets the item that is being moved.
readonlyfinal
Property Value
The moved item.
Gets or sets the type of movement for this instance.
Gets or sets the type of movement for this instance.
conversionfinal
Gets the original location of the element at the time the editing started.
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.
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
This takes the moveType and originalLocation into account.
final
Parameters
- dx: number
- The delta x coordinate.
Return Value
- number
- The new x coordinate.
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.
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
Determines whether this instance moves synchronized with the provided info.
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.