enginedata

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: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parser

func Parser(buf []byte) (interface{}, error)

Types

type Adjustments

type Adjustments struct {
	Axis []int
	XY   []int
}

type Base

type Base struct {
	ShapeType       int
	TransformPoint0 []int
	TransformPoint1 []int
	TransformPoint2 []int
}

type Children

type Children struct {
	Cookie     Cookie
	Lines      Lines
	Procession int
	ShapeType  int
}
type Cookie struct {
	Photoshop Photoshop
}

type DefaultRunData

type DefaultRunData struct {
	Adjustments    Adjustments
	ParagraphSheet ParagraphSheet
}

type DocumentResources

type DocumentResources struct {
	FontSet                 []FontSet
	KinsokuSet              []KinsokuSet
	MojiKumiSet             []MojiKumiSet
	ParagraphSheetSet       []ParagraphSheetSet
	SmallCapSize            float64
	StyleSheetSet           []StyleSheetSet
	SubscriptPosition       float64
	SubscriptSize           float64
	SuperscriptPosition     float64
	SuperscriptSize         float64
	TheNormalParagraphSheet int
	TheNormalStyleSheet     int
}

type Editor

type Editor struct {
	Text string
}

type EngineData

type EngineData struct {
	EngineDict        EngineDict
	ResourceDict      ResourceDict
	DocumentResources DocumentResources
}

type EngineDict

type EngineDict struct {
	AntiAlias                int
	Editor                   Editor
	GridInfo                 GridInfo
	ParagraphRun             ParagraphRun
	Rendered                 Rendered
	StyleRun                 StyleRun
	UseFractionalGlyphWidths bool
}

type FillColor

type FillColor struct {
	Type   int
	Values []int
}

type FontSet

type FontSet struct {
	FontType  int
	Name      string
	Script    int
	Synthetic int
}

type GridColor

type GridColor struct {
	Type   int
	Values []int
}

type GridInfo

type GridInfo struct {
	AlignLineHeightToGridFlags bool
	GridColor                  GridColor
	GridIsOn                   bool
	GridLeading                int
	GridLeadingFillColor       GridLeadingFillColor
	GridSize                   int
	ShowGrid                   bool
}

type GridLeadingFillColor

type GridLeadingFillColor struct {
	Type   int
	Values []int
}

type KinsokuSet

type KinsokuSet struct {
	Hanging string
	Keep    string
	Name    string
	NoEnd   interface{} // todo
	NoStart string
}

type Lines

type Lines struct {
	Children         []interface{}
	WritingDirection int
}

type MojiKumiSet

type MojiKumiSet struct {
	InternalName string
}

type ParagraphRun

type ParagraphRun struct {
	DefaultRunData DefaultRunData
	IsJoinable     int
	RunArray       []RunArray
	RunLengthArray []int
}

type ParagraphSheet

type ParagraphSheet struct {
	DefaultStyleSheet int
	Properties        Properties
}

type ParagraphSheetSet

type ParagraphSheetSet struct {
	DefaultStyleSheet int
	Name              string
	Properties        Properties
}

type Photoshop

type Photoshop struct {
	Base      Base
	PointBase []int
	ShapeType int
}

type Properties

type Properties struct {
	AutoHyphenate      bool
	AutoLeading        float64
	Burasagari         bool
	ConsecutiveHyphens int
	EndIndent          int
	EveryLineComposer  bool
	FirstLineIndent    int
	GlyphSpacing       []int
	Hanging            bool
	HyphenatedWordSize int
	Justification      int
	KinsokuOrder       int
	LeadingType        int
	LetterSpacing      []int
	PostHyphen         int
	PreHyphen          int
	SpaceAfter         int
	SpaceBefore        int
	StartIndent        int
	WordSpacing        []float64
	Zone               int
}

type Rendered

type Rendered struct {
	Shapes  Shapes
	Version int
}

type ResourceDict

type ResourceDict struct {
	FontSet                 []FontSet
	KinsokuSet              []KinsokuSet
	MojiKumiSet             MojiKumiSet
	ParagraphSheetSet       []ParagraphSheetSet
	SmallCapSize            float64
	StyleSheetSet           []StyleSheetSet
	SubscriptPosition       float64
	SubscriptSize           float64
	SuperscriptPosition     float64
	SuperscriptSize         float64
	TheNormalParagraphSheet int
	TheNormalStyleSheet     int
}

type RunArray

type RunArray struct {
	Adjustments    Adjustments
	ParagraphSheet ParagraphSheet
}

type Shapes

type Shapes struct {
	Children         []Children
	WritingDirection int
}

type StrokeColor

type StrokeColor struct {
	Type   int
	Values []int
}

type StyleRun

type StyleRun struct {
	DefaultRunData interface{} // todo
	//StyleSheet struct {
	//	StyleSheetData struct {
	//	} `json:"StyleSheetData"`
	//} `json:"StyleSheet"`
	IsJoinable     int
	RunArray       []RunArray // todo
	RunLengthArray []int
}

type StyleSheetData

type StyleSheetData struct {
	AutoKerning        bool
	AutoLeading        bool
	BaselineDirection  int
	BaselineShift      int
	CharacterDirection int
	DLigatures         bool
	DiacriticPos       int
	FauxBold           bool
	FauxItalic         bool
	FillColor          FillColor
	FillFirst          bool
	FillFlag           bool
	Font               int
	FontBaseline       int
	FontCaps           int
	FontSize           int
	HindiNumbers       bool
	HorizontalScale    int
	Kashida            int
	Kerning            int
	Language           int
	Leading            int
	Ligatures          bool
	NoBreak            bool
	OutlineWidth       int
	Strikethrough      bool
	StrokeColor        StrokeColor
	StrokeFlag         bool
	StyleRunAlignment  int
	Tracking           int
	Tsume              int
	Underline          bool
	VerticalScale      int
	YUnderline         int
}

type StyleSheetSet

type StyleSheetSet struct {
	Name           string
	StyleSheetData StyleSheetData
}

Jump to

Keyboard shortcuts

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