Commit graph

27 commits

Author SHA1 Message Date
Bernard Xie
38b9fe8e68
test 2023-04-13 13:59:54 -07:00
Gavin Nishizawa
7c1738ce5a
update tests 2023-04-10 15:08:13 -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
dbc3a69951
fix solo near 2023-04-08 10:07:56 -07:00
Bernard Xie
bceb7e9104
markdown class has to have diagramHash targeting 2023-04-07 16:45:57 -07:00
Alexander Wang
cadaaeb21f
add padding between dagre labels 2023-04-04 13:50:12 -07:00
Alexander Wang
ab25a7a8ab
fix origami theme 2023-03-29 21:05:42 -07: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
Bernard Xie
322d253fce
rename cutset -> corpus 2023-03-29 10:03:44 -07:00
Bernard Xie
28d14ac65e
revert 2023-03-29 09:54:38 -07:00
Bernard Xie
23cca0000b
fix tests, remove italic style 2023-03-28 15:18:28 -07:00
Bernard Xie
70b4fd8912
copy byte slice first 2023-03-28 13:58:53 -07:00
Bernard Xie
48a7472667
add and fix utf8cutfont 2023-03-27 19:19:12 -07:00
Bernard Xie
ff1ef999a3
tests still borken 2023-03-27 14:46:03 -07:00
Bernard Xie
02673d423d
subset test 2 2023-03-27 14:22:58 -07:00
Bernard Xie
7a137227e7
test without woff 2023-03-27 14:17:48 -07:00
Bernard Xie
2d6243ded3
cutset test 2023-03-27 13:41:40 -07:00
Bernard Xie
e89166d469
add class symbols 2023-03-27 13:32:00 -07:00
Bernard Xie
9219501584
fix tables and classes 2023-03-27 11:24:18 -07:00
Bernard Xie
4682c010a0
add test changes 2023-03-27 10:51:57 -07:00
Alexander Wang
2684f3bfde
[ci-base] bump version in src 2023-03-20 11:57:25 -07:00
Alexander Wang
ed2efda29a
don't uppercase code blocks 2023-03-17 20:20:30 -07:00
Alexander Wang
7ba463c690
[ci-base] regen 2023-03-16 16:08:06 -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