Documentation
¶
Index ¶
Constants ¶
View Source
const SCALE = 2.
ConvertSVG scales the image by 2x
Variables ¶
This section is empty.
Functions ¶
func ConvertSVG ¶
ConvertSVG converts the given SVG into a PNG. Note that the resulting PNG has 2x the size (width and height) of the original SVG (see generate_png.js)
Types ¶
type Playwright ¶
type Playwright struct { PW *playwright.Playwright Browser playwright.Browser Page playwright.Page }
func InitPlaywright ¶
func InitPlaywright() (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.