helpers

package
v0.0.0-...-097d1aa Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package helpers provides helper types for lottie files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transform

type Transform struct {
	// Transform Anchor Point
	AnchorPoint json.RawMessage `json:"a,omitempty"`

	// Transform Opacity
	Opacity json.RawMessage `json:"o,omitempty"`

	// Transform Position
	Position json.RawMessage `json:"p,omitempty"`

	// Transform Position X
	Px json.RawMessage `json:"px,omitempty"`

	// Transform Position Y
	Py json.RawMessage `json:"py,omitempty"`

	// Transform Position Z
	Pz json.RawMessage `json:"pz,omitempty"`

	// Transform Rotation
	Rotation json.RawMessage `json:"r,omitempty"`

	// Transform Scale
	Scale json.RawMessage `json:"s,omitempty"`

	// Transform Skew Axis
	SkewAxis json.RawMessage `json:"sa,omitempty"`

	// Transform Skew
	Skew json.RawMessage `json:"sk,omitempty"`
}

func (*Transform) InitialOpacity

func (t *Transform) InitialOpacity() float64

InitialOpacity returns the initial opacity (0-100) of the transform.

func (*Transform) InitialPosition

func (t *Transform) InitialPosition() []float64

InitialPosition returns the initial rotation of the transform.

func (*Transform) InitialRotation

func (t *Transform) InitialRotation() float64

InitialRotation returns the initial rotation of the transform.

func (*Transform) InitialScale

func (t *Transform) InitialScale() []float64

InitialScale returns the initial scale of the transform.

func (*Transform) OpacityKeys

func (t *Transform) OpacityKeys() *properties.ValueKeyframed

OpacityKeys returns the opacity keys of the transform.

Jump to

Keyboard shortcuts

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