demo_doc/puml/hacker/state-ex.svg

883 lines
29 KiB
XML
Raw Normal View History

2021-06-25 21:37:59 +08:00
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="1179.1667px" preserveAspectRatio="none" style="width:360px;height:1179px;background:#00000000;" version="1.1" viewBox="0 0 360 1179" width="360.4167px" zoomAndPan="magnify"><defs><linearGradient id="gxqbryqt0wyda0" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#151515"/><stop offset="100%" stop-color="#000000"/></linearGradient><linearGradient id="gxqbryqt0wyda1" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#D3F198"/><stop offset="100%" stop-color="#B5E853"/></linearGradient></defs><g><rect fill="url(#gxqbryqt0wyda0)" height="46.1528" rx="4.1667" ry="4.1667" style="stroke:#B5E853;stroke-width:1.0416666666666667;" width="347.9167" x="2.0833" y="2.0833"/><text fill="#B5E853" font-family="Verdana" font-size="20.8333" lengthAdjust="spacing" textLength="320.8333" x="15.625" y="33.4452">State Diagram - hacker theme</text><rect fill="#90A959" height="8.3333" style="stroke:none;stroke-width:1.0416666666666667;" width="83.3333" x="140.625" y="141.9861"/><ellipse cx="182.2917" cy="68.0278" fill="#AA759F" rx="10.4167" ry="10.4167" style="stroke:none;stroke-width:1.0416666666666667;"/><g id="State2"><rect fill="url(#gxqbryqt0wyda1)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#D3F198;stroke-width:1.5625;" width="75" x="89.5833" y="213.8611"/><line style="stroke:#D3F198;stroke-width:1.5625;" x1="89.5833" x2="164.5833" y1="249.8861" y2="249.8861"/><text fill="#151515" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="43.75" x="105.2083" y="236.8449">State2</text></g><g id="State3"><rect fill="url(#gxqbryqt0wyda1)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#D3F198;stroke-width:1.5625;" width="75" x="207.2917" y="213.8611"/><line style="stroke:#D3F198;stroke-width:1.5625;" x1="207.2917" x2="282.2917" y1="249.8861" y2="249.8861"/><text fill="#151515" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="43.75" x="222.9167" y="236.8449">State3</text></g><rect fill="#90A959" height="8.3333" style="stroke:none;stroke-width:1.0416666666666667;" width="83.3333" x="141.6667" y="360.7361"/><g id="State4"><rect fill="url(#gxqbryqt0wyda1)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#D3F198;stroke-width:1.5625;" width="75" x="145.8333" y="432.6111"/><line style="stroke:#D3F198;stroke-width:1.5625;" x1="145.8333" x2="220.8333" y1="468.6361" y2="468.6361"/><text fill="#151515" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="43.75" x="161.4583" y="455.5949">State4</text></g><rect fill="url(#gxqbryqt0wyda1)" height="620.1416" rx="13.0208" ry="13.0208" style="stroke:#D3F198;stroke-width:1.5625;" width="326.0417" x="20.3125" y="553.4444"/><rect height="577.8666" rx="13.0208" ry="13.0208" style="stroke:#00000000;stroke-width:1.0416666666666667;fill:none;" width="319.7917" x="23.4375" y="592.5944"/><line style="stroke:#D3F198;stroke-width:1.5625;fill:none;" x1="20.3125" x2="346.3542" y1="589.4694" y2="589.4694"/><text fill="#151515" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="38.5417" x="164.0625" y="576.4282">Active</text><ellipse cx="42.1875" cy="630.6152" fill="#AA759F" rx="10.4167" ry="10.4167" style="stroke:none;stroke-width:1.0416666666666667;"/><g id="Active.NumLockOff"><rect fill="url(#gxqbryqt0wyda1)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#D3F198;stroke-width:1.5625;" width="108.3333" x="71.3542" y="601.9694"/><line style="stroke:#D3F198;stroke-width:1.5625;" x1="71.3542" x2="179.6875" y1="637.9944" y2="637.9944"/><text fill="#151515" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="77.0833" x="86.9792" y="624.9532">NumLockOff</text></g><g id="Active.NumLockOn"><rect fill="url(#gxqbryqt0wyda1)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#D3F198;stroke-width:1.5625;" width="108.3333" x="70.3125" y=
link *start*Active to NumLockOff--><path d="M52.6042,630.6152 C56.9479,630.6152 61.2813,630.6152 65.625,630.6152 " fill="none" id="*start*Active-to-NumLockOff" style="stroke:#B5E853;stroke-width:3.125;"/><polygon fill="#B5E853" points="71.1146,630.6152,61.7396,626.4486,65.9063,630.6152,61.7396,634.7819,71.1146,630.6152" style="stroke:#B5E853;stroke-width:3.125;"/><!--MD5=[b6ef3c088f5474ecc81df30475e7d61b]
link NumLockOff to NumLockOn--><path d="M71.1042,657.3652 C58.5833,664.4277 47.8646,671.834 44.2708,678.0111 C38.2292,688.4173 38.25,694.6673 44.2708,705.0944 C49.3542,713.9069 56.8333,721.1986 65.1979,727.1777 " fill="none" id="NumLockOff-to-NumLockOn" style="stroke:#B5E853;stroke-width:3.125;"/><polygon fill="#B5E853" points="69.9271,730.3652,64.4929,721.6634,65.6119,727.4488,59.8266,728.5677,69.9271,730.3652" style="stroke:#B5E853;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="127.0833" x="50.5208" y="696.8282">EvNumLockPressed</text><!--MD5=[3bfddee0d82dc74c927fbeb3d3f2e6a3]
link NumLockOn to NumLockOff--><path d="M169.8333,723.6673 C175.4896,718.2298 180.4688,712.0319 183.8542,705.0944 C189.1354,694.2715 189.0833,688.8548 183.8542,678.0111 C181.2708,672.6569 177.7396,667.7402 173.6771,663.2611 " fill="none" id="NumLockOn-to-NumLockOff" style="stroke:#B5E853;stroke-width:3.125;"/><polygon fill="#B5E853" points="169.8125,659.2715,173.3404,668.905,173.4355,663.0132,179.3273,663.1083,169.8125,659.2715" style="stroke:#B5E853;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="127.0833" x="194.2708" y="696.8282">EvNumLockPressed</text><line style="stroke:#D3F198;stroke-width:1.5625;stroke-dasharray:8.0,10.0;" x1="25.5208" x2="339.0625" y1="785.9111" y2="785.9111"/><ellipse cx="42.1875" cy="821.8486" fill="#AA759F" rx="10.4167" ry="10.4167" style="stroke:none;stroke-width:1.0416666666666667;"/><g id="Active.CONC87.CapsLockOff"><rect fill="url(#gxqbryqt0wyda1)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#D3F198;stroke-width:1.5625;" width="112.5" x="71.3542" y="793.2027"/><line style="stroke:#D3F198;stroke-width:1.5625;" x1="71.3542" x2="183.8542" y1="829.2277" y2="829.2277"/><text fill="#151515" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="81.25" x="86.9792" y="816.1865">CapsLockOff</text></g><g id="Active.CONC87.CapsLockOn"><rect fill="url(#gxqbryqt0wyda1)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#D3F198;stroke-width:1.5625;" width="112.5" x="70.3125" y="915.0777"/><line style="stroke:#D3F198;stroke-width:1.5625;" x1="70.3125" x2="182.8125" y1="951.1027" y2="951.1027"/><text fill="#151515" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="81.25" x="85.9375" y="938.0615">CapsLockOn</text></g><!--MD5=[70bdb58272bc1a7d9e9d21dfe0316432]
link *start*CONC87 to CapsLockOff--><path d="M52.8646,821.8486 C57.1771,821.8486 61.4896,821.8486 65.8021,821.8486 " fill="none" id="*start*CONC87-to-CapsLockOff" style="stroke:#B5E853;stroke-width:3.125;"/><polygon fill="#B5E853" points="71.2604,821.8486,61.8854,817.6819,66.0521,821.8486,61.8854,826.0152,71.2604,821.8486" style="stroke:#B5E853;stroke-width:3.125;"/><!--MD5=[dc4675bd3056f3ef68701d9e8e02a3f3]
link CapsLockOff to CapsLockOn--><path d="M70.9375,848.9423 C58.4688,855.859 47.875,863.109 44.2708,869.2444 C38.1667,879.6194 38.1979,885.9319 44.2708,896.3277 C49.4375,905.1715 56.9792,912.4527 65.4271,918.4111 " fill="none" id="CapsLockOff-to-CapsLockOn" style="stroke:#B5E853;stroke-width:3.125;"/><polygon fill="#B5E853" points="70.2083,921.5881,64.7191,912.9209,65.8747,918.6991,60.0966,919.8547,70.2083,921.5881" style="stroke:#B5E853;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="131.25" x="50.5208" y="888.0615">EvCapsLockPressed</text><!--MD5=[79e17b083e07746bd1a647600952cab6]
link CapsLockOn to CapsLockOff--><path d="M173.7813,914.8381 C179.5208,909.4423 184.5625,903.2652 188.0208,896.3277 C193.3854,885.5569 193.3438,880.0361 188.0208,869.2444 C185.375,863.8902 181.7917,858.984 177.6667,854.5256 " fill="none" id="CapsLockOn-to-CapsLockOff" style="stroke:#B5E853;stroke-width:3.125;"/><polygon fill="#B5E853" points="173.7396,850.5673,177.3643,860.1648,177.4,854.2724,183.2925,854.3081,173.7396,850.5673" style="stroke:#B5E853;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="131.25" x="198.4375" y="888.0615">EvCapsLockPressed</text><line style="stroke:#D3F198;stroke-width:1.5625;stroke-dasharray:8.0,10.0;" x1="25.5208" x2="339.0625" y1="977.1444" y2="977.1444"/><ellipse cx="42.1875" cy="1013.0819" fill="#AA759F" rx="10.4167" ry="10.4167" style="stroke:none;stroke-width:1.0416666666666667;"/><g id="Active.CONC95.ScrollLockOff"><rect fill="url(#gxqbryqt0wyda1)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#D3F198;stroke-width:1.5625;" width="113.5417" x="71.875" y="984.436"/><line style="stroke:#D3F198;stroke-width:1.5625;" x1="71.875" x2="185.4167" y1="1020.461" y2="1020.461"/><text fill="#151515" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="82.2917" x="87.5" y="1007.4198">ScrollLockOff</text></g><g id="Active.CONC95.ScrollLockOn"><rect fill="url(#gxqbryqt0wyda1)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#D3F198;stroke-width:1.5625;" width="113.5417" x="71.875" y="1106.311"/><line style="stroke:#D3F198;stroke-width:1.5625;" x1="71.875" x2="185.4167" y1="1142.336" y2="1142.336"/><text fill="#151515" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="82.2917" x="87.5" y="1129.2948">ScrollLockOn</text></g><!--MD5=[8676698f49c1acec7e35e8e65e103748]
link *start*CONC95 to ScrollLockOff--><path d="M52.6563,1013.0819 C57.2083,1013.0819 61.7604,1013.0819 66.3125,1013.0819 " fill="none" id="*start*CONC95-to-ScrollLockOff" style="stroke:#B5E853;stroke-width:3.125;"/><polygon fill="#B5E853" points="71.6563,1013.0819,62.2813,1008.9152,66.4479,1013.0819,62.2813,1017.2485,71.6563,1013.0819" style="stroke:#B5E853;stroke-width:3.125;"/><!--MD5=[da4e1e55b4a6de250eca2c82023085fa]
link ScrollLockOff to ScrollLockOn--><path d="M71.875,1035.4777 C61.6771,1041.936 52.3958,1050.1444 46.3542,1060.4777 C40.2813,1070.8735 40.2813,1077.1652 46.3542,1087.561 C51.4479,1096.2798 58.8542,1103.4881 67.1667,1109.4048 " fill="none" id="ScrollLockOff-to-ScrollLockOn" style="stroke:#B5E853;stroke-width:3.125;"/><polygon fill="#B5E853" points="71.875,1112.561,66.4064,1103.8808,67.5483,1109.6617,61.7674,1110.8036,71.875,1112.561" style="stroke:#B5E853;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="131.25" x="52.6042" y="1079.2948">EvCapsLockPressed</text><!--MD5=[6ad2c621f2407b82317910f4deb17639]
link ScrollLockOn to ScrollLockOff--><path d="M175.8646,1106.0715 C181.6042,1100.6756 186.6458,1094.4985 190.1042,1087.561 C195.4688,1076.7902 195.4688,1071.2485 190.1042,1060.4777 C187.4583,1055.1652 183.875,1050.3006 179.7708,1045.8944 " fill="none" id="ScrollLockOn-to-ScrollLockOff" style="stroke:#B5E853;stroke-width:3.125;"/><polygon fill="#B5E853" points="175.8646,1041.9673,179.5281,1051.5501,179.54,1045.6576,185.4325,1045.6695,175.8646,1041.9673" style="stroke:#B5E853;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="131.25" x="199.4792" y="1079.2948">EvCapsLockPressed</text><!--MD5=[242ad121cef04112e9b0ee8f25f52375]
link *start to fork_state--><path d="M182.2917,78.7048 C182.2917,93.5382 182.2917,121.7569 182.2917,136.1632 " fill="none" id="*start-to-fork_state" style="stroke:#B5E853;stroke-width:3.125;"/><polygon fill="#B5E853" points="182.2917,141.7153,186.4583,132.3403,182.2917,136.5069,178.125,132.3403,182.2917,141.7153" style="stroke:#B5E853;stroke-width:3.125;"/><!--MD5=[44dd36eb382d4fffd186e8c447a61da0]
link fork_state to State2--><path d="M180.4583,150.3298 C175.1146,159.4548 159.1146,186.7673 146.0208,209.1319 " fill="none" id="fork_state-to-State2" style="stroke:#B5E853;stroke-width:3.125;"/><polygon fill="#B5E853" points="143.2708,213.8298,151.606,207.8485,145.9044,209.3364,144.4165,203.6348,143.2708,213.8298" style="stroke:#B5E853;stroke-width:3.125;"/><!--MD5=[43d4d70f9cd19f132a5eb1ce9d85c890]
link fork_state to State3--><path d="M184.375,150.3298 C190.4479,159.4965 208.6875,186.9965 223.5417,209.4132 " fill="none" id="fork_state-to-State3" style="stroke:#B5E853;stroke-width:3.125;"/><polygon fill="#B5E853" points="226.4688,213.8298,224.7353,203.7181,223.5797,209.4962,217.8016,208.3406,226.4688,213.8298" style="stroke:#B5E853;stroke-width:3.125;"/><!--MD5=[8cf5ef3a64654818495211b4c165bd62]
link State2 to join_state--><path d="M113.125,271.3923 C106.3021,289.2153 101.6563,312.1736 112.5,329.4861 C122.8646,346.0382 143.7188,354.8194 160.125,359.3507 " fill="none" id="State2-to-join_state" style="stroke:#B5E853;stroke-width:3.125;"/><polygon fill="#B5E853" points="165.5,360.7257,157.455,354.3593,160.4552,359.431,155.3835,362.4311,165.5,360.7257" style="stroke:#B5E853;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="98.9583" x="118.75" y="321.2199">some message</text><!--MD5=[183fde86cac17ac230b97143534e47db]
link State3 to join_state--><path d="M244.375,271.2986 C242.9583,289.0903 238.9167,312.0382 228.125,329.4861 C220.0625,342.5278 205.1354,352.4653 194.7396,358.2257 " fill="none" id="State3-to-join_state" style="stroke:#B5E853;stroke-width:3.125;"/><polygon fill="#B5E853" points="190.0417,360.7048,200.2769,360.0039,194.6455,358.2693,196.38,352.6378,190.0417,360.7048" style="stroke:#B5E853;stroke-width:3.125;"/><!--MD5=[1e473d623208eebf6d5ebd6e9bc5a11d]
link join_state to State4--><path d="M183.3333,369.0798 C183.3333,378.1319 183.3333,405.0694 183.3333,427.3194 " fill="none" id="join_state-to-State4" style="stroke:#B5E853;stroke-width:3.125;"/><polygon fill="#B5E853" points="183.3333,432.5798,187.5,423.2048,183.3333,427.3715,179.1667,423.2048,183.3333,432.5798" style="stroke:#B5E853;stroke-width:3.125;"/><!--MD5=[0a70b1a7cf318979336334b4227eefe4]
link State4 to Active--><path d="M183.3333,490.1111 C183.3333,504.934 183.3333,524.8507 183.3333,547.809 " fill="none" id="State4-to-Active" style="stroke:#B5E853;stroke-width:3.125;"/><polygon fill="#B5E853" points="183.3333,553.059,187.5,543.684,183.3333,547.8507,179.1667,543.684,183.3333,553.059" style="stroke:#B5E853;stroke-width:3.125;"/><!--MD5=[b34eb1ceb0067144e59a1f88e8b9516b]
@startuml
!$THEME = "hacker"
!if %not(%variable_exists("$BGCOLOR"))
!$BGCOLOR = "transparent"
!endif
skinparam BackgroundColor $BGCOLOR
skinparam useBetaStyle false
!$PRIMARY = "#b5e853"
!$PRIMARY_LIGHT = "#d3f198"
!$PRIMARY_DARK = "#6d8b32"
!$PRIMARY_TEXT = "#151515"
!$SECONDARY = "#6a9fb5"
!$SECONDARY_LIGHT = "#88b2c4"
!$SECONDARY_DARK = "#557f91"
!$SECONDARY_TEXT = "#fefefe"
!$SUCCESS = "#90a959"
!$SUCCESS_LIGHT = "#a6ba7a"
!$INFO = "#aa759f"
!$INFO_LIGHT = "#bb91b2"
!$INFO_DARK = "#885E7F"
!$WARNING = "#f4bf75"
!$WARNING_LIGHT = "#f6cc91"
!$WARNING_TEXT = "#151515"
!$DANGER = "#ac4142"
!$DANGER_LIGHT = "#bd6768"
!$LIGHT = "#151515"
!$DARK = "#eaeaea"
!procedure $success($msg)
<font color=$SUCCESS><b>$msg
!endprocedure
!procedure $failure($msg)
<font color=$DANGER><b>$msg
!endprocedure
!procedure $warning($msg)
<font color=$WARNING><b>$msg
!endprocedure
!procedure $primary_scheme()
FontColor $PRIMARY_TEXT
BorderColor $PRIMARY_LIGHT
BackgroundColor $PRIMARY_LIGHT-$PRIMARY
!endprocedure
skinparam defaultFontName "Verdana"
skinparam defaultFontSize 12
skinparam dpi 100
skinparam shadowing false
skinparam roundcorner 40
skinparam ParticipantPadding 40
skinparam BoxPadding 40
skinparam Padding 5
skinparam ArrowColor $DARK
skinparam stereotype {
CBackgroundColor $SECONDARY_DARK
CBorderColor $SECONDARY_LIGHT
ABackgroundColor $SUCCESS_LIGHT
ABorderColor $SUCCESS_DARK
IBackgroundColor $DANGER_LIGHT
IBorderColor $DANGER_DARK
EBackgroundColor $WARNING_LIGHT
EBorderColor $WARNING_DARK
NBackgroundColor $INFO_LIGHT
NBorderColor $INFO_DARK
}
skinparam title {
FontColor $PRIMARY
BorderColor $PRIMARY
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor $LIGHT-black
}
skinparam legend {
BackgroundColor $SECONDARY
BorderColor $SECONDARY_DARK
FontColor $DARK
}
!startsub swimlane
skinparam swimlane {
BorderColor $INFO
BorderThickness 2
TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY
TitleFontColor $PRIMARY
}
!endsub
!startsub activity
skinparam activity {
$primary_scheme()
BarColor $SUCCESS
StartColor $INFO
EndColor $INFO
DiamondBackgroundColor $SECONDARY_LIGHT-$SECONDARY
DiamondBorderColor $SECONDARY_LIGHT
DiamondFontColor $SECONDARY_TEXT
}
!endsub
!startsub participant
skinparam participant {
$primary_scheme()
BorderThickness 2
}
!endsub
!startsub actor
skinparam actor {
$primary_scheme()
FontColor $DARK
}
!endsub
!startsub arrow
skinparam arrow {
Thickness 3
Color $PRIMARY
FontColor $FGCOLOR
}
!endsub
!startsub sequence
skinparam sequence {
BorderColor $PRIMARY
TitleFontColor $PRIMARY
BackgroundColor $BGCOLOR
StartColor $PRIMARY
EndColor $PRIMARY
BoxBackgroundColor $BGCOLOR
BoxBorderColor $DARK
BoxFontColor $DARk
LifeLineBorderColor $SECONDARY
LifeLineBorderThickness 2
LifeLineBackgroundColor $SECONDARY_DARK
GroupBorderColor $DARK
GroupFontColor $DARK
GroupHeaderFontColor $INFO_TEXT
GroupBackgroundColor $BGCOLOR
GroupBodyBackgroundColor $BGCOLOR
GroupHeaderBackgroundColor $BGCOLOR
DividerBackgroundColor $DARK
DividerBorderColor $DARK
DividerBorderThickness 2
DividerFontColor $LIGHT
ReferenceBackgroundColor $BGCOLOR
ReferenceBorderColor $DARK
ReferenceFontColor $DARK
ReferenceHeaderBackgroundColor $LIGHT
}
!endsub
!startsub partition
skinparam partition {
BorderColor $PRIMARY
FontColor $PRIMARY
BackgroundColor $LIGHT-black
}
!endsub
!startsub collections
skinparam collections {
$primary_scheme()
}
!endsub
!startsub control
skinparam control {
$primary_scheme()
FontColor $DARK
}
!endsub
!startsub entity
skinparam entity {
$primary_scheme()
FontColor $DARK
}
!endsub
!startsub boundary
skinparam boundary {
$primary_scheme()
FontColor $DARK
}
!endsub
!startsub agent
skinparam agent {
BackgroundColor $WARNING_LIGHT-$WARNING
BorderColor $WARNING_LIGHT
FontColor $DARK
}
!endsub
!startsub note
skinparam note {
BorderThickness 1
BackgroundColor $INFO_LIGHT-$INFO_DARK
BorderColor $INFO_DARK
FontColor $WHITE
}
!endsub
!startsub artifact
skinparam artifact {
BackgroundColor $DARK
BorderColor white
FontColor $LIGHT
}
!endsub
!startsub component
skinparam component {
$primary_scheme()
}
!endsub
!startsub interface
skinparam interface {
BackgroundColor $DANGER_LIGHT-$DANGER
BorderColor $DANGER_LIGHT
FontColor $DARK
}
!endsub
!startsub storage
skinparam storage {
BackgroundColor $WARNING_LIGHT-$WARNING
BorderColor $WARNING_LIGHT
FontColor $WARNING_TEXT
}
!endsub
!startsub node
skinparam node {
BackgroundColor $LIGHT-black
BorderColor $PRIMARY_LIGHT
FontColor $DARK
}
!endsub
!startsub cloud
skinparam cloud {
BackgroundColor transparent
BorderColor $DARK
FontColor $DARK
}
!endsub
!startsub database
skinparam database {
BackgroundColor $LIGHT-black
BorderColor $PRIMARY_LIGHT
FontColor $DARK
}
!endsub
!startsub class
skinparam class {
$primary_scheme()
HeaderBackgroundColor $PRIMARY_LIGHT-$PRIMARY
StereotypeFontColor $DARK
BorderThickness 1
AttributeFontColor $LIGHT
AttributeFontSize 11
}
!endsub
!startsub object
skinparam object {
$primary_scheme()
StereotypeFontColor $DARK
BorderThickness 1
AttributeFontColor $LIGHT
AttributeFontSize 11
}
!endsub
!startsub usecase
skinparam usecase {
$primary_scheme()
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub rectangle
skinparam rectangle {
BackgroundColor $BGCOLOR
BorderColor $PRIMARY
BorderThickness 2
FontColor $PRIMARY_DARK
StereotypeFontColor $PRIMARY
}
!endsub
!startsub package
skinparam package {
BackgroundColor $LIGHT
BorderColor $PRIMARY
FontColor $PRIMARY
BorderThickness 2
}
!endsub
!startsub folder
skinparam folder {
BackgroundColor $LIGHT-black
BorderColor $WARNING
FontColor $WARNING
BorderThickness 2
}
!endsub
!startsub frame
skinparam frame {
BackgroundColor $LIGHT-black
BorderColor $INFO
FontColor $INFO
BorderThickness 2
}
!endsub
!startsub state
skinparam state {
$primary_scheme()
StartColor $INFO
EndColor $INFO
AttributeFontColor $SECONDARY_TEXT
AttributeFontSize 11
}
!endsub
!startsub queue
skinparam queue {
$primary_scheme()
}
!endsub
!startsub card
skinparam card {
BackgroundColor $INFO_LIGHT-$INFO
BorderColor $INFO_LIGHT
FontColor $INFO_TEXT
}
!endsub
!startsub file
skinparam file {
BackgroundColor $SECONDARY_LIGHT-$SECONDARY
BorderColor $SECONDARY_LIGHT
FontColor $DARK
}
!endsub
!startsub stack
skinparam stack {
$primary_scheme()
}
!endsub
!if %variable_exists("NEWSTYLE")
<style>
wbsDiagram {
LineColor $PRIMARY
BorderThickness 3
BackgroundColor $LIGHT-black
FontColor $PRIMARY
:depth(0) {
fontSize 16
fontStyle bold
fontColor $SECONDARY
}
:depth(1) {
fontSize 14
padding 5
fontStyle bold
}
:depth(2) {
fontSize 12
padding 4
}
:depth(3) {
fontSize 11
padding 3
fontColor $INFO
}
}
</style>
<style>
mindmapDiagram {
LineColor $PRIMARY
BorderThickness 3
BackgroundColor $LIGHT-black
FontColor $PRIMARY
:depth(0) {
fontSize 16
fontStyle bold
fontColor $SECONDARY
}
:depth(1) {
fontSize 14
padding 5
fontStyle bold
}
:depth(2) {
fontSize 12
padding 4
}
:depth(3) {
fontSize 11
padding 3
fontColor $INFO
}
}
</style>
!endif
!if %variable_exists("$THEME")
title State Diagram - $THEME theme
!else
title State Diagram
!endif
'skinparam BackgroundColor transparent
state fork_state <<fork>>
[*] - -> fork_state
fork_state - -> State2
fork_state - -> State3
state join_state <<join>>
State2 - -> join_state: some message
State3 - -> join_state
join_state - -> State4
State4 - -> Active
state Active {
[*] -> NumLockOff
NumLockOff - -> NumLockOn : EvNumLockPressed
NumLockOn - -> NumLockOff : EvNumLockPressed
- -
[*] -> CapsLockOff
CapsLockOff - -> CapsLockOn : EvCapsLockPressed
CapsLockOn - -> CapsLockOff : EvCapsLockPressed
- -
[*] -> ScrollLockOff
ScrollLockOff - -> ScrollLockOn : EvCapsLockPressed
ScrollLockOn - -> ScrollLockOff : EvCapsLockPressed
}
@enduml
@startuml
skinparam BackgroundColor transparent
skinparam useBetaStyle false
skinparam defaultFontName "Verdana"
skinparam defaultFontSize 12
skinparam dpi 100
skinparam shadowing false
skinparam roundcorner 40
skinparam ParticipantPadding 40
skinparam BoxPadding 40
skinparam Padding 5
skinparam ArrowColor #eaeaea
skinparam stereotype {
CBackgroundColor #557f91
CBorderColor #88b2c4
ABackgroundColor #a6ba7a
ABorderColor $SUCCESS_DARK
IBackgroundColor #bd6768
IBorderColor $DANGER_DARK
EBackgroundColor #f6cc91
EBorderColor $WARNING_DARK
NBackgroundColor #bb91b2
NBorderColor #885E7F
}
skinparam title {
FontColor #b5e853
BorderColor #b5e853
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor #151515-black
}
skinparam legend {
BackgroundColor #6a9fb5
BorderColor #557f91
FontColor #eaeaea
}
skinparam swimlane {
BorderColor #aa759f
BorderThickness 2
TitleBackgroundColor #88b2c4-#6a9fb5
TitleFontColor #b5e853
}
skinparam activity {
FontColor #151515
BorderColor #d3f198
BackgroundColor #d3f198-#b5e853
BarColor #90a959
StartColor #aa759f
EndColor #aa759f
DiamondBackgroundColor #88b2c4-#6a9fb5
DiamondBorderColor #88b2c4
DiamondFontColor #fefefe
}
skinparam participant {
FontColor #151515
BorderColor #d3f198
BackgroundColor #d3f198-#b5e853
BorderThickness 2
}
skinparam actor {
FontColor #151515
BorderColor #d3f198
BackgroundColor #d3f198-#b5e853
FontColor #eaeaea
}
skinparam arrow {
Thickness 3
Color #b5e853
FontColor $FGCOLOR
}
skinparam sequence {
BorderColor #b5e853
TitleFontColor #b5e853
BackgroundColor transparent
StartColor #b5e853
EndColor #b5e853
BoxBackgroundColor transparent
BoxBorderColor #eaeaea
BoxFontColor $DARk
LifeLineBorderColor #6a9fb5
LifeLineBorderThickness 2
LifeLineBackgroundColor #557f91
GroupBorderColor #eaeaea
GroupFontColor #eaeaea
GroupHeaderFontColor $INFO_TEXT
GroupBackgroundColor transparent
GroupBodyBackgroundColor transparent
GroupHeaderBackgroundColor transparent
DividerBackgroundColor #eaeaea
DividerBorderColor #eaeaea
DividerBorderThickness 2
DividerFontColor #151515
ReferenceBackgroundColor transparent
ReferenceBorderColor #eaeaea
ReferenceFontColor #eaeaea
ReferenceHeaderBackgroundColor #151515
}
skinparam partition {
BorderColor #b5e853
FontColor #b5e853
BackgroundColor #151515-black
}
skinparam collections {
FontColor #151515
BorderColor #d3f198
BackgroundColor #d3f198-#b5e853
}
skinparam control {
FontColor #151515
BorderColor #d3f198
BackgroundColor #d3f198-#b5e853
FontColor #eaeaea
}
skinparam entity {
FontColor #151515
BorderColor #d3f198
BackgroundColor #d3f198-#b5e853
FontColor #eaeaea
}
skinparam boundary {
FontColor #151515
BorderColor #d3f198
BackgroundColor #d3f198-#b5e853
FontColor #eaeaea
}
skinparam agent {
BackgroundColor #f6cc91-#f4bf75
BorderColor #f6cc91
FontColor #eaeaea
}
skinparam note {
BorderThickness 1
BackgroundColor #bb91b2-#885E7F
BorderColor #885E7F
FontColor $WHITE
}
skinparam artifact {
BackgroundColor #eaeaea
BorderColor white
FontColor #151515
}
skinparam component {
FontColor #151515
BorderColor #d3f198
BackgroundColor #d3f198-#b5e853
}
skinparam interface {
BackgroundColor #bd6768-#ac4142
BorderColor #bd6768
FontColor #eaeaea
}
skinparam storage {
BackgroundColor #f6cc91-#f4bf75
BorderColor #f6cc91
FontColor #151515
}
skinparam node {
BackgroundColor #151515-black
BorderColor #d3f198
FontColor #eaeaea
}
skinparam cloud {
BackgroundColor transparent
BorderColor #eaeaea
FontColor #eaeaea
}
skinparam database {
BackgroundColor #151515-black
BorderColor #d3f198
FontColor #eaeaea
}
skinparam class {
FontColor #151515
BorderColor #d3f198
BackgroundColor #d3f198-#b5e853
HeaderBackgroundColor #d3f198-#b5e853
StereotypeFontColor #eaeaea
BorderThickness 1
AttributeFontColor #151515
AttributeFontSize 11
}
skinparam object {
FontColor #151515
BorderColor #d3f198
BackgroundColor #d3f198-#b5e853
StereotypeFontColor #eaeaea
BorderThickness 1
AttributeFontColor #151515
AttributeFontSize 11
}
skinparam usecase {
FontColor #151515
BorderColor #d3f198
BackgroundColor #d3f198-#b5e853
BorderThickness 2
StereotypeFontColor #b5e853
}
skinparam rectangle {
BackgroundColor transparent
BorderColor #b5e853
BorderThickness 2
FontColor #6d8b32
StereotypeFontColor #b5e853
}
skinparam package {
BackgroundColor #151515
BorderColor #b5e853
FontColor #b5e853
BorderThickness 2
}
skinparam folder {
BackgroundColor #151515-black
BorderColor #f4bf75
FontColor #f4bf75
BorderThickness 2
}
skinparam frame {
BackgroundColor #151515-black
BorderColor #aa759f
FontColor #aa759f
BorderThickness 2
}
skinparam state {
FontColor #151515
BorderColor #d3f198
BackgroundColor #d3f198-#b5e853
StartColor #aa759f
EndColor #aa759f
AttributeFontColor #fefefe
AttributeFontSize 11
}
skinparam queue {
FontColor #151515
BorderColor #d3f198
BackgroundColor #d3f198-#b5e853
}
skinparam card {
BackgroundColor #bb91b2-#aa759f
BorderColor #bb91b2
FontColor $INFO_TEXT
}
skinparam file {
BackgroundColor #88b2c4-#6a9fb5
BorderColor #88b2c4
FontColor #eaeaea
}
skinparam stack {
FontColor #151515
BorderColor #d3f198
BackgroundColor #d3f198-#b5e853
}
title State Diagram - hacker theme
state fork_state <<fork>>
[*] - -> fork_state
fork_state - -> State2
fork_state - -> State3
state join_state <<join>>
State2 - -> join_state: some message
State3 - -> join_state
join_state - -> State4
State4 - -> Active
state Active {
[*] -> NumLockOff
NumLockOff - -> NumLockOn : EvNumLockPressed
NumLockOn - -> NumLockOff : EvNumLockPressed
- -
[*] -> CapsLockOff
CapsLockOff - -> CapsLockOn : EvCapsLockPressed
CapsLockOn - -> CapsLockOff : EvCapsLockPressed
- -
[*] -> ScrollLockOff
ScrollLockOff - -> ScrollLockOn : EvCapsLockPressed
ScrollLockOn - -> ScrollLockOff : EvCapsLockPressed
}
@enduml
PlantUML version 1.2021.01(Mon Feb 01 23:55:08 PST 2021)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Default Encoding: UTF-8
Language: en
Country: US
--></g></svg>