Created: 2023-08-06 | Updated: 2024-08-11
Fallback Vertex
New (v0.2.0)
Table of contents
Framework library is periodically updated with new Vertex
types added. If you are using not currently supported vertex type, the fallback icon will be rendered for such element. Also, you will see console message:
WARNING: No such nodeType: non_existing_super_cloud_service in the Library (using default fallback icon Info). Please contact maintainer to add it, or provide MergeRequest``
Node Type: fallback_vertex
Code Snippet:
# given
mcd = MultiCloudDiagrams()
# when
arn = 'arn:aws:non_existing_super_cloud_service:eu-west-1:123456789012:mock_data'
metadata = {
"Owner": 123456789012,
"CDC Offset": 3,
"Throttling": 100
}
mcd.add_vertex(node_id=arn, node_name='non_existing_super_cloud_service', node_type='non_existing_super_cloud_service', metadata=metadata)
Rendering:
drawio fallback_vertex vertex:
<mxCell id="vertex:non_existing_super_cloud_service:arn:aws:non_existing_super_cloud_service:eu-west-1:123456789012:mock_data" parent="1" vertex="1">
<mxGeometry width="78" height="78" as="geometry"/>
</mxCell>
Advanced for Geeks:
Style:
style="sketch=0;aspect=fixed;html=1;align=left;image;fontSize=12;image=img/lib/mscae/Info.svg;labelBackgroundColor=none;"
attribute | value |
---|---|
align | left |
aspect | fixed |
fontSize | 12 |
html | 1 |
image | |
image | img/lib/mscae/Info.svg |
labelBackgroundColor | none |
sketch | 0 |
Vertex size:
attribute | value |
---|---|
width | 78 |
height | 78 |
Full XML dump:
<mxfile host="multicloud-diagrams" agent="PIP package multicloud-diagrams. Generate resources in draw.io compatible format for Cloud infrastructure. Copyrights @ Roman Tsypuk 2023. MIT license." type="MultiCloud">
<diagram id="diagram_1" name="AWS components">
<mxGraphModel dx="1015" dy="661" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="1">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="vertex:non_existing_super_cloud_service:arn:aws:non_existing_super_cloud_service:eu-west-1:123456789012:mock_data" value="<b>Name</b>: non_existing_super_cloud_service<BR><b>ID</b>: arn:aws:non_existing_super_cloud_service:eu-west-1:123456789012:mock_data<BR>-----------<BR><b>Owner</b>: 123456789012<BR><b>CDC Offset</b>: 3<BR><b>Throttling</b>: 100" style="sketch=0;aspect=fixed;html=1;align=left;image;fontSize=12;image=img/lib/mscae/Info.svg;labelBackgroundColor=none;" parent="1" vertex="1">
<mxGeometry width="78" height="78" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
drawio file:
Download generated fallback_vertex.drawio
: