forked from rustyoz/svg
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrect.go
More file actions
29 lines (23 loc) · 703 Bytes
/
rect.go
File metadata and controls
29 lines (23 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package svg
import mt "github.com/smallpdf/Mtransform"
// Rect is an SVG XML rect element
type Rect struct {
ID string `xml:"id,attr"`
Width string `xml:"width,attr"`
Height string `xml:"height,attr"`
Transform string `xml:"transform,attr"`
Style string `xml:"style,attr"`
Rx string `xml:"rx,attr"`
Ry string `xml:"ry,attr"`
transform mt.Transform
group *Group
}
// ParseDrawingInstructions implements the DrawingInstructionParser
// interface
func (r *Rect) ParseDrawingInstructions() (chan *DrawingInstruction, chan error) {
draw := make(chan *DrawingInstruction)
errs := make(chan error)
defer close(draw)
defer close(errs)
return draw, errs
}