demo_doc/puml/resume-light/state-ex.svg

180 lines
17 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="1032px" preserveAspectRatio="none" style="width:308px;height:1032px;" version="1.1" viewBox="0 0 308 1032" width="308px" zoomAndPan="magnify"><defs><filter height="300%" id="f1ju850xm18t4c" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><rect fill="none" height="26.2969" style="stroke:none;stroke-width:1.0;" width="291" x="5" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="281" x="10" y="22.9951">State Diagram - resume-light theme</text><rect fill="#000000" filter="url(#f1ju850xm18t4c)" height="8" style="stroke:none;stroke-width:1.0;" width="80" x="116.5" y="124.2969"/><ellipse cx="156.5" cy="53.2969" fill="#000000" filter="url(#f1ju850xm18t4c)" rx="10" ry="10" style="stroke:none;stroke-width:1.0;"/><g id="State2"><rect fill="#FEFECE" height="50" rx="12.5" ry="12.5" style="stroke:#A80036;stroke-width:1.5;" width="65" x="75" y="193.2969"/><line style="stroke:#A80036;stroke-width:1.5;" x1="75" x2="140" y1="219.5938" y2="219.5938"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="45" x="85" y="211.292">State2</text></g><g id="State3"><rect fill="#FEFECE" height="50" rx="12.5" ry="12.5" style="stroke:#A80036;stroke-width:1.5;" width="65" x="181" y="193.2969"/><line style="stroke:#A80036;stroke-width:1.5;" x1="181" x2="246" y1="219.5938" y2="219.5938"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="45" x="191" y="211.292">State3</text></g><rect fill="#000000" filter="url(#f1ju850xm18t4c)" height="8" style="stroke:none;stroke-width:1.0;" width="80" x="117.5" y="320.2969"/><g id="State4"><rect fill="#FEFECE" height="50" rx="12.5" ry="12.5" style="stroke:#A80036;stroke-width:1.5;" width="65" x="125" y="389.2969"/><line style="stroke:#A80036;stroke-width:1.5;" x1="125" x2="190" y1="415.5938" y2="415.5938"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="45" x="135" y="407.292">State4</text></g><rect fill="#FEFECE" height="531.2969" rx="12.5" ry="12.5" style="stroke:#A80036;stroke-width:1.5;" width="298" x="8.5" y="500.2969"/><rect height="499" rx="12.5" ry="12.5" style="stroke:#00000000;stroke-width:1.0;fill:none;" width="292" x="11.5" y="529.5938"/><line style="stroke:#A80036;stroke-width:1.5;fill:none;" x1="8.5" x2="306.5" y1="526.5938" y2="526.5938"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="41" x="137" y="518.292">Active</text><ellipse cx="29.5" cy="563.5938" fill="#000000" filter="url(#f1ju850xm18t4c)" rx="10" ry="10" style="stroke:none;stroke-width:1.0;"/><g id="Active.NumLockOff"><rect fill="#FEFECE" height="50" rx="12.5" ry="12.5" style="stroke:#A80036;stroke-width:1.5;" width="103" x="58" y="538.5938"/><line style="stroke:#A80036;stroke-width:1.5;" x1="58" x2="161" y1="564.8906" y2="564.8906"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="83" x="68" y="556.5889">NumLockOff</text></g><g id="Active.NumLockOn"><rect fill="#FEFECE" height="50" rx="12.5" ry="12.5" style="stroke:#A80036;stroke-width:1.5;" width="104" x="57.5" y="641.5938"/><line style="stroke:#A80036;stroke-width:1.5;" x1="57.5" x2="161.5" y1="667.8906" y2="667.8906"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="84" x="67.5" y="659.5889">NumLockOn</text></g><!--MD5=[f1e44e9cdf7ed6fd162579f896fb76ea]
link *start*Active to NumLockOff--><path d="M39.5,563.5938 C43.89,563.5938 48.28,563.5938 52.67,563.5938 " fill="none" id="*start*Active-to-NumLockOff" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="57.82,563.5938,48.82,559.5938,52.82,563.5938,48.82,567.5938,57.82,563.5938" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[b6ef3c088f5474ecc81df30475e7d61b]
link NumLockOff to NumLockOn--><path d="M57.69,584.4938 C48.82,590.2638 40.78,597.5338 35.5,606.5938 C26.96,621.2638 37.36,633.6938 52.8,643.3138 " fill="none" id="NumLockOff-to-NumLockOn" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="57.28,645.9538,51.5576,637.9379,52.9725,643.4149,47.4955,644.8298,57.28,645.9538" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="126" x="36.5" y="619.6606">EvNumLockPressed</text><!--MD5=[3bfddee0d82dc74c927fbeb3d3f2e6a3]
link NumLockOn to NumLockOff--><path d="M151.04,641.3238 C162.27,631.5038 169.78,619.4438 163.5,606.5938 C160.98,601.4438 157.5,596.7538 153.5,592.5138 " fill="none" id="NumLockOn-to-NumLockOff" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="149.69,588.7538,153.2812,597.9245,153.2469,592.2678,158.9036,592.2335,149.69,588.7538" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="126" x="166.5" y="619.6606">EvNumLockPressed</text><line style="stroke:#A80036;stroke-width:1.5;stroke-dasharray:8.0,10.0;" x1="13.5" x2="299.5" y1="696.5938" y2="696.5938"/><ellipse cx="29.5" cy="728.5938" fill="#000000" filter="url(#f1ju850xm18t4c)" rx="10" ry="10" style="stroke:none;stroke-width:1.0;"/><g id="Active.CONC87.CapsLockOff"><rect fill="#FEFECE" height="50" rx="12.5" ry="12.5" style="stroke:#A80036;stroke-width:1.5;" width="106" x="57.5" y="703.5938"/><line style="stroke:#A80036;stroke-width:1.5;" x1="57.5" x2="163.5" y1="729.8906" y2="729.8906"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="86" x="67.5" y="721.5889">CapsLockOff</text></g><g id="Active.CONC87.CapsLockOn"><rect fill="#FEFECE" height="50" rx="12.5" ry="12.5" style="stroke:#A80036;stroke-width:1.5;" width="107" x="57" y="806.5938"/><line style="stroke:#A80036;stroke-width:1.5;" x1="57" x2="164" y1="832.8906" y2="832.8906"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="87" x="67" y="824.5889">CapsLockOn</text></g><!--MD5=[70bdb58272bc1a7d9e9d21dfe0316432]
link *start*CONC87 to CapsLockOff--><path d="M39.62,728.5938 C43.78,728.5938 47.93,728.5938 52.08,728.5938 " fill="none" id="*start*CONC87-to-CapsLockOff" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="57.34,728.5938,48.34,724.5938,52.34,728.5938,48.34,732.5938,57.34,728.5938" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[dc4675bd3056f3ef68701d9e8e02a3f3]
link CapsLockOff to CapsLockOn--><path d="M57.24,749.8638 C48.56,755.5638 40.71,762.7138 35.5,771.5938 C27,786.0938 37.02,798.3738 52.21,807.9038 " fill="none" id="CapsLockOff-to-CapsLockOn" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="56.62,810.5238,50.929,802.4856,52.3225,807.9681,46.84,809.3616,56.62,810.5238" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="127" x="36.5" y="784.6606">EvCapsLockPressed</text><!--MD5=[79e17b083e07746bd1a647600952cab6]
link CapsLockOn to CapsLockOff--><path d="M150.69,806.4338 C156.27,801.2738 161.21,795.3138 164.5,788.5938 C170,777.3538 164.93,766.7138 156.06,757.6438 " fill="none" id="CapsLockOn-to-CapsLockOff" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="152.04,753.8638,155.8523,762.9448,155.681,757.2906,161.3353,757.1192,152.04,753.8638" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="127" x="168.5" y="784.6606">EvCapsLockPressed</text><line style="stroke:#A80036;stroke-width:1.5;stroke-dasharray:8.0,10.0;" x1="13.5" x2="299.5" y1="861.5938" y2="861.5938"/><ellipse cx="29.5" cy="893.5938" fill="#000000" filter="url(#f1ju850xm18t4c)" rx="10" ry="10" style="stroke:none;stroke-width:1.0;"/><g id="Active.CONC95.ScrollLockOff"><rect fill="#FEFECE" height="50" rx="12.5" ry="12.5" style="stroke:#A80036;stroke-width:1.5;" width="108" x="57.5" y="868.5938"/><line style="stroke:#A80036;stroke-width:1.5;" x1="57.5" x2="165.5" y1="894.8906" y2="894.8906"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="88" x="67.5" y="886.5889">ScrollLockOff</text></g><g id="Active.CONC95.ScrollLockOn"><rect fill="#FEFECE" height="50" rx="12.5" ry="12.5" style="stroke:#A80036;stroke-width:1.5;" width="109" x="57" y="971.5938"/><line style="stroke:#A80036;stroke-width:1.5;" x1="57" x2="166" y1="997.8906" y2="997.8906"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="89" x="67" y="989.5889">ScrollLockOn</text></g><!--MD5=[8676698f49c1acec7e35e8e65e103748]
link *start*CONC95 to ScrollLockOff--><path d="M39.75,893.5938 C43.89,893.5938 48.03,893.5938 52.17,893.5938 " fill="none" id="*start*CONC95-to-ScrollLockOff" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="57.41,893.5938,48.41,889.5938,52.41,893.5938,48.41,897.5938,57.41,893.5938" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[da4e1e55b4a6de250eca2c82023085fa]
link ScrollLockOff to ScrollLockOn--><path d="M57.49,915.3638 C49.1,920.9838 41.56,927.9638 36.5,936.5938 C28.15,950.8338 37.66,962.9238 52.4,972.3838 " fill="none" id="ScrollLockOff-to-ScrollLockOn" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="56.68,974.9838,51.0522,966.9012,52.4027,972.3945,46.9094,973.7449,56.68,974.9838" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="127" x="37.5" y="949.6606">EvCapsLockPressed</text><!--MD5=[6ad2c621f2407b82317910f4deb17639]
link ScrollLockOn to ScrollLockOff--><path d="M151.69,971.4338 C157.27,966.2738 162.21,960.3138 165.5,953.5938 C171,942.3538 165.93,931.7138 157.06,922.6438 " fill="none" id="ScrollLockOn-to-ScrollLockOff" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="153.04,918.8638,156.8523,927.9448,156.681,922.2906,162.3353,922.1192,153.04,918.8638" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="127" x="169.5" y="949.6606">EvCapsLockPressed</text><!--MD5=[242ad121cef04112e9b0ee8f25f52375]
link *start to fork_state--><path d="M156.5,63.5469 C156.5,77.7869 156.5,104.8769 156.5,118.7069 " fill="none" id="*start-to-fork_state" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="156.5,124.0369,160.5,115.0369,156.5,119.0369,152.5,115.0369,156.5,124.0369" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[44dd36eb382d4fffd186e8c447a61da0]
link fork_state to State2--><path d="M154.64,132.6369 C149.57,141.7469 135.11,167.7069 123.53,188.4969 " fill="none" id="fork_state-to-State2" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="120.96,193.1169,128.8504,187.2227,123.4052,188.7556,121.8723,183.3104,120.96,193.1169" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[43d4d70f9cd19f132a5eb1ce9d85c890]
link fork_state to State3--><path d="M158.66,132.6369 C164.59,141.7869 181.52,167.9269 195.02,188.7569 " fill="none" id="fork_state-to-State3" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="197.84,193.1169,196.2912,183.3906,195.1161,188.924,189.5826,187.7489,197.84,193.1169" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[8cf5ef3a64654818495211b4c165bd62]
link State2 to join_state--><path d="M94.09,243.4869 C88,257.9669 83.87,276.2269 92.5,290.2969 C102.14,305.9969 121.83,314.5069 137.02,318.9369 " fill="none" id="State2-to-join_state" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="141.98,320.2869,134.3512,314.0578,137.1565,318.9701,132.2443,321.7754,141.98,320.2869" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="99" x="93.5" y="286.3638">some message</text><!--MD5=[183fde86cac17ac230b97143534e47db]
link State3 to join_state--><path d="M211.98,243.4669 C210.16,257.9369 206.17,276.1969 197.5,290.2969 C190.11,302.3169 176.78,311.9869 167.55,317.6769 " fill="none" id="State3-to-join_state" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="163.15,320.2869,172.93,319.1247,167.4475,317.7312,168.841,312.2487,163.15,320.2869" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[1e473d623208eebf6d5ebd6e9bc5a11d]
link join_state to State4--><path d="M157.5,328.6369 C157.5,337.6669 157.5,363.2669 157.5,383.9769 " fill="none" id="join_state-to-State4" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="157.5,389.1169,161.5,380.1169,157.5,384.1169,153.5,380.1169,157.5,389.1169" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[0a70b1a7cf318979336334b4227eefe4]
link State4 to Active--><path d="M157.5,439.3169 C157.5,453.3669 157.5,472.7269 157.5,495.0569 " fill="none" id="State4-to-Active" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="157.5,500.1769,161.5,491.1769,157.5,495.1769,153.5,491.1769,157.5,500.1769" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[8c6ef231ce1d95f7076c95fd35cf0244]
@startuml
!$THEME = "resume-light"
!if %not(%variable_exists("$BGCOLOR"))
!$BGCOLOR = "transparent"
!endif
skinparam backgroundColor $BGCOLOR
skinparam useBetaStyle false
skinparam {
skinparam defaultFontName "Verdana"
skinparam defaultFontSize 12
defaultTextAlignment center
shadowing false
RoundCorner 10
TitleFontSize 18
}
<style>
wbsDiagram {
LineColor #f0f0f0
BorderThickness 3
BackgroundColor #f9f9f9
FontColor #6a9fb5
:depth(0) {
fontSize 16
fontStyle bold
}
:depth(1) {
fontSize 14
padding 5
fontStyle bold
}
:depth(2) {
fontSize 12
padding 3
}
:depth(3) {
fontSize 10
padding 2
}
}
</style>
!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 {
skinparam defaultFontName "Verdana"
skinparam defaultFontSize 12
defaultTextAlignment center
shadowing false
RoundCorner 10
TitleFontSize 18
}
<style>
wbsDiagram {
LineColor #f0f0f0
BorderThickness 3
BackgroundColor #f9f9f9
FontColor #6a9fb5
:depth(0) {
fontSize 16
fontStyle bold
}
:depth(1) {
fontSize 14
padding 5
fontStyle bold
}
:depth(2) {
fontSize 12
padding 3
}
:depth(3) {
fontSize 10
padding 2
}
}
</style>
title State Diagram - resume-light 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>