render

package
v0.0.0-...-35a2fce Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	FlowFormulaDirect_Cell int = iota
	FlowFormulaDirect_H
	FlowFormulaDirect_V
	FlowFormulaDirect_Table
)
View Source
const (
	FlowFormulaFormat_String  string = "s" // string
	FlowFormulaFormat_Float   string = "f" // float64
	FlowFormulaFormat_Int     string = "d" // int
	FlowFormulaFormat_Percent string = "p" // float64
)

Variables

Functions

func Render

func Render(workbook *excelize.File, engine RenderEngine) error

Types

type Area

type Area struct {
	Left   int
	Top    int
	Right  int
	Bottom int
}

func NewArea

func NewArea(dim string) (*Area, error)

func (Area) Contains

func (area Area) Contains(col int, row int) bool

type FlowFormula

type FlowFormula struct {
	Direct int
	Format FlowFormulaFormat
	Code   string
}

func TryParseFlowFormula

func TryParseFlowFormula(value string) *FlowFormula

type FlowFormulaFormat

type FlowFormulaFormat struct {
	Type       string
	Constraint int
}

func ParseFlowFormulaFormat

func ParseFlowFormulaFormat(value string) FlowFormulaFormat

func (FlowFormulaFormat) GenerateFormatStr

func (format FlowFormulaFormat) GenerateFormatStr() *string

type RenderEngine

type RenderEngine interface {
	InitData(data map[string]any) error
	CalcValue(formula *FlowFormula) (data [][]any, rows int, cols int, err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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