fix paths from git.gutmet.org to fireandbrimst.one/aw

This commit is contained in:
gutmet 2023-09-21 21:33:55 +02:00
parent 81e9cbaa9d
commit 3e6f54fa68
69 changed files with 120 additions and 119 deletions

View File

@ -3,7 +3,7 @@ package main
import (
"net/http"
"git.gutmet.org/go-chart.git"
"git.fireandbrimst.one/aw/go-chart"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,7 +3,7 @@ package main
import (
"net/http"
"git.gutmet.org/go-chart.git"
"git.fireandbrimst.one/aw/go-chart"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,7 +3,7 @@ package main
import (
"net/http"
"git.gutmet.org/go-chart.git"
"git.fireandbrimst.one/aw/go-chart"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -6,7 +6,7 @@ import (
"net/http"
"os"
"git.gutmet.org/go-chart.git"
"git.fireandbrimst.one/aw/go-chart"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -6,8 +6,8 @@ import (
"net/http"
"os"
"git.gutmet.org/go-chart.git"
"git.gutmet.org/go-chart.git/drawing"
"git.fireandbrimst.one/aw/go-chart"
"git.fireandbrimst.one/aw/go-chart/drawing"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -4,7 +4,7 @@ import (
"log"
"net/http"
"git.gutmet.org/go-chart.git"
"git.fireandbrimst.one/aw/go-chart"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -8,7 +8,7 @@ import (
"strconv"
"time"
"git.gutmet.org/go-chart.git"
"git.fireandbrimst.one/aw/go-chart"
)
func random(min, max float64) float64 {

View File

@ -2,9 +2,10 @@ package main
import (
"fmt"
"git.gutmet.org/go-chart.git"
"log"
"net/http"
"git.fireandbrimst.one/aw/go-chart"
)
// Note: Additional examples on how to add Stylesheets are in the custom_stylesheets example

View File

@ -4,7 +4,7 @@ import (
"fmt"
"net/http"
"git.gutmet.org/go-chart.git"
"git.fireandbrimst.one/aw/go-chart"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,9 +3,9 @@ package main
import (
"net/http"
"git.gutmet.org/go-chart.git"
"git.gutmet.org/go-chart.git/drawing"
"git.gutmet.org/go-chart.git/seq"
"git.fireandbrimst.one/aw/go-chart"
"git.fireandbrimst.one/aw/go-chart/drawing"
"git.fireandbrimst.one/aw/go-chart/seq"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,7 +3,7 @@ package main
import (
"net/http"
"git.gutmet.org/go-chart.git"
"git.fireandbrimst.one/aw/go-chart"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,8 +3,8 @@ package main
import (
"net/http"
"git.gutmet.org/go-chart.git"
"git.gutmet.org/go-chart.git/drawing"
"git.fireandbrimst.one/aw/go-chart"
"git.fireandbrimst.one/aw/go-chart/drawing"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,7 +3,7 @@ package main
import (
"net/http"
"git.gutmet.org/go-chart.git"
"git.fireandbrimst.one/aw/go-chart"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,7 +3,7 @@ package main
import (
"net/http"
"git.gutmet.org/go-chart.git"
"git.fireandbrimst.one/aw/go-chart"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"log"
"git.gutmet.org/go-chart.git"
"git.fireandbrimst.one/aw/go-chart"
)
func main() {

View File

@ -3,7 +3,7 @@ package main
import (
"net/http"
"git.gutmet.org/go-chart.git"
"git.fireandbrimst.one/aw/go-chart"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,7 +3,7 @@ package main
import (
"net/http"
"git.gutmet.org/go-chart.git"
"git.fireandbrimst.one/aw/go-chart"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,8 +3,8 @@ package main
import (
"net/http"
"git.gutmet.org/go-chart.git"
"git.gutmet.org/go-chart.git/seq"
"git.fireandbrimst.one/aw/go-chart"
"git.fireandbrimst.one/aw/go-chart/seq"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,8 +3,8 @@ package main
import (
"net/http"
"git.gutmet.org/go-chart.git"
"git.gutmet.org/go-chart.git/seq"
"git.fireandbrimst.one/aw/go-chart"
"git.fireandbrimst.one/aw/go-chart/seq"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -5,7 +5,7 @@ import (
"log"
"net/http"
"git.gutmet.org/go-chart.git"
"git.fireandbrimst.one/aw/go-chart"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,8 +3,8 @@ package main
import (
"net/http"
"git.gutmet.org/go-chart.git"
"git.gutmet.org/go-chart.git/seq"
"git.fireandbrimst.one/aw/go-chart"
"git.fireandbrimst.one/aw/go-chart/seq"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -7,8 +7,8 @@ import (
"strings"
"time"
"git.gutmet.org/go-chart.git"
util "git.gutmet.org/go-chart.git/util"
"git.fireandbrimst.one/aw/go-chart"
util "git.fireandbrimst.one/aw/go-chart/util"
)
func parseInt(str string) int {

View File

@ -6,9 +6,9 @@ import (
"sync"
"time"
"git.gutmet.org/go-chart.git/util"
"git.fireandbrimst.one/aw/go-chart/util"
chart "git.gutmet.org/go-chart.git"
chart "git.fireandbrimst.one/aw/go-chart"
)
var lock sync.Mutex

View File

@ -6,9 +6,9 @@ import (
_ "net/http/pprof"
"git.gutmet.org/go-chart.git"
"git.gutmet.org/go-chart.git/drawing"
"git.gutmet.org/go-chart.git/seq"
"git.fireandbrimst.one/aw/go-chart"
"git.fireandbrimst.one/aw/go-chart/drawing"
"git.fireandbrimst.one/aw/go-chart/seq"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,8 +3,8 @@ package main
import (
"net/http"
"git.gutmet.org/go-chart.git"
"git.gutmet.org/go-chart.git/seq"
"git.fireandbrimst.one/aw/go-chart"
"git.fireandbrimst.one/aw/go-chart/seq"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -5,7 +5,7 @@ import (
"log"
"net/http"
"git.gutmet.org/go-chart.git"
"git.fireandbrimst.one/aw/go-chart"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -4,8 +4,8 @@ import (
"net/http"
"time"
"git.gutmet.org/go-chart.git"
"git.gutmet.org/go-chart.git/drawing"
"git.fireandbrimst.one/aw/go-chart"
"git.fireandbrimst.one/aw/go-chart/drawing"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,8 +3,8 @@ package main
import (
"net/http"
"git.gutmet.org/go-chart.git"
"git.gutmet.org/go-chart.git/drawing"
"git.fireandbrimst.one/aw/go-chart"
"git.fireandbrimst.one/aw/go-chart/drawing"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -4,7 +4,7 @@ import (
"net/http"
"time"
"git.gutmet.org/go-chart.git"
"git.fireandbrimst.one/aw/go-chart"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -4,8 +4,8 @@ import (
"fmt"
"net/http"
"git.gutmet.org/go-chart.git"
util "git.gutmet.org/go-chart.git/util"
"git.fireandbrimst.one/aw/go-chart"
util "git.fireandbrimst.one/aw/go-chart/util"
)
func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -5,7 +5,7 @@ import (
"log"
"os"
"git.gutmet.org/go-chart.git"
"git.fireandbrimst.one/aw/go-chart"
)
func main() {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"math"
util "git.gutmet.org/go-chart.git/util"
util "git.fireandbrimst.one/aw/go-chart/util"
)
// Interface Assertions.

View File

@ -6,8 +6,8 @@ import (
"io"
"math"
"git.gutmet.org/golang-freetype.git/truetype"
util "git.gutmet.org/go-chart.git/util"
util "git.fireandbrimst.one/aw/go-chart/util"
"git.fireandbrimst.one/aw/golang-freetype/truetype"
)
// BarChart is a chart that draws bars on a range.

View File

@ -3,7 +3,7 @@ package chart
import (
"fmt"
"git.gutmet.org/go-chart.git/seq"
"git.fireandbrimst.one/aw/go-chart/seq"
)
// Interface Assertions.

2
box.go
View File

@ -4,7 +4,7 @@ import (
"fmt"
"math"
util "git.gutmet.org/go-chart.git/util"
util "git.fireandbrimst.one/aw/go-chart/util"
)
var (

View File

@ -6,8 +6,8 @@ import (
"io"
"math"
"git.gutmet.org/golang-freetype.git/truetype"
util "git.gutmet.org/go-chart.git/util"
util "git.fireandbrimst.one/aw/go-chart/util"
"git.fireandbrimst.one/aw/golang-freetype/truetype"
)
// Chart is what we're drawing.

View File

@ -1,6 +1,6 @@
package chart
import "git.gutmet.org/go-chart.git/drawing"
import "git.fireandbrimst.one/aw/go-chart/drawing"
var (
// ColorWhite is white.

View File

@ -3,7 +3,7 @@ package chart
import (
"math"
util "git.gutmet.org/go-chart.git/util"
util "git.fireandbrimst.one/aw/go-chart/util"
)
var (

View File

@ -3,7 +3,7 @@ package drawing
import (
"image/color"
"git.gutmet.org/golang-freetype.git/truetype"
"git.fireandbrimst.one/aw/golang-freetype/truetype"
)
// FillRule defines the type for fill rules

View File

@ -1,8 +1,8 @@
package drawing
import (
"git.gutmet.org/golang-freetype.git/raster"
"git.gutmet.org/golang-image.git/math/fixed"
"git.fireandbrimst.one/aw/golang-freetype/raster"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
)
// FtLineBuilder is a builder for freetype raster glyphs.

View File

@ -4,7 +4,7 @@ import (
"image"
"image/color"
"git.gutmet.org/golang-freetype.git/truetype"
"git.fireandbrimst.one/aw/golang-freetype/truetype"
)
// GraphicContext describes the interface for the various backends (images, pdf, opengl, ...)

View File

@ -4,10 +4,10 @@ import (
"image"
"image/color"
"git.gutmet.org/golang-image.git/draw"
"git.gutmet.org/golang-image.git/math/f64"
"git.fireandbrimst.one/aw/golang-image/draw"
"git.fireandbrimst.one/aw/golang-image/math/f64"
"git.gutmet.org/golang-freetype.git/raster"
"git.fireandbrimst.one/aw/golang-freetype/raster"
)
// Painter implements the freetype raster.Painter and has a SetColor method like the RGBAPainter

View File

@ -6,11 +6,11 @@ import (
"image/color"
"math"
"git.gutmet.org/golang-freetype.git/raster"
"git.gutmet.org/golang-freetype.git/truetype"
"git.gutmet.org/golang-image.git/draw"
"git.gutmet.org/golang-image.git/font"
"git.gutmet.org/golang-image.git/math/fixed"
"git.fireandbrimst.one/aw/golang-freetype/raster"
"git.fireandbrimst.one/aw/golang-freetype/truetype"
"git.fireandbrimst.one/aw/golang-image/draw"
"git.fireandbrimst.one/aw/golang-image/font"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
)
// NewRasterGraphicContext creates a new Graphic context from an image.
@ -206,7 +206,7 @@ func (rgc *RasterGraphicContext) GetFont() *truetype.Font {
return rgc.current.Font
}
// SetFontSize sets the font size in points (as in ``a 12 point font'').
// SetFontSize sets the font size in points (as in “a 12 point font”).
func (rgc *RasterGraphicContext) SetFontSize(fontSizePoints float64) {
rgc.current.FontSizePoints = fontSizePoints
rgc.recalc()

View File

@ -4,7 +4,7 @@ import (
"image"
"image/color"
"git.gutmet.org/golang-freetype.git/truetype"
"git.fireandbrimst.one/aw/golang-freetype/truetype"
)
// StackGraphicContext is a context that does thngs.

View File

@ -1,8 +1,8 @@
package drawing
import (
"git.gutmet.org/golang-freetype.git/truetype"
"git.gutmet.org/golang-image.git/math/fixed"
"git.fireandbrimst.one/aw/golang-freetype/truetype"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
)
// DrawContour draws the given closed contour at the given sub-pixel offset.

View File

@ -3,10 +3,10 @@ package drawing
import (
"math"
"git.gutmet.org/golang-image.git/math/fixed"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
"git.gutmet.org/golang-freetype.git/raster"
"git.gutmet.org/golang-freetype.git/truetype"
"git.fireandbrimst.one/aw/golang-freetype/raster"
"git.fireandbrimst.one/aw/golang-freetype/truetype"
)
// PixelsToPoints returns the points for a given number of pixels at a DPI.

View File

@ -3,8 +3,8 @@ package chart
import (
"sync"
"git.gutmet.org/golang-freetype.git/truetype"
"git.gutmet.org/go-chart.git/roboto"
"git.fireandbrimst.one/aw/go-chart/roboto"
"git.fireandbrimst.one/aw/golang-freetype/truetype"
)
var (

2
jet.go
View File

@ -1,6 +1,6 @@
package chart
import "git.gutmet.org/go-chart.git/drawing"
import "git.fireandbrimst.one/aw/go-chart/drawing"
// Jet is a color map provider based on matlab's jet color map.
func Jet(v, vmin, vmax float64) drawing.Color {

View File

@ -1,8 +1,8 @@
package chart
import (
"git.gutmet.org/go-chart.git/drawing"
"git.gutmet.org/go-chart.git/util"
"git.fireandbrimst.one/aw/go-chart/drawing"
"git.fireandbrimst.one/aw/go-chart/util"
)
// Legend returns a legend renderable function.

View File

@ -3,8 +3,8 @@ package chart
import (
"fmt"
"git.gutmet.org/go-chart.git/seq"
util "git.gutmet.org/go-chart.git/util"
"git.fireandbrimst.one/aw/go-chart/seq"
util "git.fireandbrimst.one/aw/go-chart/util"
)
// Interface Assertions.

View File

@ -6,8 +6,8 @@ import (
"io"
"math"
"git.gutmet.org/golang-freetype.git/truetype"
"git.gutmet.org/go-chart.git/util"
"git.fireandbrimst.one/aw/go-chart/util"
"git.fireandbrimst.one/aw/golang-freetype/truetype"
)
const (

View File

@ -4,8 +4,8 @@ import (
"fmt"
"math"
"git.gutmet.org/go-chart.git/matrix"
util "git.gutmet.org/go-chart.git/util"
"git.fireandbrimst.one/aw/go-chart/matrix"
util "git.fireandbrimst.one/aw/go-chart/util"
)
// Interface Assertions.

View File

@ -6,9 +6,9 @@ import (
"io"
"math"
"git.gutmet.org/golang-freetype.git/truetype"
"git.gutmet.org/go-chart.git/drawing"
"git.gutmet.org/go-chart.git/util"
"git.fireandbrimst.one/aw/go-chart/drawing"
"git.fireandbrimst.one/aw/go-chart/util"
"git.fireandbrimst.one/aw/golang-freetype/truetype"
)
// PNG returns a new png/raster renderer.

View File

@ -3,8 +3,8 @@ package chart
import (
"io"
"git.gutmet.org/golang-freetype.git/truetype"
"git.gutmet.org/go-chart.git/drawing"
"git.fireandbrimst.one/aw/go-chart/drawing"
"git.fireandbrimst.one/aw/golang-freetype/truetype"
)
// Renderer represents the basic methods required to draw a chart.

View File

@ -4,7 +4,7 @@ import (
"fmt"
"strings"
util "git.gutmet.org/go-chart.git/util"
util "git.fireandbrimst.one/aw/go-chart/util"
)
const (

View File

@ -3,7 +3,7 @@ package seq
import (
"time"
"git.gutmet.org/go-chart.git/util"
"git.fireandbrimst.one/aw/go-chart/util"
)
// Time is a utility singleton with helper functions for time seq generation.

View File

@ -3,7 +3,7 @@ package seq
import (
"time"
"git.gutmet.org/go-chart.git/util"
"git.fireandbrimst.one/aw/go-chart/util"
)
// Assert types implement interfaces.

View File

@ -3,7 +3,7 @@ package chart
import (
"fmt"
util "git.gutmet.org/go-chart.git/util"
util "git.fireandbrimst.one/aw/go-chart/util"
)
const (

View File

@ -6,9 +6,9 @@ import (
"io"
"math"
"git.gutmet.org/golang-freetype.git/truetype"
"git.gutmet.org/go-chart.git/seq"
util "git.gutmet.org/go-chart.git/util"
"git.fireandbrimst.one/aw/go-chart/seq"
util "git.fireandbrimst.one/aw/go-chart/util"
"git.fireandbrimst.one/aw/golang-freetype/truetype"
)
// StackedBar is a bar within a StackedBarChart.

View File

@ -4,9 +4,9 @@ import (
"fmt"
"strings"
"git.gutmet.org/golang-freetype.git/truetype"
"git.gutmet.org/go-chart.git/drawing"
"git.gutmet.org/go-chart.git/util"
"git.fireandbrimst.one/aw/go-chart/drawing"
"git.fireandbrimst.one/aw/go-chart/util"
"git.fireandbrimst.one/aw/golang-freetype/truetype"
)
const (

View File

@ -3,7 +3,7 @@ package chart
import (
"strings"
util "git.gutmet.org/go-chart.git/util"
util "git.fireandbrimst.one/aw/go-chart/util"
)
// TextHorizontalAlign is an enum for the horizontal alignment options.

View File

@ -5,7 +5,7 @@ import (
"math"
"strings"
util "git.gutmet.org/go-chart.git/util"
util "git.fireandbrimst.one/aw/go-chart/util"
)
// TicksProvider is a type that provides ticks.

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
util "git.gutmet.org/go-chart.git/util"
util "git.fireandbrimst.one/aw/go-chart/util"
)
// Interface Assertions.

View File

@ -1,6 +1,6 @@
package chart
import util "git.gutmet.org/go-chart.git/util"
import util "git.fireandbrimst.one/aw/go-chart/util"
// Value is a chart value.
type Value struct {

View File

@ -1,6 +1,6 @@
package chart
import "git.gutmet.org/go-chart.git/drawing"
import "git.fireandbrimst.one/aw/go-chart/drawing"
// ValuesProvider is a type that produces values.
type ValuesProvider interface {

View File

@ -7,11 +7,11 @@ import (
"math"
"strings"
"git.gutmet.org/golang-image.git/font"
"git.fireandbrimst.one/aw/golang-image/font"
"git.gutmet.org/golang-freetype.git/truetype"
"git.gutmet.org/go-chart.git/drawing"
"git.gutmet.org/go-chart.git/util"
"git.fireandbrimst.one/aw/go-chart/drawing"
"git.fireandbrimst.one/aw/go-chart/util"
"git.fireandbrimst.one/aw/golang-freetype/truetype"
)
// SVG returns a new png/raster renderer.
@ -30,7 +30,7 @@ func SVG(width, height int) (Renderer, error) {
// SVGWithCSS returns a new png/raster renderer with attached custom CSS
// The optional nonce argument sets a CSP nonce.
func SVGWithCSS(css string, nonce string) (func(width, height int)(Renderer, error)) {
func SVGWithCSS(css string, nonce string) func(width, height int) (Renderer, error) {
return func(width, height int) (Renderer, error) {
buffer := bytes.NewBuffer([]byte{})
canvas := newCanvas(buffer)

View File

@ -1,6 +1,6 @@
package chart
import "git.gutmet.org/go-chart.git/drawing"
import "git.fireandbrimst.one/aw/go-chart/drawing"
var viridisColors = [256]drawing.Color{
drawing.Color{R: 0x44, G: 0x1, B: 0x54, A: 0xff},

View File

@ -3,7 +3,7 @@ package chart
import (
"math"
util "git.gutmet.org/go-chart.git/util"
util "git.fireandbrimst.one/aw/go-chart/util"
)
// XAxis represents the horizontal axis.

View File

@ -3,7 +3,7 @@ package chart
import (
"math"
util "git.gutmet.org/go-chart.git/util"
util "git.fireandbrimst.one/aw/go-chart/util"
)
// YAxis is a veritcal rule of the range.