demo_doc/puml/materia-outline/activity-ex.svg

813 lines
22 KiB
XML
Raw Permalink 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="801.0417px" preserveAspectRatio="none" style="width:502px;height:801px;background:#00000000;" version="1.1" viewBox="0 0 502 801" width="502.0833px" zoomAndPan="magnify"><defs><filter height="300%" id="fqb2o7q31uscl" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0833333333333335"/><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.166666666666667" dy="4.166666666666667" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><rect height="56.5694" rx="4.1667" ry="4.1667" style="stroke:#CCCCCC;stroke-width:1.0416666666666667;fill:none;" width="473.9583" x="12.5" y="12.5"/><text fill="#2196F3" font-family="Verdana" font-size="20.8333" lengthAdjust="spacing" textLength="436.4583" x="31.25" y="49.0702">Activity Diagram - materia-outline theme</text><ellipse cx="241.6667" cy="82.6111" fill="#9C27B0" filter="url(#fqb2o7q31uscl)" rx="10.4167" ry="10.4167" style="stroke:none;stroke-width:1.0416666666666667;"/><rect filter="url(#fqb2o7q31uscl)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#2196F3;stroke-width:1.5625;fill:none;" width="72.9167" x="205.2083" y="113.8611"/><text fill="#2196F3" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="31.25" x="226.0417" y="147.2616">start</text><rect fill="#4CAF50" filter="url(#fqb2o7q31uscl)" height="6.25" rx="2.6042" ry="2.6042" style="stroke:#4CAF50;stroke-width:1.0416666666666667;" width="326.0417" x="84.8958" y="191.5527"/><rect filter="url(#fqb2o7q31uscl)" height="219.5333" rx="4.1667" ry="4.1667" style="stroke:#2196F3;stroke-width:2.0833333333333335;fill:none;" width="106.25" x="97.3958" y="208.2194"/><path d="M205.7292,208.2194 L205.7292,236.9527 L195.3125,247.3694 L97.3958,247.3694 " fill="none" style="stroke:#2196F3;stroke-width:2.0833333333333335;"/><text fill="#2196F3" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="77.0833" x="109.8958" y="232.2449">My Partition</text><rect filter="url(#fqb2o7q31uscl)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#2196F3;stroke-width:1.5625;fill:none;" width="70.8333" x="120.3125" y="265.0777"/><text fill="#2196F3" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="29.1667" x="141.1458" y="298.4782">foo1</text><rect filter="url(#fqb2o7q31uscl)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#2196F3;stroke-width:1.5625;fill:none;" width="70.8333" x="120.3125" y="358.3944"/><text fill="#2196F3" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="29.1667" x="141.1458" y="391.7948">foo2</text><path d="M324.4792,298.9319 L324.4792,317.986 L303.6458,322.1527 L324.4792,326.3194 L324.4792,345.3735 A0,0 0 0 0 324.4792,345.3735 L398.4375,345.3735 A0,0 0 0 0 398.4375,345.3735 L398.4375,309.3486 L388.0208,298.9319 L324.4792,298.9319 A0,0 0 0 0 324.4792,298.9319 " filter="url(#fqb2o7q31uscl)" style="stroke:#9C27B0;stroke-width:1.0416666666666667;fill:none;"/><path d="M388.0208,298.9319 L388.0208,309.3486 L398.4375,309.3486 L388.0208,298.9319 " style="stroke:#9C27B0;stroke-width:1.0416666666666667;fill:none;"/><text fill="#9C27B0" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="31.25" x="341.1458" y="327.124">Note</text><rect filter="url(#fqb2o7q31uscl)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#2196F3;stroke-width:1.5625;fill:none;" width="70.8333" x="232.8125" y="293.7236"/><text fill="#2196F3" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="29.1667" x="253.6458" y="327.124">foo3</text><rect fill="#4CAF50" filter="url(#fqb2o7q31uscl)" height="6.25" rx="2.6042" ry="2.6042" style="stroke:#4CAF50;stroke-width:1.0416666666666667;" width="326.0417" x="84.8958" y="448.586"/><rect filter="url(#fqb2o7
@startuml
!$THEME = "materia-outline"
!if %not(%variable_exists("$BGCOLOR"))
!$BGCOLOR = "transparent"
!endif
skinparam backgroundColor $BGCOLOR
skinparam useBetaStyle false
!$BLUE = "#2196F3"
!$INDIGO = "#6610f2"
!$PURPLE = "#6f42c1"
!$PINK = "#e83e8c"
!$RED = "#e51c23"
!$ORANGE = "#fd7e14"
!$YELLOW = "#ff9800"
!$GREEN = "#4CAF50"
!$TEAL = "#20c997"
!$CYAN = "#9C27B0"
!$WHITE = "#FFF"
!$GRAY_DARK = "#222"
!$GRAY = "#666"
!$PRIMARY = "#2196F3"
!$SECONDARY = "#fff"
!$SUCCESS = "#4CAF50"
!$INFO = "#9C27B0"
!$WARNING = "#ff9800"
!$DANGER = "#e51c23"
!$LIGHT = "#fff"
!$DARK = "#222"
!$FGCOLOR = $DARK
!$PRIMARY_LIGHT = "#4dabf5"
!$PRIMARY_DARK = "#1a78c2"
!$PRIMARY_TEXT = $PRIMARY
!$SECONDARY_LIGHT = "#fff"
!$SECONDARY_DARK = "#cccccc"
!$SECONDARY_TEXT = $SECONDARY_DARK
!$INFO_LIGHT = "#b052c0"
!$INFO_DARK = "#7D1F8D"
!$INFO_TEXT = $INFO
!$SUCCESS_LIGHT = "#70bf73"
!$SUCCESS_DARK = "#3D8C40"
!$SUCCESS_TEXT = $SUCCESS
!$WARNING_LIGHT = "#ffad33"
!$WARNING_DARK = "#CC7A00"
!$WARNING_TEXT = $WARNING
!$DANGER_LIGHT = "#B7161C"
!$DANGER_TEXT = $DANGER
!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 $BGCOLOR
!endprocedure
skinparam defaultFontName "Verdana"
skinparam defaultFontSize 12
skinparam dpi 100
skinparam shadowing true
skinparam roundcorner 8
skinparam ParticipantPadding 40
skinparam BoxPadding 40
skinparam Padding 10
skinparam TitleFontColor $DARK
skinparam TitleFontSize 20
skinparam TitleBorderThickness 0
skinparam ArrowColor $GRAY
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 $PRIMARY
BorderColor $SECONDARY_DARK
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor $BGCOLOR
}
skinparam legend {
BackgroundColor $BGCOLOR
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 $BGCOLOR
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 $GRAY
BoxFontColor $DARK
LifeLineBorderColor $SECONDARY_DARK
LifeLineBorderThickness 2
LifeLineBackgroundColor $BGCOLOR
GroupBorderColor $GRAY
GroupFontColor $DARK
GroupHeaderFontColor $INFO
GroupBackgroundColor $BGCOLOR
GroupBodyBackgroundColor $BGCOLOR
GroupHeaderBackgroundColor $BGCOLOR
DividerBackgroundColor $BGCOLOR
DividerBorderColor $GRAY
DividerBorderThickness 2
DividerFontColor $DARK
ReferenceBackgroundColor $BGCOLOR
ReferenceBorderColor $GRAY
ReferenceFontColor $DARK
ReferenceHeaderFontColor $INFO
}
!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 $BGCOLOR
BorderColor #999999
FontColor #333333
}
!endsub
!startsub note
skinparam note {
BorderThickness 1
BackgroundColor $BGCOLOR
BorderColor $INFO
FontColor $INFO
}
!endsub
!startsub artifact
skinparam artifact {
BackgroundColor $BGCOLOR
BorderColor $GRAY
FontColor $GRAY
}
!endsub
!startsub component
skinparam component {
$primary_scheme()
}
!endsub
!startsub interface
skinparam interface {
BackgroundColor $BGCOLOR
BorderColor $DANGER
FontColor $DARK
}
!endsub
!startsub storage
skinparam storage {
BackgroundColor $BGCOLOR
BorderColor $WARNING
FontColor $WARNING_TEXT
}
!endsub
!startsub node
skinparam node {
BackgroundColor $BGCOLOR
BorderColor $DARK
FontColor $DARK
}
!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 $LIGHT
HeaderBackgroundColor $PRIMARY-$PRIMARY_DARK
StereotypeFontColor $DARK
BorderThickness 1
AttributeFontColor $DARK
AttributeFontSize 11
}
!endsub
!startsub object
skinparam object {
$primary_scheme()
StereotypeFontColor $DARK
BorderThickness 1
AttributeFontColor $SECONDARY_DARK
AttributeFontSize 11
}
!endsub
!startsub usecase
skinparam usecase {
$primary_scheme()
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub rectangle
skinparam rectangle {
$primary_scheme()
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub package
skinparam package {
BackgroundColor $BGCOLOR
BorderColor $PRIMARY
FontColor $PRIMARY
BorderThickness 2
}
!endsub
!startsub folder
skinparam folder {
BackgroundColor $BGCOLOR
BorderColor $WARNING
FontColor $WARNING
BorderThickness 2
}
!endsub
!startsub frame
skinparam frame {
BackgroundColor $BGCOLOR
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 $BGCOLOR
BorderColor $INFO
FontColor $INFO_TEXT
}
!endsub
!startsub file
skinparam file {
BackgroundColor $BGCOLOR
BorderColor $GRAY
FontColor $GRAY
}
!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 defaultFontName "Verdana"
skinparam defaultFontSize 12
skinparam dpi 100
skinparam shadowing true
skinparam roundcorner 8
skinparam ParticipantPadding 40
skinparam BoxPadding 40
skinparam Padding 10
skinparam TitleFontColor #222
skinparam TitleFontSize 20
skinparam TitleBorderThickness 0
skinparam ArrowColor #666
skinparam stereotype {
CBackgroundColor #fff
CBorderColor #cccccc
ABackgroundColor #70bf73
ABorderColor #3D8C40
IBackgroundColor #B7161C
IBorderColor $DANGER_DARK
EBackgroundColor #ffad33
EBorderColor #CC7A00
NBackgroundColor #b052c0
NBorderColor #7D1F8D
}
skinparam title {
FontColor #2196F3
BorderColor #cccccc
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor transparent
}
skinparam legend {
BackgroundColor transparent
BorderColor #cccccc
FontColor #222
}
skinparam swimlane {
BorderColor #9C27B0
BorderThickness 2
TitleBackgroundColor #fff-#fff
TitleFontColor #2196F3
}
skinparam activity {
FontColor #2196F3
BorderColor #2196F3
BackgroundColor transparent
BarColor #4CAF50
StartColor #9C27B0
EndColor #9C27B0
DiamondBackgroundColor transparent
DiamondBorderColor #cccccc
DiamondFontColor #cccccc
}
skinparam participant {
FontColor #2196F3
BorderColor #2196F3
BackgroundColor transparent
ParticipantBorderThickness 2
}
skinparam actor {
FontColor #2196F3
BorderColor #2196F3
BackgroundColor transparent
}
skinparam arrow {
Thickness 3
Color #2196F3
FontColor #222
}
skinparam sequence {
BorderColor #2196F3
TitleFontColor #2196F3
BackgroundColor transparent
StartColor #2196F3
EndColor #2196F3
BoxBackgroundColor transparent
BoxBorderColor #666
BoxFontColor #222
LifeLineBorderColor #cccccc
LifeLineBorderThickness 2
LifeLineBackgroundColor transparent
GroupBorderColor #666
GroupFontColor #222
GroupHeaderFontColor #9C27B0
GroupBackgroundColor transparent
GroupBodyBackgroundColor transparent
GroupHeaderBackgroundColor transparent
DividerBackgroundColor transparent
DividerBorderColor #666
DividerBorderThickness 2
DividerFontColor #222
ReferenceBackgroundColor transparent
ReferenceBorderColor #666
ReferenceFontColor #222
ReferenceHeaderFontColor #9C27B0
}
skinparam partition {
BorderColor #2196F3
FontColor #2196F3
BackgroundColor transparent
}
skinparam collections {
FontColor #2196F3
BorderColor #2196F3
BackgroundColor transparent
}
skinparam control {
FontColor #2196F3
BorderColor #2196F3
BackgroundColor transparent
}
skinparam entity {
FontColor #2196F3
BorderColor #2196F3
BackgroundColor transparent
}
skinparam boundary {
FontColor #2196F3
BorderColor #2196F3
BackgroundColor transparent
}
skinparam agent {
BackgroundColor transparent
BorderColor #999999
FontColor #333333
}
skinparam note {
BorderThickness 1
BackgroundColor transparent
BorderColor #9C27B0
FontColor #9C27B0
}
skinparam artifact {
BackgroundColor transparent
BorderColor #666
FontColor #666
}
skinparam component {
FontColor #2196F3
BorderColor #2196F3
BackgroundColor transparent
}
skinparam interface {
BackgroundColor transparent
BorderColor #e51c23
FontColor #222
}
skinparam storage {
BackgroundColor transparent
BorderColor #ff9800
FontColor #ff9800
}
skinparam node {
BackgroundColor transparent
BorderColor #222
FontColor #222
}
skinparam cloud {
BackgroundColor transparent
BorderColor #F2FCFE
FontColor #222
}
skinparam database {
FontColor #2196F3
BorderColor #2196F3
BackgroundColor transparent
}
skinparam class {
FontColor #2196F3
BorderColor #2196F3
BackgroundColor transparent
FontColor #fff
HeaderBackgroundColor #2196F3-#1a78c2
StereotypeFontColor #222
BorderThickness 1
AttributeFontColor #222
AttributeFontSize 11
}
skinparam object {
FontColor #2196F3
BorderColor #2196F3
BackgroundColor transparent
StereotypeFontColor #222
BorderThickness 1
AttributeFontColor #cccccc
AttributeFontSize 11
}
skinparam usecase {
FontColor #2196F3
BorderColor #2196F3
BackgroundColor transparent
BorderThickness 2
StereotypeFontColor #2196F3
}
skinparam rectangle {
FontColor #2196F3
BorderColor #2196F3
BackgroundColor transparent
BorderThickness 2
StereotypeFontColor #2196F3
}
skinparam package {
BackgroundColor transparent
BorderColor #2196F3
FontColor #2196F3
BorderThickness 2
}
skinparam folder {
BackgroundColor transparent
BorderColor #ff9800
FontColor #ff9800
BorderThickness 2
}
skinparam frame {
BackgroundColor transparent
BorderColor #9C27B0
FontColor #9C27B0
BorderThickness 2
}
skinparam state {
FontColor #2196F3
BorderColor #2196F3
BackgroundColor transparent
StartColor #9C27B0
EndColor #9C27B0
AttributeFontColor #cccccc
AttributeFontSize 11
}
skinparam queue {
FontColor #2196F3
BorderColor #2196F3
BackgroundColor transparent
}
skinparam card {
BackgroundColor transparent
BorderColor #9C27B0
FontColor #9C27B0
}
skinparam file {
BackgroundColor transparent
BorderColor #666
FontColor #666
}
skinparam stack {
FontColor #2196F3
BorderColor #2196F3
BackgroundColor transparent
}
title Activity Diagram - materia-outline 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>