demo_doc/puml/sketchy/activity-ex.svg

818 lines
45 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="689.5833px" preserveAspectRatio="none" style="width:403px;height:689px;background:#00000000;" version="1.1" viewBox="0 0 403 689" width="403.125px" zoomAndPan="magnify"><defs><linearGradient id="g1ct7j92c94tju0" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#666666"/><stop offset="100%" stop-color="#555555"/></linearGradient></defs><g><polygon fill="url(#g1ct7j92c94tju0)" points="16.6667,12.5,16.6667,12.7189,27.1429,12.0684,37.619,12.7013,48.0952,12.9163,58.5714,11.7569,69.0476,12.419,79.5238,12.0557,90,12.1005,100.4762,12.429,110.9524,11.7798,121.4286,13.0767,131.9048,11.8435,142.381,12.294,152.8571,12.9499,163.3333,12.4106,173.8095,12.5711,184.2857,12.4667,194.7619,12.686,205.2381,12.7491,215.7143,13.1101,226.1905,13.199,236.6667,13.2076,247.1429,12.7652,257.619,12.9829,268.0952,13.2315,278.5714,11.7488,289.0476,13.2068,299.5238,12.1911,310,13.0561,320.4762,11.9844,330.9524,12.4286,341.4286,13.2725,351.9048,12.4492,362.381,12.6097,372.8571,12.8527,383.3333,12.5,383.3886,12.6335,383.9221,12.7428,384.55,13.0803,385.025,13.0486,385.7281,13.5675,386.2796,13.7204,386.4555,13.7932,386.6663,14.3687,386.9644,14.9804,386.8569,15.424,387.0467,15.9908,387.5,16.6667,387.2842,16.6667,387.4796,24.0169,387.4318,31.3672,387.7366,38.7174,387.4393,46.0677,387.5,53.418,387.39,53.3724,387.3291,54.0376,386.7979,54.5079,386.6012,55.1168,386.7319,55.8612,386.2796,56.3642,386.3375,56.504,385.788,56.8439,385.0583,56.7492,384.5543,57.1989,384.001,57.53,383.3333,57.5846,383.3333,57.0925,372.8571,57.4848,362.381,57.7159,351.9048,58.2636,341.4286,57.5803,330.9524,58.0665,320.4762,57.0078,310,56.8792,299.5238,58.1092,289.0476,56.8378,278.5714,58.1148,268.0952,57.7999,257.619,57.3056,247.1429,57.2161,236.6667,58.0625,226.1905,57.2728,215.7143,58.2012,205.2381,57.0089,194.7619,58.2278,184.2857,58.0891,173.8095,57.8398,163.3333,57.6338,152.8571,58.3415,142.381,58.2238,131.9048,57.7609,121.4286,57.864,110.9524,57.4489,100.4762,58.3309,90,57.746,79.5238,57.7644,69.0476,56.9509,58.5714,57.1625,48.0952,58.1375,37.619,58.0323,27.1429,57.5399,16.6667,57.5846,16.6239,57.4813,16.0483,57.2703,15.397,56.8764,14.954,56.9854,14.4079,56.8456,13.7204,56.3642,13.8893,56.4342,13.6992,55.8673,13.1884,55.1676,13.0161,54.6081,12.6197,53.9557,12.5,53.418,12.5986,53.418,12.5857,46.0677,12.6918,38.7174,12.4203,31.3672,12.4533,24.0169,12.5,16.6667,12.6423,16.7256,12.9261,16.1528,12.8237,15.4201,13.17,14.8731,13.5242,14.3295,13.7204,13.7204,13.6392,13.5244,14.3566,13.5897,14.9332,13.315,15.4748,12.9558,16.0963,12.7897,16.6667,12.5" style="stroke:#4D4D4D;stroke-width:1.0416666666666667;"/><text fill="#FFFFFF" font-family="Segoe Print" font-size="20.8333" lengthAdjust="spacing" textLength="347.9167" x="26.0417" y="42.2546">Activity Diagram - sketchy theme</text><polygon fill="#17A2B8" points="206.8284,73.66,205.3015,75.7464,203.4955,78.8022,200.9125,80.8615,198.1983,81.9877,196.0341,82.0854,193.2525,80.677,190.628,79.7569,188.6359,77.8888,187.591,75.7501,186.9713,74.0473,186.3642,71.823,185.3788,69.9089,186.136,68.0401,186.7994,65.993,189.2891,64.3739,191.0407,62.2732,193.2087,61.5756,195.7861,60.9748,199.0913,61.3318,200.9016,62.1855,203.0064,62.5725,205.5655,65.1945,206.4576,67.9624,206.8452,69.8511,206.4062,72.9633" style="stroke:none;stroke-width:1.0416666666666667;"/><polygon fill="#474747" points="178.125,102.3763,178.125,102.4493,185.4167,102.2324,192.7083,102.4434,200,102.5151,207.2917,102.1286,214.5833,102.3763,214.573,102.3514,216.3681,103.0022,218.2152,103.7788,220.0985,104.6427,221.8572,105.2055,223.7905,106.19,223.9681,106.2636,224.351,107.9477,225.2525,109.8466,226.2172,111.7717,226.8139,113.5443,227.6042,115.3971,227.6279,115.3971,227.5931,119.349,227.6662,123.3008,227.6872,127.2526,227.8075,131.2044,227.6042,135.1563,227.8194,135.2454,227.0593,137.0879,226.1604,138.8729,225.4647,140.7421,224.7785,142.6153,223.7905,144.3634,223.6
@startuml
!$THEME = "sketchy"
!if %not(%variable_exists("$BGCOLOR"))
!$BGCOLOR = "transparent"
!endif
skinparam backgroundColor $BGCOLOR
skinparam useBetaStyle false
skinparam handwritten true
skinparam shadowing false
!$BLUE = "#007bff"
!$INDIGO = "#6610f2"
!$PURPLE = "#6f42c1"
!$PINK = "#e83e8c"
!$RED = "#dc3545"
!$ORANGE = "#fd7e14"
!$YELLOW = "#ffc107"
!$GREEN = "#28a745"
!$TEAL = "#20c997"
!$CYAN = "#17a2b8"
!$WHITE = "#ffffff"
!$GRAY = "#868e96"
!$GRAYDARK = "#333333"
!$PRIMARY = "#333333"
!$SECONDARY = "#555555"
!$SUCCESS = "#28a745"
!$INFO = "#17a2b8"
!$WARNING = "#ffc107"
!$DANGER = "#dc3545"
!$LIGHT = "#ffffff"
!$DARK = "#555555"
!$FGCOLOR = $WHITE
!$PRIMARY_DARK = "#2e2e2e"
!$PRIMARY_LIGHT = "#474747"
!$PRIMARY_TEXT = $WHITE
!$SECONDARY_DARK = "#4d4d4d"
!$SECONDARY_LIGHT = "#666666"
!$SECONDARY_TEXT = $WHITE
!$INFO_DARK = "#1592a6"
!$INFO_LIGHT = "#2eabbf"
!$INFO_TEXT = $WHITE
!$SUCCESS_DARK = "#24963e"
!$SUCCESS_LIGHT = "#3eb058"
!$SUCCESS_TEXT = $WHITE
!$WARNING_DARK = "#e6ae06"
!$WARNING_LIGHT = "#ffc720"
!$WARNING_TEXT = $WHITE
!$DANGER_DARK = "#c6303e"
!$DANGER_LIGHT = "#e04958"
!$DANGER_TEXT = $WHITE
!$DARK_DARK = "#4d4d4d"
!$DARK_LIGHT = "#666666"
!$LIGHT_DARK = "#e6e6e6"
!$LIGHT_LIGHT = "#ffffff"
!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
BackgroundColor $PRIMARY_LIGHT
!endprocedure
skinparam defaultFontName "Segoe Print"
skinparam defaultFontSize 12
skinparam dpi 100
skinparam shadowing false
skinparam roundcorner 8
skinparam ParticipantPadding 40
skinparam BoxPadding 40
skinparam Padding 5
skinparam ArrowColor $DARK
skinparam stereotype {
CBackgroundColor $SECONDARY_LIGHT
CBorderColor $SECONDARY_DARK
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 $FGCOLOR
BorderColor $SECONDARY_DARK
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor $SECONDARY_LIGHT-$SECONDARY
}
skinparam legend {
BackgroundColor $SECONDARY
BorderColor $SECONDARY_DARK
FontColor $LIGHT
}
!startsub swimlane
skinparam swimlane {
BorderColor $INFO
BorderThickness 2
TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY
TitleFontColor $FGCOLOR
}
!endsub
!startsub activity
skinparam activity {
$primary_scheme()
BarColor $SUCCESS
StartColor $INFO
EndColor $INFO
DiamondBackgroundColor $SECONDARY_LIGHT
DiamondBorderColor $SECONDARY_DARK
DiamondFontColor $SECONDARY_TEXT
}
!endsub
!startsub participant
skinparam participant {
$primary_scheme()
ParticipantBorderThickness 2
}
!endsub
!startsub actor
skinparam actor {
$primary_scheme()
}
!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
GroupBackgroundColor $SECONDARY
GroupBodyBackgroundColor $BGCOLOR
GroupHeaderBackgroundColor $BGCOLOR
DividerBackgroundColor $DARK
DividerBorderColor $DARK
DividerBorderThickness 2
DividerFontColor $LIGHT
ReferenceBackgroundColor $BGCOLOR
ReferenceBorderColor $DARK
ReferenceFontColor $DARK
ReferenceHeaderFontColor $INFO
ReferenceHeaderBackgroundColor $SECONDARY
}
!endsub
!startsub partition
skinparam partition {
BorderColor $PRIMARY
FontColor $PRIMARY
BackgroundColor $BGCOLOR
}
!endsub
!startsub collections
skinparam collections {
$primary_scheme()
}
!endsub
!startsub control
skinparam control {
$primary_scheme()
}
!endsub
!startsub entity
skinparam entity {
$primary_scheme()
}
!endsub
!startsub boundary
skinparam boundary {
$primary_scheme()
}
!endsub
!startsub agent
skinparam agent {
BackgroundColor $WARNING
BorderColor $WARNING_LIGHT
FontColor $DARK
}
!endsub
!startsub note
skinparam note {
BorderThickness 1
BackgroundColor $INFO
BorderColor $INFO_DARK
FontColor $WHITE
}
!endsub
!startsub artifact
skinparam artifact {
BackgroundColor $DARK
BorderColor $DARK_DARK
FontColor $LIGHT
}
!endsub
!startsub component
skinparam component {
$primary_scheme()
}
!endsub
!startsub interface
skinparam interface {
BackgroundColor $DANGER_DARK
BorderColor $DANGER
FontColor $DARK
}
!endsub
!startsub storage
skinparam storage {
BackgroundColor $WARNING
BorderColor $WARNING_DARK
FontColor $WARNING_TEXT
}
!endsub
!startsub node
skinparam node {
BackgroundColor $SECONDARY
BorderColor $LIGHT
FontColor $LIGHT
}
!endsub
!startsub cloud
skinparam cloud {
BackgroundColor transparent
BorderColor #F2FCFE
FontColor $DARK
}
!endsub
!startsub database
skinparam database {
$primary_scheme()
}
!endsub
!startsub class
skinparam class {
$primary_scheme()
FontColor $FGCOLOR
HeaderBackgroundColor $PRIMARY_LIGHT
StereotypeFontColor $DARK
BorderThickness 1
AttributeFontColor $LIGHT
AttributeFontSize 11
}
!endsub
!startsub object
skinparam object {
$primary_scheme()
StereotypeFontColor $DARK
BorderThickness 1
AttributeFontColor $SECONDARY_TEXT
AttributeFontSize 11
}
!endsub
!startsub usecase
skinparam usecase {
$primary_scheme()
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub rectangle
skinparam rectangle {
$primary_scheme()
BackgroundColor $SECONDARY_LIGHT
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub package
skinparam package {
BackgroundColor $SECONDARY
BorderColor $PRIMARY
FontColor $PRIMARY
BorderThickness 2
}
!endsub
!startsub folder
skinparam folder {
BackgroundColor $SECONDARY_LIGHT
BorderColor $WARNING
FontColor $WARNING
BorderThickness 2
}
!endsub
!startsub frame
skinparam frame {
BackgroundColor $SECONDARY_LIGHT
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
BorderColor $INFO_DARK
FontColor $INFO_TEXT
}
!endsub
!startsub file
skinparam file {
BackgroundColor $SECONDARY_DARK
BorderColor $LIGHT
FontColor $LIGHT
}
!endsub
!startsub stack
skinparam stack {
$primary_scheme()
}
!endsub
!if %variable_exists("$THEME")
title Activity Diagram - $THEME theme
!else
title Activity Diagram
!endif
'skinparam BackgroundColor black
start
:start;
fork
partition "My Partition" {
:foo1;
:foo2;
}
fork again
:foo3;
note right: Note
detach
endfork
if (foo4) then (yes)
:foo5;
detach
else (no)
stop
endif
:foo6;
detach
:foo7;
stop
@enduml
@startuml
skinparam backgroundColor transparent
skinparam useBetaStyle false
skinparam handwritten true
skinparam shadowing false
skinparam defaultFontName "Segoe Print"
skinparam defaultFontSize 12
skinparam dpi 100
skinparam shadowing false
skinparam roundcorner 8
skinparam ParticipantPadding 40
skinparam BoxPadding 40
skinparam Padding 5
skinparam ArrowColor #555555
skinparam stereotype {
CBackgroundColor #666666
CBorderColor #4d4d4d
ABackgroundColor #3eb058
ABorderColor #24963e
IBackgroundColor #e04958
IBorderColor #c6303e
EBackgroundColor #ffc720
EBorderColor #e6ae06
NBackgroundColor #2eabbf
NBorderColor #1592a6
}
skinparam title {
FontColor #ffffff
BorderColor #4d4d4d
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor #666666-#555555
}
skinparam legend {
BackgroundColor #555555
BorderColor #4d4d4d
FontColor #ffffff
}
skinparam swimlane {
BorderColor #17a2b8
BorderThickness 2
TitleBackgroundColor #666666-#555555
TitleFontColor #ffffff
}
skinparam activity {
FontColor #ffffff
BorderColor #333333
BackgroundColor #474747
BarColor #28a745
StartColor #17a2b8
EndColor #17a2b8
DiamondBackgroundColor #666666
DiamondBorderColor #4d4d4d
DiamondFontColor #ffffff
}
skinparam participant {
FontColor #ffffff
BorderColor #333333
BackgroundColor #474747
ParticipantBorderThickness 2
}
skinparam actor {
FontColor #ffffff
BorderColor #333333
BackgroundColor #474747
}
skinparam arrow {
Thickness 3
Color #333333
FontColor #ffffff
}
skinparam sequence {
BorderColor #333333
TitleFontColor #333333
BackgroundColor transparent
StartColor #333333
EndColor #333333
BoxBackgroundColor transparent
BoxBorderColor #555555
BoxFontColor $DARk
LifeLineBorderColor #555555
LifeLineBorderThickness 2
LifeLineBackgroundColor #4d4d4d
GroupBorderColor #555555
GroupFontColor #555555
GroupHeaderFontColor #17a2b8
GroupBackgroundColor #555555
GroupBodyBackgroundColor transparent
GroupHeaderBackgroundColor transparent
DividerBackgroundColor #555555
DividerBorderColor #555555
DividerBorderThickness 2
DividerFontColor #ffffff
ReferenceBackgroundColor transparent
ReferenceBorderColor #555555
ReferenceFontColor #555555
ReferenceHeaderFontColor #17a2b8
ReferenceHeaderBackgroundColor #555555
}
skinparam partition {
BorderColor #333333
FontColor #333333
BackgroundColor transparent
}
skinparam collections {
FontColor #ffffff
BorderColor #333333
BackgroundColor #474747
}
skinparam control {
FontColor #ffffff
BorderColor #333333
BackgroundColor #474747
}
skinparam entity {
FontColor #ffffff
BorderColor #333333
BackgroundColor #474747
}
skinparam boundary {
FontColor #ffffff
BorderColor #333333
BackgroundColor #474747
}
skinparam agent {
BackgroundColor #ffc107
BorderColor #ffc720
FontColor #555555
}
skinparam note {
BorderThickness 1
BackgroundColor #17a2b8
BorderColor #1592a6
FontColor #ffffff
}
skinparam artifact {
BackgroundColor #555555
BorderColor #4d4d4d
FontColor #ffffff
}
skinparam component {
FontColor #ffffff
BorderColor #333333
BackgroundColor #474747
}
skinparam interface {
BackgroundColor #c6303e
BorderColor #dc3545
FontColor #555555
}
skinparam storage {
BackgroundColor #ffc107
BorderColor #e6ae06
FontColor #ffffff
}
skinparam node {
BackgroundColor #555555
BorderColor #ffffff
FontColor #ffffff
}
skinparam cloud {
BackgroundColor transparent
BorderColor #F2FCFE
FontColor #555555
}
skinparam database {
FontColor #ffffff
BorderColor #333333
BackgroundColor #474747
}
skinparam class {
FontColor #ffffff
BorderColor #333333
BackgroundColor #474747
FontColor #ffffff
HeaderBackgroundColor #474747
StereotypeFontColor #555555
BorderThickness 1
AttributeFontColor #ffffff
AttributeFontSize 11
}
skinparam object {
FontColor #ffffff
BorderColor #333333
BackgroundColor #474747
StereotypeFontColor #555555
BorderThickness 1
AttributeFontColor #ffffff
AttributeFontSize 11
}
skinparam usecase {
FontColor #ffffff
BorderColor #333333
BackgroundColor #474747
BorderThickness 2
StereotypeFontColor #333333
}
skinparam rectangle {
FontColor #ffffff
BorderColor #333333
BackgroundColor #474747
BackgroundColor #666666
BorderThickness 2
StereotypeFontColor #333333
}
skinparam package {
BackgroundColor #555555
BorderColor #333333
FontColor #333333
BorderThickness 2
}
skinparam folder {
BackgroundColor #666666
BorderColor #ffc107
FontColor #ffc107
BorderThickness 2
}
skinparam frame {
BackgroundColor #666666
BorderColor #17a2b8
FontColor #17a2b8
BorderThickness 2
}
skinparam state {
FontColor #ffffff
BorderColor #333333
BackgroundColor #474747
StartColor #17a2b8
EndColor #17a2b8
AttributeFontColor #ffffff
AttributeFontSize 11
}
skinparam queue {
FontColor #ffffff
BorderColor #333333
BackgroundColor #474747
}
skinparam card {
BackgroundColor #17a2b8
BorderColor #1592a6
FontColor #ffffff
}
skinparam file {
BackgroundColor #4d4d4d
BorderColor #ffffff
FontColor #ffffff
}
skinparam stack {
FontColor #ffffff
BorderColor #333333
BackgroundColor #474747
}
title Activity Diagram - sketchy theme
start
:start;
fork
partition "My Partition" {
:foo1;
:foo2;
}
fork again
:foo3;
note right: Note
detach
endfork
if (foo4) then (yes)
:foo5;
detach
else (no)
stop
endif
:foo6;
detach
:foo7;
stop
@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>