bullet

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProjectStraightLineInt64 added in v1.12.0

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 added in v1.12.0

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

func (*ProjectionDataInt) Inflate added in v1.12.0

func (proj *ProjectionDataInt) Inflate()

type ProjectionDataInt64 added in v1.12.0

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

func (*ProjectionDataInt64) CreateProjection added in v1.12.0

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

func (*ProjectionDataInt64) CreateProjectionTime added in v1.12.0

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

func (*ProjectionDataInt64) Inflate added in v1.12.0

func (proj *ProjectionDataInt64) Inflate()

func (*ProjectionDataInt64) ToString added in v1.12.0

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