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.
1.8 KiB
1.8 KiB
Features 🚀
- Container with constant key near attribute now can have descendant objects and connections #1071
- Classes are implemented. See docs. #772
- Multi-board SVG outputs with internal links go to their output paths #1116
- New grid layout to place nodes in rows and columns #1122
Improvements 🧹
- Labels on parallel
dagreconnections include a gap between them #1134 - Sequence Diagram
Lifelinesnow inherit the Actorstrokeandstroke-dash#1140 - Add
text-transformstyling option #1118
Bugfixes ⛑️
- Fix inheritence in scenarios/steps #1090
- Fix a bug in 32bit builds #1115
- Fix a bug in ID parsing #322
- Fix a bug in watch mode parsing SVG #1119
- Namespace transitions so that multiple animated D2 diagrams can exist on the same page #1123
- Fix a bug in vertical alignment of appendix lines #1104
- Fix precision difference for sketch mode running on different architectures #921
- Fix an issue where markdown fonts weren't being applied correctly #1132
Breaking changes
classandclassesare now reserved keywords.