struct Protocol::Page::GetLayoutMetrics

Overview

Returns metrics relating to the layouting of the page, such as viewport bounds/scale.

Included Modules

Defined in:

protocol/page.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def content_size : DOM::Rect #

Deprecated size of scrollable area. Is in DP. Use cssContentSize instead.


[View source]
def css_content_size : DOM::Rect #

Size of scrollable area in CSS pixels.


[View source]
def css_layout_viewport : LayoutViewport #

Metrics relating to the layout viewport in CSS pixels.


[View source]
def css_visual_viewport : VisualViewport #

Metrics relating to the visual viewport in CSS pixels.


[View source]
def layout_viewport : LayoutViewport #

Deprecated metrics relating to the layout viewport. Is in device pixels. Use cssLayoutViewport instead.


[View source]
def visual_viewport : VisualViewport #

Deprecated metrics relating to the visual viewport. Is in device pixels. Use cssVisualViewport instead.


[View source]