cdp

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FrameId

type FrameId string

type RGBA

type RGBA struct {

	// The red component, in the [0-255] range.
	R int `json:"r"`

	// The green component, in the [0-255] range.
	G int `json:"g"`

	// The blue component, in the [0-255] range.
	B int `json:"b"`

	// The alpha component, in the [0-1] range (default: 1).
	A float64 `json:"a"`
}

A structure holding an RGBA color.

type Rect

type Rect struct {

	// X coordinate
	X float64 `json:"x"`

	// Y coordinate
	Y float64 `json:"y"`

	// Rectangle width
	Width float64 `json:"width"`

	// Rectangle height
	Height float64 `json:"height"`
}

Rectangle.

type TimeSinceEpoch

type TimeSinceEpoch float64

type Viewport

type Viewport struct {

	// X offset in device independent pixels (dip).
	X float64 `json:"x"`

	// Y offset in device independent pixels (dip).
	Y float64 `json:"y"`

	// Rectangle width in device independent pixels (dip).
	Width float64 `json:"width"`

	// Rectangle height in device independent pixels (dip).
	Height float64 `json:"height"`

	// Page scale factor.
	Scale float64 `json:"scale"`
}

Viewport for capturing screenshot.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL