svg_loader
anomaly_match_ui.utils.svg_loader
¶
Logo loaders for ESA and AnomalyMatch branding in the UI.
load_esa_logo(height)
¶
Load the ESA logo SVG content from the assets package.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
height
|
int
|
Height of the logo in pixels. |
required |
Returns:
| Type | Description |
|---|---|
str
|
The SVG markup as a string. |
Source code in anomaly_match_ui/utils/svg_loader.py
load_am_logo_base64()
¶
Load the full AnomalyMatch logo (white variant) as a base64 data URI.
Returns:
| Type | Description |
|---|---|
str
|
A |
load_am_logo_only_base64()
¶
Load the AnomalyMatch icon-only logo as a base64 data URI.
Returns:
| Type | Description |
|---|---|
str
|
A |
load_icon_svg(filename)
¶
Load an SVG icon from the assets package.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
str
|
Name of the SVG file inside the |
required |
Returns:
| Type | Description |
|---|---|
str
|
The SVG markup as a string. |
Source code in anomaly_match_ui/utils/svg_loader.py
get_dual_logo_html(height=32)
¶
Return inline HTML with both ESA and AnomalyMatch logos side by side.
Uses the icon-only AM logo for compact display (e.g. headers).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
height
|
int
|
Height of each logo in pixels. |
32
|
Returns:
| Type | Description |
|---|---|
str
|
HTML string with both logos suitable for |