postsgen

package
v0.0.0-...-16d05a1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewText

func NewText(content string, fgColor color.RGBA64, fontSize float64, fontName string) logogen.Text

NewText returns a new logogen.Text instance w/o an error, ie when a font error is encountered the Default font is used

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func GetThreeMembersPostSamplePostBuilder

func GetThreeMembersPostSamplePostBuilder() *Builder

func NewTeamsPostsGeneratorBuilder

func NewTeamsPostsGeneratorBuilder() *Builder

func (*Builder) B64Image

func (b *Builder) B64Image(img string) *Builder

func (*Builder) GetTeamsPostsGenerator

func (b *Builder) GetTeamsPostsGenerator() (*TeamPostsGenerator, error)

func (*Builder) MembersNamesProps

func (b *Builder) MembersNamesProps(props []TextFieldProps) *Builder

func (*Builder) TeamNameProps

func (b *Builder) TeamNameProps(props TextFieldProps) *Builder

func (*Builder) TeamOrderProps

func (b *Builder) TeamOrderProps(props TextFieldProps) *Builder

func (*Builder) Teams

func (b *Builder) Teams(t []models.Team) *Builder

type FieldsProps

type FieldsProps struct {
	TeamNameProps     TextFieldProps
	TeamOrderProps    TextFieldProps
	MembersNamesProps []TextFieldProps
}

type Point2

type Point2 struct {
	X float64 `json:"x"`
	Y float64 `json:"y"`
}

type PostsZipper

type PostsZipper struct {
	B64Posts []string
	// contains filtered or unexported fields
}

func NewPostsZipper

func NewPostsZipper(b64PostsImages []string) (z *PostsZipper, err error)

func (*PostsZipper) MakeZipFile

func (z *PostsZipper) MakeZipFile() (*os.File, error)

type TeamPostsGenerator

type TeamPostsGenerator struct {
	// contains filtered or unexported fields
}

func NewTeamsPostsGenerator

func NewTeamsPostsGenerator(b *Builder) *TeamPostsGenerator

func (*TeamPostsGenerator) GenerateToB64Images

func (p *TeamPostsGenerator) GenerateToB64Images() ([]string, error)

func (*TeamPostsGenerator) GenerateToZipFile

func (p *TeamPostsGenerator) GenerateToZipFile() (*os.File, error)

func (*TeamPostsGenerator) GenerateToZipFileBytes

func (p *TeamPostsGenerator) GenerateToZipFileBytes() (zipBytes []byte, err error)

type TextFieldProps

type TextFieldProps struct {
	Position Point2  `json:"startPosition"`
	XWidth   float64 `json:"width"`
	FontSize float64 `json:"fontSize"`
}

Jump to

Keyboard shortcuts

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