Andrea Manzini
ceae209ba2
cleanup lint issues
2019-01-19 16:16:19 +01:00
Jakub Sobon
12e28728ee
Updating documentation.
...
And increasint the redraw interval on linechart demo.
2019-01-15 23:17:13 -05:00
Jakub Sobon
c18a940df4
Adding a demo of a more complete dashboard.
2019-01-15 22:40:44 -05:00
Jakub Sobon
964d676e31
Allowing container.Option to report an error.
2019-01-14 00:08:20 -05:00
Jakub Sobon
bc911a3cd6
More test coverage for linechart.
2019-01-13 01:38:39 -05:00
Jakub Sobon
1db0cfc7f1
Test coverage for the initial functionality of linechart.
2019-01-13 00:03:19 -05:00
Jakub Sobon
c2fd0aa46f
Better names for arguments.
2019-01-12 21:26:36 -05:00
Jakub Sobon
5a392572f0
Proof of concept code that draws a single line chart.
2019-01-12 21:13:03 -05:00
Jakub Sobon
01957f0d15
Finalizing the axes package.
...
It can determine details for both of the axis.
2019-01-12 15:55:49 -05:00
Jakub Sobon
426cc6230b
Placement of labels under the X axis.
...
And more test coverage.
2019-01-12 00:01:04 -05:00
Jakub Sobon
a3bed458d6
More validation for the scales.
2019-01-08 23:56:05 -05:00
Jakub Sobon
bdd0290c98
Scale for the X axis.
2019-01-08 23:36:21 -05:00
Jakub Sobon
27d9a6c7c5
Adding missing license.
2019-01-08 00:28:05 -05:00
Jakub Sobon
6da1d10f86
Complete implementation of the YAxis object.
2019-01-08 00:24:48 -05:00
Jakub Sobon
310f12a5ae
Licenses for label.go.
2019-01-07 23:42:46 -05:00
Jakub Sobon
f61d5f045d
Function that determines label placement.
2019-01-07 23:42:17 -05:00
Jakub Sobon
01e44819cb
Reversing scale inputs and outputs.
...
So they grow as the coordinates do.
2019-01-07 22:55:28 -05:00
Jakub Sobon
025e8a7efb
Adding numbers.Round for backward compatibility.
...
And disabling tests of unimplemented components.
2019-01-07 20:53:42 -05:00
Jakub Sobon
91972c941e
Adding licenses.
2019-01-07 00:16:48 -05:00
Jakub Sobon
79c7955335
Numerical functions and representations of value, scale and axis.
2019-01-07 00:15:31 -05:00
Jakub Sobon
d8c24da6c4
Initial skeleton and API for the LineChart widget.
2018-12-31 00:17:38 -05:00
Jakub Sobon
e5db7eff21
Responding to comments from @chipmunkie.
2018-07-02 22:28:17 -04:00
Jakub Sobon
38c288b077
Merge branch 'devel' into sparkline
2018-06-24 23:53:09 -04:00
Jakub Sobon
dd57b316b0
Fix incorrect color in the SparkLine demo.
2018-06-22 20:48:50 -04:00
Jakub Sobon
35f2672cae
Merge branch 'devel' into sparkline
2018-06-22 16:37:00 -04:00
Jakub Sobon
b281b0506f
Merge branch 'devel' into barchart
2018-06-22 16:36:41 -04:00
Jakub Sobon
4da5097d66
Fixing the SparkLine demo.
2018-06-22 16:33:05 -04:00
Jakub Sobon
f4d2edc3f9
Adding licenses.
2018-06-22 16:30:50 -04:00
Jakub Sobon
9d02f43c6f
Self-review.
2018-06-22 16:27:23 -04:00
Jakub Sobon
a9813c4c76
Implementation of the SparkLine widget.
...
And completing the demo.
2018-06-22 09:40:41 -04:00
Jakub Sobon
2ce014d35a
Fix for compatibility with Go 1.8.
...
Local implementation of math.Round.
2018-06-21 22:19:17 -04:00
Jakub Sobon
d430638eb0
More test cases for the SparkLine widget.
2018-06-21 22:12:13 -04:00
Jakub Sobon
630151301f
Code that determines which sparks runes to use.
2018-06-21 22:11:57 -04:00
Jakub Sobon
40bee03bc2
Fixing incorrect func name in test output.
2018-06-21 17:05:05 -04:00
Jakub Sobon
27f6d76dc6
Skeleton of the SparkLine widget, tests and demo.
2018-06-21 17:04:19 -04:00
Jakub Sobon
6a320ac68c
Adding colors to the demo.
2018-06-19 23:12:28 -04:00
Jakub Sobon
a0f55ccf01
Improving the demo.
2018-06-19 23:02:15 -04:00
Jakub Sobon
c2782a8f56
Improving test coverage.
2018-06-19 22:33:06 -04:00
Jakub Sobon
42fd5f8ccb
Improving test coverage.
2018-06-19 22:17:53 -04:00
Jakub Sobon
542948c6cf
Fixes after self-review.
2018-06-19 22:04:20 -04:00
Jakub Sobon
4785160c13
Adding some missing licences.
2018-06-19 21:54:27 -04:00
Jakub Sobon
77a9b30133
Implementation of the BarChart widget and its demo.
2018-06-20 02:37:06 +01:00
Jakub Sobon
774ad2479a
More test cases.
2018-06-18 22:36:20 +01:00
Jakub Sobon
ff5ce85170
Skeleton of the barchart widget and its tests.
2018-06-18 21:36:29 +01:00
Jakub Sobon
fd186956f6
The fake widget can now draw custom text.
2018-06-18 20:01:48 +01:00
Jakub Sobon
945b48f4a3
Gauge widget now supports full-width runes.
2018-05-27 19:29:42 +01:00
Jakub Sobon
367af3f86d
Merge branch 'text-widget/5/widget' into text-widget/6/wide-runes
2018-05-27 16:21:14 +01:00
Jakub Sobon
126cb00247
Rename newText field to contentChanged.
2018-05-27 16:15:56 +01:00
Jakub Sobon
06097229a9
Merge branch 'text-widget/4/scroll-tracker' into text-widget/5/widget
2018-05-27 16:12:25 +01:00
Jakub Sobon
6ab8088f51
Improving comments to make the scroll.go file more understandable.
2018-05-27 16:11:18 +01:00
Jakub Sobon
c2db521710
Merge branch 'text-widget/3/line-scanner' into text-widget/4/scroll-tracker
2018-05-27 15:51:25 +01:00
Jakub Sobon
39c624a84c
Making it more obvious what width in the test cases is.
...
- renaming it to cvsWidth.
- adding a comment explaining that it is the width of the canvas.
2018-05-27 15:49:13 +01:00
Jakub Sobon
929bf2b8fc
The text widget now supports full-width runes.
...
Refactoring the draw() implementation to make it more readable:
- taking out the line trimming logic.
- taking out the drawing of the scroll up/down markers.
2018-05-20 22:51:38 +01:00
Jakub Sobon
ecb27cd1c5
Adding licence.
2018-05-14 22:45:40 +01:00
Jakub Sobon
4f65598b39
Merge branch 'text-widget/4/scroll-tracker' into text-widget/5/widget
2018-05-14 22:45:29 +01:00
Jakub Sobon
a386289162
Adding licence.
2018-05-14 22:44:49 +01:00
Jakub Sobon
6bbd64a30d
Merge branch 'text-widget/3/line-scanner' into text-widget/4/scroll-tracker
2018-05-14 22:44:41 +01:00
Jakub Sobon
2f210f3ab9
Adding licence.
2018-05-14 22:44:18 +01:00
Jakub Sobon
d6cd0106fb
Merge branch 'text-widget/2/write-options' into text-widget/3/line-scanner
2018-05-14 22:44:08 +01:00
Jakub Sobon
a3dfd1a4a5
Adding licence.
2018-05-14 22:43:48 +01:00
Jakub Sobon
d0ca7ec5f5
Merge branch 'text-widget/1/widget-options' into text-widget/2/write-options
2018-05-14 22:43:36 +01:00
Jakub Sobon
d3db859678
Adding licence.
2018-05-14 22:42:39 +01:00
Jakub Sobon
8df67c6d04
Merge branch 'text-widget/4/scroll-tracker' into text-widget/5/widget
2018-05-14 22:35:10 +01:00
Jakub Sobon
a13c1f6be2
Merge branch 'text-widget/3/line-scanner' into text-widget/4/scroll-tracker
2018-05-14 22:34:48 +01:00
Jakub Sobon
6b39babddf
Merge branch 'text-widget/2/write-options' into text-widget/3/line-scanner
2018-05-14 22:34:10 +01:00
Jakub Sobon
bb73338abb
Merge branch 'text-widget/1/widget-options' into text-widget/2/write-options
2018-05-14 22:33:46 +01:00
Jakub Sobon
2f384b3b1c
Merge branch 'master' into text-widget/1/widget-options
2018-05-14 22:33:05 +01:00
Jakub Sobon
b98013ea45
Removing commit that doesn't belong to this history.
2018-05-14 22:32:07 +01:00
Jakub Sobon
d6c153fbaf
Implementing the text widget.
...
And adding a demo.
2018-05-14 22:16:14 +01:00
Jakub Sobon
4c54b8a46e
Adding an object that tracks the scrolling state.
2018-05-14 22:13:16 +01:00
Jakub Sobon
7d14d2219f
Adding line scanner.
...
The line scanner identifies and counts lines in the input text and
performs wrapping if required.
2018-05-14 22:12:08 +01:00
Jakub Sobon
e786777410
Defining options for text written to the widget.
...
Each set of options applies to a range of characters equal to the length
of the text added.
E.g. on write calls like:
Write("text", opts1)
Write("long text", opts2)
The two passed options will be stored as:
opts1 for byte range low:0, high:4
opts2 for byte range low:4, high:13
The text itself will be stored in a bytes.Buffer.
2018-05-14 22:08:53 +01:00
Jakub Sobon
a824210882
Defining options for the text widget.
2018-05-14 22:07:04 +01:00
Jakub Sobon
79218c9233
Fixing lint errors.
...
- Missing comments.
- Invalid comments.
- Stuttering public name.
2018-05-11 16:32:37 +01:00
Jakub Sobon
f62bf80686
Deleting binary file.
2018-05-09 21:37:01 +01:00
Jakub Sobon
1bb3a422fc
Replacing strings.Builder with bytes.Buffer.
...
For backward compatibility.
2018-05-08 19:01:07 +01:00
Jakub Sobon
e2a4927612
Adding licences.
2018-05-08 01:14:36 +01:00
Jakub Sobon
c28cec560e
Implementing the Gauge widget.
...
Fixes #6 .
2018-05-08 01:12:36 +01:00
Jakub Sobon
88fc5b2782
Unifying the last API in the draw package.
...
Fixes #23 .
2018-05-07 16:50:27 +01:00
Jakub Sobon
b62c9406ab
Renaming draw.Box to draw.Border and improving its API.
...
Also adding tests for draw.Rectangle.
Updates #23 and #22 .
2018-05-07 13:33:18 +01:00
Jakub Sobon
2473cd46d6
A function that draws a rectangle.
...
Also:
- implementing text trimming and wrapping.
- Switching log.Fatalf to panic() for more understandable test errors.
2018-05-06 19:28:52 +01:00
Jakub Sobon
bf1fc73140
Adding an informative MinimumSize for the Fake widget.
2018-04-23 00:47:49 +01:00
Jakub Sobon
2cd3343c81
Adding licences and a script to automate the same.
2018-04-14 23:06:57 +01:00
Jakub Sobon
5ce9e90d68
Test coverage for processing of Keyboard and Mouse events.
2018-04-14 22:00:25 +01:00
Jakub Sobon
3a058b407f
Renaming widget to widgetapi for consistency with terminalapi.
2018-04-09 03:33:24 +01:00
Jakub Sobon
5c32ca7f7f
Support for keyboard, mouse, widget options and alignment.
2018-04-09 03:17:40 +01:00
Jakub Sobon
0bbb28d13d
Adding a fake widget.
2018-04-07 14:24:55 +02:00