chart

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SHOW_BLOCK = "show-block"
	COMPACT    = "compact"
)
View Source
const (
	HEAD  = "head"
	TITLE = "title"
	LINE  = "line"
	RECT  = "rect"
	NEXT  = "next"
	PREV  = "prev"
	TEXT  = "text"
	ECHO  = "echo"
	ARROW = "arrow"
)
View Source
const CHAIN = "chain"
View Source
const LABEL = "label"
View Source
const (
	ORDER = "order"
)
View Source
const SEQUENCE = "sequence"
View Source
const (
	SHIP = "ship"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Text       string
	FontSize   int
	FontColor  string
	BackGround string

	TextData string
	RectData string

	Padding int
	MarginX int
	MarginY int

	Height int
	Width  int
	// contains filtered or unexported fields
}

func (*Block) Data

func (b *Block) Data(m *ice.Message, meta ice.Any) wiki.Chart

func (*Block) Draw

func (b *Block) Draw(m *ice.Message, x, y int) wiki.Chart

func (*Block) GetHeight

func (b *Block) GetHeight(str ...string) int

func (*Block) GetHeights

func (b *Block) GetHeights(str ...string) int

func (*Block) GetWidth

func (b *Block) GetWidth(str ...string) int

func (*Block) GetWidths

func (b *Block) GetWidths(str ...string) int

func (*Block) Init

func (b *Block) Init(m *ice.Message, arg ...string) wiki.Chart

type Chain

type Chain struct {
	Block
	// contains filtered or unexported fields
}

func (*Chain) Draw

func (c *Chain) Draw(m *ice.Message, x, y int) wiki.Chart

func (*Chain) Init

func (c *Chain) Init(m *ice.Message, arg ...string) wiki.Chart

type Label

type Label struct {
	Block
	// contains filtered or unexported fields
}

func (*Label) Draw

func (l *Label) Draw(m *ice.Message, x, y int) wiki.Chart

func (*Label) Init

func (l *Label) Init(m *ice.Message, arg ...string) wiki.Chart

type Sequence

type Sequence struct {
	Block
	// contains filtered or unexported fields
}

func (*Sequence) Draw

func (s *Sequence) Draw(m *ice.Message, x, y int) wiki.Chart

func (*Sequence) Init

func (s *Sequence) Init(m *ice.Message, arg ...string) wiki.Chart

Jump to

Keyboard shortcuts

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