mapview

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Direction

type Direction int
const (
	Left Direction
	Right
)

type LRIndex

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

func NewLRIndex

func NewLRIndex(index int, length int) LRIndex

func (LRIndex) Direction

func (index LRIndex) Direction(i int) Direction

func (LRIndex) LeftNodes

func (index LRIndex) LeftNodes(nodes []*mapmodel.Node) []*mapmodel.Node

func (LRIndex) RightNodes

func (index LRIndex) RightNodes(nodes []*mapmodel.Node) []*mapmodel.Node

type View

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

func New

func (*View) Configure

func (v *View) Configure(size image.Point)

func (*View) Destroy

func (v *View) Destroy()

func (*View) Drag

func (v *View) Drag(node *mapmodel.Node, from, to image.Point)

func (*View) DragRelease

func (v *View) DragRelease()

func (*View) Draw

func (v *View) Draw(app eventlink.App)

func (*View) Drop

func (v *View) Drop(from, to image.Point)

func (*View) Select

func (v *View) Select(point image.Point) (*mapmodel.Node, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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