MCPcopy Create free account
hub / github.com/BIT-DataLab/Edit-Banana / build_style_string

Function build_style_string

modules/utils/drawio_library.py:18–20  ·  view source on GitHub ↗

Convert style dict to DrawIO style string.

(**attrs: Any)

Source from the content-addressed store, hash-verified

16
17
18def build_style_string(**attrs: Any) -> str:
19 """Convert style dict to DrawIO style string."""
20 return ";".join(f"{k}={v}" for k, v in attrs.items() if v is not None)
21
22
23def get_drawio_style(element_type: str, **overrides: Any) -> str:

Callers 1

get_drawio_styleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected