How to manipulate Canvas elements: Difference between revisions

Jump to navigation Jump to search
Line 218: Line 218:
== ''Resize'' helpers ==
== ''Resize'' helpers ==
=== stretchX ===
=== stretchX ===
  '''parameters''': ((elem,factor,ref='left')  
  '''parameters''': (elem, factor, ref='left')  
Stretchs horizontally the element .
Stretchs horizontally the element .
# factor the <new-width>/<old-width> ratio.
# ref the relative point to keep in-place. May be 'left','center' or 'right'.
* '''elem''' element to be stretched.
* '''elem''' element to be stretched.
*  '''factor''' the <new-width>/<old-width> ratio.
*  '''factor''' the <new-width>/<old-width> ratio.
*  '''ref''' the relative point to keep inplace. May be 'left' (default),'center' or 'right'.
*  '''ref''' the relative point to keep inplace. May be 'left' (default),'center' or 'right'.
<hr/>
<hr/>
=== stretchY ===
=== stretchY ===
  '''parameters''': ((elem,factor,ref='top')  
  '''parameters''': ((elem,factor,ref='top')  
229

edits

Navigation menu