Make background of ERD transparent
This commit is contained in:
@@ -71,7 +71,7 @@ class Schema:
|
||||
def generate_mermaid_er(self, schema_info):
|
||||
"""Generates Mermaid ER diagram code from schema info."""
|
||||
mermaid_lines = [
|
||||
"%%{init: {'theme': 'default', 'themeCSS': '.er.entityBox { fill: none; } .er.attributeBoxEven { fill: none; } .er.attributeBoxOdd { fill: none; }'}}%%",
|
||||
"%%{init: {'theme': 'default', 'themeCSS': '.er.entityBox { fill: transparent !important; } .er.attributeBoxEven { fill: transparent !important; } .er.attributeBoxOdd { fill: transparent !important; }'}}%%",
|
||||
"erDiagram"
|
||||
]
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ def main():
|
||||
|
||||
# Run mmdc
|
||||
subprocess.run(
|
||||
["bun", "x", "mmdc", "-i", input_file, "-o", target_file],
|
||||
["bun", "x", "mmdc", "-i", input_file, "-o", target_file, "-b", "transparent"],
|
||||
check=True
|
||||
)
|
||||
print(f"Successfully generated {target_file}")
|
||||
|
||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 136 KiB |
Reference in New Issue
Block a user