Documentation
¶
Index ¶
- func AddExtractionBoxes(page *rod.Page, result *engine.ExtractionResult)
- func AnnotateScreenshot(page *rod.Page, snapshot *engine.PageSnapshot, screenshotPNG []byte) ([]byte, error)
- func HideHighlights(page *rod.Page, target string, snapshot *engine.PageSnapshot) error
- func HighlightTarget(page *rod.Page, target, style string, snapshot *engine.PageSnapshot) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddExtractionBoxes ¶
func AddExtractionBoxes(page *rod.Page, result *engine.ExtractionResult)
AddExtractionBoxes enriches interactive nodes with viewport-relative CSS pixel rectangles. Missing or detached nodes are skipped because pages may mutate while their boxes are being collected.
func AnnotateScreenshot ¶
func AnnotateScreenshot(page *rod.Page, snapshot *engine.PageSnapshot, screenshotPNG []byte) ([]byte, error)
AnnotateScreenshot overlays numbered borders on each interactive element identified by the snapshot's refs. Input must be PNG; output is always PNG.
func HideHighlights ¶
HideHighlights removes an overlay for target. When target is empty it removes every ghostchrome highlight in the current document.
func HighlightTarget ¶
HighlightTarget draws a persistent, pointer-transparent overlay around a target. The overlay belongs to the document, so it remains visible when a later CLI invocation reconnects to the same page.
Types ¶
This section is empty.