mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-29 11:25:08 +01:00
42 lines
906 B
Go
42 lines
906 B
Go
package drawing
|
|
|
|
// DemuxFlattener is a flattener
|
|
type DemuxFlattener struct {
|
|
Flatteners []Flattener
|
|
}
|
|
|
|
// MoveTo implements the path builder interface.
|
|
func (dc DemuxFlattener) MoveTo(x, y float64) {
|
|
for _, flattener := range dc.Flatteners {
|
|
flattener.MoveTo(x, y)
|
|
}
|
|
}
|
|
|
|
// LineTo implements the path builder interface.
|
|
func (dc DemuxFlattener) LineTo(x, y float64) {
|
|
for _, flattener := range dc.Flatteners {
|
|
flattener.LineTo(x, y)
|
|
}
|
|
}
|
|
|
|
// LineJoin implements the path builder interface.
|
|
func (dc DemuxFlattener) LineJoin() {
|
|
for _, flattener := range dc.Flatteners {
|
|
flattener.LineJoin()
|
|
}
|
|
}
|
|
|
|
// Close implements the path builder interface.
|
|
func (dc DemuxFlattener) Close() {
|
|
for _, flattener := range dc.Flatteners {
|
|
flattener.Close()
|
|
}
|
|
}
|
|
|
|
// End implements the path builder interface.
|
|
func (dc DemuxFlattener) End() {
|
|
for _, flattener := range dc.Flatteners {
|
|
flattener.End()
|
|
}
|
|
}
|