2023-03-30 03:40:14 +00:00
D2 0.3 is here!
## Major updates:
- SVG sizes are ~**5%** of what they were in D2 0.2.
- The disproportionately largest contributor to this size was the font. Instead of encoding the entire font, D2 now only bundles only the used part of it (e.g. if you don't use the letter "b", the font encoding for "b" won't be included).
- The first practical applications of multi-board compositions are here: animations. Composition is among D2's most powerful features, and these first applications are just the tip of the iceberg. Stay tuned for more in upcoming 0.3.x releases.

- Customizable fonts. You can pass in whatever you want to use through the command line.
< img width = "300" alt = "Screen Shot 2023-03-29 at 8 27 45 PM" src = "https://user-images.githubusercontent.com/3120367/228721122-577c8d28-5fbf-473e-924c-35f6f1e98fa1.png" >
### Other
- New Origami theme
< img width = "550" alt = "Screen Shot 2023-03-29 at 7 59 31 PM" src = "https://user-images.githubusercontent.com/3120367/228721029-2136e162-e303-4b87-9da3-d8e6ad02af92.png" >
2023-03-07 19:11:52 +00:00
#### Features 🚀
2023-01-19 19:38:24 +00:00
2023-03-30 00:20:41 +00:00
- Flags to set a custom font are supported. See [docs ](https://d2lang.com/todo ). [#1108 ](https://github.com/terrastruct/d2/pull/1108 )
2023-03-23 20:37:28 +00:00
- `--animate-interval` can be passed as a flag to animate multi-board diagrams. See [docs ](https://d2lang.com/todo ). [#1088 ](https://github.com/terrastruct/d2/pull/1088 )
2023-03-18 22:43:28 +00:00
- `paper` is available as a `fill-pattern` option [#1070 ](https://github.com/terrastruct/d2/pull/1070 )
2023-03-28 22:33:32 +00:00
- fonts are now subsetted to reduce svg file size [#1089 ](https://github.com/terrastruct/d2/pull/1089 )
2023-03-30 02:59:41 +00:00
- New theme: Origami [#1110 ](https://github.com/terrastruct/d2/pull/1110 )
2023-03-18 22:43:28 +00:00
2022-12-01 20:59:53 +00:00
#### Improvements 🧹
2022-11-15 00:53:57 +00:00
2023-03-27 22:07:24 +00:00
- prevent `tooltip` to be an URL when `link` is already set. [#1091 ](https://github.com/terrastruct/d2/pull/1091 )
2023-03-30 03:16:29 +00:00
- improve scaling of arrowhead sizes according to stroke-width. [#1101 ](https://github.com/terrastruct/d2/pull/1101 )
2023-03-26 16:45:05 +00:00
2022-12-01 21:14:09 +00:00
#### Bugfixes ⛑️
2023-03-28 18:41:59 +00:00
- prevent an object's `near` from targeting a text near a constant. [#1100 ](https://github.com/terrastruct/d2/pull/1100 )
2023-03-29 23:45:41 +00:00
- fixes inaccurate bold edge label padding. [#1108 ](https://github.com/terrastruct/d2/pull/1108 )
2023-03-30 03:09:06 +00:00
- Prevents Latex blocks from being uppercased in special themes. [#1111 ](https://github.com/terrastruct/d2/pull/1111 )