How to manipulate Canvas elements: Difference between revisions

Jump to navigation Jump to search
Line 200: Line 200:
Aligns the element, moving it horizontaly to ref.
Aligns the element, moving it horizontaly to ref.
Flips vertically the element.
Flips vertically the element.
* '''elem''' element to be moved.
* '''elem''' element to be moved.
* '''ref''' reference may be an integer or another element.
* '''ref''' reference may be an integer or another element.
* '''alignment''' as string: may be 'left-left', 'left-center', 'left-right',
* '''alignment''' as string: may be 'left-left', 'left-center', 'left-right',
  'center-left', 'center-center', 'center-right',
    'center-left', 'center-center', 'center-right',
  'right-left', 'right-center', 'right-right'.
    'right-left', 'right-center', 'right-right'.
If ref is a single number, the 2nd word is ignored.
  If ref is a single number, the 2nd word is ignored.
 
<hr/>
<hr/>
229

edits

Navigation menu