Documentation ¶
Index ¶
- func Attr(k, v string) string
- func Float(v float64) string
- func SetIgnoreImage(v bool) func(*SvgWriteOption)
- type Canvas
- type OffColor
- type PathBuilder
- type SVG
- func (svg *SVG) ApplyClip()
- func (svg *SVG) BeginLayer(layer *illustrator.AILayer)
- func (svg *SVG) ClipPath()
- func (svg *SVG) ClosePath()
- func (svg *SVG) CompoundPath()
- func (svg *SVG) Curveto(x0, y0, x1, y1, x2, y2 float64)
- func (svg *SVG) Curveto1(x0, y0, x1, y1 float64)
- func (svg *SVG) Curveto2(x1, y1, x2, y2 float64)
- func (svg *SVG) DefGradient(g *illustrator.Gradient)
- func (svg *SVG) EndCompoundPath()
- func (svg *SVG) EndGroup()
- func (svg *SVG) EndLayer()
- func (svg *SVG) Group()
- func (svg *SVG) Lineto(x, y float64)
- func (svg *SVG) Moveto(x, y float64)
- func (svg *SVG) Nodes(depth int) []SvgNode
- func (svg *SVG) PathRender(t illustrator.PathOp)
- func (svg *SVG) Save(path string, options ...func(*SvgWriteOption)) error
- func (svg *SVG) SetCMYK(t illustrator.PathOp, cmyk [4]float64)
- func (svg *SVG) SetDash()
- func (svg *SVG) SetFlat()
- func (svg *SVG) SetGradient(g *illustrator.Gradient)
- func (svg *SVG) SetGroupAttr()
- func (svg *SVG) SetHeader(header *illustrator.AIHeader)
- func (svg *SVG) SetLayerName(name string)
- func (svg *SVG) SetLineCap(v string)
- func (svg *SVG) SetLineJoin(v string)
- func (svg *SVG) SetLineWidth(v string)
- func (svg *SVG) SetMiterLimit(v string)
- func (svg *SVG) SetOpacity(opacity string)
- func (svg *SVG) SetRGB(t illustrator.PathOp, rgb [3]uint8)
- func (svg *SVG) SetRaster(raster *illustrator.Raster)
- type StyleBuild
- type SvgCompoundPath
- type SvgGradient
- type SvgGroup
- type SvgImage
- type SvgNode
- type SvgPath
- type SvgWriteOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetIgnoreImage ¶
func SetIgnoreImage(v bool) func(*SvgWriteOption)
Types ¶
type PathBuilder ¶
func (*PathBuilder) IsClip ¶
func (b *PathBuilder) IsClip() bool
func (*PathBuilder) IsCompound ¶
func (b *PathBuilder) IsCompound() bool
func (*PathBuilder) Reset ¶
func (b *PathBuilder) Reset()
func (*PathBuilder) SetAsClip ¶
func (b *PathBuilder) SetAsClip()
func (*PathBuilder) SetAsCompound ¶
func (b *PathBuilder) SetAsCompound()
func (*PathBuilder) UnsetClip ¶
func (b *PathBuilder) UnsetClip()
func (*PathBuilder) UnsetCompound ¶
func (b *PathBuilder) UnsetCompound()
type SVG ¶
type SVG struct {
// contains filtered or unexported fields
}
func (*SVG) BeginLayer ¶
func (svg *SVG) BeginLayer(layer *illustrator.AILayer)
func (*SVG) CompoundPath ¶
func (svg *SVG) CompoundPath()
func (*SVG) DefGradient ¶
func (svg *SVG) DefGradient(g *illustrator.Gradient)
func (*SVG) EndCompoundPath ¶
func (svg *SVG) EndCompoundPath()
func (*SVG) PathRender ¶
func (svg *SVG) PathRender(t illustrator.PathOp)
func (*SVG) SetGradient ¶
func (svg *SVG) SetGradient(g *illustrator.Gradient)
func (*SVG) SetGroupAttr ¶
func (svg *SVG) SetGroupAttr()
func (*SVG) SetHeader ¶
func (svg *SVG) SetHeader(header *illustrator.AIHeader)
func (*SVG) SetLayerName ¶
func (*SVG) SetLineCap ¶
func (*SVG) SetLineJoin ¶
func (*SVG) SetLineWidth ¶
func (*SVG) SetMiterLimit ¶
func (*SVG) SetOpacity ¶
func (*SVG) SetRaster ¶
func (svg *SVG) SetRaster(raster *illustrator.Raster)
type StyleBuild ¶
type SvgCompoundPath ¶
type SvgCompoundPath struct {
*SvgPath
}
type SvgGradient ¶
type SvgGradient struct { Defs []illustrator.Gradient Instances []illustrator.Gradient }
type SvgWriteOption ¶
type SvgWriteOption struct {
IgnoreImage bool // 忽略位图数据, 保存为svg的时候, image数据不会写入
}
Click to show internal directories.
Click to hide internal directories.