Class: Puppeteer::Bidi::ElementHandle::BoxModel
- Inherits:
-
Data
- Object
- Data
- Puppeteer::Bidi::ElementHandle::BoxModel
- Defined in:
- lib/puppeteer/bidi/element_handle.rb,
sig/puppeteer/bidi/element_handle.rbs
Overview
Box model data class representing element's CSS box model Each quad (content, padding, border, margin) contains 4 Points representing corners Corners are ordered: top-left, top-right, bottom-right, bottom-left
Instance Attribute Summary collapse
-
#border ⇒ Object
readonly
Returns the value of attribute border.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#margin ⇒ Object
readonly
Returns the value of attribute margin.
-
#padding ⇒ Object
readonly
Returns the value of attribute padding.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#border ⇒ Object (readonly)
Returns the value of attribute border
19 20 21 |
# File 'lib/puppeteer/bidi/element_handle.rb', line 19 def border @border end |
#content ⇒ Object (readonly)
Returns the value of attribute content
19 20 21 |
# File 'lib/puppeteer/bidi/element_handle.rb', line 19 def content @content end |
#height ⇒ Object (readonly)
Returns the value of attribute height
19 20 21 |
# File 'lib/puppeteer/bidi/element_handle.rb', line 19 def height @height end |
#margin ⇒ Object (readonly)
Returns the value of attribute margin
19 20 21 |
# File 'lib/puppeteer/bidi/element_handle.rb', line 19 def margin @margin end |
#padding ⇒ Object (readonly)
Returns the value of attribute padding
19 20 21 |
# File 'lib/puppeteer/bidi/element_handle.rb', line 19 def padding @padding end |
#width ⇒ Object (readonly)
Returns the value of attribute width
19 20 21 |
# File 'lib/puppeteer/bidi/element_handle.rb', line 19 def width @width end |
Class Method Details
.members ⇒ [ :content, :padding, :border, :margin, :width, :height ]
60 |
# File 'sig/puppeteer/bidi/element_handle.rbs', line 60
def self.members: () -> [ :content, :padding, :border, :margin, :width, :height ]
|
.new(content, padding, border, margin, width, height) ⇒ instance .new(content:, padding:, border:, margin:, width:, height:) ⇒ instance
57 58 |
# File 'sig/puppeteer/bidi/element_handle.rbs', line 57
def self.new: (untyped content, untyped padding, untyped border, untyped margin, untyped width, untyped height) -> instance
| (content: untyped, padding: untyped, border: untyped, margin: untyped, width: untyped, height: untyped) -> instance
|
Instance Method Details
#members ⇒ [ :content, :padding, :border, :margin, :width, :height ]
62 |
# File 'sig/puppeteer/bidi/element_handle.rbs', line 62
def members: () -> [ :content, :padding, :border, :margin, :width, :height ]
|