bullet

package
v2.16.2 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 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)

func (*BulletCharts) AddTimeDT8 added in v2.8.9

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