Skip to content

Commit

Permalink
docs: added actor node
Browse files Browse the repository at this point in the history
  • Loading branch information
tsypuk committed Sep 30, 2023
1 parent d5bd4e8 commit 0fa058d
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 0 deletions.
88 changes: 88 additions & 0 deletions docs/docs/core-components/actor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
layout: default
title: Actor
parent: CORE Components
nav_order: 3
date: 2023-09-27
---

# Actor
{: .d-inline-block .no_toc }

New (v0.3.15)
{: .label .label-green }

## Table of contents
{: .no_toc .text-delta }

1. TOC
{:toc}

---


## Node Type: ``actor``

## Rendering:

![lambda](output/jpg/actor.jpg)

## Code Snippet:

```python
{% root_include_snippet ../tests/core/test_actor.py %}
```

## drawio actor vertex:

```xml
<mxCell id="vertex:actor:777abc" parent="1" vertex="1">
<mxGeometry width="30" height="60" as="geometry"/>
</mxCell>
```
---

## Advanced for Geeks:

### Style:
```html
style="shape=umlActor;verticalLabelPosition=bottom;verticalAlign=top;html=1;outlineConnect=0;"
```

| attribute | value |
|:----------|:------|
|html| 1 |
|outlineConnect| 0 |
|shape| umlActor |
|verticalAlign| top |
|verticalLabelPosition| bottom |

### Vertex size:

| attribute | value |
|:---------|:-----------|
| width | 30 |
| height |60|

### Full XML dump:
```xml
<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:actor:777abc" value="&lt;b&gt;Name&lt;/b&gt;: User&lt;BR&gt;&lt;b&gt;ID&lt;/b&gt;: 777abc" style="shape=umlActor;verticalLabelPosition=bottom;verticalAlign=top;html=1;outlineConnect=0;" parent="1" vertex="1">
<mxGeometry width="30" height="60" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
```

### drawio file:

Download generated ``actor.drawio``:

[Download](output/drawio/actor.drawio){: .btn .btn-purple }
13 changes: 13 additions & 0 deletions docs/docs/core-components/output/drawio/actor.drawio
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<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:actor:777abc" value="&lt;b&gt;Name&lt;/b&gt;: User&lt;BR&gt;&lt;b&gt;ID&lt;/b&gt;: 777abc" style="shape=umlActor;verticalLabelPosition=bottom;verticalAlign=top;html=1;outlineConnect=0;" parent="1" vertex="1">
<mxGeometry width="30" height="60" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
Binary file added docs/docs/core-components/output/jpg/actor.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0fa058d

Please sign in to comment.