From 500caaeda74dd9c660279036293f4b2997cf0b03 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 9 Sep 2017 09:42:37 +0200 Subject: Add vendor --- .../llgcode/draw2d/draw2dpdf/vectorizer.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 vendor/github.com/llgcode/draw2d/draw2dpdf/vectorizer.go (limited to 'vendor/github.com/llgcode/draw2d/draw2dpdf/vectorizer.go') diff --git a/vendor/github.com/llgcode/draw2d/draw2dpdf/vectorizer.go b/vendor/github.com/llgcode/draw2d/draw2dpdf/vectorizer.go new file mode 100644 index 0000000..556c2e0 --- /dev/null +++ b/vendor/github.com/llgcode/draw2d/draw2dpdf/vectorizer.go @@ -0,0 +1,22 @@ +// Copyright 2015 The draw2d Authors. All rights reserved. +// created: 26/06/2015 by Stani Michiels + +package draw2dpdf + +// Vectorizer defines the minimal interface for gofpdf.Fpdf +// to be passed to a PathConvertor. +// It is also implemented by for example VertexMatrixTransform +type Vectorizer interface { + // MoveTo creates a new subpath that start at the specified point + MoveTo(x, y float64) + // LineTo adds a line to the current subpath + LineTo(x, y float64) + // CurveTo adds a quadratic bezier curve to the current subpath + CurveTo(cx, cy, x, y float64) + // CurveTo adds a cubic bezier curve to the current subpath + CurveBezierCubicTo(cx1, cy1, cx2, cy2, x, y float64) + // ArcTo adds an arc to the current subpath + ArcTo(x, y, rx, ry, degRotate, degStart, degEnd float64) + // ClosePath closes the subpath + ClosePath() +} -- cgit v1.2.3