zoom

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const Move = Type("Zoom")

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Type       Type
	Dx         float64
	Dy         float64
	WheelDelta float64
	Zoom       float64
}

type Handler

type Handler func(Event)

type Option

type Option func() float64

func Speed

func Speed(speed float64) Option

type Type

type Type string

type Zoom

type Zoom struct {
	Speed float64
	// contains filtered or unexported fields
}

func With

func With(options ...Option) *Zoom

func (*Zoom) Handle

func (z *Zoom) Handle(e Event)

func (*Zoom) On

func (z *Zoom) On(handler Handler)

type Zoomer

type Zoomer interface {
	On(handler Handler)
}

Jump to

Keyboard shortcuts

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