Add methods that use absolute or relative positions. A few of the API’s require specifying deltas in their parameters.
Before:
rectange.moveInParentCoordinates(maaaathX, maaaathY);
After:
rectange.moveInParentAt(x, y);
Use Case:
Kuwabara is writing an plugin to set the position of the selected object 25 pixels from the top and left of the container it is in. Using the current API he has to find out the current position and then offset that the new position. Since he knows where he wants the element to go he would rather make a call that sets the pixel position by it’s x and y position instead of deltas.
Applicable methods:
rectange.moveInParentCoordinates()