229
edits
Line 184: | Line 184: | ||
* '''Xaxis''' abscissa of the symmetry axis . If 0 (default) element flips in-place. | * '''Xaxis''' abscissa of the symmetry axis . If 0 (default) element flips in-place. | ||
<hr/> | <hr/> | ||
=== | === flipY === | ||
'''parameters''': (elem, Yaxis=0) | '''parameters''': (elem, Yaxis=0) | ||
Flips vertically the element. | Flips vertically the element. | ||
* '''elem''' element to be flipped. | * '''elem''' element to be flipped. | ||
* '''Yaxis''' ordenate of the symmetry axis . If 0 (default) element flips in-place. | * '''Yaxis''' ordenate of the symmetry axis . If 0 (default) element flips in-place. | ||
<hr/> | |||
=== rotate180 === | |||
'''parameters''': (elem, center=nil) { | |||
Rotates the element 180 deg around '''center'''. | |||
* '''elem''' element to be rotated. | |||
* '''center''' as [Cx,Cy] in pixels. Rotates in-place by default. | |||
<hr/> | |||
=== alignX === | |||
'''parameters''': (elem, ref, alignment) | |||
Aligns the element, moving it horizontaly to ref. | |||
Flips vertically the element. | |||
* '''elem''' element to be moved. | |||
* '''ref''' reference may be an integer or another element. | |||
* '''alignment''' as string: may be 'left-left', 'left-center', 'left-right', | |||
'center-left', 'center-center', 'center-right', | |||
'right-left', 'right-center', 'right-right'. | |||
If ref is a single number, the 2nd word is ignored. | |||
<hr/> | <hr/> |
edits