Commit Graph

1708 Commits

Author SHA1 Message Date
Jonathan Daugherty
03d2a10129 table: cleanup 2022-06-19 13:48:23 -07:00
Jonathan Daugherty
16bf5b7e59 Table: improve documentation 2022-06-19 13:37:00 -07:00
Jonathan Daugherty
a039911c9e Table: use multi-way if to clean up 2022-06-19 13:30:47 -07:00
Jonathan Daugherty
cb7afe24a8 README: update border drawing example 2022-06-19 13:25:17 -07:00
Jonathan Daugherty
da6a7994e6 Bump version, update changelog 2022-06-19 13:13:34 -07:00
Jonathan Daugherty
c4ed0a4a91 Add missing import for older GHCs 2022-06-19 13:12:26 -07:00
Jonathan Daugherty
708c74c339 Bump version, update changelog 2022-06-19 13:05:53 -07:00
Jonathan Daugherty
04db41b1f3 Table: remove non-empty and all-empty cell restrictions 2022-06-19 13:03:03 -07:00
Jonathan Daugherty
4b1c6ab808
Merge pull request #373 from dmwit/issue-370
make empty BorderMaps even emptier (resolves issue 370)
2022-06-19 12:19:13 -07:00
Daniel Wagner
539a594c27 make empty BorderMaps even emptier (issue 370)
The BorderMap module provides a notion of an empty map. Previously, this
was accidentally conflating two kinds of emptiness: an map that doesn't
track points, and a map that tracks a point (or multiple points) but
doesn't associate it with anything. This meant that the empty map was
not a unit for the union operation, which seems like a natural
expectation.

