Documentation
¶
Index ¶
- Constants
- func New(ctx context.Context, filter string) (*taro.Program, error)
- func NewBrowser(ctx context.Context, stories []S.Story) *taro.Program
- func NewKeys(ctx context.Context) *taro.Program
- func NewViewer(ctx context.Context, story stories.Story, shouldLoop bool, ...) (*taro.Program, error)
- type Browser
- type CursorHandler
- type Keys
- type Viewer
- type ViewerOption
Constants ¶
View Source
const KEY_COLUMNS = 10
View Source
const MOUSE_STEP_DELAY = 15 * time.Millisecond
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CursorHandler ¶ added in v1.12.0
CursorHandler receives cursor position updates during story playback, used for recording cursor events to cast files.
type ViewerOption ¶ added in v1.12.0
type ViewerOption func(*Viewer)
func WithCursorHandler ¶ added in v1.12.0
func WithCursorHandler(h CursorHandler) ViewerOption
Click to show internal directories.
Click to hide internal directories.