Documentation
¶
Index ¶
- Constants
- func AddExif(png []byte) ([]byte, error)
- func ConvertSVG(browser playwright.Browser, svg []byte) ([]byte, error)
- func MountSVG(page playwright.Page, svgMarkup string) error
- func ScreenshotSVG(page playwright.Page) ([]byte, error)
- func SetAnimationTime(page playwright.Page, t float64) error
- type Playwright
Constants ¶
View Source
const SCALE = 2.
ConvertSVG scales the image by 2x
Variables ¶
This section is empty.
Functions ¶
func ConvertSVG ¶
func ConvertSVG(browser playwright.Browser, svg []byte) ([]byte, error)
func ScreenshotSVG ¶
func ScreenshotSVG(page playwright.Page) ([]byte, error)
func SetAnimationTime ¶
func SetAnimationTime(page playwright.Page, t float64) error
Types ¶
type Playwright ¶
type Playwright struct {
PW *playwright.Playwright
Browser playwright.Browser
Page playwright.Page
}
func InitPlaywright ¶
func InitPlaywright() (Playwright, error)
func InitPlaywrightWithPrompt ¶
func InitPlaywrightWithPrompt() (Playwright, error)
func (*Playwright) Cleanup ¶
func (pw *Playwright) Cleanup() error
func (*Playwright) RestartBrowser ¶
func (pw *Playwright) RestartBrowser() (Playwright, error)
Click to show internal directories.
Click to hide internal directories.