move([dx], [dy])

Class: Shape.

Description:

Moves the Shape by adding the specified x and y values to its current position.
The function shifts the element's position relative to current position.
If arguments are invalid integer values, the Shape will not be moved.

Parameters:

Name Type Default Description

[dx]

number

0

Delta x (can be positive or negative number)

[dy]

number

0

Delta y (can be positive or negative number)

Returns:

Returns this Shape instance.

Type: Shape