Component.UIBase.Position

Position extension class. Make component positionable

defined in: position.js

Attributes

  • x {Number} Horizontal axis
  • xy {Number[]} Horizontal and vertical axis.
  • y {Number} Vertical axis
  • zIndex {Number} z-index value.

Methods

  • move (x, y) Move to absolute position.

Class Detail

  • Component.UIBase.Position ()
    Position extension class. Make component positionable

Attributes Detail

  • x {Number} Horizontal axis
  • xy {Number[]} Horizontal and vertical axis.
  • y {Number} Vertical axis
  • zIndex {Number} z-index value.

Methods Detail

  • move (x, y) view source
    Move to absolute position.
    Parameters
    •   x {Number|Number[]}
    • [ y ] {Number}
    Example
    • 
      move(x, y);
      move(x);
      move([x,y])
      
blog comments powered by Disqus
Top