Skip to content

How to use the mermaid elk layout? #1967

Closed Answered by tekumara
tekumara asked this question in Q&A
Discussion options

You must be logged in to vote
  1. First run: npm install @mermaid-js/layout-elk

  2. Then add the following to setup/main.ts:

    import { defineAppSetup } from '@slidev/types';
    import mermaid from 'mermaid/dist/mermaid.esm.mjs';
    import elkLayouts from '@mermaid-js/layout-elk';
    
    mermaid.registerLayoutLoaders(elkLayouts);
    
    export default defineAppSetup(() => {})

See https://www.npmjs.com/package/@mermaid-js/layout-elk

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tekumara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant