additional

package
v0.0.0-...-5976db4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlendClippingElements

func NewBlendClippingElements(buf []byte) (bool, error)

func NewBlendInteriorElements

func NewBlendInteriorElements(buf []byte) (bool, error)

func NewGradientFill

func NewGradientFill(buf []byte) error

func NewKnockoutSetting

func NewKnockoutSetting(buf []byte) (bool, error)

func NewLayerID

func NewLayerID(buf []byte) (int, error)

func NewLayerName

func NewLayerName(buf []byte) (string, error)

func NewLayerNameSource

func NewLayerNameSource(buf []byte) (string, error)

func NewLayerVersion

func NewLayerVersion(buf []byte) (int, error)

func NewObjectEffectsLayerInfo

func NewObjectEffectsLayerInfo(buf []byte) error

Types

type Artboard

type Artboard struct {
	Name  string         `json:"name"`
	Color *ArtboardColor `json:"color"`
	Type  int            `json:"type"`
	Rect  *ArtboardRect  `json:"rect"`
}

func NewArtboard

func NewArtboard(buf []byte) (*Artboard, error)

type ArtboardColor

type ArtboardColor struct {
	Red   float64 `json:"red"`
	Green float64 `json:"green"`
	Blue  float64 `json:"blue"`
}

type ArtboardRect

type ArtboardRect struct {
	Top    float64 `json:"top"`
	Left   float64 `json:"left"`
	Bottom float64 `json:"bottom"`
	Right  float64 `json:"right"`
}

type EffectsLayer

func NewEffectsLayer

func NewEffectsLayer(buf []byte) (*EffectsLayer, error)

type EffectsLayerBevel

type EffectsLayerBevel struct {
	Angle              float32
	StrengthDepth      int
	Blur               int
	HighlightBlendMode string
	ShadowBlendMode    string
	HighlightColor     [2]uint32
	ShadowColor        [2]uint32
	BevelStyle         uint8
	HighlightOpacity   uint8
	ShadowOpacity      uint8
	EffectEnabled      bool
	UseAngle           bool
	UpDown             bool
	RealHighlightColor [2]uint32
	RealShadowColor    [2]uint32
}

type EffectsLayerCommonState

type EffectsLayerCommonState struct {
	Visible bool
}

type EffectsLayerDropShadowAndInnerShadow

type EffectsLayerDropShadowAndInnerShadow struct {
	Blur          int
	Intensity     int
	Angle         float32
	Distance      int
	Color         [2]uint32
	BlendMode     string
	EffectEnabled bool
	UseAngle      bool
	Opacity       uint8
	NativeColor   [2]uint32
}

type EffectsLayerInnerGlow

type EffectsLayerInnerGlow struct {
	Blur          int
	Intensity     int
	Color         [2]uint32
	BlendMode     string
	EffectEnabled bool
	Opacity       uint8
	Invert        uint8
	NativeColor   [2]uint32
}

type EffectsLayerOuterGlow

type EffectsLayerOuterGlow struct {
	Blur          int
	Intensity     int
	Color         [2]uint32
	BlendMode     string
	EffectEnabled bool
	Opacity       uint8
	NativeColor   [2]uint32
}

type EffectsLayerSolidFill

type EffectsLayerSolidFill struct {
	BlendMode   string
	Color       [4]uint16 // ARGB
	Opacity     uint8
	Enabled     bool
	NativeColor [4]uint16 // ARGB
}

type Locked

type Locked struct {
	Transparency bool
	Composite    bool
	Position     bool
	All          bool
}

func NewLocked

func NewLocked(buf []byte) (*Locked, error)

type Metadata

type Metadata struct {
	Key   string
	Copy  byte
	Value float64
}

func NewMetadataSetting

func NewMetadataSetting(buf []byte) ([]Metadata, error)

type Reference

type Reference struct {
	Points [2]float64
}

func NewReferencePoint

func NewReferencePoint(buf []byte) (*Reference, error)

Key is 'fxrp'

type SectionDivider

type SectionDivider struct {
	Type      int
	BlendMode string
	SubType   int
}

func NewSectionDividerSetting

func NewSectionDividerSetting(buf []byte) (*SectionDivider, error)

type SheetColor

type SheetColor struct {
	C1 int
	C2 int
}

func NewSheetColorSetting

func NewSheetColorSetting(buf []byte) (*SheetColor, error)

type SolidColor

type SolidColor struct {
	Red   float64
	Green float64
	Blue  float64
}

func NewSolidColorSheetSetting

func NewSolidColorSheetSetting(buf []byte) (*SolidColor, error)

type Typetool

type Typetool struct {
	Transform *TypetoolTransform
	TextData  *descriptor.Descriptor
	WarpData  *descriptor.Descriptor
	Rect      *TypetoolRect
}

func NewTypeToolObjectSetting

func NewTypeToolObjectSetting(buf []byte) (*Typetool, error)

type TypetoolRect

type TypetoolRect struct {
	Left   int
	Top    int
	Right  int
	Bottom int
}

type TypetoolTransform

type TypetoolTransform struct {
	XX float64
	XY float64
	YX float64
	YY float64
	TX float64
	TY float64
}

type VectorMask

type VectorMask struct {
	Invert  bool
	NotLink bool
	Disable bool
	Paths   []*pathresource.Resource
}

func NewVectorMaskSetting

func NewVectorMaskSetting(buf []byte) (*VectorMask, error)

Jump to

Keyboard shortcuts

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