Class: Browser::DOM::Element::Position
- Defined in:
- opal/browser/dom/element/position.rb
Instance Attribute Summary collapse
-
#element ⇒ Object
readonly
Returns the value of attribute element.
-
#x ⇒ Integer
readonly
The position of the element on the x axis.
-
#y ⇒ Integer
readonly
The position of the element on the y axis.
Instance Attribute Details
#element ⇒ Object (readonly)
Returns the value of attribute element.
4 5 6 |
# File 'opal/browser/dom/element/position.rb', line 4 def element @element end |
#x ⇒ Integer (readonly)
Returns the position of the element on the x axis.
35 36 37 |
# File 'opal/browser/dom/element/position.rb', line 35 def x get.x end |
#y ⇒ Integer (readonly)
Returns the position of the element on the y axis.
41 42 43 |
# File 'opal/browser/dom/element/position.rb', line 41 def y get.y end |