6 ms·
Hello fellow devs. Just wanted to share a new feature we added this morning, though it's very alpha stage (already someone's filed a github issue for it hah) I
by alixanderwang 1y ago
Hello fellow devs. Just wanted to share a new feature we added this morning, though it's very alpha stage (already someone's filed a github issue for it hah)
If you want to skip the blog post and poke around directly:
https://play.d2lang.com/?script=qlDQtVOotFLIyFTwSEzOTi1S8EstL-YCBAAA__8%3D&ascii=1& https://play.d2lang.com/?script=qlDQtVOotFLIyFTwSEzOTi1S8Est...
For a bigger example:
https://play.d2lang.com/?script=rJJBjtswDEX3OgWBrm2kzU4FeoruC8JibSG0KIj0pMHAdy9kW00yU2A2s6RI_8__6Bcs6uHVAYRv3SDpdxz3EoDxJot1lMaYyAPxZXv-Aj-pzDEhg000EwwSaOtsZReDh_Pp5ABWt7pEdpVy2TUHYgaTK5XmoWjEHI20vQDohJk8qEmh8CugYWvYjamfF7aYmTxYWXbj1e3-BZPO0YyKe6MO3Y_HtgelFD5xZttAEsdEkKUYcsuzRA-vR6SJ_uAoaW0f1GyQiwykKncmJgVHegdkuHFMgcrHNA75O-7-Yeca4dm4_-eYJ0kELKO61blF26GODTIVleQArjHY5OHr-dTmqupx6_7xzDNeCAZkfjf1RKuvmHCo--yGWzi1IhfqAurk4VytMEdQKi8fSYWomfH2Zr4G21NENbdX7TYZR_r-X6ira39x_8ytSt4N3N8AAAD__w%3D%3D&ascii=1& https://play.d2lang.com/?script=rJJBjtswDEX3OgWBrm2kzU4Feoru...
- rng-concern 1y agoI thought your playground wasn't working as it renders black text on black background. Maybe I have darkmode enabled or something. Other renderers work, but ascii is invisible.
- alixanderwang 1y agoAh right, forgot to test the update with dark mode. Thanks for letting me know! edit: fixed
- mmastrac 1y agoDoes the SVG renderer support custom IDs and/or attributes on nodes? If so I'll add support for this to Stylus (https://github.com/mmastrac/stylus https://github.com/mmastrac/stylus)
- alixanderwang 1y agoYeah I think what you're looking for is the note at the end of this section: https://d2lang.com/tour/exports/#svg https://d2lang.com/tour/exports/#svg Feel free to make a PR to d2/d2-docs to include it in our list of community tools/plugins if you do!
- aidenn0 1y agoSo from TFA it just downscales from ELK? Do I have to specify ELK for this to work, or will it automagically enable if I try to output a .txt? (Really I'm just curious becasue I use ELK already for most of my d2 diagrams).
- alixanderwang 1y agoIt switches to ELK: https://github.com/terrastruct/d2/blob/master/d2cli/main.go#L482 https://github.com/terrastruct/d2/blob/master/d2cli/main.go#...
- hiyer 1y agoJust wanted to thank you for a great tool :-). I love d2 and ever since I discovered it a couple of years back I've been using it for all my diagramming needs. Thanks again and keep up the good work!