struct Protocol::Page::Viewport

Overview

Viewport for capturing screenshot.

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 height : Number::Primitive #

Rectangle height in device independent pixels (dip).


[View source]
def scale : Number::Primitive #

Page scale factor.


[View source]
def width : Number::Primitive #

Rectangle width in device independent pixels (dip).


[View source]
def x : Number::Primitive #

X offset in device independent pixels (dip).


[View source]
def y : Number::Primitive #

Y offset in device independent pixels (dip).


[View source]