demo_doc/puml/lightgray/activity-ex.svg

806 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="794.7917px" preserveAspectRatio="none" style="width:432px;height:794px;background:#00000000;" version="1.1" viewBox="0 0 432 794" width="432.2917px" zoomAndPan="magnify"><defs><linearGradient id="g153jl31r8pduv0" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#DBDBDB"/><stop offset="100%" stop-color="#D2D2D2"/></linearGradient><linearGradient id="g153jl31r8pduv1" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#F3F3F3"/><stop offset="100%" stop-color="#E2E2E2"/></linearGradient><linearGradient id="g153jl31r8pduv2" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#5C85AD"/><stop offset="100%" stop-color="#336699"/></linearGradient><linearGradient id="g153jl31r8pduv3" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#D2D2D2"/><stop offset="100%" stop-color="#A8A8A8"/></linearGradient></defs><g><rect fill="url(#g153jl31r8pduv0)" height="56.5694" rx="4.1667" ry="4.1667" style="stroke:#D2D2D2;stroke-width:1.0416666666666667;" width="404.1667" x="12.5" y="12.5"/><text fill="#FFFFFF" font-family="Verdana" font-size="20.8333" lengthAdjust="spacing" textLength="366.6667" x="31.25" y="49.0702">Activity Diagram - lightgray theme</text><ellipse cx="209.8958" cy="82.6111" fill="#336699" rx="10.4167" ry="10.4167" style="stroke:none;stroke-width:1.0416666666666667;"/><rect fill="url(#g153jl31r8pduv1)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#F3F3F3;stroke-width:1.5625;" width="72.9167" x="173.4375" y="113.8611"/><text fill="#336699" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="31.25" x="194.2708" y="147.2616">start</text><rect fill="#339933" height="6.25" rx="2.6042" ry="2.6042" style="stroke:#339933;stroke-width:1.0416666666666667;" width="326.0417" x="53.125" y="191.5527"/><rect height="219.5333" rx="7.8125" ry="7.8125" style="stroke:#E2E2E2;stroke-width:2.0833333333333335;fill:none;" width="106.25" x="65.625" y="208.2194"/><path d="M173.9583,208.2194 L173.9583,236.9527 L163.5417,247.3694 L65.625,247.3694 " fill="none" style="stroke:#E2E2E2;stroke-width:2.0833333333333335;"/><text fill="#888888" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="77.0833" x="78.125" y="232.2449">My Partition</text><rect fill="url(#g153jl31r8pduv1)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#F3F3F3;stroke-width:1.5625;" width="70.8333" x="88.5417" y="265.0777"/><text fill="#336699" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="29.1667" x="109.375" y="298.4782">foo1</text><rect fill="url(#g153jl31r8pduv1)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#F3F3F3;stroke-width:1.5625;" width="70.8333" x="88.5417" y="358.3944"/><text fill="#336699" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="29.1667" x="109.375" y="391.7948">foo2</text><path d="M292.7083,298.9319 L292.7083,317.986 L271.875,322.1527 L292.7083,326.3194 L292.7083,345.3735 A0,0 0 0 0 292.7083,345.3735 L366.6667,345.3735 A0,0 0 0 0 366.6667,345.3735 L366.6667,309.3486 L356.25,298.9319 L292.7083,298.9319 A0,0 0 0 0 292.7083,298.9319 " fill="url(#g153jl31r8pduv2)" style="stroke:#336699;stroke-width:1.0416666666666667;"/><path d="M356.25,298.9319 L356.25,309.3486 L366.6667,309.3486 L356.25,298.9319 " fill="url(#g153jl31r8pduv2)" style="stroke:#336699;stroke-width:1.0416666666666667;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="31.25" x="309.375" y="327.124">Note</text><rect fill="url(#g153jl31r8pduv1)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#F3F3F3;stroke-width:1.5625;" width="70.8333" x="201.0417" y="293.7236"/><text fill="#336699" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="29.1667" x="221.875" y="327.124">foo3</text><rect fill="#339933" height="6.25" rx="2.6042" ry="
@startuml
!$THEME = "lightgray"
!if %not(%variable_exists("$BGCOLOR"))
!$BGCOLOR = "transparent"
!endif
skinparam backgroundColor $BGCOLOR
skinparam useBetaStyle false
!$WHITE = "#FFF"
!$GRAY_DARK = "#4d4d4d"
!$GRAY = "#737373"
!$LIGHT = "#fcfcfc"
!$DARK = "#303030"
!$FGCOLOR = $DARK
!$PRIMARY = "#e2e2e2"
!$PRIMARY_LIGHT = "#f3f3f3"
!$PRIMARY_DARK = "#888888"
!$PRIMARY_TEXT = "#336699"
!$SECONDARY = "#d2d2d2"
!$SECONDARY_LIGHT = "#dbdbdb"
!$SECONDARY_DARK = "#a8a8a8"
!$SECONDARY_TEXT = "white"
!$INFO = "#336699"
!$INFO_LIGHT = "#5c85ad"
!$INFO_DARK = "#29527a"
!$INFO_TEXT = $WHITE
!$SUCCESS = "#339933"
!$SUCCESS_LIGHT = "#5cad5c"
!$SUCCESS_DARK = "#297a29"
!$SUCCESS_TEXT = $WHITE
!$WARNING = "#ffae42"
!$WARNING_LIGHT = "#ffbe68"
!$WARNING_DARK = "#cc8b35"
!$WARNING_TEXT = $WHITE
!$DANGER = "#ff3333"
!$DANGER_LIGHT = "#ff5c5c"
!$DANGER_DARK = "#cc2929"
!$DANGER_TEXT = $WHITE
!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 15
skinparam ParticipantPadding 30
skinparam BoxPadding 30
skinparam Padding 10
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 $SECONDARY_TEXT
BorderColor $SECONDARY
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor $SECONDARY_LIGHT-$SECONDARY
}
skinparam legend {
BackgroundColor $PRIMARY
BorderColor $PRIMARY_DARK
FontColor $PRIMARY_TEXT
}
!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-$SECONDARY_DARK
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 $SECONDARY_TEXT
BackgroundColor $BGCOLOR
StartColor $PRIMARY
EndColor $PRIMARY
BoxBackgroundColor $BGCOLOR
BoxBorderColor $GRAY
BoxFontColor $DARK
LifeLineBorderColor $SECONDARY_DARK
LifeLineBorderThickness 2
LifeLineBackgroundColor $SECONDARY_LIGHT
GroupBorderColor $DARK
GroupFontColor $DARK
GroupHeaderFontColor $INFO_TEXT
GroupBackgroundColor $BGCOLOR
GroupBodyBackgroundColor $BGCOLOR
GroupHeaderBackgroundColor $BGCOLOR
DividerBackgroundColor $WHITE-$LIGHT
DividerBorderColor $GRAY
DividerBorderThickness 2
DividerFontColor $DARK
ReferenceBackgroundColor $BGCOLOR
ReferenceBorderColor $GRAY
ReferenceFontColor $DARK
ReferenceHeaderFontColor $INFO
}
!endsub
!startsub partition
skinparam partition {
BorderColor $PRIMARY
FontColor $PRIMARY_DARK
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 #orange
BorderColor #999999
FontColor #333333
}
!endsub
!startsub note
skinparam note {
BorderThickness 1
BackgroundColor $INFO_LIGHT-$INFO
BorderColor $INFO
FontColor $WHITE
}
!endsub
!startsub artifact
skinparam artifact {
BackgroundColor white-$LIGHT
BorderColor $SECONDARY_DARK
FontColor $SECONDARY_DARK
}
!endsub
!startsub component
skinparam component {
$primary_scheme()
}
!endsub
!startsub interface
skinparam interface {
BackgroundColor $DANGER_LIGHT
BorderColor $DANGER
FontColor $DARK
}
!endsub
!startsub storage
skinparam storage {
BackgroundColor $WARNING_LIGHT-$WARNING
BorderColor $WARNING
FontColor $WARNING_TEXT
}
!endsub
!startsub node
skinparam node {
BackgroundColor $BGCOLOR
BorderColor $PRIMARY_LIGHT
FontColor $PRIMARY_TEXT
}
!endsub
!startsub cloud
skinparam cloud {
BackgroundColor transparent
BorderColor $F2FCFE
FontColor $PRIMARY_TEXT
}
!endsub
!startsub database
skinparam database {
$primary_scheme()
BackgroundColor $BGCOLOR
}
!endsub
!startsub class
skinparam class {
$primary_scheme()
HeaderBackgroundColor $PRIMARY_LIGHT-$PRIMARY_DARK
StereotypeFontColor $DARK
StereotypeFontSize 9
BorderThickness 1
AttributeFontColor $DARK
AttributeFontSize 11
}
!endsub
!startsub object
skinparam object {
$primary_scheme()
StereotypeFontColor $LIGHT
BorderThickness 1
AttributeFontColor $DARK
AttributeFontSize 11
}
!endsub
!startsub usecase
skinparam usecase {
$primary_scheme()
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub rectangle
skinparam rectangle {
$primary_scheme()
BackgroundColor $BGCOLOR
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub package
skinparam package {
$primary_scheme()
BackgroundColor $BGCOLOR
BorderThickness 2
}
!endsub
!startsub folder
skinparam folder {
BackgroundColor $PRIMARY_LIGHT
BorderColor $WARNING
FontColor $WARNING
BorderThickness 2
}
!endsub
!startsub frame
skinparam frame {
BackgroundColor $PRIMARY_LIGHT
BorderColor $INFO
FontColor $INFO
BorderThickness 2
}
!endsub
!startsub state
skinparam state {
$primary_scheme()
BorderColor $PRIMARY_DARK
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
FontColor $INFO_TEXT
}
!endsub
!startsub file
skinparam file {
BackgroundColor $SECONDARY_LIGHT-$SECONDARY
BorderColor $SECONDARY_DARK
FontColor $SECONDARY_TEXT
}
!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 false
skinparam roundcorner 15
skinparam ParticipantPadding 30
skinparam BoxPadding 30
skinparam Padding 10
skinparam ArrowColor #737373
skinparam stereotype {
CBackgroundColor #dbdbdb
CBorderColor #a8a8a8
ABackgroundColor #5cad5c
ABorderColor #297a29
IBackgroundColor #ff5c5c
IBorderColor #cc2929
EBackgroundColor #ffbe68
EBorderColor #cc8b35
NBackgroundColor #5c85ad
NBorderColor #29527a
}
skinparam title {
FontColor white
BorderColor #d2d2d2
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor #dbdbdb-#d2d2d2
}
skinparam legend {
BackgroundColor #e2e2e2
BorderColor #888888
FontColor #336699
}
skinparam swimlane {
BorderColor #336699
BorderThickness 2
TitleBackgroundColor #dbdbdb-#d2d2d2
TitleFontColor #e2e2e2
}
skinparam activity {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
BarColor #339933
StartColor #336699
EndColor #336699
DiamondBackgroundColor #d2d2d2-#a8a8a8
DiamondBorderColor #a8a8a8
DiamondFontColor white
}
skinparam participant {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
ParticipantBorderThickness 2
}
skinparam actor {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
}
skinparam arrow {
Thickness 3
Color #e2e2e2
FontColor #303030
}
skinparam sequence {
BorderColor #e2e2e2
TitleFontColor white
BackgroundColor transparent
StartColor #e2e2e2
EndColor #e2e2e2
BoxBackgroundColor transparent
BoxBorderColor #737373
BoxFontColor #303030
LifeLineBorderColor #a8a8a8
LifeLineBorderThickness 2
LifeLineBackgroundColor #dbdbdb
GroupBorderColor #303030
GroupFontColor #303030
GroupHeaderFontColor #FFF
GroupBackgroundColor transparent
GroupBodyBackgroundColor transparent
GroupHeaderBackgroundColor transparent
DividerBackgroundColor #FFF-#fcfcfc
DividerBorderColor #737373
DividerBorderThickness 2
DividerFontColor #303030
ReferenceBackgroundColor transparent
ReferenceBorderColor #737373
ReferenceFontColor #303030
ReferenceHeaderFontColor #336699
}
skinparam partition {
BorderColor #e2e2e2
FontColor #888888
BackgroundColor transparent
}
skinparam collections {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
}
skinparam control {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
}
skinparam entity {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
}
skinparam boundary {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
}
skinparam agent {
BackgroundColor #orange
BorderColor #999999
FontColor #333333
}
skinparam note {
BorderThickness 1
BackgroundColor #5c85ad-#336699
BorderColor #336699
FontColor #FFF
}
skinparam artifact {
BackgroundColor white-#fcfcfc
BorderColor #a8a8a8
FontColor #a8a8a8
}
skinparam component {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
}
skinparam interface {
BackgroundColor #ff5c5c
BorderColor #ff3333
FontColor #303030
}
skinparam storage {
BackgroundColor #ffbe68-#ffae42
BorderColor #ffae42
FontColor #FFF
}
skinparam node {
BackgroundColor transparent
BorderColor #f3f3f3
FontColor #336699
}
skinparam cloud {
BackgroundColor transparent
BorderColor $F2FCFE
FontColor #336699
}
skinparam database {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
BackgroundColor transparent
}
skinparam class {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
HeaderBackgroundColor #f3f3f3-#888888
StereotypeFontColor #303030
StereotypeFontSize 9
BorderThickness 1
AttributeFontColor #303030
AttributeFontSize 11
}
skinparam object {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
StereotypeFontColor #fcfcfc
BorderThickness 1
AttributeFontColor #303030
AttributeFontSize 11
}
skinparam usecase {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
BorderThickness 2
StereotypeFontColor #e2e2e2
}
skinparam rectangle {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
BackgroundColor transparent
BorderThickness 2
StereotypeFontColor #e2e2e2
}
skinparam package {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
BackgroundColor transparent
BorderThickness 2
}
skinparam folder {
BackgroundColor #f3f3f3
BorderColor #ffae42
FontColor #ffae42
BorderThickness 2
}
skinparam frame {
BackgroundColor #f3f3f3
BorderColor #336699
FontColor #336699
BorderThickness 2
}
skinparam state {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
BorderColor #888888
StartColor #336699
EndColor #336699
AttributeFontColor white
AttributeFontSize 11
}
skinparam queue {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
}
skinparam card {
BackgroundColor #5c85ad-#336699
BorderColor #336699
FontColor #FFF
}
skinparam file {
BackgroundColor #dbdbdb-#d2d2d2
BorderColor #a8a8a8
FontColor white
}
skinparam stack {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
}
title Activity Diagram - lightgray 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>