|
| 1 | +!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml |
| 2 | + |
| 3 | +allow_mixing |
| 4 | + |
| 5 | +'Общее позиционирование |
| 6 | +skinparam { |
| 7 | + wrapWidth 200 |
| 8 | + maxMessageSize 200 |
| 9 | + 'hide stereotype |
| 10 | + defaultfontname arial |
| 11 | + roundCorner 10 |
| 12 | + linetype ortho |
| 13 | + 'linetype polyline |
| 14 | + 'nodesep 100 |
| 15 | + 'ranksep 100 |
| 16 | + shadowing false |
| 17 | + 'padding 0 |
| 18 | + hyperlinkColor black |
| 19 | + hyperlinkUnderline false |
| 20 | +} |
| 21 | +'left to right direction |
| 22 | +hide circle |
| 23 | + |
| 24 | + |
| 25 | +'Стиль стрелки |
| 26 | +skinparam arrow { |
| 27 | + color black |
| 28 | + thickness 1 |
| 29 | +} |
| 30 | + |
| 31 | +skinparam note { |
| 32 | +bordercolor #4e4948 |
| 33 | +backgroundcolor pink |
| 34 | +} |
| 35 | + |
| 36 | +!unquoted procedure $Region($alias, $label, $type) |
| 37 | + !if ($type) |
| 38 | + Boundary($alias , "$label", $type) |
| 39 | + !else |
| 40 | + Boundary($alias , "$label") |
| 41 | + !endif |
| 42 | +!endprocedure |
| 43 | + |
| 44 | +!unquoted procedure $Header($Title="Header", $Authors="Name", $Version="0.1", $Date="01.01.1999") |
| 45 | + header |
| 46 | + !if ($Authors) |
| 47 | + Authors: $Authors |
| 48 | + !endif |
| 49 | + !if ($Version) |
| 50 | + Version: $Version |
| 51 | + !endif |
| 52 | + !if ($Date) |
| 53 | + Date: $Date |
| 54 | + !endif |
| 55 | + |
| 56 | + endheader |
| 57 | + |
| 58 | + hide empty members |
| 59 | + |
| 60 | + title $Title |
| 61 | +!endprocedure |
| 62 | + |
| 63 | +!unquoted procedure $Entity($entity, $ACName, $id, $ACType) |
| 64 | + !if ($entity == "database") |
| 65 | + !if ($ACType == "Внешняя") |
| 66 | + SystemDb_Ext($id, $ACName) |
| 67 | + !else |
| 68 | + SystemDb($id, $ACName) |
| 69 | + !endif |
| 70 | + !elseif ($entity == "actor" || $entity == "person") |
| 71 | + !if ($ACType == "Внешняя") |
| 72 | + Person_Ext($id, $ACName) |
| 73 | + !else |
| 74 | + Person($id, $ACName) |
| 75 | + !endif |
| 76 | + !else |
| 77 | + !if ($ACType == "Внешняя") |
| 78 | + System_Ext($id, $ACName) |
| 79 | + !else |
| 80 | + System($id, $ACName) |
| 81 | + !endif |
| 82 | + !endif |
| 83 | +!endprocedure |
| 84 | + |
| 85 | +!unquoted procedure $EntityEnd($entity) |
| 86 | +!endprocedure |
| 87 | + |
| 88 | +!unquoted procedure $EntityAspect($entity, $prop) |
| 89 | +!endprocedure |
| 90 | + |
| 91 | +!unquoted procedure $EntityExpand($entity, $ID) |
| 92 | +!endprocedure |
0 commit comments