component

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Type    string
	Left    float64
	Top     float64
	Width   float64
	Height  float64
	PrintOn string
}

func (*Base) GetHeight

func (o *Base) GetHeight() float64

func (*Base) GetLeft

func (o *Base) GetLeft() float64

func (*Base) GetPrintOn

func (o *Base) GetPrintOn() string

func (*Base) GetTop

func (o *Base) GetTop() float64

func (*Base) GetType

func (o *Base) GetType() string

func (*Base) GetWidth

func (o *Base) GetWidth() float64

func (*Base) SetData

func (o *Base) SetData(config map[string]interface{})

type Border

type Border struct {
	Width  float64
	Color  string
	Left   bool
	Top    bool
	Right  bool
	Bottom bool
}

func (*Border) Init

func (o *Border) Init(config map[string]interface{})

type Fill

type Fill struct {
	Type  string
	Color string
}

func (*Fill) Init

func (o *Fill) Init(config map[string]interface{})

type Font

type Font struct {
	Name       string
	Color      string
	Size       float64
	Bold       bool
	Underscore bool
	Italic     bool
	Strikeout  bool
}

func (*Font) Init

func (o *Font) Init(config map[string]interface{})

type Image

type Image struct {
	Base
	Value string
	Src   string
}

type ImageBuilder

type ImageBuilder struct {
}

func (*ImageBuilder) Build

func (o *ImageBuilder) Build(template map[string]interface{}, rpt *core.Keireport) (core.Component, error)

func (*ImageBuilder) Update

func (o *ImageBuilder) Update(comp interface{}, rpt *core.Keireport) error

type Label

type Label struct {
	Base
	Font       *Font
	AlignVer   string
	AlignHor   string
	Value      string
	Expression string
	WordWrap   bool
	LineHeight float64
	Border     *Border
}

type LabelBuilder

type LabelBuilder struct {
}

func (*LabelBuilder) Build

func (o *LabelBuilder) Build(template map[string]interface{}, rpt *core.Keireport) (core.Component, error)

func (*LabelBuilder) Update

func (o *LabelBuilder) Update(comp interface{}, rpt *core.Keireport) error

type Rect

type Rect struct {
	Base
	Fill   *Fill
	Border *Border
}

type RectBuilder

type RectBuilder struct {
}

func (*RectBuilder) Build

func (o *RectBuilder) Build(template map[string]interface{}, rpt *core.Keireport) (core.Component, error)

func (*RectBuilder) Update

func (o *RectBuilder) Update(comp interface{}, rpt *core.Keireport) error

Jump to

Keyboard shortcuts

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