renderer

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrowserController

type BrowserController struct {
	// contains filtered or unexported fields
}

BrowserController manages the browser for displaying presentations

func NewBrowserController

func NewBrowserController(width, height int) (*BrowserController, error)

NewBrowserController creates a new browser controller

func (*BrowserController) Close

func (bc *BrowserController) Close() error

Close closes the browser

func (*BrowserController) GetWindowInfo

func (bc *BrowserController) GetWindowInfo() (x, y, width, height int, err error)

GetWindowInfo returns the browser window position and size for recording

func (*BrowserController) LoadPresentation

func (bc *BrowserController) LoadPresentation(htmlPath string) error

LoadPresentation opens the HTML presentation in the browser

func (*BrowserController) NavigateToSlide

func (bc *BrowserController) NavigateToSlide(slideIndex int) error

NavigateToSlide navigates to a specific slide using keyboard navigation

func (*BrowserController) WaitForDuration

func (bc *BrowserController) WaitForDuration(ctx context.Context, duration time.Duration)

WaitForDuration waits for a specific duration

type MarpRenderer

type MarpRenderer struct {
	// contains filtered or unexported fields
}

MarpRenderer handles conversion of Marp markdown to HTML

func NewMarpRenderer

func NewMarpRenderer() *MarpRenderer

NewMarpRenderer creates a new Marp renderer

func (*MarpRenderer) CheckMarpCLI

func (r *MarpRenderer) CheckMarpCLI() error

CheckMarpCLI verifies that Marp CLI is installed

func (*MarpRenderer) RenderToHTML

func (r *MarpRenderer) RenderToHTML(inputPath, outputDir string) (string, error)

RenderToHTML converts Marp markdown to HTML presentation

func (*MarpRenderer) RenderToImages

func (r *MarpRenderer) RenderToImages(inputPath, outputDir string) ([]string, error)

RenderToImages converts Marp markdown to PNG images (one per slide)

Jump to

Keyboard shortcuts

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