chart

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SHIP = "ship"

	HIDE_BLOCK = "hide-block"
)
View Source
const (
	ARROW = "arrow"

	HEAD = "head"
	LINE = "line"
	RECT = "rect"
	NEXT = "next"
	PREV = "prev"
	TEXT = "text"
	ECHO = "echo"
)
View Source
const CHAIN = "chain"
View Source
const (
	COMPACT = "compact"
)
View Source
const LABEL = "label"
View Source
const (
	ORDER = "order"
)
View Source
const SEQUENCE = "sequence"

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 interface{}) 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 {
	Group *wiki.Group
	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 {
	Head []string
	List [][]map[string]interface{}

	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