Documentation ¶
Overview ¶
Spec SVG1.1 https://www.w3.org/TR/SVG/paths.html
Index ¶
- type ArcAbs
- type ArcArguments
- type ArcRel
- type ClosePath
- type CurveToCubicAbs
- type CurveToCubicRel
- type CurveToCubicSmoothAbs
- type CurveToCubicSmoothRel
- type CurveToQuadraticAbs
- type CurveToQuadraticRel
- type CurveToQuadraticSmoothAbs
- type CurveToQuadraticSmoothRel
- type Elem
- type LineToAbs
- type LineToHorizontalAbs
- type LineToHorizontalRel
- type LineToRel
- type LineToVerticalAbs
- type LineToVerticalRel
- type MoveToAbs
- type MoveToRel
- type Parser
- type Renderer
- type Support
- type UnknownCommand
- type UnknownError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArcArguments ¶
type ClosePath ¶
type ClosePath struct{}
https://www.w3.org/TR/SVG/paths.html#Interfaceseg.TypeClosePath
type CurveToCubicAbs ¶
https://www.w3.org/TR/SVG/paths.html#Interfaceseg.TypeCurvetoCubicAbs
func (CurveToCubicAbs) String ¶
func (s CurveToCubicAbs) String() string
func (CurveToCubicAbs) Type ¶
func (s CurveToCubicAbs) Type() seg.Type
type CurveToCubicRel ¶
https://www.w3.org/TR/SVG/paths.html#Interfaceseg.TypeCurvetoCubicRel
func (CurveToCubicRel) String ¶
func (s CurveToCubicRel) String() string
func (CurveToCubicRel) Type ¶
func (s CurveToCubicRel) Type() seg.Type
type CurveToCubicSmoothAbs ¶
https://www.w3.org/TR/SVG/paths.html#Interfaceseg.TypeCurvetoCubicSmoothAbs
func (CurveToCubicSmoothAbs) String ¶
func (s CurveToCubicSmoothAbs) String() string
func (CurveToCubicSmoothAbs) Type ¶
func (s CurveToCubicSmoothAbs) Type() seg.Type
type CurveToCubicSmoothRel ¶
https://www.w3.org/TR/SVG/paths.html#Interfaceseg.TypeCurvetoCubicSmoothRel
func (CurveToCubicSmoothRel) String ¶
func (s CurveToCubicSmoothRel) String() string
func (CurveToCubicSmoothRel) Type ¶
func (s CurveToCubicSmoothRel) Type() seg.Type
type CurveToQuadraticAbs ¶
https://www.w3.org/TR/SVG/paths.html#Interfaceseg.TypeCurvetoQuadraticAbs
func (CurveToQuadraticAbs) String ¶
func (s CurveToQuadraticAbs) String() string
func (CurveToQuadraticAbs) Type ¶
func (s CurveToQuadraticAbs) Type() seg.Type
type CurveToQuadraticRel ¶
https://www.w3.org/TR/SVG/paths.html#Interfaceseg.TypeCurvetoQuadraticRel
func (CurveToQuadraticRel) String ¶
func (s CurveToQuadraticRel) String() string
func (CurveToQuadraticRel) Type ¶
func (s CurveToQuadraticRel) Type() seg.Type
type CurveToQuadraticSmoothAbs ¶
https://www.w3.org/TR/SVG/paths.html#Interfaceseg.TypeCurvetoQuadraticSmoothAbs
func (CurveToQuadraticSmoothAbs) String ¶
func (s CurveToQuadraticSmoothAbs) String() string
func (CurveToQuadraticSmoothAbs) Type ¶
func (s CurveToQuadraticSmoothAbs) Type() seg.Type
type CurveToQuadraticSmoothRel ¶
https://www.w3.org/TR/SVG/paths.html#Interfaceseg.TypeCurvetoQuadraticSmoothRel
func (CurveToQuadraticSmoothRel) String ¶
func (s CurveToQuadraticSmoothRel) String() string
func (CurveToQuadraticSmoothRel) Type ¶
func (s CurveToQuadraticSmoothRel) Type() seg.Type
type LineToHorizontalAbs ¶
type LineToHorizontalAbs struct {
X float32
}
https://www.w3.org/TR/SVG/paths.html#Interfaceseg.TypeLinetoHorizontalAbs
func (LineToHorizontalAbs) String ¶
func (s LineToHorizontalAbs) String() string
func (LineToHorizontalAbs) Type ¶
func (s LineToHorizontalAbs) Type() seg.Type
type LineToHorizontalRel ¶
type LineToHorizontalRel struct {
X float32
}
https://www.w3.org/TR/SVG/paths.html#Interfaceseg.TypeLinetoHorizontalRel
func (LineToHorizontalRel) String ¶
func (s LineToHorizontalRel) String() string
func (LineToHorizontalRel) Type ¶
func (s LineToHorizontalRel) Type() seg.Type
type LineToVerticalAbs ¶
type LineToVerticalAbs struct {
Y float32
}
https://www.w3.org/TR/SVG/paths.html#Interfaceseg.TypeLinetoVerticalAbs
func (LineToVerticalAbs) String ¶
func (s LineToVerticalAbs) String() string
func (LineToVerticalAbs) Type ¶
func (s LineToVerticalAbs) Type() seg.Type
type LineToVerticalRel ¶
type LineToVerticalRel struct {
Y float32
}
https://www.w3.org/TR/SVG/paths.html#Interfaceseg.TypeLinetoVerticalRel
func (LineToVerticalRel) String ¶
func (s LineToVerticalRel) String() string
func (LineToVerticalRel) Type ¶
func (s LineToVerticalRel) Type() seg.Type
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
func (*Renderer) CheckError ¶
func (s *Renderer) CheckError(onError func(unknown UnknownError)) (res bool)
func (*Renderer) CheckUnknown ¶
func (s *Renderer) CheckUnknown(onUnknown func(unknown UnknownCommand)) (res bool)
type UnknownCommand ¶
type UnknownCommand struct {
Command string
}
refer by https://www.w3.org/TR/SVG/paths.html#DOMInterfaces
func (UnknownCommand) Error ¶
func (s UnknownCommand) Error() string
func (UnknownCommand) String ¶
func (s UnknownCommand) String() string
func (UnknownCommand) Type ¶
func (s UnknownCommand) Type() seg.Type
type UnknownError ¶
Kind Of Error
func (UnknownError) Error ¶
func (s UnknownError) Error() string
func (UnknownError) String ¶
func (s UnknownError) String() string
func (UnknownError) Type ¶
func (s UnknownError) Type() seg.Type