mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-02-07 08:43:48 +02:00
parent
9d6d15c1bc
commit
a1a677fcd3
@ -408,7 +408,7 @@ def _convert_1_3_later(topo, topo_path):
|
|||||||
svg = '<svg height="{height}" width="{width}"><text fill="{fill}" fill-opacity="{opacity}" font-family="{family}" font-size="{size}" font-weight="{weight}" font-style="{style}">{text}</text></svg>'.format(
|
svg = '<svg height="{height}" width="{width}"><text fill="{fill}" fill-opacity="{opacity}" font-family="{family}" font-size="{size}" font-weight="{weight}" font-style="{style}">{text}</text></svg>'.format(
|
||||||
height=int(font_info[1]) * 2,
|
height=int(font_info[1]) * 2,
|
||||||
width=int(font_info[1]) * len(note["text"]),
|
width=int(font_info[1]) * len(note["text"]),
|
||||||
fill="#" + note["color"][-6:],
|
fill="#" + note.get("color", "#00000000")[-6:],
|
||||||
opacity=round(1.0 / 255 * int(note.get("color", "#ffffffff")[:3][-2:], base=16), 2), # Extract the alpha channel from the hexa version
|
opacity=round(1.0 / 255 * int(note.get("color", "#ffffffff")[:3][-2:], base=16), 2), # Extract the alpha channel from the hexa version
|
||||||
family=font_info[0],
|
family=font_info[0],
|
||||||
size=int(font_info[1]),
|
size=int(font_info[1]),
|
||||||
|
Loading…
Reference in New Issue
Block a user