mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
71.07k stars 6.4k forks source link

ER diagrams are insensitive to font size config #3032

Open aalong-tr opened 2 years ago

aalong-tr commented 2 years ago

Describe the bug Some diagram types respect init theme variables that modify font size, but ER diagrams do not respect this configuration

To Reproduce Link to Live Editor: class diagram with working font size er diagram with ignored font size

Steps to reproduce the behavior:

  1. Load the sample ER diagram (or any other Entity Relationship diagram)
  2. Prepend the snippet %%{init:{"themeVariables": { "fontSize": "30px" }}}%% to the first line

Note that, while I have omitted an explicit theme (which may or may not be defined behavior), adding a theme property to the init json does not alter the bug

Expected behavior The font size of the diagram should noticeably increase. Instead, it remains unchanged.

Desktop (please complete the following information):

asesidaa commented 2 years ago

Neither does sequence diagram

sidharthv96 commented 2 years ago

Transferring as class diagram does have font size specified in svg, but er diagam doesn't.
Out of scope for live editor.