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

Moving runewidth, segdisp and testdraw to internal.

This commit is contained in:
Jakub Sobon 2019-02-24 01:27:17 -05:00
parent bf61ca1479
commit b74f46509b
No known key found for this signature in database
GPG Key ID: F2451A77FB05D3B7
77 changed files with 80 additions and 80 deletions

View File

@ -20,7 +20,7 @@ import (
"image"
"strings"
"github.com/mum4k/termdash/cell/runewidth"
"github.com/mum4k/termdash/internal/runewidth"
)
// Horizontal indicates the type of horizontal alignment.

View File

@ -23,8 +23,8 @@ import (
"fmt"
"image"
"github.com/mum4k/termdash/cell/runewidth"
"github.com/mum4k/termdash/internal/area"
"github.com/mum4k/termdash/internal/runewidth"
)
// Option is used to provide options for cells on a 2-D terminal.

View File

@ -31,7 +31,7 @@ import (
"github.com/mum4k/termdash/internal/area"
"github.com/mum4k/termdash/internal/event"
"github.com/mum4k/termdash/internal/widgetapi"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// Container wraps either sub containers or widgets and positions them on the

View File

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

View File

@ -21,9 +21,9 @@ import (
"github.com/mum4k/termdash/align"
"github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/draw"
"github.com/mum4k/termdash/draw/testdraw"
"github.com/mum4k/termdash/internal/canvas/testcanvas"
"github.com/mum4k/termdash/internal/faketerm"
"github.com/mum4k/termdash/internal/testdraw"
"github.com/mum4k/termdash/internal/widgetapi"
"github.com/mum4k/termdash/widgets/fakewidget"
)

View File

@ -21,7 +21,7 @@ import (
"github.com/mum4k/termdash/internal/mouse"
"github.com/mum4k/termdash/internal/mouse/button"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// pointCont finds the top-most (on the screen) container whose area contains

View File

@ -26,7 +26,7 @@ import (
"github.com/mum4k/termdash/internal/event/testevent"
"github.com/mum4k/termdash/internal/faketerm"
"github.com/mum4k/termdash/internal/mouse"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// pointCase is a test case for the pointCont function.

View File

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

View File

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

View File

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

View File

@ -20,9 +20,9 @@ import (
"image"
"github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/cell/runewidth"
"github.com/mum4k/termdash/internal/area"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/internal/runewidth"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// Canvas is where a widget draws its output for display on the terminal.

View File

@ -22,7 +22,7 @@ import (
"sync"
"github.com/mum4k/termdash/internal/event/eventqueue"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// Callback is a function provided by an event subscriber.

View File

@ -25,7 +25,7 @@ import (
"github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/internal/event/testevent"
"github.com/mum4k/termdash/internal/keyboard"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// receiverMode defines how the receiver behaves.

View File

@ -21,7 +21,7 @@ import (
"sync"
"time"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// node is a single data item on the queue.

View File

@ -20,7 +20,7 @@ import (
"time"
"github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
func TestQueue(t *testing.T) {

View File

@ -25,7 +25,7 @@ import (
"github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/internal/event/eventqueue"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// Option is used to provide options.

View File

@ -19,7 +19,7 @@ import (
"image"
"github.com/mum4k/termdash/internal/mouse"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// State represents the state of the mouse button.

View File

@ -20,7 +20,7 @@ import (
"testing"
"github.com/mum4k/termdash/internal/mouse"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// eventTestCase is one mouse event and the output expectation.

View File

@ -21,11 +21,11 @@ import (
"github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/draw"
"github.com/mum4k/termdash/draw/testdraw"
"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/internal/testdraw"
)
func TestHV(t *testing.T) {

View File

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

View File

@ -22,8 +22,8 @@ import (
"image"
"math"
"github.com/mum4k/termdash/draw/segdisp/segment"
"github.com/mum4k/termdash/internal/numbers"
"github.com/mum4k/termdash/internal/segdisp/segment"
)
// 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

@ -46,10 +46,10 @@ import (
"math"
"github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/draw/segdisp/segment"
"github.com/mum4k/termdash/internal/area"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/canvas/braille"
"github.com/mum4k/termdash/internal/segdisp/segment"
)
// Segment represents a single segment in the display.

View File

@ -21,13 +21,13 @@ import (
"github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/draw/segdisp/segment"
"github.com/mum4k/termdash/draw/segdisp/segment/testsegment"
"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/segment"
"github.com/mum4k/termdash/internal/segdisp/segment/testsegment"
)
func TestDraw(t *testing.T) {

View File

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

View File

@ -19,7 +19,7 @@ import (
"image"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// KeyScope indicates the scope at which the widget wants to receive keyboard

View File

@ -32,7 +32,7 @@ import (
"github.com/mum4k/termdash/container"
"github.com/mum4k/termdash/internal/event"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// DefaultRedrawInterval is the default for the RedrawInterval option.

View File

@ -33,7 +33,7 @@ import (
"github.com/mum4k/termdash/internal/mouse"
"github.com/mum4k/termdash/internal/widgetapi"
"github.com/mum4k/termdash/terminal/termbox"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgets/barchart"
"github.com/mum4k/termdash/widgets/fakewidget"
"github.com/mum4k/termdash/widgets/gauge"

View File

@ -30,7 +30,7 @@ import (
"github.com/mum4k/termdash/container"
"github.com/mum4k/termdash/draw"
"github.com/mum4k/termdash/terminal/termbox"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgets/barchart"
"github.com/mum4k/termdash/widgets/button"
"github.com/mum4k/termdash/widgets/donut"

View File

@ -17,7 +17,7 @@ package termbox
import (
"fmt"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
tbx "github.com/nsf/termbox-go"
)

View File

@ -21,7 +21,7 @@ import (
"github.com/mum4k/termdash/internal/keyboard"
"github.com/mum4k/termdash/internal/mouse"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
tbx "github.com/nsf/termbox-go"
)

View File

@ -23,7 +23,7 @@ import (
"github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/internal/keyboard"
"github.com/mum4k/termdash/internal/mouse"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
tbx "github.com/nsf/termbox-go"
)

View File

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

View File

@ -18,7 +18,7 @@ import (
"testing"
"github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
func TestNewTerminal(t *testing.T) {

View File

@ -28,7 +28,7 @@ import (
"github.com/mum4k/termdash/internal/area"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/widgetapi"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// BarChart displays multiple bars showing relative ratios of values.

View File

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

View File

@ -26,7 +26,7 @@ import (
"github.com/mum4k/termdash/container"
"github.com/mum4k/termdash/draw"
"github.com/mum4k/termdash/terminal/termbox"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgets/barchart"
)

View File

@ -29,7 +29,7 @@ import (
"github.com/mum4k/termdash/internal/mouse"
"github.com/mum4k/termdash/internal/mouse/button"
"github.com/mum4k/termdash/internal/widgetapi"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// CallbackFn is the function called when the button is pressed.

View File

@ -24,14 +24,14 @@ import (
"github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/draw"
"github.com/mum4k/termdash/draw/testdraw"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/canvas/testcanvas"
"github.com/mum4k/termdash/internal/faketerm"
"github.com/mum4k/termdash/internal/keyboard"
"github.com/mum4k/termdash/internal/mouse"
"github.com/mum4k/termdash/internal/testdraw"
"github.com/mum4k/termdash/internal/widgetapi"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// callbackTracker tracks whether callback was called.

View File

@ -26,7 +26,7 @@ import (
"github.com/mum4k/termdash/container"
"github.com/mum4k/termdash/draw"
"github.com/mum4k/termdash/terminal/termbox"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgets/button"
"github.com/mum4k/termdash/widgets/segmentdisplay"
)

View File

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

View File

@ -23,13 +23,13 @@ import (
"sync"
"github.com/mum4k/termdash/align"
"github.com/mum4k/termdash/cell/runewidth"
"github.com/mum4k/termdash/draw"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/canvas/braille"
"github.com/mum4k/termdash/internal/numbers"
"github.com/mum4k/termdash/internal/runewidth"
"github.com/mum4k/termdash/internal/widgetapi"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// progressType indicates how was the current progress provided by the caller.

View File

@ -21,13 +21,13 @@ import (
"github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/draw"
"github.com/mum4k/termdash/draw/testdraw"
"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/testdraw"
"github.com/mum4k/termdash/internal/widgetapi"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
func TestDonut(t *testing.T) {

View File

@ -25,7 +25,7 @@ import (
"github.com/mum4k/termdash/container"
"github.com/mum4k/termdash/draw"
"github.com/mum4k/termdash/terminal/termbox"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgets/donut"
)

View File

@ -27,7 +27,7 @@ import (
"github.com/mum4k/termdash/internal/keyboard"
"github.com/mum4k/termdash/internal/mouse"
"github.com/mum4k/termdash/internal/widgetapi"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// outputLines are the number of lines written by this plugin.

View File

@ -19,14 +19,14 @@ import (
"testing"
"github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/draw/testdraw"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/canvas/testcanvas"
"github.com/mum4k/termdash/internal/faketerm"
"github.com/mum4k/termdash/internal/keyboard"
"github.com/mum4k/termdash/internal/mouse"
"github.com/mum4k/termdash/internal/testdraw"
"github.com/mum4k/termdash/internal/widgetapi"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// keyEvents are keyboard events to send to the widget.

View File

@ -24,12 +24,12 @@ import (
"github.com/mum4k/termdash/align"
"github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/cell/runewidth"
"github.com/mum4k/termdash/draw"
"github.com/mum4k/termdash/internal/area"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/runewidth"
"github.com/mum4k/termdash/internal/widgetapi"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// progressType indicates how was the current progress provided by the caller.

View File

@ -22,10 +22,10 @@ import (
"github.com/mum4k/termdash/align"
"github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/draw"
"github.com/mum4k/termdash/draw/testdraw"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/canvas/testcanvas"
"github.com/mum4k/termdash/internal/faketerm"
"github.com/mum4k/termdash/internal/testdraw"
"github.com/mum4k/termdash/internal/widgetapi"
)

View File

@ -25,7 +25,7 @@ import (
"github.com/mum4k/termdash/container"
"github.com/mum4k/termdash/draw"
"github.com/mum4k/termdash/terminal/termbox"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgets/gauge"
)

View File

@ -23,7 +23,7 @@ import (
"github.com/mum4k/termdash/internal/mouse"
"github.com/mum4k/termdash/internal/mouse/button"
"github.com/mum4k/termdash/internal/numbers"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgets/linechart/internal/axes"
)

View File

@ -20,7 +20,7 @@ import (
"github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/internal/mouse"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgets/linechart/internal/axes"
)

View File

@ -29,7 +29,7 @@ import (
"github.com/mum4k/termdash/internal/canvas/braille"
"github.com/mum4k/termdash/internal/numbers"
"github.com/mum4k/termdash/internal/widgetapi"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgets/linechart/internal/axes"
"github.com/mum4k/termdash/widgets/linechart/internal/zoom"
)

View File

@ -22,14 +22,14 @@ import (
"github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/draw"
"github.com/mum4k/termdash/draw/testdraw"
"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/mouse"
"github.com/mum4k/termdash/internal/testdraw"
"github.com/mum4k/termdash/internal/widgetapi"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
func TestLineChartDraws(t *testing.T) {

View File

@ -26,7 +26,7 @@ import (
"github.com/mum4k/termdash/container"
"github.com/mum4k/termdash/draw"
"github.com/mum4k/termdash/terminal/termbox"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgets/linechart"
)

View File

@ -21,7 +21,7 @@ import (
"fmt"
"image"
"github.com/mum4k/termdash/draw/segdisp/sixteen"
"github.com/mum4k/termdash/internal/segdisp/sixteen"
)
// segArea contains information about the area that will contain the segments.

View File

@ -24,11 +24,11 @@ import (
"sync"
"github.com/mum4k/termdash/align"
"github.com/mum4k/termdash/draw/segdisp/sixteen"
"github.com/mum4k/termdash/internal/attrrange"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/segdisp/sixteen"
"github.com/mum4k/termdash/internal/widgetapi"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// SegmentDisplay displays ASCII content by simulating a segment display.

View File

@ -21,13 +21,13 @@ import (
"github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/align"
"github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/draw/segdisp/sixteen"
"github.com/mum4k/termdash/draw/segdisp/sixteen/testsixteen"
"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/sixteen"
"github.com/mum4k/termdash/internal/segdisp/sixteen/testsixteen"
"github.com/mum4k/termdash/internal/widgetapi"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// mustDrawChar draws the provided character in the area of the canvas or panics.

View File

@ -25,7 +25,7 @@ import (
"github.com/mum4k/termdash/container"
"github.com/mum4k/termdash/draw"
"github.com/mum4k/termdash/terminal/termbox"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgets/segmentdisplay"
)

View File

@ -26,7 +26,7 @@ import (
"github.com/mum4k/termdash/internal/area"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/widgetapi"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// SparkLine draws a graph showing a series of values as vertical bars.

View File

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

View File

@ -26,7 +26,7 @@ import (
"github.com/mum4k/termdash/container"
"github.com/mum4k/termdash/draw"
"github.com/mum4k/termdash/terminal/termbox"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgets/sparkline"
)

View File

@ -20,8 +20,8 @@ package sparkline
import (
"fmt"
"github.com/mum4k/termdash/cell/runewidth"
"github.com/mum4k/termdash/internal/numbers"
"github.com/mum4k/termdash/internal/runewidth"
)
// sparks are the characters used to draw the SparkLine.

View File

@ -20,7 +20,7 @@ import (
"strings"
"text/scanner"
"github.com/mum4k/termdash/cell/runewidth"
"github.com/mum4k/termdash/internal/runewidth"
)
// wrapNeeded returns true if wrapping is needed for the rune at the horizontal

View File

@ -18,8 +18,8 @@ import (
"fmt"
"image"
"github.com/mum4k/termdash/cell/runewidth"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/runewidth"
)
// line_trim.go contains code that trims lines that are too long.

View File

@ -19,10 +19,10 @@ import (
"testing"
"github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/draw/testdraw"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/canvas/testcanvas"
"github.com/mum4k/termdash/internal/faketerm"
"github.com/mum4k/termdash/internal/testdraw"
)
func TestLineTrim(t *testing.T) {

View File

@ -26,7 +26,7 @@ import (
"github.com/mum4k/termdash/internal/attrrange"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/widgetapi"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
// Text displays a block of text.

View File

@ -21,14 +21,14 @@ import (
"github.com/kylelemons/godebug/pretty"
"github.com/mum4k/termdash/cell"
"github.com/mum4k/termdash/draw"
"github.com/mum4k/termdash/draw/testdraw"
"github.com/mum4k/termdash/internal/canvas"
"github.com/mum4k/termdash/internal/canvas/testcanvas"
"github.com/mum4k/termdash/internal/faketerm"
"github.com/mum4k/termdash/internal/keyboard"
"github.com/mum4k/termdash/internal/mouse"
"github.com/mum4k/termdash/internal/testdraw"
"github.com/mum4k/termdash/internal/widgetapi"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
)
func TestTextDraws(t *testing.T) {

View File

@ -27,7 +27,7 @@ import (
"github.com/mum4k/termdash/container"
"github.com/mum4k/termdash/draw"
"github.com/mum4k/termdash/terminal/termbox"
"github.com/mum4k/termdash/terminalapi"
"github.com/mum4k/termdash/terminal/terminalapi"
"github.com/mum4k/termdash/widgets/text"
)