sampling

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NameMap = map[resize.InterpolationFunction]string{
	resize.NearestNeighbor:   "Nearest Neighbor",
	resize.Bicubic:           "Bicubic",
	resize.Bilinear:          "Bilinear",
	resize.Lanczos2:          "Lanczos2",
	resize.Lanczos3:          "Lanczos3",
	resize.MitchellNetravali: "MitchellNetravali",
}

Functions

func ItemStylesActive

func ItemStylesActive() (s list.DefaultItemStyles)

func ItemStylesInactive

func ItemStylesInactive() (s list.DefaultItemStyles)

func NewDelegate

func NewDelegate(isActive bool) list.DefaultDelegate

Types

type Model

type Model struct {
	Function resize.InterpolationFunction

	IsActive    bool
	ShouldClose bool
	// contains filtered or unexported fields
}

func New

func New(w int) Model

func (Model) FunctionName added in v1.0.0

func (m Model) FunctionName() string

func (Model) HelpText added in v1.0.0

func (m Model) HelpText() string

HelpText returns contextual help for the sampling list.

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) SetFunctionByName added in v1.0.0

func (m *Model) SetFunctionByName(name string)

func (*Model) SetListActive added in v1.0.0

func (m *Model) SetListActive(active bool)

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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