From 82603e72aa82b1adf6a6d1492669c11deee720e3 Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Tue, 29 Oct 2024 22:31:38 -0700 Subject: [PATCH] Allow js to set embed --- dbdiag/spans.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dbdiag/spans.py b/dbdiag/spans.py index e401e76..40846b2 100644 --- a/dbdiag/spans.py +++ b/dbdiag/spans.py @@ -309,7 +309,9 @@ def chart_to_svg(chart : Chart) -> str: #### Driver -def to_span_svg(text_input): +def to_span_svg(text_input, embed=None): + if embed is True or embed is False: + constants.EMBED = embed try: operations = parser.parse(text_input) except RuntimeError as e: