Jakub Sobon
6980f88810
Release widget's mutex before activating external callback.
...
Fixes #205 .
2019-05-13 22:28:41 -04:00
Jakub Sobon
5683e96fee
Noting about fixed size container splits in the CHANGELOG.
2019-05-12 17:12:42 -04:00
Jakub Sobon
14fbf34de2
Merge pull request #204 from nijynot/master
...
Add support for fixed size container splits.
2019-05-12 17:11:43 -04:00
nijynot
957330c387
Tweak comments and use Default const in validation
2019-05-11 15:27:39 +02:00
nijynot
c80b59da13
Fix pointer and SplitFixed test
...
* Add DefaultSplitFixed const
* Add comments to SplitFixed
2019-05-10 13:21:55 +02:00
nijynot
b6986c9b4c
Add test and refactor `validateOptions()`
2019-05-09 11:44:13 +02:00
Jakub Sobon
d34e18ab09
Merge pull request #188 from slok/y-axis-label-formatter
...
Y-axis label formatter for LineChart
2019-05-08 21:39:46 -04:00
Jakub Sobon
a6e5b0b4b7
Merge branch 'master' into devel
2019-05-08 18:12:05 -04:00
nijynot
70a5255d5e
Refactor `SplitFixed()` to use SplitCells
...
* Add basic tests to `SplitFixed()`
* Panic when both `SplitFixed()` and `SplitPercent()` are used
* Refactor `validateOptions()` into two smaller functions
2019-05-08 21:58:48 +02:00
Xabier Larrakoetxea
79ede36653
Use strings.Replace instead strings.ReplaceAll to have support for go >=1.10
...
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-05-08 05:50:57 +02:00
Xabier Larrakoetxea
bfd354e253
Reorder added and changed of unreleased version in the changelog
...
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-05-07 06:03:50 +02:00
nijynot
4aa60fe8e7
Refactor fixed container feature to `SplitFixed()` which takes one arg
2019-05-06 21:51:53 +02:00
Xabier Larrakoetxea
1005f2c567
Update changelog with ValueFormatter
...
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-05-06 08:02:32 +02:00
Xabier Larrakoetxea
bef8ea3773
Merge remote-tracking branch 'upstream/devel' into y-axis-label-formatter
2019-05-06 07:58:28 +02:00
Xabier Larrakoetxea
a5c7363f43
Add round and suffix based value formatter for the Y-axis label representation
...
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-05-06 07:56:04 +02:00
nijynot
7c5232b662
Add support for fixed heights in SplitHorizontal()
2019-05-05 22:11:51 +02:00
Xabier Larrakoetxea
38f40428a1
Move time duration value formatter NaN check
...
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-05-05 10:27:48 +02:00
Xabier Larrakoetxea
7d5c78059c
Rename linechart value formatters and check more corner cases
...
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-05-05 10:07:15 +02:00
Jakub Sobon
932e0afce8
Merge branch 'master' into devel
2019-05-04 17:52:07 -04:00
Jakub Sobon
0e5242ca6f
Merge pull request #202 from donaldww/master
...
Fix spelling error in termdashdemo comment
2019-05-04 09:52:49 -04:00
Donald Wilson
5f6b2150b5
Merge pull request #1 from donaldww/donaldww-patch-1
...
Update termdashdemo.go
2019-05-04 05:22:09 -04:00
Donald Wilson
4fdf11b21c
Update termdashdemo.go
2019-05-04 05:19:14 -04:00
Xabier Larrakoetxea
059c72807f
Add single unit duration value formatter for the Y-axis
...
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-05-04 11:06:08 +02:00
Xabier Larrakoetxea
150b7e26e2
Allow empty Y-axis labels on linechart using a value formatter that returns empty strings
...
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-05-04 08:08:55 +02:00
Xabier Larrakoetxea
e152366a5c
Fix comment
...
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-05-04 08:07:33 +02:00
Jakub Sobon
07850c79a8
Merge pull request #199 from SpellarBot/fix-typos
...
@SpellarBot fixed 3 typos for you :)
2019-05-03 16:20:04 -04:00
Andrew Hall
f5f815b384
@SpellarBot fixed 3 typos for you :)
2019-05-03 20:58:17 +01:00
Xabier Larrakoetxea
b0f8079a94
Add linechart custom formatter testcases for long strings, non-printable characters and unicode value formatter results
...
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-05-03 07:18:49 +02:00
Xabier Larrakoetxea
36f116d9fc
Make axes labels length finder compatible with unicode runes
...
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-05-03 07:15:49 +02:00
Xabier Larrakoetxea
c1bf776dba
Use variadic args for Value factory options
...
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-05-03 07:14:01 +02:00
Xabier Larrakoetxea
a8931e2820
Check also for non printable characters on alingfor package text helper method
...
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-05-03 07:04:10 +02:00
Jakub Sobon
e6a00d5685
Merge pull request #198 from mum4k/dot-display
...
Support displaying the dot character in SegmentDisplay.
2019-04-30 23:14:41 -04:00
Jakub Sobon
426ec9edd4
Updating CHANGELOG.
2019-04-30 23:04:28 -04:00
Jakub Sobon
a8d038e6e7
Renaming align.go to alignfor.go.
...
So that file name matches package name.
2019-04-30 23:03:04 -04:00
Jakub Sobon
f13f732a66
More test coverage for dotseg.
...
Also the demo of segment display now uses a colon.
2019-04-30 23:02:14 -04:00
Jakub Sobon
6578c20aea
More test coverage.
2019-04-30 16:04:25 -04:00
Jakub Sobon
6159007466
The SegmentDisplay now uses dot segment for dots and colons.
2019-04-30 00:00:37 -04:00
Jakub Sobon
939f8fe199
A segment display that can show three dots.
2019-04-29 23:11:55 -04:00
Jakub Sobon
a591f95d29
Factoring out function that calculates segment size.
2019-04-29 22:56:59 -04:00
Jakub Sobon
b8a6427d47
Functions that move areas up and down.
2019-04-29 22:55:49 -04:00
Jakub Sobon
f81cb554b0
Skeleton of the dotseg package.
2019-04-28 23:34:02 -04:00
Jakub Sobon
27c830cebf
Adding licences.
2019-04-28 23:12:55 -04:00
Jakub Sobon
f32921589c
Merge pull request #197 from mum4k/lint
...
Fixing lint issues found on Go report card.
2019-04-28 23:09:02 -04:00
Jakub Sobon
57b9e78dc8
Refactoring sixteen.
...
Moving out code that is common to all segment display types.
2019-04-28 23:08:34 -04:00
Jakub Sobon
95f58f0617
Updating CHANGELOG.
2019-04-28 22:45:28 -04:00
Jakub Sobon
0ef875039b
Fixing lint issues found on Go report card.
2019-04-28 22:44:44 -04:00
Jakub Sobon
662382e8ba
Merge pull request #196 from mum4k/donut-label-spacing
...
Guarantee some spacing between donut and its label.
2019-04-28 22:41:20 -04:00
Jakub Sobon
98b23ec3bd
Text area no longer needs to be adjusted.
...
Since we are no longer removing one line of cells from the top of the
canvas.
2019-04-28 22:32:15 -04:00
Jakub Sobon
457ce10404
Updating CHANGELOG.
2019-04-28 22:11:16 -04:00
Jakub Sobon
3dce1b3bab
Undo changes to the donut demo.
2019-04-28 22:05:31 -04:00