github terrastruct/d2 v0.3.0

latest releases: v0.6.6, v0.6.5, v0.6.4...
18 months ago

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. See docs.
    animated
  • Customizable fonts. You can pass in whatever you want to use through the command line.

Screen Shot 2023-03-29 at 8 27 45 PM

Other

  • New "Origami" theme

Screen Shot 2023-03-29 at 7 59 31 PM

Features ๐Ÿš€

  • Flags to set a custom font are supported. See docs. #1108
  • --animate-interval can be passed as a flag to animate multi-board diagrams. See docs. #1088
  • New fill-pattern: paper #1070
  • Fonts are subsetted to only include what's necessary #1089
  • New theme: Origami #1110

Improvements ๐Ÿงน

  • Prevent tooltip being set to a URL when link is already set (for security) #1091
  • Scale arrowhead sizes appropriately to stroke-width. #1101

Bugfixes โ›‘๏ธ

  • Prevents an object's near from targeting another object with near set to a constant #1100
  • Fixes inaccurate bold edge label padding #1108
  • Prevents Latex blocks from being uppercased in special themes #1111

Don't miss a new d2 release

NewReleases is sending notifications on new releases.