Versions in this module Expand all Collapse all v0 v0.7.2 Sep 9, 2020 v0.7.1 Jul 2, 2020 v0.7.0 Jul 1, 2020 v0.6.1 Jun 28, 2020 v0.6.0 Jun 27, 2020 v0.5.0 Jun 25, 2020 v0.4.0 Jun 10, 2020 v0.3.0 Jun 8, 2020 Changes in this version + func Import(ctx context.Context, input ImportInput) (*pb.AtlasFile, error) + type AnimDirection string + const AnimForward + const AnimPingPong + const AnimReverse + type AnimEventIO struct + EventName string + EventValue string + Frame int + type Animation struct + Clips []AnimationClip + Name string + type AnimationClip struct + ClipMode string + EndedEvent *AnimEventIO + Events []AnimEventIO + FPS int + Frames []string + Name string + type AsepriteInput struct + Filename string + FrameData *File + ImageData []byte + type AtlasImporter struct + AsepriteSheet string + ExportUndefinedFrames bool + Frames []FrameIO + func (i AtlasImporter) FrameWithFilename(filename string) (frame FrameIO, exists bool) + type AtlasImporterGroup struct + Animations []Animation + Clips []AnimationClip + ImageFilter string + MaxHeight int + MaxWidth int + Output string + Padding int + Templates []AtlasImporter + type File struct + Frames []FrameInfo + Meta Metadata + func Parse(jsonb []byte) (*File, error) + func (f *File) GetFrameByIndex(index int) (i FrameInfo, ok bool) + func (f *File) GetFrameByName(name string) (i FrameInfo, ok bool) + func (f *File) GetMetadata() Metadata + func (f *File) GetSliceByName(name string) (slc Slice, index int) + func (f *File) Length() int + func (f *File) Walk(fn func(i FrameInfo) bool) + type FrameIO struct + Filename string + Pivot Vec2 + type FrameInfo struct + Duration int + Filename string + Frame FrameRect + Rotated bool + SourceSize ImSize + SpriteSourceSize FrameRect + Trimmed bool + type FrameRect struct + H int + W int + X int + Y int + func (r FrameRect) String() string + func (r FrameRect) ToRect() image.Rectangle + type FrameTag struct + Direction AnimDirection + From int + Name string + To int + type ImSize struct + H int + W int + type ImportInput struct + PackerI atlaspacker.PackerInput + Source []AsepriteInput + Template *AtlasImporterGroup + type Layer struct + BlendMode string + Name string + Opacity float64 + type Metadata struct + App string + Format string + FrameTags []FrameTag + Image string + Layers []Layer + Scale string + Size ImSize + Slices []Slice + Version string + type Slice struct + Color string + Keys []SliceKeyframe + Name string + type SliceKeyframe struct + Bounds FrameRect + Frame int + Pivot Vec2 + type Vec2 struct + X int + Y int