mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 17:27:08 +08:00
This commit is contained in:
1 parent
19dc79e8e3
commit
a710bc5f41
68 files changed
+2149
-724
No files matched your search
+36
-28
@@ -83,35 +83,41 @@ type ClipArea struct {
|
||||
}
|
||||
|
||||
// TextObject 文本对象
|
||||
// MiterLimitSet为true时,零截断值覆盖继承值,否则零值表示未指定
|
||||
type TextObject struct {
|
||||
ID string `xml:"ID,attr"`
|
||||
Boundary string `xml:"Boundary,attr"`
|
||||
DrawParam string `xml:"DrawParam,attr"`
|
||||
LineWidth float64 `xml:"LineWidth,attr"`
|
||||
Join string `xml:"Join,attr"`
|
||||
MiterLimit float64 `xml:"MiterLimit,attr"`
|
||||
Font string `xml:"Font,attr"`
|
||||
Size float64 `xml:"Size,attr"`
|
||||
Weight int `xml:"Weight,attr"`
|
||||
Italic bool `xml:"Italic,attr"`
|
||||
Decoration string `xml:"Decoration,attr"`
|
||||
HScale float64 `xml:"HScale,attr"`
|
||||
VScale float64 `xml:"VScale,attr"`
|
||||
ReadDirection int `xml:"ReadDirection,attr"`
|
||||
CharDirection int `xml:"CharDirection,attr"`
|
||||
CTM string `xml:"CTM,attr"`
|
||||
Alpha *int `xml:"Alpha,attr"`
|
||||
Visible *bool `xml:"Visible,attr"`
|
||||
Fill *bool `xml:"Fill,attr"`
|
||||
Stroke *bool `xml:"Stroke,attr"`
|
||||
StrokeColor *StrokeColor `xml:"StrokeColor"`
|
||||
FillColor *FillColor `xml:"FillColor"`
|
||||
CGTransform []CGTransform `xml:"CGTransform"`
|
||||
TextCode []TextCode `xml:"TextCode"`
|
||||
Clips *Clips `xml:"Clips"`
|
||||
Actions []Action `xml:"Actions>Action"`
|
||||
LineWidthSet bool `xml:"-"`
|
||||
layout *textLayout
|
||||
ID string `xml:"ID,attr"`
|
||||
Boundary string `xml:"Boundary,attr"`
|
||||
DrawParam string `xml:"DrawParam,attr"`
|
||||
LineWidth float64 `xml:"LineWidth,attr"`
|
||||
Cap string `xml:"Cap,attr"`
|
||||
DashPattern string `xml:"DashPattern,attr"`
|
||||
DashOffset *float64 `xml:"DashOffset,attr"`
|
||||
Join string `xml:"Join,attr"`
|
||||
MiterLimit float64 `xml:"MiterLimit,attr"`
|
||||
Font string `xml:"Font,attr"`
|
||||
Size float64 `xml:"Size,attr"`
|
||||
Weight int `xml:"Weight,attr"`
|
||||
Italic bool `xml:"Italic,attr"`
|
||||
Decoration string `xml:"Decoration,attr"`
|
||||
HScale float64 `xml:"HScale,attr"`
|
||||
VScale float64 `xml:"VScale,attr"`
|
||||
ReadDirection int `xml:"ReadDirection,attr"`
|
||||
CharDirection int `xml:"CharDirection,attr"`
|
||||
CTM string `xml:"CTM,attr"`
|
||||
Alpha *int `xml:"Alpha,attr"`
|
||||
Visible *bool `xml:"Visible,attr"`
|
||||
Fill *bool `xml:"Fill,attr"`
|
||||
Stroke *bool `xml:"Stroke,attr"`
|
||||
StrokeColor *StrokeColor `xml:"StrokeColor"`
|
||||
FillColor *FillColor `xml:"FillColor"`
|
||||
CGTransform []CGTransform `xml:"CGTransform"`
|
||||
TextCode []TextCode `xml:"TextCode"`
|
||||
Clips *Clips `xml:"Clips"`
|
||||
Actions []Action `xml:"Actions>Action"`
|
||||
LineWidthSet bool `xml:"-"`
|
||||
MiterLimitSet bool `xml:"-"`
|
||||
dashPatternSet bool
|
||||
layout *textLayout
|
||||
}
|
||||
|
||||
// FillColor 填充颜色
|
||||
@@ -171,6 +177,7 @@ type CGTransform struct {
|
||||
}
|
||||
|
||||
// PathObject 路径对象
|
||||
// MiterLimitSet为true时,零截断值覆盖继承值,否则零值表示未指定
|
||||
type PathObject struct {
|
||||
ID string `xml:"ID,attr"`
|
||||
Boundary string `xml:"Boundary,attr"`
|
||||
@@ -193,6 +200,7 @@ type PathObject struct {
|
||||
Clips *Clips `xml:"Clips"`
|
||||
Actions []Action `xml:"Actions>Action"`
|
||||
LineWidthSet bool `xml:"-"`
|
||||
MiterLimitSet bool `xml:"-"`
|
||||
dashPatternSet bool
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user