mirror of https://github.com/mum4k/termdash.git
Modifying imports 'internal' -> 'private'.
This commit is contained in:
parent
254ca7d460
commit
06eb7623bd
|
@ -27,7 +27,7 @@ for more details.
|
|||
The public API surface is documented in the
|
||||
[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
|
||||
guaranteed and changes won't be backward compatible.
|
||||
|
||||
|
|
|
@ -27,10 +27,10 @@ import (
|
|||
"image"
|
||||
"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/private/alignfor"
|
||||
"github.com/mum4k/termdash/private/area"
|
||||
"github.com/mum4k/termdash/private/event"
|
||||
"github.com/mum4k/termdash/terminal/terminalapi"
|
||||
"github.com/mum4k/termdash/widgetapi"
|
||||
)
|
||||
|
|
|
@ -23,16 +23,16 @@ import (
|
|||
|
||||
"github.com/mum4k/termdash/align"
|
||||
"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/linestyle"
|
||||
"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/widgetapi"
|
||||
"github.com/mum4k/termdash/widgets/barchart"
|
||||
|
|
|
@ -22,9 +22,9 @@ import (
|
|||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/area"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/draw"
|
||||
"github.com/mum4k/termdash/private/area"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/draw"
|
||||
"github.com/mum4k/termdash/widgetapi"
|
||||
)
|
||||
|
||||
|
|
|
@ -20,12 +20,12 @@ import (
|
|||
|
||||
"github.com/mum4k/termdash/align"
|
||||
"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/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"
|
||||
)
|
||||
|
||||
|
|
|
@ -19,8 +19,8 @@ package container
|
|||
import (
|
||||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/internal/button"
|
||||
"github.com/mum4k/termdash/mouse"
|
||||
"github.com/mum4k/termdash/private/button"
|
||||
"github.com/mum4k/termdash/terminal/terminalapi"
|
||||
)
|
||||
|
||||
|
|
|
@ -21,11 +21,11 @@ import (
|
|||
"time"
|
||||
|
||||
"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/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"
|
||||
)
|
||||
|
||||
|
|
|
@ -23,13 +23,13 @@ import (
|
|||
"github.com/mum4k/termdash"
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"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/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/widgetapi"
|
||||
"github.com/mum4k/termdash/widgets/barchart"
|
||||
|
|
|
@ -23,8 +23,8 @@ import (
|
|||
|
||||
"github.com/mum4k/termdash/align"
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/area"
|
||||
"github.com/mum4k/termdash/linestyle"
|
||||
"github.com/mum4k/termdash/private/area"
|
||||
"github.com/mum4k/termdash/widgetapi"
|
||||
)
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
"github.com/mum4k/termdash/private/faketerm"
|
||||
)
|
||||
|
||||
func TestRoot(t *testing.T) {
|
||||
|
|
|
@ -21,8 +21,8 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/mum4k/termdash/align"
|
||||
"github.com/mum4k/termdash/internal/runewidth"
|
||||
"github.com/mum4k/termdash/internal/wrap"
|
||||
"github.com/mum4k/termdash/private/runewidth"
|
||||
"github.com/mum4k/termdash/private/wrap"
|
||||
)
|
||||
|
||||
// hAlign aligns the given area in the rectangle horizontally.
|
||||
|
|
|
@ -19,7 +19,7 @@ import (
|
|||
"fmt"
|
||||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/internal/numbers"
|
||||
"github.com/mum4k/termdash/private/numbers"
|
||||
)
|
||||
|
||||
// Size returns the size of the provided area.
|
||||
|
|
|
@ -46,7 +46,7 @@ import (
|
|||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/terminal/terminalapi"
|
||||
)
|
||||
|
||||
|
|
|
@ -20,10 +20,10 @@ import (
|
|||
|
||||
"github.com/kylelemons/godebug/pretty"
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/area"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
"github.com/mum4k/termdash/private/area"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/private/faketerm"
|
||||
)
|
||||
|
||||
func Example_copiedToCanvas() {
|
||||
|
|
|
@ -20,9 +20,9 @@ import (
|
|||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/braille"
|
||||
"github.com/mum4k/termdash/private/faketerm"
|
||||
)
|
||||
|
||||
// MustNew returns a new canvas or panics.
|
||||
|
|
|
@ -20,8 +20,8 @@ import (
|
|||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/area"
|
||||
"github.com/mum4k/termdash/internal/runewidth"
|
||||
"github.com/mum4k/termdash/private/area"
|
||||
"github.com/mum4k/termdash/private/runewidth"
|
||||
)
|
||||
|
||||
// NewCells breaks the provided text into cells and applies the options.
|
||||
|
|
|
@ -20,9 +20,9 @@ import (
|
|||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/area"
|
||||
"github.com/mum4k/termdash/internal/canvas/buffer"
|
||||
"github.com/mum4k/termdash/internal/runewidth"
|
||||
"github.com/mum4k/termdash/private/area"
|
||||
"github.com/mum4k/termdash/private/canvas/buffer"
|
||||
"github.com/mum4k/termdash/private/runewidth"
|
||||
"github.com/mum4k/termdash/terminal/terminalapi"
|
||||
)
|
||||
|
||||
|
|
|
@ -20,9 +20,9 @@ import (
|
|||
|
||||
"github.com/kylelemons/godebug/pretty"
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/area"
|
||||
"github.com/mum4k/termdash/internal/canvas/buffer"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
"github.com/mum4k/termdash/private/area"
|
||||
"github.com/mum4k/termdash/private/canvas/buffer"
|
||||
"github.com/mum4k/termdash/private/faketerm"
|
||||
)
|
||||
|
||||
func TestNew(t *testing.T) {
|
||||
|
|
|
@ -20,9 +20,9 @@ import (
|
|||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/buffer"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/buffer"
|
||||
"github.com/mum4k/termdash/private/faketerm"
|
||||
)
|
||||
|
||||
// MustNew returns a new canvas or panics.
|
||||
|
|
|
@ -22,9 +22,9 @@ import (
|
|||
|
||||
"github.com/mum4k/termdash/align"
|
||||
"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/private/alignfor"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
)
|
||||
|
||||
// BorderOption is used to provide options to Border().
|
||||
|
|
|
@ -20,10 +20,10 @@ import (
|
|||
|
||||
"github.com/mum4k/termdash/align"
|
||||
"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/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/private/faketerm"
|
||||
)
|
||||
|
||||
func TestBorder(t *testing.T) {
|
||||
|
|
|
@ -21,8 +21,8 @@ import (
|
|||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/internal/numbers/trig"
|
||||
"github.com/mum4k/termdash/private/canvas/braille"
|
||||
"github.com/mum4k/termdash/private/numbers/trig"
|
||||
)
|
||||
|
||||
// BrailleCircleOption is used to provide options to BrailleCircle.
|
||||
|
|
|
@ -19,10 +19,10 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/area"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille/testbraille"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
"github.com/mum4k/termdash/private/area"
|
||||
"github.com/mum4k/termdash/private/canvas/braille"
|
||||
"github.com/mum4k/termdash/private/canvas/braille/testbraille"
|
||||
"github.com/mum4k/termdash/private/faketerm"
|
||||
)
|
||||
|
||||
// mustBrailleLine draws the braille line or panics.
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"image"
|
||||
|
||||
"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.
|
||||
|
|
|
@ -19,10 +19,10 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/area"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille/testbraille"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
"github.com/mum4k/termdash/private/area"
|
||||
"github.com/mum4k/termdash/private/canvas/braille"
|
||||
"github.com/mum4k/termdash/private/canvas/braille/testbraille"
|
||||
"github.com/mum4k/termdash/private/faketerm"
|
||||
)
|
||||
|
||||
func TestBrailleFill(t *testing.T) {
|
||||
|
|
|
@ -21,8 +21,8 @@ import (
|
|||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/internal/numbers"
|
||||
"github.com/mum4k/termdash/private/canvas/braille"
|
||||
"github.com/mum4k/termdash/private/numbers"
|
||||
)
|
||||
|
||||
// braillePixelChange represents an action on a pixel on the braille canvas.
|
||||
|
|
|
@ -19,10 +19,10 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/area"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille/testbraille"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
"github.com/mum4k/termdash/private/area"
|
||||
"github.com/mum4k/termdash/private/canvas/braille"
|
||||
"github.com/mum4k/termdash/private/canvas/braille/testbraille"
|
||||
"github.com/mum4k/termdash/private/faketerm"
|
||||
)
|
||||
|
||||
func TestBrailleLine(t *testing.T) {
|
||||
|
|
|
@ -21,8 +21,8 @@ import (
|
|||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/linestyle"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
)
|
||||
|
||||
// HVLineOption is used to provide options to HVLine().
|
||||
|
|
|
@ -20,8 +20,8 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/kylelemons/godebug/pretty"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/linestyle"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
)
|
||||
|
||||
func TestMultiEdgeNodes(t *testing.T) {
|
||||
|
|
|
@ -19,10 +19,10 @@ import (
|
|||
"testing"
|
||||
|
||||
"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/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/private/faketerm"
|
||||
)
|
||||
|
||||
func TestHVLines(t *testing.T) {
|
||||
|
|
|
@ -17,8 +17,8 @@ package draw
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/mum4k/termdash/internal/runewidth"
|
||||
"github.com/mum4k/termdash/linestyle"
|
||||
"github.com/mum4k/termdash/private/runewidth"
|
||||
)
|
||||
|
||||
// line_style.go contains the Unicode characters used for drawing lines of
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"image"
|
||||
|
||||
"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.
|
||||
|
|
|
@ -19,9 +19,9 @@ import (
|
|||
"testing"
|
||||
|
||||
"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/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/private/faketerm"
|
||||
)
|
||||
|
||||
func TestRectangle(t *testing.T) {
|
||||
|
|
|
@ -19,9 +19,9 @@ import (
|
|||
"fmt"
|
||||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/internal/draw"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/braille"
|
||||
"github.com/mum4k/termdash/private/draw"
|
||||
)
|
||||
|
||||
// MustBorder draws border on the canvas or panics.
|
||||
|
|
|
@ -22,8 +22,8 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/runewidth"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/runewidth"
|
||||
)
|
||||
|
||||
// OverrunMode represents
|
||||
|
|
|
@ -19,9 +19,9 @@ import (
|
|||
"testing"
|
||||
|
||||
"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/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/private/faketerm"
|
||||
)
|
||||
|
||||
func TestTrimText(t *testing.T) {
|
||||
|
|
|
@ -22,7 +22,7 @@ import (
|
|||
"image"
|
||||
|
||||
"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().
|
||||
|
|
|
@ -19,9 +19,9 @@ import (
|
|||
"testing"
|
||||
|
||||
"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/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/private/faketerm"
|
||||
)
|
||||
|
||||
func TestVerticalText(t *testing.T) {
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"reflect"
|
||||
"sync"
|
||||
|
||||
"github.com/mum4k/termdash/internal/event/eventqueue"
|
||||
"github.com/mum4k/termdash/private/event/eventqueue"
|
||||
"github.com/mum4k/termdash/terminal/terminalapi"
|
||||
)
|
||||
|
||||
|
|
|
@ -23,8 +23,8 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/kylelemons/godebug/pretty"
|
||||
"github.com/mum4k/termdash/internal/event/testevent"
|
||||
"github.com/mum4k/termdash/keyboard"
|
||||
"github.com/mum4k/termdash/private/event/testevent"
|
||||
"github.com/mum4k/termdash/terminal/terminalapi"
|
||||
)
|
||||
|
||||
|
|
|
@ -24,8 +24,8 @@ import (
|
|||
"sync"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/canvas/buffer"
|
||||
"github.com/mum4k/termdash/internal/event/eventqueue"
|
||||
"github.com/mum4k/termdash/private/canvas/buffer"
|
||||
"github.com/mum4k/termdash/private/event/eventqueue"
|
||||
"github.com/mum4k/termdash/terminal/terminalapi"
|
||||
)
|
||||
|
||||
|
|
|
@ -21,11 +21,11 @@ import (
|
|||
"image"
|
||||
"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/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/widgetapi"
|
||||
)
|
||||
|
|
|
@ -19,12 +19,12 @@ import (
|
|||
"testing"
|
||||
|
||||
"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/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/widgetapi"
|
||||
)
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"math"
|
||||
"sort"
|
||||
|
||||
"github.com/mum4k/termdash/internal/numbers"
|
||||
"github.com/mum4k/termdash/private/numbers"
|
||||
)
|
||||
|
||||
// CirclePointAtAngle given an angle in degrees and a circle midpoint and
|
||||
|
|
|
@ -23,10 +23,10 @@ import (
|
|||
"math"
|
||||
|
||||
"github.com/mum4k/termdash/align"
|
||||
"github.com/mum4k/termdash/internal/alignfor"
|
||||
"github.com/mum4k/termdash/internal/area"
|
||||
"github.com/mum4k/termdash/internal/segdisp"
|
||||
"github.com/mum4k/termdash/internal/segdisp/sixteen"
|
||||
"github.com/mum4k/termdash/private/alignfor"
|
||||
"github.com/mum4k/termdash/private/area"
|
||||
"github.com/mum4k/termdash/private/segdisp"
|
||||
"github.com/mum4k/termdash/private/segdisp/sixteen"
|
||||
)
|
||||
|
||||
// attributes contains attributes needed to draw the segment display.
|
||||
|
|
|
@ -42,9 +42,9 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/segdisp"
|
||||
"github.com/mum4k/termdash/internal/segdisp/segment"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/segdisp"
|
||||
"github.com/mum4k/termdash/private/segdisp/segment"
|
||||
)
|
||||
|
||||
// Segment represents a single segment in the display.
|
||||
|
|
|
@ -21,14 +21,14 @@ import (
|
|||
|
||||
"github.com/kylelemons/godebug/pretty"
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/area"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille/testbraille"
|
||||
"github.com/mum4k/termdash/internal/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/segdisp"
|
||||
"github.com/mum4k/termdash/internal/segdisp/segment"
|
||||
"github.com/mum4k/termdash/internal/segdisp/segment/testsegment"
|
||||
"github.com/mum4k/termdash/private/area"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/braille/testbraille"
|
||||
"github.com/mum4k/termdash/private/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/private/faketerm"
|
||||
"github.com/mum4k/termdash/private/segdisp"
|
||||
"github.com/mum4k/termdash/private/segdisp/segment"
|
||||
"github.com/mum4k/termdash/private/segdisp/segment/testsegment"
|
||||
)
|
||||
|
||||
func TestSegmentString(t *testing.T) {
|
||||
|
|
|
@ -18,8 +18,8 @@ package testdotseg
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/segdisp/dotseg"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/segdisp/dotseg"
|
||||
)
|
||||
|
||||
// MustSetCharacter sets the character on the display or panics.
|
||||
|
|
|
@ -20,9 +20,9 @@ import (
|
|||
"image"
|
||||
"math"
|
||||
|
||||
"github.com/mum4k/termdash/internal/area"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/private/area"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/braille"
|
||||
)
|
||||
|
||||
// Minimum valid size of a cell canvas in order to draw a segment display.
|
||||
|
|
|
@ -19,9 +19,9 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/kylelemons/godebug/pretty"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille/testbraille"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/braille"
|
||||
"github.com/mum4k/termdash/private/canvas/braille/testbraille"
|
||||
)
|
||||
|
||||
func TestRequired(t *testing.T) {
|
||||
|
|
|
@ -20,8 +20,8 @@ import (
|
|||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/internal/draw"
|
||||
"github.com/mum4k/termdash/private/canvas/braille"
|
||||
"github.com/mum4k/termdash/private/draw"
|
||||
)
|
||||
|
||||
// Type identifies the type of the segment that is drawn.
|
||||
|
|
|
@ -20,12 +20,12 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/area"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille/testbraille"
|
||||
"github.com/mum4k/termdash/internal/draw"
|
||||
"github.com/mum4k/termdash/internal/draw/testdraw"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
"github.com/mum4k/termdash/private/area"
|
||||
"github.com/mum4k/termdash/private/canvas/braille"
|
||||
"github.com/mum4k/termdash/private/canvas/braille/testbraille"
|
||||
"github.com/mum4k/termdash/private/draw"
|
||||
"github.com/mum4k/termdash/private/draw/testdraw"
|
||||
"github.com/mum4k/termdash/private/faketerm"
|
||||
)
|
||||
|
||||
func TestHV(t *testing.T) {
|
||||
|
|
|
@ -19,8 +19,8 @@ import (
|
|||
"fmt"
|
||||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/internal/segdisp/segment"
|
||||
"github.com/mum4k/termdash/private/canvas/braille"
|
||||
"github.com/mum4k/termdash/private/segdisp/segment"
|
||||
)
|
||||
|
||||
// MustHV draws the segment or panics.
|
||||
|
|
|
@ -22,9 +22,9 @@ import (
|
|||
"image"
|
||||
"math"
|
||||
|
||||
"github.com/mum4k/termdash/internal/numbers"
|
||||
"github.com/mum4k/termdash/internal/segdisp"
|
||||
"github.com/mum4k/termdash/internal/segdisp/segment"
|
||||
"github.com/mum4k/termdash/private/numbers"
|
||||
"github.com/mum4k/termdash/private/segdisp"
|
||||
"github.com/mum4k/termdash/private/segdisp/segment"
|
||||
)
|
||||
|
||||
// hvSegType maps horizontal and vertical segments to their type.
|
||||
|
|
|
@ -44,9 +44,9 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/segdisp"
|
||||
"github.com/mum4k/termdash/internal/segdisp/segment"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/segdisp"
|
||||
"github.com/mum4k/termdash/private/segdisp/segment"
|
||||
)
|
||||
|
||||
// Segment represents a single segment in the display.
|
||||
|
|
|
@ -21,14 +21,14 @@ import (
|
|||
|
||||
"github.com/kylelemons/godebug/pretty"
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/area"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille/testbraille"
|
||||
"github.com/mum4k/termdash/internal/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/segdisp"
|
||||
"github.com/mum4k/termdash/internal/segdisp/segment"
|
||||
"github.com/mum4k/termdash/internal/segdisp/segment/testsegment"
|
||||
"github.com/mum4k/termdash/private/area"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/braille/testbraille"
|
||||
"github.com/mum4k/termdash/private/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/private/faketerm"
|
||||
"github.com/mum4k/termdash/private/segdisp"
|
||||
"github.com/mum4k/termdash/private/segdisp/segment"
|
||||
"github.com/mum4k/termdash/private/segdisp/segment/testsegment"
|
||||
)
|
||||
|
||||
func TestDraw(t *testing.T) {
|
||||
|
|
|
@ -18,8 +18,8 @@ package testsixteen
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/segdisp/sixteen"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/segdisp/sixteen"
|
||||
)
|
||||
|
||||
// MustSetCharacter sets the character on the display or panics.
|
||||
|
|
|
@ -21,8 +21,8 @@ import (
|
|||
"strings"
|
||||
"unicode"
|
||||
|
||||
"github.com/mum4k/termdash/internal/canvas/buffer"
|
||||
"github.com/mum4k/termdash/internal/runewidth"
|
||||
"github.com/mum4k/termdash/private/canvas/buffer"
|
||||
"github.com/mum4k/termdash/private/runewidth"
|
||||
)
|
||||
|
||||
// Mode sets the wrapping mode.
|
||||
|
|
|
@ -22,7 +22,7 @@ import (
|
|||
|
||||
"github.com/kylelemons/godebug/pretty"
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/canvas/buffer"
|
||||
"github.com/mum4k/termdash/private/canvas/buffer"
|
||||
)
|
||||
|
||||
func TestValidTextAndCells(t *testing.T) {
|
||||
|
|
|
@ -31,7 +31,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/mum4k/termdash/container"
|
||||
"github.com/mum4k/termdash/internal/event"
|
||||
"github.com/mum4k/termdash/private/event"
|
||||
"github.com/mum4k/termdash/terminal/terminalapi"
|
||||
)
|
||||
|
||||
|
|
|
@ -24,14 +24,14 @@ import (
|
|||
|
||||
"github.com/kylelemons/godebug/pretty"
|
||||
"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/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/terminalapi"
|
||||
"github.com/mum4k/termdash/widgetapi"
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"github.com/gdamore/tcell"
|
||||
"github.com/gdamore/tcell/encoding"
|
||||
"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"
|
||||
)
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ import (
|
|||
"image"
|
||||
|
||||
"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"
|
||||
tbx "github.com/nsf/termbox-go"
|
||||
)
|
||||
|
|
|
@ -18,7 +18,7 @@ package widgetapi
|
|||
import (
|
||||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/terminal/terminalapi"
|
||||
)
|
||||
|
||||
|
|
|
@ -25,10 +25,10 @@ import (
|
|||
|
||||
"github.com/mum4k/termdash/align"
|
||||
"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/private/alignfor"
|
||||
"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/widgetapi"
|
||||
)
|
||||
|
|
|
@ -20,11 +20,11 @@ import (
|
|||
|
||||
"github.com/kylelemons/godebug/pretty"
|
||||
"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/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/widgetapi"
|
||||
)
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ import (
|
|||
"fmt"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/draw"
|
||||
"github.com/mum4k/termdash/private/draw"
|
||||
)
|
||||
|
||||
// Option is used to provide options.
|
||||
|
|
|
@ -24,11 +24,11 @@ import (
|
|||
|
||||
"github.com/mum4k/termdash/align"
|
||||
"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/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/widgetapi"
|
||||
)
|
||||
|
|
|
@ -23,13 +23,13 @@ import (
|
|||
|
||||
"github.com/kylelemons/godebug/pretty"
|
||||
"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/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/widgetapi"
|
||||
)
|
||||
|
|
|
@ -21,8 +21,8 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/runewidth"
|
||||
"github.com/mum4k/termdash/keyboard"
|
||||
"github.com/mum4k/termdash/private/runewidth"
|
||||
"github.com/mum4k/termdash/widgetapi"
|
||||
)
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ import (
|
|||
"image"
|
||||
"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
|
||||
|
|
|
@ -24,12 +24,12 @@ import (
|
|||
"sync"
|
||||
|
||||
"github.com/mum4k/termdash/align"
|
||||
"github.com/mum4k/termdash/internal/alignfor"
|
||||
"github.com/mum4k/termdash/internal/area"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/internal/draw"
|
||||
"github.com/mum4k/termdash/internal/runewidth"
|
||||
"github.com/mum4k/termdash/private/alignfor"
|
||||
"github.com/mum4k/termdash/private/area"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/braille"
|
||||
"github.com/mum4k/termdash/private/draw"
|
||||
"github.com/mum4k/termdash/private/runewidth"
|
||||
"github.com/mum4k/termdash/terminal/terminalapi"
|
||||
"github.com/mum4k/termdash/widgetapi"
|
||||
)
|
||||
|
|
|
@ -21,12 +21,12 @@ import (
|
|||
"github.com/kylelemons/godebug/pretty"
|
||||
"github.com/mum4k/termdash/align"
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille/testbraille"
|
||||
"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/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/braille/testbraille"
|
||||
"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/widgetapi"
|
||||
)
|
||||
|
|
|
@ -23,12 +23,12 @@ import (
|
|||
"sync"
|
||||
|
||||
"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/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/widgetapi"
|
||||
)
|
||||
|
|
|
@ -22,12 +22,12 @@ import (
|
|||
"github.com/kylelemons/godebug/pretty"
|
||||
"github.com/mum4k/termdash/align"
|
||||
"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/linestyle"
|
||||
"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/widgetapi"
|
||||
)
|
||||
|
|
|
@ -21,8 +21,8 @@ import (
|
|||
|
||||
"github.com/mum4k/termdash/align"
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/draw"
|
||||
"github.com/mum4k/termdash/linestyle"
|
||||
"github.com/mum4k/termdash/private/draw"
|
||||
)
|
||||
|
||||
// Option is used to provide options.
|
||||
|
|
|
@ -19,7 +19,7 @@ import (
|
|||
"fmt"
|
||||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/internal/runewidth"
|
||||
"github.com/mum4k/termdash/private/runewidth"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/align"
|
||||
"github.com/mum4k/termdash/internal/alignfor"
|
||||
"github.com/mum4k/termdash/private/alignfor"
|
||||
)
|
||||
|
||||
// LabelOrientation represents the orientation of text labels.
|
||||
|
|
|
@ -20,7 +20,7 @@ import (
|
|||
"fmt"
|
||||
"math"
|
||||
|
||||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/private/canvas/braille"
|
||||
)
|
||||
|
||||
// YScaleMode determines whether the Y scale is anchored to the zero value.
|
||||
|
|
|
@ -20,7 +20,7 @@ import (
|
|||
"fmt"
|
||||
"math"
|
||||
|
||||
"github.com/mum4k/termdash/internal/numbers"
|
||||
"github.com/mum4k/termdash/private/numbers"
|
||||
)
|
||||
|
||||
// ValueOption is used to provide options to the NewValue function.
|
||||
|
|
|
@ -20,9 +20,9 @@ import (
|
|||
"image"
|
||||
"reflect"
|
||||
|
||||
"github.com/mum4k/termdash/internal/button"
|
||||
"github.com/mum4k/termdash/internal/numbers"
|
||||
"github.com/mum4k/termdash/mouse"
|
||||
"github.com/mum4k/termdash/private/button"
|
||||
"github.com/mum4k/termdash/private/numbers"
|
||||
"github.com/mum4k/termdash/terminal/terminalapi"
|
||||
"github.com/mum4k/termdash/widgets/linechart/internal/axes"
|
||||
)
|
||||
|
|
|
@ -24,11 +24,11 @@ import (
|
|||
"sync"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/area"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/internal/draw"
|
||||
"github.com/mum4k/termdash/internal/numbers"
|
||||
"github.com/mum4k/termdash/private/area"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/braille"
|
||||
"github.com/mum4k/termdash/private/draw"
|
||||
"github.com/mum4k/termdash/private/numbers"
|
||||
"github.com/mum4k/termdash/terminal/terminalapi"
|
||||
"github.com/mum4k/termdash/widgetapi"
|
||||
"github.com/mum4k/termdash/widgets/linechart/internal/axes"
|
||||
|
|
|
@ -22,13 +22,13 @@ import (
|
|||
|
||||
"github.com/kylelemons/godebug/pretty"
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille/testbraille"
|
||||
"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/mouse"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/braille/testbraille"
|
||||
"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/widgetapi"
|
||||
)
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"fmt"
|
||||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/internal/segdisp"
|
||||
"github.com/mum4k/termdash/private/segdisp"
|
||||
)
|
||||
|
||||
// segArea contains information about the area that will contain the segments.
|
||||
|
|
|
@ -23,12 +23,12 @@ import (
|
|||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/mum4k/termdash/internal/alignfor"
|
||||
"github.com/mum4k/termdash/internal/attrrange"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/segdisp"
|
||||
"github.com/mum4k/termdash/internal/segdisp/dotseg"
|
||||
"github.com/mum4k/termdash/internal/segdisp/sixteen"
|
||||
"github.com/mum4k/termdash/private/alignfor"
|
||||
"github.com/mum4k/termdash/private/attrrange"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/segdisp"
|
||||
"github.com/mum4k/termdash/private/segdisp/dotseg"
|
||||
"github.com/mum4k/termdash/private/segdisp/sixteen"
|
||||
"github.com/mum4k/termdash/terminal/terminalapi"
|
||||
"github.com/mum4k/termdash/widgetapi"
|
||||
)
|
||||
|
|
|
@ -21,14 +21,14 @@ import (
|
|||
"github.com/kylelemons/godebug/pretty"
|
||||
"github.com/mum4k/termdash/align"
|
||||
"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/internal/segdisp"
|
||||
"github.com/mum4k/termdash/internal/segdisp/dotseg"
|
||||
"github.com/mum4k/termdash/internal/segdisp/dotseg/testdotseg"
|
||||
"github.com/mum4k/termdash/internal/segdisp/sixteen"
|
||||
"github.com/mum4k/termdash/internal/segdisp/sixteen/testsixteen"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/private/faketerm"
|
||||
"github.com/mum4k/termdash/private/segdisp"
|
||||
"github.com/mum4k/termdash/private/segdisp/dotseg"
|
||||
"github.com/mum4k/termdash/private/segdisp/dotseg/testdotseg"
|
||||
"github.com/mum4k/termdash/private/segdisp/sixteen"
|
||||
"github.com/mum4k/termdash/private/segdisp/sixteen/testsixteen"
|
||||
"github.com/mum4k/termdash/terminal/terminalapi"
|
||||
"github.com/mum4k/termdash/widgetapi"
|
||||
)
|
||||
|
|
|
@ -22,9 +22,9 @@ import (
|
|||
"sync"
|
||||
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/area"
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/draw"
|
||||
"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/widgetapi"
|
||||
)
|
||||
|
|
|
@ -20,11 +20,11 @@ import (
|
|||
|
||||
"github.com/kylelemons/godebug/pretty"
|
||||
"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/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/widgetapi"
|
||||
)
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"fmt"
|
||||
"math"
|
||||
|
||||
"github.com/mum4k/termdash/internal/runewidth"
|
||||
"github.com/mum4k/termdash/private/runewidth"
|
||||
)
|
||||
|
||||
// sparks are the characters used to draw the SparkLine.
|
||||
|
|
|
@ -18,9 +18,9 @@ import (
|
|||
"fmt"
|
||||
"image"
|
||||
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/runewidth"
|
||||
"github.com/mum4k/termdash/internal/wrap"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/runewidth"
|
||||
"github.com/mum4k/termdash/private/wrap"
|
||||
)
|
||||
|
||||
// line_trim.go contains code that trims lines that are too long.
|
||||
|
|
|
@ -19,11 +19,11 @@ import (
|
|||
"testing"
|
||||
|
||||
"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/internal/wrap"
|
||||
"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/private/wrap"
|
||||
)
|
||||
|
||||
func TestLineTrim(t *testing.T) {
|
||||
|
|
|
@ -17,9 +17,9 @@ package text
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/mum4k/termdash/internal/wrap"
|
||||
"github.com/mum4k/termdash/keyboard"
|
||||
"github.com/mum4k/termdash/mouse"
|
||||
"github.com/mum4k/termdash/private/wrap"
|
||||
)
|
||||
|
||||
// options.go contains configurable options for Text.
|
||||
|
|
|
@ -20,9 +20,9 @@ import (
|
|||
"image"
|
||||
"sync"
|
||||
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/buffer"
|
||||
"github.com/mum4k/termdash/internal/wrap"
|
||||
"github.com/mum4k/termdash/private/canvas"
|
||||
"github.com/mum4k/termdash/private/canvas/buffer"
|
||||
"github.com/mum4k/termdash/private/wrap"
|
||||
"github.com/mum4k/termdash/terminal/terminalapi"
|
||||
"github.com/mum4k/termdash/widgetapi"
|
||||
)
|
||||
|
|
|
@ -20,13 +20,13 @@ import (
|
|||
|
||||
"github.com/kylelemons/godebug/pretty"
|
||||
"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/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/widgetapi"
|
||||
)
|
||||
|
|
|
@ -20,8 +20,8 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/mum4k/termdash/internal/numbers"
|
||||
"github.com/mum4k/termdash/internal/runewidth"
|
||||
"github.com/mum4k/termdash/private/numbers"
|
||||
"github.com/mum4k/termdash/private/runewidth"
|
||||
)
|
||||
|
||||
// fieldData are the data currently present inside the text input field.
|
||||
|
|
|
@ -21,9 +21,9 @@ import (
|
|||
|
||||
"github.com/mum4k/termdash/align"
|
||||
"github.com/mum4k/termdash/cell"
|
||||
"github.com/mum4k/termdash/internal/runewidth"
|
||||
"github.com/mum4k/termdash/internal/wrap"
|
||||
"github.com/mum4k/termdash/linestyle"
|
||||
"github.com/mum4k/termdash/private/runewidth"
|
||||
"github.com/mum4k/termdash/private/wrap"
|
||||
)
|
||||
|
||||
// Option is used to provide options.
|
||||
|
|
|
@ -22,15 +22,15 @@ import (
|
|||
|
||||
"github.com/mum4k/termdash/align"
|
||||
"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/internal/wrap"
|
||||
"github.com/mum4k/termdash/keyboard"
|
||||
"github.com/mum4k/termdash/linestyle"
|
||||
"github.com/mum4k/termdash/mouse"
|
||||
"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/private/wrap"
|
||||
"github.com/mum4k/termdash/terminal/terminalapi"
|
||||
"github.com/mum4k/termdash/widgetapi"
|
||||
)
|
||||
|
|
|
@ -23,14 +23,14 @@ import (
|
|||
"github.com/kylelemons/godebug/pretty"
|
||||
"github.com/mum4k/termdash/align"
|
||||
"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/linestyle"
|
||||
"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/widgetapi"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue