1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-04-25 13:48:50 +08:00

Merge pull request #231 from mum4k/rename-internal

Rename `internal` directory to `private`.
This commit is contained in:
Jakub Sobon 2020-04-10 15:36:38 -04:00 committed by GitHub
commit ddd5821189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
124 changed files with 292 additions and 288 deletions

View File

@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### Added
- Migrating to [Go modules](https://blog.golang.org/using-go-modules). - Migrating to [Go modules](https://blog.golang.org/using-go-modules).
- Renamed directory `internal` to `private` so that external widget development
is possible. Noted in
[README.md](https://github.com/mum4k/termdash/README.md) that packages in the
`private` directory don't have any API stability guarantee.
## [0.11.0] - 7-Mar-2020 ## [0.11.0] - 7-Mar-2020

View File

@ -27,7 +27,7 @@ for more details.
The public API surface is documented in the The public API surface is documented in the
[wiki](http://github.com/mum4k/termdash/wiki). [wiki](http://github.com/mum4k/termdash/wiki).
Private packages can be identified by the presence of the **/internal/** Private packages can be identified by the presence of the **/private/**
directory in their import path. Stability of the private packages isn't directory in their import path. Stability of the private packages isn't
guaranteed and changes won't be backward compatible. guaranteed and changes won't be backward compatible.

View File

@ -27,10 +27,10 @@ import (
"image" "image"
"sync" "sync"
"github.com/mum4k/termdash/internal/alignfor"
"github.com/mum4k/termdash/internal/area"
"github.com/mum4k/termdash/internal/event"
"github.com/mum4k/termdash/linestyle" "github.com/mum4k/termdash/linestyle"
"github.com/mum4k/termdash/private/alignfor"
"github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/private/event"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgetapi" "github.com/mum4k/termdash/widgetapi"
) )

View File

@ -23,16 +23,16 @@ import (
"github.com/mum4k/termdash/align" "github.com/mum4k/termdash/align"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas/testcanvas"
"github.com/mum4k/termdash/internal/draw"
"github.com/mum4k/termdash/internal/draw/testdraw"
"github.com/mum4k/termdash/internal/event"
"github.com/mum4k/termdash/internal/event/testevent"
"github.com/mum4k/termdash/internal/faketerm"
"github.com/mum4k/termdash/internal/fakewidget"
"github.com/mum4k/termdash/keyboard" "github.com/mum4k/termdash/keyboard"
"github.com/mum4k/termdash/linestyle" "github.com/mum4k/termdash/linestyle"
"github.com/mum4k/termdash/mouse" "github.com/mum4k/termdash/mouse"
"github.com/mum4k/termdash/private/canvas/testcanvas"
"github.com/mum4k/termdash/private/draw"
"github.com/mum4k/termdash/private/draw/testdraw"
"github.com/mum4k/termdash/private/event"
"github.com/mum4k/termdash/private/event/testevent"
"github.com/mum4k/termdash/private/faketerm"
"github.com/mum4k/termdash/private/fakewidget"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgetapi" "github.com/mum4k/termdash/widgetapi"
"github.com/mum4k/termdash/widgets/barchart" "github.com/mum4k/termdash/widgets/barchart"

View File

@ -22,9 +22,9 @@ import (
"image" "image"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/area" "github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/draw" "github.com/mum4k/termdash/private/draw"
"github.com/mum4k/termdash/widgetapi" "github.com/mum4k/termdash/widgetapi"
) )

View File

@ -20,12 +20,12 @@ import (
"github.com/mum4k/termdash/align" "github.com/mum4k/termdash/align"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas/testcanvas"
"github.com/mum4k/termdash/internal/draw"
"github.com/mum4k/termdash/internal/draw/testdraw"
"github.com/mum4k/termdash/internal/faketerm"
"github.com/mum4k/termdash/internal/fakewidget"
"github.com/mum4k/termdash/linestyle" "github.com/mum4k/termdash/linestyle"
"github.com/mum4k/termdash/private/canvas/testcanvas"
"github.com/mum4k/termdash/private/draw"
"github.com/mum4k/termdash/private/draw/testdraw"
"github.com/mum4k/termdash/private/faketerm"
"github.com/mum4k/termdash/private/fakewidget"
"github.com/mum4k/termdash/widgetapi" "github.com/mum4k/termdash/widgetapi"
) )

View File

@ -19,8 +19,8 @@ package container
import ( import (
"image" "image"
"github.com/mum4k/termdash/internal/button"
"github.com/mum4k/termdash/mouse" "github.com/mum4k/termdash/mouse"
"github.com/mum4k/termdash/private/button"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
) )

View File

@ -21,11 +21,11 @@ import (
"time" "time"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/event"
"github.com/mum4k/termdash/internal/event/testevent"
"github.com/mum4k/termdash/internal/faketerm"
"github.com/mum4k/termdash/linestyle" "github.com/mum4k/termdash/linestyle"
"github.com/mum4k/termdash/mouse" "github.com/mum4k/termdash/mouse"
"github.com/mum4k/termdash/private/event"
"github.com/mum4k/termdash/private/event/testevent"
"github.com/mum4k/termdash/private/faketerm"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
) )

View File

@ -23,13 +23,13 @@ import (
"github.com/mum4k/termdash" "github.com/mum4k/termdash"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/container" "github.com/mum4k/termdash/container"
"github.com/mum4k/termdash/internal/area"
"github.com/mum4k/termdash/internal/canvas/testcanvas"
"github.com/mum4k/termdash/internal/draw"
"github.com/mum4k/termdash/internal/draw/testdraw"
"github.com/mum4k/termdash/internal/faketerm"
"github.com/mum4k/termdash/internal/fakewidget"
"github.com/mum4k/termdash/linestyle" "github.com/mum4k/termdash/linestyle"
"github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/private/canvas/testcanvas"
"github.com/mum4k/termdash/private/draw"
"github.com/mum4k/termdash/private/draw/testdraw"
"github.com/mum4k/termdash/private/faketerm"
"github.com/mum4k/termdash/private/fakewidget"
"github.com/mum4k/termdash/terminal/termbox" "github.com/mum4k/termdash/terminal/termbox"
"github.com/mum4k/termdash/widgetapi" "github.com/mum4k/termdash/widgetapi"
"github.com/mum4k/termdash/widgets/barchart" "github.com/mum4k/termdash/widgets/barchart"

View File

@ -23,8 +23,8 @@ import (
"github.com/mum4k/termdash/align" "github.com/mum4k/termdash/align"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/area"
"github.com/mum4k/termdash/linestyle" "github.com/mum4k/termdash/linestyle"
"github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/widgetapi" "github.com/mum4k/termdash/widgetapi"
) )

View File

@ -21,7 +21,7 @@ import (
"testing" "testing"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/faketerm" "github.com/mum4k/termdash/private/faketerm"
) )
func TestRoot(t *testing.T) { func TestRoot(t *testing.T) {

View File

@ -21,8 +21,8 @@ import (
"strings" "strings"
"github.com/mum4k/termdash/align" "github.com/mum4k/termdash/align"
"github.com/mum4k/termdash/internal/runewidth" "github.com/mum4k/termdash/private/runewidth"
"github.com/mum4k/termdash/internal/wrap" "github.com/mum4k/termdash/private/wrap"
) )
// hAlign aligns the given area in the rectangle horizontally. // hAlign aligns the given area in the rectangle horizontally.

View File

@ -19,7 +19,7 @@ import (
"fmt" "fmt"
"image" "image"
"github.com/mum4k/termdash/internal/numbers" "github.com/mum4k/termdash/private/numbers"
) )
// Size returns the size of the provided area. // Size returns the size of the provided area.

View File

@ -46,7 +46,7 @@ import (
"image" "image"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
) )

View File

@ -20,10 +20,10 @@ import (
"github.com/kylelemons/godebug/pretty" "github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/area" "github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/canvas/testcanvas" "github.com/mum4k/termdash/private/canvas/testcanvas"
"github.com/mum4k/termdash/internal/faketerm" "github.com/mum4k/termdash/private/faketerm"
) )
func Example_copiedToCanvas() { func Example_copiedToCanvas() {

View File

@ -20,9 +20,9 @@ import (
"image" "image"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/canvas/braille" "github.com/mum4k/termdash/private/canvas/braille"
"github.com/mum4k/termdash/internal/faketerm" "github.com/mum4k/termdash/private/faketerm"
) )
// MustNew returns a new canvas or panics. // MustNew returns a new canvas or panics.

View File

@ -20,8 +20,8 @@ import (
"image" "image"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/area" "github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/internal/runewidth" "github.com/mum4k/termdash/private/runewidth"
) )
// NewCells breaks the provided text into cells and applies the options. // NewCells breaks the provided text into cells and applies the options.

View File

@ -20,9 +20,9 @@ import (
"image" "image"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/area" "github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/internal/canvas/buffer" "github.com/mum4k/termdash/private/canvas/buffer"
"github.com/mum4k/termdash/internal/runewidth" "github.com/mum4k/termdash/private/runewidth"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
) )

View File

@ -20,9 +20,9 @@ import (
"github.com/kylelemons/godebug/pretty" "github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/area" "github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/internal/canvas/buffer" "github.com/mum4k/termdash/private/canvas/buffer"
"github.com/mum4k/termdash/internal/faketerm" "github.com/mum4k/termdash/private/faketerm"
) )
func TestNew(t *testing.T) { func TestNew(t *testing.T) {

View File

@ -20,9 +20,9 @@ import (
"image" "image"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/canvas/buffer" "github.com/mum4k/termdash/private/canvas/buffer"
"github.com/mum4k/termdash/internal/faketerm" "github.com/mum4k/termdash/private/faketerm"
) )
// MustNew returns a new canvas or panics. // MustNew returns a new canvas or panics.

View File

@ -22,9 +22,9 @@ import (
"github.com/mum4k/termdash/align" "github.com/mum4k/termdash/align"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/alignfor"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/linestyle" "github.com/mum4k/termdash/linestyle"
"github.com/mum4k/termdash/private/alignfor"
"github.com/mum4k/termdash/private/canvas"
) )
// BorderOption is used to provide options to Border(). // BorderOption is used to provide options to Border().

View File

@ -20,10 +20,10 @@ import (
"github.com/mum4k/termdash/align" "github.com/mum4k/termdash/align"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/canvas/testcanvas"
"github.com/mum4k/termdash/internal/faketerm"
"github.com/mum4k/termdash/linestyle" "github.com/mum4k/termdash/linestyle"
"github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/private/canvas/testcanvas"
"github.com/mum4k/termdash/private/faketerm"
) )
func TestBorder(t *testing.T) { func TestBorder(t *testing.T) {

View File

@ -21,8 +21,8 @@ import (
"image" "image"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas/braille" "github.com/mum4k/termdash/private/canvas/braille"
"github.com/mum4k/termdash/internal/numbers/trig" "github.com/mum4k/termdash/private/numbers/trig"
) )
// BrailleCircleOption is used to provide options to BrailleCircle. // BrailleCircleOption is used to provide options to BrailleCircle.

View File

@ -19,10 +19,10 @@ import (
"testing" "testing"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/area" "github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/internal/canvas/braille" "github.com/mum4k/termdash/private/canvas/braille"
"github.com/mum4k/termdash/internal/canvas/braille/testbraille" "github.com/mum4k/termdash/private/canvas/braille/testbraille"
"github.com/mum4k/termdash/internal/faketerm" "github.com/mum4k/termdash/private/faketerm"
) )
// mustBrailleLine draws the braille line or panics. // mustBrailleLine draws the braille line or panics.

View File

@ -21,7 +21,7 @@ import (
"image" "image"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas/braille" "github.com/mum4k/termdash/private/canvas/braille"
) )
// BrailleFillOption is used to provide options to BrailleFill. // BrailleFillOption is used to provide options to BrailleFill.

View File

@ -19,10 +19,10 @@ import (
"testing" "testing"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/area" "github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/internal/canvas/braille" "github.com/mum4k/termdash/private/canvas/braille"
"github.com/mum4k/termdash/internal/canvas/braille/testbraille" "github.com/mum4k/termdash/private/canvas/braille/testbraille"
"github.com/mum4k/termdash/internal/faketerm" "github.com/mum4k/termdash/private/faketerm"
) )
func TestBrailleFill(t *testing.T) { func TestBrailleFill(t *testing.T) {

View File

@ -21,8 +21,8 @@ import (
"image" "image"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas/braille" "github.com/mum4k/termdash/private/canvas/braille"
"github.com/mum4k/termdash/internal/numbers" "github.com/mum4k/termdash/private/numbers"
) )
// braillePixelChange represents an action on a pixel on the braille canvas. // braillePixelChange represents an action on a pixel on the braille canvas.

View File

@ -19,10 +19,10 @@ import (
"testing" "testing"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/area" "github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/internal/canvas/braille" "github.com/mum4k/termdash/private/canvas/braille"
"github.com/mum4k/termdash/internal/canvas/braille/testbraille" "github.com/mum4k/termdash/private/canvas/braille/testbraille"
"github.com/mum4k/termdash/internal/faketerm" "github.com/mum4k/termdash/private/faketerm"
) )
func TestBrailleLine(t *testing.T) { func TestBrailleLine(t *testing.T) {

View File

@ -21,8 +21,8 @@ import (
"image" "image"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/linestyle" "github.com/mum4k/termdash/linestyle"
"github.com/mum4k/termdash/private/canvas"
) )
// HVLineOption is used to provide options to HVLine(). // HVLineOption is used to provide options to HVLine().

View File

@ -20,8 +20,8 @@ import (
"testing" "testing"
"github.com/kylelemons/godebug/pretty" "github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/linestyle" "github.com/mum4k/termdash/linestyle"
"github.com/mum4k/termdash/private/canvas"
) )
func TestMultiEdgeNodes(t *testing.T) { func TestMultiEdgeNodes(t *testing.T) {

View File

@ -19,10 +19,10 @@ import (
"testing" "testing"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/canvas/testcanvas"
"github.com/mum4k/termdash/internal/faketerm"
"github.com/mum4k/termdash/linestyle" "github.com/mum4k/termdash/linestyle"
"github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/private/canvas/testcanvas"
"github.com/mum4k/termdash/private/faketerm"
) )
func TestHVLines(t *testing.T) { func TestHVLines(t *testing.T) {

View File

@ -17,8 +17,8 @@ package draw
import ( import (
"fmt" "fmt"
"github.com/mum4k/termdash/internal/runewidth"
"github.com/mum4k/termdash/linestyle" "github.com/mum4k/termdash/linestyle"
"github.com/mum4k/termdash/private/runewidth"
) )
// line_style.go contains the Unicode characters used for drawing lines of // line_style.go contains the Unicode characters used for drawing lines of

View File

@ -21,7 +21,7 @@ import (
"image" "image"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
) )
// RectangleOption is used to provide options to the Rectangle function. // RectangleOption is used to provide options to the Rectangle function.

View File

@ -19,9 +19,9 @@ import (
"testing" "testing"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/canvas/testcanvas" "github.com/mum4k/termdash/private/canvas/testcanvas"
"github.com/mum4k/termdash/internal/faketerm" "github.com/mum4k/termdash/private/faketerm"
) )
func TestRectangle(t *testing.T) { func TestRectangle(t *testing.T) {

View File

@ -19,9 +19,9 @@ import (
"fmt" "fmt"
"image" "image"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/canvas/braille" "github.com/mum4k/termdash/private/canvas/braille"
"github.com/mum4k/termdash/internal/draw" "github.com/mum4k/termdash/private/draw"
) )
// MustBorder draws border on the canvas or panics. // MustBorder draws border on the canvas or panics.

View File

@ -22,8 +22,8 @@ import (
"strings" "strings"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/runewidth" "github.com/mum4k/termdash/private/runewidth"
) )
// OverrunMode represents // OverrunMode represents

View File

@ -19,9 +19,9 @@ import (
"testing" "testing"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/canvas/testcanvas" "github.com/mum4k/termdash/private/canvas/testcanvas"
"github.com/mum4k/termdash/internal/faketerm" "github.com/mum4k/termdash/private/faketerm"
) )
func TestTrimText(t *testing.T) { func TestTrimText(t *testing.T) {

View File

@ -22,7 +22,7 @@ import (
"image" "image"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
) )
// VerticalTextOption is used to provide options to Text(). // VerticalTextOption is used to provide options to Text().

View File

@ -19,9 +19,9 @@ import (
"testing" "testing"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/canvas/testcanvas" "github.com/mum4k/termdash/private/canvas/testcanvas"
"github.com/mum4k/termdash/internal/faketerm" "github.com/mum4k/termdash/private/faketerm"
) )
func TestVerticalText(t *testing.T) { func TestVerticalText(t *testing.T) {

View File

@ -21,7 +21,7 @@ import (
"reflect" "reflect"
"sync" "sync"
"github.com/mum4k/termdash/internal/event/eventqueue" "github.com/mum4k/termdash/private/event/eventqueue"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
) )

View File

@ -23,8 +23,8 @@ import (
"time" "time"
"github.com/kylelemons/godebug/pretty" "github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/internal/event/testevent"
"github.com/mum4k/termdash/keyboard" "github.com/mum4k/termdash/keyboard"
"github.com/mum4k/termdash/private/event/testevent"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
) )

View File

@ -24,8 +24,8 @@ import (
"sync" "sync"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas/buffer" "github.com/mum4k/termdash/private/canvas/buffer"
"github.com/mum4k/termdash/internal/event/eventqueue" "github.com/mum4k/termdash/private/event/eventqueue"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
) )

View File

@ -21,11 +21,11 @@ import (
"image" "image"
"sync" "sync"
"github.com/mum4k/termdash/internal/area"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/draw"
"github.com/mum4k/termdash/keyboard" "github.com/mum4k/termdash/keyboard"
"github.com/mum4k/termdash/mouse" "github.com/mum4k/termdash/mouse"
"github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/private/draw"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgetapi" "github.com/mum4k/termdash/widgetapi"
) )

View File

@ -19,12 +19,12 @@ import (
"testing" "testing"
"github.com/kylelemons/godebug/pretty" "github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/canvas/testcanvas"
"github.com/mum4k/termdash/internal/draw/testdraw"
"github.com/mum4k/termdash/internal/faketerm"
"github.com/mum4k/termdash/keyboard" "github.com/mum4k/termdash/keyboard"
"github.com/mum4k/termdash/mouse" "github.com/mum4k/termdash/mouse"
"github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/private/canvas/testcanvas"
"github.com/mum4k/termdash/private/draw/testdraw"
"github.com/mum4k/termdash/private/faketerm"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgetapi" "github.com/mum4k/termdash/widgetapi"
) )

View File

@ -21,7 +21,7 @@ import (
"math" "math"
"sort" "sort"
"github.com/mum4k/termdash/internal/numbers" "github.com/mum4k/termdash/private/numbers"
) )
// CirclePointAtAngle given an angle in degrees and a circle midpoint and // CirclePointAtAngle given an angle in degrees and a circle midpoint and

View File

@ -23,10 +23,10 @@ import (
"math" "math"
"github.com/mum4k/termdash/align" "github.com/mum4k/termdash/align"
"github.com/mum4k/termdash/internal/alignfor" "github.com/mum4k/termdash/private/alignfor"
"github.com/mum4k/termdash/internal/area" "github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/internal/segdisp" "github.com/mum4k/termdash/private/segdisp"
"github.com/mum4k/termdash/internal/segdisp/sixteen" "github.com/mum4k/termdash/private/segdisp/sixteen"
) )
// attributes contains attributes needed to draw the segment display. // attributes contains attributes needed to draw the segment display.

View File

@ -42,9 +42,9 @@ import (
"strings" "strings"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/segdisp" "github.com/mum4k/termdash/private/segdisp"
"github.com/mum4k/termdash/internal/segdisp/segment" "github.com/mum4k/termdash/private/segdisp/segment"
) )
// Segment represents a single segment in the display. // Segment represents a single segment in the display.

View File

@ -21,14 +21,14 @@ import (
"github.com/kylelemons/godebug/pretty" "github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/area" "github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/canvas/braille/testbraille" "github.com/mum4k/termdash/private/canvas/braille/testbraille"
"github.com/mum4k/termdash/internal/canvas/testcanvas" "github.com/mum4k/termdash/private/canvas/testcanvas"
"github.com/mum4k/termdash/internal/faketerm" "github.com/mum4k/termdash/private/faketerm"
"github.com/mum4k/termdash/internal/segdisp" "github.com/mum4k/termdash/private/segdisp"
"github.com/mum4k/termdash/internal/segdisp/segment" "github.com/mum4k/termdash/private/segdisp/segment"
"github.com/mum4k/termdash/internal/segdisp/segment/testsegment" "github.com/mum4k/termdash/private/segdisp/segment/testsegment"
) )
func TestSegmentString(t *testing.T) { func TestSegmentString(t *testing.T) {

View File

@ -18,8 +18,8 @@ package testdotseg
import ( import (
"fmt" "fmt"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/segdisp/dotseg" "github.com/mum4k/termdash/private/segdisp/dotseg"
) )
// MustSetCharacter sets the character on the display or panics. // MustSetCharacter sets the character on the display or panics.

View File

@ -20,9 +20,9 @@ import (
"image" "image"
"math" "math"
"github.com/mum4k/termdash/internal/area" "github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/canvas/braille" "github.com/mum4k/termdash/private/canvas/braille"
) )
// Minimum valid size of a cell canvas in order to draw a segment display. // Minimum valid size of a cell canvas in order to draw a segment display.

View File

@ -19,9 +19,9 @@ import (
"testing" "testing"
"github.com/kylelemons/godebug/pretty" "github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/canvas/braille" "github.com/mum4k/termdash/private/canvas/braille"
"github.com/mum4k/termdash/internal/canvas/braille/testbraille" "github.com/mum4k/termdash/private/canvas/braille/testbraille"
) )
func TestRequired(t *testing.T) { func TestRequired(t *testing.T) {

View File

@ -20,8 +20,8 @@ import (
"image" "image"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas/braille" "github.com/mum4k/termdash/private/canvas/braille"
"github.com/mum4k/termdash/internal/draw" "github.com/mum4k/termdash/private/draw"
) )
// Type identifies the type of the segment that is drawn. // Type identifies the type of the segment that is drawn.

View File

@ -20,12 +20,12 @@ import (
"testing" "testing"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/area" "github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/internal/canvas/braille" "github.com/mum4k/termdash/private/canvas/braille"
"github.com/mum4k/termdash/internal/canvas/braille/testbraille" "github.com/mum4k/termdash/private/canvas/braille/testbraille"
"github.com/mum4k/termdash/internal/draw" "github.com/mum4k/termdash/private/draw"
"github.com/mum4k/termdash/internal/draw/testdraw" "github.com/mum4k/termdash/private/draw/testdraw"
"github.com/mum4k/termdash/internal/faketerm" "github.com/mum4k/termdash/private/faketerm"
) )
func TestHV(t *testing.T) { func TestHV(t *testing.T) {

View File

@ -19,8 +19,8 @@ import (
"fmt" "fmt"
"image" "image"
"github.com/mum4k/termdash/internal/canvas/braille" "github.com/mum4k/termdash/private/canvas/braille"
"github.com/mum4k/termdash/internal/segdisp/segment" "github.com/mum4k/termdash/private/segdisp/segment"
) )
// MustHV draws the segment or panics. // MustHV draws the segment or panics.

View File

@ -22,9 +22,9 @@ import (
"image" "image"
"math" "math"
"github.com/mum4k/termdash/internal/numbers" "github.com/mum4k/termdash/private/numbers"
"github.com/mum4k/termdash/internal/segdisp" "github.com/mum4k/termdash/private/segdisp"
"github.com/mum4k/termdash/internal/segdisp/segment" "github.com/mum4k/termdash/private/segdisp/segment"
) )
// hvSegType maps horizontal and vertical segments to their type. // hvSegType maps horizontal and vertical segments to their type.

View File

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 1.8 MiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -44,9 +44,9 @@ import (
"strings" "strings"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/segdisp" "github.com/mum4k/termdash/private/segdisp"
"github.com/mum4k/termdash/internal/segdisp/segment" "github.com/mum4k/termdash/private/segdisp/segment"
) )
// Segment represents a single segment in the display. // Segment represents a single segment in the display.

View File

@ -21,14 +21,14 @@ import (
"github.com/kylelemons/godebug/pretty" "github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/area" "github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/canvas/braille/testbraille" "github.com/mum4k/termdash/private/canvas/braille/testbraille"
"github.com/mum4k/termdash/internal/canvas/testcanvas" "github.com/mum4k/termdash/private/canvas/testcanvas"
"github.com/mum4k/termdash/internal/faketerm" "github.com/mum4k/termdash/private/faketerm"
"github.com/mum4k/termdash/internal/segdisp" "github.com/mum4k/termdash/private/segdisp"
"github.com/mum4k/termdash/internal/segdisp/segment" "github.com/mum4k/termdash/private/segdisp/segment"
"github.com/mum4k/termdash/internal/segdisp/segment/testsegment" "github.com/mum4k/termdash/private/segdisp/segment/testsegment"
) )
func TestDraw(t *testing.T) { func TestDraw(t *testing.T) {

View File

@ -18,8 +18,8 @@ package testsixteen
import ( import (
"fmt" "fmt"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/segdisp/sixteen" "github.com/mum4k/termdash/private/segdisp/sixteen"
) )
// MustSetCharacter sets the character on the display or panics. // MustSetCharacter sets the character on the display or panics.

View File

@ -21,8 +21,8 @@ import (
"strings" "strings"
"unicode" "unicode"
"github.com/mum4k/termdash/internal/canvas/buffer" "github.com/mum4k/termdash/private/canvas/buffer"
"github.com/mum4k/termdash/internal/runewidth" "github.com/mum4k/termdash/private/runewidth"
) )
// Mode sets the wrapping mode. // Mode sets the wrapping mode.

View File

@ -22,7 +22,7 @@ import (
"github.com/kylelemons/godebug/pretty" "github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas/buffer" "github.com/mum4k/termdash/private/canvas/buffer"
) )
func TestValidTextAndCells(t *testing.T) { func TestValidTextAndCells(t *testing.T) {

View File

@ -31,7 +31,7 @@ import (
"time" "time"
"github.com/mum4k/termdash/container" "github.com/mum4k/termdash/container"
"github.com/mum4k/termdash/internal/event" "github.com/mum4k/termdash/private/event"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
) )

View File

@ -24,14 +24,14 @@ import (
"github.com/kylelemons/godebug/pretty" "github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/container" "github.com/mum4k/termdash/container"
"github.com/mum4k/termdash/internal/canvas/testcanvas"
"github.com/mum4k/termdash/internal/event"
"github.com/mum4k/termdash/internal/event/eventqueue"
"github.com/mum4k/termdash/internal/event/testevent"
"github.com/mum4k/termdash/internal/faketerm"
"github.com/mum4k/termdash/internal/fakewidget"
"github.com/mum4k/termdash/keyboard" "github.com/mum4k/termdash/keyboard"
"github.com/mum4k/termdash/mouse" "github.com/mum4k/termdash/mouse"
"github.com/mum4k/termdash/private/canvas/testcanvas"
"github.com/mum4k/termdash/private/event"
"github.com/mum4k/termdash/private/event/eventqueue"
"github.com/mum4k/termdash/private/event/testevent"
"github.com/mum4k/termdash/private/faketerm"
"github.com/mum4k/termdash/private/fakewidget"
"github.com/mum4k/termdash/terminal/termbox" "github.com/mum4k/termdash/terminal/termbox"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgetapi" "github.com/mum4k/termdash/widgetapi"

View File

@ -21,7 +21,7 @@ import (
"github.com/gdamore/tcell" "github.com/gdamore/tcell"
"github.com/gdamore/tcell/encoding" "github.com/gdamore/tcell/encoding"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/event/eventqueue" "github.com/mum4k/termdash/private/event/eventqueue"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
) )

View File

@ -20,7 +20,7 @@ import (
"image" "image"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/event/eventqueue" "github.com/mum4k/termdash/private/event/eventqueue"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
tbx "github.com/nsf/termbox-go" tbx "github.com/nsf/termbox-go"
) )

View File

@ -18,7 +18,7 @@ package widgetapi
import ( import (
"image" "image"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
) )

View File

@ -25,10 +25,10 @@ import (
"github.com/mum4k/termdash/align" "github.com/mum4k/termdash/align"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/alignfor" "github.com/mum4k/termdash/private/alignfor"
"github.com/mum4k/termdash/internal/area" "github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/draw" "github.com/mum4k/termdash/private/draw"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgetapi" "github.com/mum4k/termdash/widgetapi"
) )

View File

@ -20,11 +20,11 @@ import (
"github.com/kylelemons/godebug/pretty" "github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/canvas/testcanvas" "github.com/mum4k/termdash/private/canvas/testcanvas"
"github.com/mum4k/termdash/internal/draw" "github.com/mum4k/termdash/private/draw"
"github.com/mum4k/termdash/internal/draw/testdraw" "github.com/mum4k/termdash/private/draw/testdraw"
"github.com/mum4k/termdash/internal/faketerm" "github.com/mum4k/termdash/private/faketerm"
"github.com/mum4k/termdash/widgetapi" "github.com/mum4k/termdash/widgetapi"
) )

View File

@ -20,7 +20,7 @@ import (
"fmt" "fmt"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/draw" "github.com/mum4k/termdash/private/draw"
) )
// Option is used to provide options. // Option is used to provide options.

View File

@ -24,11 +24,11 @@ import (
"github.com/mum4k/termdash/align" "github.com/mum4k/termdash/align"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/alignfor"
"github.com/mum4k/termdash/internal/button"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/draw"
"github.com/mum4k/termdash/mouse" "github.com/mum4k/termdash/mouse"
"github.com/mum4k/termdash/private/alignfor"
"github.com/mum4k/termdash/private/button"
"github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/private/draw"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgetapi" "github.com/mum4k/termdash/widgetapi"
) )

View File

@ -23,13 +23,13 @@ import (
"github.com/kylelemons/godebug/pretty" "github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/canvas/testcanvas"
"github.com/mum4k/termdash/internal/draw"
"github.com/mum4k/termdash/internal/draw/testdraw"
"github.com/mum4k/termdash/internal/faketerm"
"github.com/mum4k/termdash/keyboard" "github.com/mum4k/termdash/keyboard"
"github.com/mum4k/termdash/mouse" "github.com/mum4k/termdash/mouse"
"github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/private/canvas/testcanvas"
"github.com/mum4k/termdash/private/draw"
"github.com/mum4k/termdash/private/draw/testdraw"
"github.com/mum4k/termdash/private/faketerm"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgetapi" "github.com/mum4k/termdash/widgetapi"
) )

View File

@ -21,8 +21,8 @@ import (
"time" "time"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/runewidth"
"github.com/mum4k/termdash/keyboard" "github.com/mum4k/termdash/keyboard"
"github.com/mum4k/termdash/private/runewidth"
"github.com/mum4k/termdash/widgetapi" "github.com/mum4k/termdash/widgetapi"
) )

View File

@ -20,7 +20,7 @@ import (
"image" "image"
"math" "math"
"github.com/mum4k/termdash/internal/canvas/braille" "github.com/mum4k/termdash/private/canvas/braille"
) )
// startEndAngles given progress indicators and the desired start angle and // startEndAngles given progress indicators and the desired start angle and

View File

@ -24,12 +24,12 @@ import (
"sync" "sync"
"github.com/mum4k/termdash/align" "github.com/mum4k/termdash/align"
"github.com/mum4k/termdash/internal/alignfor" "github.com/mum4k/termdash/private/alignfor"
"github.com/mum4k/termdash/internal/area" "github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/canvas/braille" "github.com/mum4k/termdash/private/canvas/braille"
"github.com/mum4k/termdash/internal/draw" "github.com/mum4k/termdash/private/draw"
"github.com/mum4k/termdash/internal/runewidth" "github.com/mum4k/termdash/private/runewidth"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgetapi" "github.com/mum4k/termdash/widgetapi"
) )

View File

@ -21,12 +21,12 @@ import (
"github.com/kylelemons/godebug/pretty" "github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/align" "github.com/mum4k/termdash/align"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/canvas" "github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/internal/canvas/braille/testbraille" "github.com/mum4k/termdash/private/canvas/braille/testbraille"
"github.com/mum4k/termdash/internal/canvas/testcanvas" "github.com/mum4k/termdash/private/canvas/testcanvas"
"github.com/mum4k/termdash/internal/draw" "github.com/mum4k/termdash/private/draw"
"github.com/mum4k/termdash/internal/draw/testdraw" "github.com/mum4k/termdash/private/draw/testdraw"
"github.com/mum4k/termdash/internal/faketerm" "github.com/mum4k/termdash/private/faketerm"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgetapi" "github.com/mum4k/termdash/widgetapi"
) )

View File

@ -23,12 +23,12 @@ import (
"sync" "sync"
"github.com/mum4k/termdash/cell" "github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/alignfor"
"github.com/mum4k/termdash/internal/area"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/draw"
"github.com/mum4k/termdash/internal/runewidth"
"github.com/mum4k/termdash/linestyle" "github.com/mum4k/termdash/linestyle"
"github.com/mum4k/termdash/private/alignfor"
"github.com/mum4k/termdash/private/area"
"github.com/mum4k/termdash/private/canvas"
"github.com/mum4k/termdash/private/draw"
"github.com/mum4k/termdash/private/runewidth"
"github.com/mum4k/termdash/terminal/terminalapi" "github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgetapi" "github.com/mum4k/termdash/widgetapi"
) )

Some files were not shown because too many files have changed in this diff Show More