Commit graph

9 commits

Author SHA1 Message Date
Alexander Wang
45b396c894
config vars 2023-07-20 16:08:08 -07:00
Bernard Xie
38b9fe8e68
test 2023-04-13 13:59:54 -07:00
Stoica Alex
a260068d2c
Add text-transform attribute to the style block
This provides an option to override the functionality provided by the
theme, or apply `text-transform` outside of the theme.

The functionality of the `text-transform` is as below:

- `text-transform: none` - will disable **any** transformation (like the uppercasing by `terminal` theme)
- `text-transform: uppercase` (uppercase not upper as per your message) - will force all characters into uppercase.
- `text-transform: lowercase` - will force all characters into lowercase.
- `text-transform: capitalize` - will uppercase the first letter of every word

In addition, this commit introduces:
- helper methods on the `d2graph.Style` struct to determine the type of
  `text-transform` to be applied.
- `ApplyTextTransform` method on the `d2graph.Attributes` which will
  transform the `Label.Value` to the correct text case.
2023-04-08 18:56:13 +01:00
Alexander Wang
76cc889c18
fix latex uppercasing 2023-03-29 20:11:56 -07:00
Alexander Wang
e98c34a34c
origami theme 2023-03-29 20:01:52 -07:00
Alexander Wang
ed2efda29a
don't uppercase code blocks 2023-03-17 20:20:30 -07:00
Alexander Wang
21d8aae518
amend test 2023-03-16 13:01:58 -07:00
Alexander Wang
c30887b363
new fill-patterns, grayscale 2023-03-15 23:02:17 -07:00
Alexander Wang
4c8c2b1ab5
define new theme 2023-03-15 17:54:34 -07:00