d2/d2graph
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
..
color_helper.go oss 2022-11-03 06:54:49 -07:00
d2graph.go Add text-transform attribute to the style block 2023-04-08 18:56:13 +01:00
d2graph_test.go Switch fully to util-go 2022-12-01 11:48:49 -08:00
grid_diagram.go update keywords rows -> grid-rows 2023-04-06 15:48:01 -07:00
seqdiagram.go e2etests/testdata: Fix 2023-02-02 11:55:12 -08:00
serde.go move comparison to serde 2023-02-18 13:56:17 -03:00
serde_test.go fix test 2023-02-17 15:44:33 -03:00