core

package
v0.0.0-...-7dc6c5b Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDrawex

func SetDrawex(inputDrawex Drawex) bool

SetDrawex sets latex drawer by given drawex.

Types

type Drawex

type Drawex interface {
	DrawRectangle(rect *component.Rectangle) string
	DrawCircle(rect *component.Circle) string
	Document(latexs []*string) *string
	DrawLine(line *component.Line) string
	DrawText(text *component.Text) string
	DrawDiamond(diamond *component.Diamond) string
	DrawPolygon(polygon *component.Polygon) string
	DrawConnector(connector *component.Connector) string
	DrawTriangle(triangle *component.Triangle) string
	DrawStar(star *component.Star) string
}

Drawex is the latex drawer, which provides drawing features and generating latex.

func DefaultDrawex

func DefaultDrawex() Drawex

DefaultDrawex returns default latex drawer.

func NewDrawex

func NewDrawex() Drawex

NewDrawex creates new latex drawer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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