bullet

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProjectStraightLineInt64

func ProjectStraightLineInt64(startY, curY, startX, curX, endX int64) int64

Types

type BulletChart

type BulletChart struct {
	Title          string
	Subtitle       string
	ProjectionData ProjectionDataInt64
}

func (*BulletChart) Inflate

func (bc *BulletChart) Inflate(start, current, end time.Time)

type BulletCharts

type BulletCharts struct {
	TimeStart   time.Time
	TimeCurrent time.Time
	TimeEnd     time.Time
	Charts      map[string]BulletChart
}

func NewBulletCharts

func NewBulletCharts() BulletCharts

func (*BulletCharts) AddTimeCurrent

func (charts *BulletCharts) AddTimeCurrent(dtCur time.Time) error

func (*BulletCharts) AddTimeDt8

func (charts *BulletCharts) AddTimeDt8(dt8 int32) error

func (*BulletCharts) InflateChart

func (charts *BulletCharts) InflateChart(key string) error

type ProjectionDataInt

type ProjectionDataInt struct {
	Start      int
	Current    int
	Target     int
	Projection int
	Delta      int
}

func (*ProjectionDataInt) Inflate

func (proj *ProjectionDataInt) Inflate()

type ProjectionDataInt64

type ProjectionDataInt64 struct {
	Start      int64
	Current    int64
	Target     int64
	Projection int64
	Delta      int64
}

func (*ProjectionDataInt64) CreateProjection

func (proj *ProjectionDataInt64) CreateProjection(start, current, end int64)

func (*ProjectionDataInt64) CreateProjectionTime

func (proj *ProjectionDataInt64) CreateProjectionTime(start, current, end time.Time)

func (*ProjectionDataInt64) Inflate

func (proj *ProjectionDataInt64) Inflate()

func (*ProjectionDataInt64) ToString

func (proj *ProjectionDataInt64) ToString(strs []string, abbr bool) string

Jump to

Keyboard shortcuts

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