This has been resolved by revising the empty map to be the one that
tracks no points. Callers that expected that behavior were left alone,
while callers that expected the other behavior were fixed to use
`emptyCoordinates`.
2022-06-19 14:51:22 -04:00
Jonathan Daugherty
6ccdd8c1f1 emptyResult: use explicit record syntax 2022-06-18 10:08:17 -07:00
Jonathan Daugherty
9cc4c7d57f Bump version, update changelog 2022-06-18 09:10:34 -07:00
Jonathan Daugherty
67c1b99989 Table: add additional cautionary note to the docs about empty cells 2022-06-18 09:05:35 -07:00
Jonathan Daugherty
55c13f7ff4 Table: fill and pad empty cells to avoid layout issues (fixes #369)
This change makes it so that when cells are empty (have zero width and
height) and are top- and left-aligned, we pad them to take up the same
amount of width and height as their row- and column-wise neighbors. This
was already the case for other alignment settings, but the top- and
left-aligned cases were not getting padded.
2022-06-18 09:03:43 -07:00
Jonathan Daugherty
d196695ab7 relativeTo: remove unused Show constraint 2022-05-24 17:43:21 -07:00
Jonathan Daugherty
c416d04a4a relativeTo: improve documentation 2022-05-24 17:43:13 -07:00
Jonathan Daugherty
b97300faf7 LayerDemo: add missing CPP pragma 2022-05-23 13:51:24 -07:00
Jonathan Daugherty
2bc6db1973 LayerDemo: fix for older GHCs 2022-05-23 13:44:00 -07:00
Jonathan Daugherty
83a74ddacd Bump version, update changelog 2022-05-23 13:30:24 -07:00
Jonathan Daugherty
2fecf53fe7 Core: add relativeTo to support positioning elements relative to elements in lower layers 2022-05-23 13:18:33 -07:00
Jonathan Daugherty
4dff4c4c2d
Merge pull request #368 from ajithnn/patch-1 2022-05-23 07:45:21 -07:00
ajithnn
62773c53e5 Add Ullekha to the featured projects list 2022-05-23 16:27:41 +05:30
Jonathan Daugherty
c5ee667f72 Mouse demo: improve click message slightly 2022-05-12 08:14:27 -07:00
Jonathan Daugherty
e2a1f32fb0 Mouse demo: remove redundant clickable 2022-05-12 08:00:13 -07:00
Jonathan Daugherty
b5c8a5d055 README: add htyper 2022-04-17 09:52:39 -07:00
Jonathan Daugherty
07068b4d8d Bump version, update changelog 2022-03-31 22:03:07 -07:00
Jonathan Daugherty
ef56215004 Merge branch 'master' of github.com:jtdaugherty/brick 2022-03-31 22:01:53 -07:00
Jonathan Daugherty
96f06bdfb4 cropExtents: be robust to negative upper-left corner coordinates
This change fixes a bug that surfaces when an extent has been moved
partially "off screen." This can happen if an extent is translated so
that its left or top edges are outside of the rendered image. Prior to
this change, such extents would get cropped so that their upper-left
corners were always clamped to (0,0). This was wrong because it
fundamentally broke the extents' coorinate system. This change not only
preserves upper-left corner coordinates but also updates the width and
height calculations in extent-cropping to ensure that the new width and
height values still reflect the true "width" and "height" of an extent
even if some of that width or height is not visible in a rendered image.
This is essential for ensuring that mouse click detection works as
needed to translate screen-space coordinates of mouse clicks into local
(extent) coordinates for extent-matching purposes.
2022-03-31 21:58:45 -07:00
Jonathan Daugherty
d799c51f22
Merge pull request #363 from akazukin5151/patch-1
Projects: Add kpxhs
2022-03-17 17:04:49 -07:00
Tsui Yik Ching
9fe2908d43
Projects: Add kpxhs 2022-03-17 23:54:18 +00:00
Jonathan Daugherty
ec2f45f07e Bump version, update changelog 2022-03-07 08:32:07 -08:00
Jonathan Daugherty
315f19e060 Remove brick-markup-demo, Data.Text.Markup, and Brick.Markup 2022-03-07 08:29:36 -08:00
Jonathan Daugherty
f4e63ea1d0 README: add Wordle 2022-02-03 08:47:22 -08:00
Jonathan Daugherty
ab9ddacd27 withAttr: docs update 2022-02-02 21:52:40 -08:00
Jonathan Daugherty
586df3c83b overrideAttr: update docs 2022-02-02 21:50:40 -08:00
Jonathan Daugherty
afc0c1da0f updateAttrMap: docs update 2022-02-02 21:48:18 -08:00
Jonathan Daugherty
e06bd1d7bb modifyDefAttr: update docs 2022-02-02 21:47:06 -08:00
Jonathan Daugherty
b60479253a AttrMap: docs tweak 2022-02-02 21:46:10 -08:00
Jonathan Daugherty
a450b27212 guide: update attribute map section from Kevin Q's feedback 2022-02-02 21:43:22 -08:00
Jonathan Daugherty
7e6bd61f8c Core: fix syntax error 2022-01-31 16:41:46 -08:00
Jonathan Daugherty
4ad3ffb5a2 Core.hyperlink: use attrL rather than duplicating context attribute lookup 2022-01-31 16:29:56 -08:00
Jonathan Daugherty
c1bce6a434 Core: improve attribute API docs somewhat 2022-01-31 16:09:26 -08:00
Jonathan Daugherty
338deace08 Improve docs for scroll bar handle enabling functions 2022-01-31 09:44:59 -08:00
Jonathan Daugherty
e402db29d4 suffixLenses: fix makeLenses link 2022-01-31 09:28:04 -08:00
Jonathan Daugherty
929d7b296a overrideAttr: imrove docs 2022-01-31 09:27:10 -08:00
Jonathan Daugherty
3fd091b5ac Bump version, update changelog 2022-01-31 09:17:13 -08:00
Jonathan Daugherty
ea36444495 FileBrowser API change: export getters for all FileBrowser fields, stop exporting Lens for entry filter
This change removes fileBrowserEntryFilterL from the public API (which
was unsafe because it could not update the appropriate internal
state when used) and replaces it with fileBrowserEntryFilterG,
a getter for the same field. Users of the lens should be using
setFileBrowserEntryFilter.
2022-01-30 20:48:51 -08:00
Jonathan Daugherty
563dc75686 File browser docs: clarification 2022-01-30 20:17:35 -08:00
Jonathan Daugherty
dd4639e770 Typo 2022-01-30 16:59:52 -08:00
Jonathan Daugherty
7961606ef0
Merge pull request #357 from mlang/find
Use find instead of filter and listToMaybe
2022-01-28 12:07:09 -08:00