5 ms·
FYI for any new or casual Mermaid users, it comes with a built-in alternate layout called `elk` that I find does a much cleaner job on complex flowcharts. See
by sbarre 1mo ago
FYI for any new or casual Mermaid users, it comes with a built-in alternate layout called `elk` that I find does a much cleaner job on complex flowcharts.
See docs here: https://mermaid.ai/open-source/config/layouts.html https://mermaid.ai/open-source/config/layouts.html
- CGamesPlay 1mo agoThis is super interesting, but apparently neither Obsidian nor Typora include support for it. I guess it's actually provided by an optional plugin. https://mermaid.ai/live/edit#pako:eNplUlFPwjAQ_ivNPW9EkMHWB40BfAJjNJLoxkOht9E4WtJ1URz8d9uOYdSHNffd9313t2sb2CiOQCEMw0xulMxFQTNJSMkOqjaUYPmeSSNMiZS8VKgJq80WbWbDjFCS5KX6yKR3F5rtt2T-5OzEi1N3rEgY3pC5KoRM_UkeWYGrVtUmnGCikVfNkpWC-9j1YGV1e2qFnnbC44M6tra_xCtWR7K4v2vsR2aSrUvknd2lOvMzVpUdPbVOZrCDq99CX2xid5POpLG_7fIOnmUu9GMvUYv80Hjsh-86tsSlqRP8I3yTc_-WPANfesqq7VoxzdNLtIIACi04UKNrDGCHescchMb5M7B3s8MMqA055qwuTQaZPFnbnsk3pXadU6u62ALN7YotqvfcrmIqmL3DHwlKjnqiammADvp9XwNoA58Wxr1olPSH16PheDwcJQEcgI6jXjweJnESxclgEMXxKYAv3_PKElEAyIVRetG-OP_wTt8pRM34 https://mermaid.ai/live/edit#pako:eNplUlFPwjAQ_ivNPW9EkMHWB4...
- ramoz 1mo agoI'm trying some of the diagrams in elk and it seems to break the logical flow. You can try it with Line9's first chart: https://mermaid.ai/live/edit#pako:eNpVVEtv2zAM_iuCTilgB1mbxqkPe6A57NBtRbvLZvfASowtRJYMWe7WGfnvoyS3TS8mxY-PjxTliQsrkZc8z_PaeOU1luwWnEDNdqjVE7rn2mhl8KqsDWO-xY48Hi046aztaiOs2asmghqe7ehLhvpQm5hwr-0f0YLz7OYueFgn0S2qH0GwXoNA-XDG8vwj65U4VLf0YWAk60EcHkJAMEdcYm99tdgFcXYCLVnvlPEDW5KThkfUnyc2tNATS2lFlmwlq_l9q_pemSZZas6OIUvMGys8galuLEhmjbeh0WCJlUhGD_Aeu95XX5Kk2DSg6DSD0XFvRyOnL1I6HIZ0-hSrRTWQ_m4j4Vj9BMjZLxxiCmWme9uhNUhqClbm1GFQjal-wgEZRB386DAyCac0M-igQTntkkxZZmMgEVIt59m_g_LAL2ag-otqXoRwV288Zg9Bi1DdIDwFHuEQKQQlwa1VAqfrcfDUjWO298rO_SQs5LrDeZQvF_EevrZao0ijHVrbV1-tljTweEnaCtDRnJon5XWhqPfbKNjYp5rJejrH0OJ7ZO7skXZwUd0hzdUQQDsxoKG9TUMQGl6uNlMmm0eXJdLZnKwBj2_Oce-ytHD0JNQehH9DA48s1GRUhdaUZ7xxSvJyD3rAjNP0OghnPoWgmsenWPOw2hL3MGpf89ocKa4H85veJi-9GynS2bFpX_OMvSRWOwWNg-7V6mJr19SO5-XFxTYm4eXE__Jys12u1-fFdlWcb4vNZnWZ8efgdL682KyvNsXlZbFZfSjWx4z_i2VXy21BTiiVt-5b-r_E38zxPyWcdWA https://mermaid.ai/live/edit#pako:eNpVVEtv2zAM_iuCTilgB1mbxq... While it's nice and compact, it actually is rougher to grep.
- jumpalongjim 1mo agoMermaid does indeed provide alternative layout engines. Please do try ELK before Line9. My experience is 1) hand-tuning the layout of Mermaid, having to try alternative engines or parameters, is not what I want. I just want a graph that I can use straight away. 2) ELK more often than not does give a clearer flowchart that I might be satisfied with for personal use but I still wasn't happy putting it in a presentation in front of others.
- sbarre 1mo agoFor sure, I was not implying ELK was a replacement, it's just been good to me for some types of flowcharts that get messy with the standard Dagre layout ... Excellent work on Line9 BTW, it looks fantastic. :-)