Created: 2023-08-06 | Updated: 2024-05-17

Fallback Vertex

New (v0.2.0)

Table of contents

  1. Node Type: fallback_vertex
  2. Code Snippet:
  3. Rendering:
  4. drawio fallback_vertex vertex:
  5. Advanced for Geeks:
    1. Style:
    2. Vertex size:
    3. Full XML dump:
    4. drawio file:

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:

lambda

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;"
attributevalue
alignleft
aspectfixed
fontSize12
html1
image 
imageimg/lib/mscae/Info.svg
labelBackgroundColornone
sketch0

Vertex size:

attributevalue
width78
height78

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="&lt;b&gt;Name&lt;/b&gt;: non_existing_super_cloud_service&lt;BR&gt;&lt;b&gt;ID&lt;/b&gt;: arn:aws:non_existing_super_cloud_service:eu-west-1:123456789012:mock_data&lt;BR&gt;-----------&lt;BR&gt;&lt;b&gt;Owner&lt;/b&gt;: 123456789012&lt;BR&gt;&lt;b&gt;CDC Offset&lt;/b&gt;: 3&lt;BR&gt;&lt;b&gt;Throttling&lt;/b&gt;: 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:

Download