seed: github.com/qlova/seed/internal Index | Files

package internal

import "github.com/qlova/seed/internal"

Index

Package Files

animation.go context.go

type Animation Uses

type Animation map[float64]func(Frame)

Animation is a mapping of float64 to frames as a ratio between 0 and 1 (start and end).

func (Animation) Bytes Uses

func (animation Animation) Bytes() []byte

Bytes returns the CSS keyframes of the animation.

type Context Uses

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

Context is a global app context.

func NewContext Uses

func NewContext() Context

NewContext returns a new app context.

func (Context) AddPage Uses

func (context Context) AddPage(id string, page interface{})

AddPage adds a page to the context.

func (Context) Animation Uses

func (context Context) Animation(animation *Animation) string

Animation adds an animation to the global Context if it doesn't already exist.

func (Context) ClearPages Uses

func (context Context) ClearPages()

ClearPages clears the current pages.

type Frame Uses

type Frame struct {
    style.Style
}

Frame is an animation frame.

type Page Uses

type Page interface{}

Package internal imports 4 packages (graph) and is imported by 4 packages. Updated 2020-01-21. Refresh now. Tools for package owners.