Mermaid: how to get mermaidAPI?

Created on 25 Jan 2018  ·  3Comments  ·  Source: mermaid-js/mermaid

i use ,and i have this file ,but when i open the html , it tell me ReferenceError: mermaidAPI is not defined
this is my code








graph LR
id1(行号) --> id2(指令名称)
id2(指令名称) --> id3(加载)
id3(加载) --> id4(就绪)
id4(就绪) --> id5(发送)
id5(发送) --> id6(发送时间);


Most helpful comment

So the usage of mermaidAPI is deprecated? Everything should be done through regular mermaid,js file? After executing

yarn build:watch

mermaidAPI.js is not generated in dist folder

call

mermaid.mermaidAPI

All 3 comments

Please take this file as example for how to use mermaid in a static HTML page: https://github.com/knsv/mermaid/blob/master/dist/index.html

So the usage of mermaidAPI is deprecated? Everything should be done through regular mermaid,js file? After executing

yarn build:watch

mermaidAPI.js is not generated in dist folder

So the usage of mermaidAPI is deprecated? Everything should be done through regular mermaid,js file? After executing

yarn build:watch

mermaidAPI.js is not generated in dist folder

call

mermaid.mermaidAPI

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pirDOL picture pirDOL  ·  3Comments

init-dcat-ap-de picture init-dcat-ap-de  ·  3Comments

tylerlong picture tylerlong  ·  5Comments

zumdahl76 picture zumdahl76  ·  5Comments

deftdawg picture deftdawg  ·  3Comments