whirled_peas 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +4 -2
- data/lib/whirled_peas/graphics/grid_painter.rb +1 -1
- data/lib/whirled_peas/version.rb +1 -1
- data/screen_test/settings/flow/grid_b2t.frame +1 -1
- data/screen_test/settings/flow/grid_b2t.rb +1 -1
- data/screen_test/settings/flow/grid_l2r.frame +1 -1
- data/screen_test/settings/flow/grid_l2r.rb +1 -1
- data/screen_test/settings/flow/grid_r2l.frame +1 -1
- data/screen_test/settings/flow/grid_r2l.rb +1 -1
- data/screen_test/settings/flow/grid_t2b.frame +1 -1
- data/screen_test/settings/flow/grid_t2b.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55ddf23151c866304cbe5213073c9ac9bd3c7b17139737acf1fe2f6678e6248f
|
4
|
+
data.tar.gz: 31d26322b45af3d06c2f64c019fde32cebfe87638852c87857fa0113dc3bdc11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7be414e153881ff228f8780e11887be61844d1f719c1b19d50888cf7c2caf3d2171dd992c6694604672209f5e7457b35eebba7498dd60bb1d21e717c467f0a6c
|
7
|
+
data.tar.gz: d27958378cfd0fe6728ef547559f07258ecafb2481df0d1994d3cf13802ae14ad414c212d2186f8e36ecb00be608d8abc3c6ccb918109a0114cc9585ed431735
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v0.7.1 - 2021-01-27
|
4
|
+
|
5
|
+
- [b98781d](https://github.com/tcollier/whirled_peas/tree/b98781de23a24b596955f25cfc48936c0cc1efac): Fix num_cols bug for vertical grid flow
|
6
|
+
|
3
7
|
## v0.7.0 - 2021-01-27
|
4
8
|
|
5
9
|
BREAKING: the settings for the template now fills the full screen and disallows margin.
|
data/README.md
CHANGED
@@ -531,6 +531,8 @@ Scroll settings dictate whether the scrollbar will be shown when child content i
|
|
531
531
|
- `scrollbar.horiz=(flag)` - show/hide the horizontal scrollbar
|
532
532
|
- `scrollbar.vert=(flag)` - show/hide the vertical scrollbar
|
533
533
|
|
534
|
+
Note: there is a know bug with scrollbars and `center`/`right` alignments. Using `left` alignment is the supported workaround
|
535
|
+
|
534
536
|
##### Border
|
535
537
|
|
536
538
|
The border settings consist of 6 boolean values (border are either width 1 or not shown), the 4 obvious values (`left`, `top`, `right`, and `bottom`) along with 2 other values for inner borders (`inner_horiz` and `inner_vert`) in a grid. A border also has a foreground color (defaults to `:white`) and a style. The background color is determined by the `bg_color` of the element. Border values can be set with
|
@@ -543,8 +545,8 @@ The border settings consist of 6 boolean values (border are either width 1 or no
|
|
543
545
|
- `border.bottom=(flag)` - show/hide bottom border
|
544
546
|
- `border.inner_horiz=(flag)` - show/hide inner horizontal border (dividing grid rows)
|
545
547
|
- `border.inner_vert=(flag)` - show/hide inner vertical border (dividing grid columns)
|
546
|
-
- `border.color=(
|
547
|
-
- `border.style=(
|
548
|
+
- `border.color=(text_color)` - set the border color
|
549
|
+
- `border.style=(style)` - set the border style
|
548
550
|
|
549
551
|
Available border styles are
|
550
552
|
|
@@ -58,7 +58,7 @@ module WhirledPeas
|
|
58
58
|
col_index, row_index = [index % dimensions.num_cols, index / dimensions.num_cols]
|
59
59
|
col_index = dimensions.num_cols - col_index - 1 if settings.reverse_flow?
|
60
60
|
else
|
61
|
-
col_index, row_index = [index / dimensions.
|
61
|
+
col_index, row_index = [index / dimensions.num_rows, index % dimensions.num_rows]
|
62
62
|
row_index = dimensions.num_rows - row_index - 1 if settings.reverse_flow?
|
63
63
|
end
|
64
64
|
[col_index, row_index]
|
data/lib/whirled_peas/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
[?25l[1;1H[J[1;1H┏━━┳━━┳━━┳━━┓[2;1H┃ ┃ ┃ ┃ ┃[3;1H┣━━╋━━╋━━╋━━┫[4;1H┃ ┃ ┃ ┃ ┃[5;1H┣━━╋━━╋━━╋━━┫[6;1H┃ ┃ ┃ ┃ ┃[7;1H
|
1
|
+
[?25l[1;1H[J[1;1H┏━━┳━━┳━━┳━━┓[2;1H┃ ┃ ┃ ┃ ┃[3;1H┣━━╋━━╋━━╋━━┫[4;1H┃ ┃ ┃ ┃ ┃[5;1H┣━━╋━━╋━━╋━━┫[6;1H┃ ┃ ┃ ┃ ┃[7;1H┗━━┻━━┻━━┻━━┛[6;2H1[4;2H2[2;2H3[6;5H4[4;5H5[2;5H6[6;8H7[4;8H8[2;8H9[6;11H10[0m[24;1H[?25h
|
@@ -1 +1 @@
|
|
1
|
-
[?25l[1;1H[J[1;1H┏━━┳━━┳━━┳━━┓[2;1H┃ ┃ ┃ ┃ ┃[3;1H┣━━╋━━╋━━╋━━┫[4;1H┃ ┃ ┃ ┃ ┃[5;1H┣━━╋━━╋━━╋━━┫[6;1H┃ ┃ ┃ ┃ ┃[7;1H
|
1
|
+
[?25l[1;1H[J[1;1H┏━━┳━━┳━━┳━━┓[2;1H┃ ┃ ┃ ┃ ┃[3;1H┣━━╋━━╋━━╋━━┫[4;1H┃ ┃ ┃ ┃ ┃[5;1H┣━━╋━━╋━━╋━━┫[6;1H┃ ┃ ┃ ┃ ┃[7;1H┗━━┻━━┻━━┻━━┛[2;2H1[2;5H2[2;8H3[2;11H4[4;2H5[4;5H6[4;8H7[4;11H8[6;2H9[6;5H10[0m[24;1H[?25h
|
@@ -1 +1 @@
|
|
1
|
-
[?25l[1;1H[J[1;1H┏━━┳━━┳━━┳━━┓[2;1H┃ ┃ ┃ ┃ ┃[3;1H┣━━╋━━╋━━╋━━┫[4;1H┃ ┃ ┃ ┃ ┃[5;1H┣━━╋━━╋━━╋━━┫[6;1H┃ ┃ ┃ ┃ ┃[7;1H
|
1
|
+
[?25l[1;1H[J[1;1H┏━━┳━━┳━━┳━━┓[2;1H┃ ┃ ┃ ┃ ┃[3;1H┣━━╋━━╋━━╋━━┫[4;1H┃ ┃ ┃ ┃ ┃[5;1H┣━━╋━━╋━━╋━━┫[6;1H┃ ┃ ┃ ┃ ┃[7;1H┗━━┻━━┻━━┻━━┛[2;11H1[2;8H2[2;5H3[2;2H4[4;11H5[4;8H6[4;5H7[4;2H8[6;11H9[6;8H10[0m[24;1H[?25h
|
@@ -1 +1 @@
|
|
1
|
-
[?25l[1;1H[J[1;1H┏━━┳━━┳━━┳━━┓[2;1H┃ ┃ ┃ ┃ ┃[3;1H┣━━╋━━╋━━╋━━┫[4;1H┃ ┃ ┃ ┃ ┃[5;1H┣━━╋━━╋━━╋━━┫[6;1H┃ ┃ ┃ ┃ ┃[7;1H
|
1
|
+
[?25l[1;1H[J[1;1H┏━━┳━━┳━━┳━━┓[2;1H┃ ┃ ┃ ┃ ┃[3;1H┣━━╋━━╋━━╋━━┫[4;1H┃ ┃ ┃ ┃ ┃[5;1H┣━━╋━━╋━━╋━━┫[6;1H┃ ┃ ┃ ┃ ┃[7;1H┗━━┻━━┻━━┻━━┛[2;2H1[4;2H2[6;2H3[2;5H4[4;5H5[6;5H6[2;8H7[4;8H8[6;8H9[2;11H10[0m[24;1H[?25h
|