demo_doc/puml/sketchy-outline/swimlane-ex.svg

787 lines
42 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="488.5417px" preserveAspectRatio="none" style="width:593px;height:488px;background:#00000000;" version="1.1" viewBox="0 0 593 488" width="593.75px" zoomAndPan="magnify"><defs/><g><polygon points="15.625,11.4583,15.625,11.6773,25.9934,11.0267,36.3619,11.6597,46.7303,11.8747,57.0988,10.7152,67.4672,11.3774,77.8356,11.0141,88.2041,11.0589,98.5725,11.3873,108.941,10.7382,119.3094,12.035,129.6779,10.8018,140.0463,11.2523,150.4147,11.9083,160.7832,11.369,171.1516,11.5294,181.5201,11.4251,191.8885,11.6443,202.2569,11.7074,212.6254,12.0684,222.9938,12.1573,233.3623,12.1659,243.7307,11.7236,254.0992,11.9412,264.4676,12.1898,274.836,10.7071,285.2045,12.1651,295.5729,11.1495,305.9414,12.0144,316.3098,10.9427,326.6782,11.387,337.0467,12.2308,347.4151,11.4076,357.7836,11.568,368.152,11.8111,378.5204,11.8919,388.8889,11.4543,399.2573,11.7575,409.6258,10.8621,419.9942,11.7546,430.3627,12.0294,440.7311,11.9214,451.0995,12.0969,461.468,10.9551,471.8364,10.779,482.2049,10.811,492.5733,11.397,502.9417,11.2536,513.3102,12.1681,523.6786,11.2764,534.0471,11.101,544.4155,11.6961,554.784,10.7637,565.1524,10.9176,575.5208,11.4583,575.7462,11.4583,575.6721,16.4518,575.7759,21.4453,575.4091,26.4388,575.6317,31.4323,575.5208,36.4258,575.5208,37.0408,565.1524,35.9337,554.784,36.3259,544.4155,36.557,534.0471,37.1047,523.6786,36.4214,513.3102,36.9076,502.9417,35.8489,492.5733,35.7203,482.2049,36.9504,471.8364,35.679,461.468,36.956,451.0995,36.641,440.7311,36.1467,430.3627,36.0573,419.9942,36.9037,409.6258,36.114,399.2573,37.0423,388.8889,35.85,378.5204,37.0689,368.152,36.9303,357.7836,36.681,347.4151,36.475,337.0467,37.1827,326.6782,37.0649,316.3098,36.6021,305.9414,36.7051,295.5729,36.2901,285.2045,37.1721,274.836,36.5871,264.4676,36.6055,254.0992,35.7921,243.7307,36.0037,233.3623,36.9786,222.9938,36.8734,212.6254,36.3811,202.2569,36.0902,191.8885,36.1977,181.5201,35.711,171.1516,36.8578,160.7832,37.1962,150.4147,36.9741,140.0463,37.1497,129.6779,36.2834,119.3094,36.5166,108.941,36.022,98.5725,36.7217,88.2041,36.6828,77.8356,37.0012,67.4672,36.1866,57.0988,36.2858,46.7303,36.8877,36.3619,37.0168,25.9934,35.8919,15.625,36.4258,15.5577,36.4258,15.6768,31.4323,15.4129,26.4388,15.7477,21.4453,15.7146,16.4518,15.625,11.4583" style="stroke:#00000000;stroke-width:1.0416666666666667;fill:none;"/><polygon fill="#17A2B8" points="156.3075,54.5845,154.7806,56.6708,152.9746,59.7266,150.3917,61.786,147.6774,62.9122,145.5133,63.0099,142.7317,61.6015,140.1072,60.6814,138.1151,58.8133,137.0701,56.6746,136.4504,54.9717,135.8433,52.7475,134.8579,50.8334,135.6152,48.9646,136.2786,46.9175,138.7683,45.2984,140.5199,43.1977,142.6879,42.5001,145.2653,41.8993,148.5705,42.2562,150.3808,43.11,152.4855,43.497,155.0447,46.1189,155.9368,48.8869,156.3244,50.7755,155.8854,53.8878" style="stroke:none;stroke-width:1.0416666666666667;"/><polygon points="121.3542,83.3008,121.3542,83.5197,131.1458,82.8692,140.9375,83.5021,150.7292,83.7171,160.5208,82.5577,170.3125,83.3008,170.2934,83.2817,172.7078,85.6961,175.2183,88.2066,177.7958,90.784,180.1428,93.131,182.8125,95.8008,182.9484,95.9367,180.1578,98.146,177.7639,100.7522,175.4186,103.4068,172.7914,105.7797,170.3125,108.3008,170.3125,108.3719,160.5208,108.2675,150.7292,108.4867,140.9375,108.5499,131.1458,108.9109,121.3542,108.3008,121.5189,108.4655,119.0209,105.9676,116.4167,103.3633,113.968,100.9146,111.5266,98.4732,108.8542,95.8008,108.6771,95.6237,111.5208,93.4674,113.7814,90.728,116.4852,88.4318,118.7326,85.6792,121.3542,83.3008" style="stroke:#4D4D4D;stroke-width:1.5625;fill:none;"/><text fill="#2E2E2E" font-family="Segoe Print" font-size="12.5" lengthAdjust="spacing" textLength="38.5417" x="126.5625" y="100.1282">color?</text><text fill="#2E2E2E" font-family="Segoe Print" font-size="12.5" lengthAdjust="spacing" textLength="21.875" x="81.7708" y="87.6444">red</text><text fill="#2E2E2E" font-family="Segoe Print" font-size=
@startuml
!$THEME = "sketchy-outline"
!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 = "#2e2e2e"
!$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 $BGCOLOR
!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 $BGCOLOR
CBorderColor $SECONDARY_DARK
ABackgroundColor $BGCOLOR
ABorderColor $SUCCESS_DARK
IBackgroundColor $BGCOLOR
IBorderColor $DANGER_DARK
EBackgroundColor $BGCOLOR
EBorderColor $WARNING_DARK
NBackgroundColor $BGCOLOR
NBorderColor $INFO_DARK
}
skinparam title {
FontColor $PRIMARY_TEXT
BorderColor $SECONDARY_DARK
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor $BGCOLOR
}
skinparam legend {
BackgroundColor $BGCOLOR
BorderColor $SECONDARY_DARK
FontColor $PRIMARY_TEXT
}
!startsub swimlane
skinparam swimlane {
BorderColor $INFO
BorderThickness 2
TitleBackgroundColor $BGCOLOR
TitleFontColor $PRIMARY_TEXT
}
!endsub
!startsub activity
skinparam activity {
$primary_scheme()
BarColor $SUCCESS
StartColor $INFO
EndColor $INFO
DiamondBackgroundColor $BGCOLOR
DiamondBorderColor $SECONDARY_DARK
DiamondFontColor $PRIMARY_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 $PRIMARY_TEXT
}
!endsub
!startsub sequence
skinparam sequence {
BorderColor $PRIMARY
TitleFontColor $PRIMARY_TEXT
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
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 $BGCOLOR
BorderColor $DARK_DARK
FontColor $DARK_DARK
}
!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_DARK
FontColor $WARNING_DARK
}
!endsub
!startsub node
skinparam node {
BackgroundColor $BGCOLOR
BorderColor $LIGHT
FontColor $LIGHT
}
!endsub
!startsub cloud
skinparam cloud {
BackgroundColor transparent
BorderColor #F2FCFE
FontColor $PRIMARY_TEXT
}
!endsub
!startsub database
skinparam database {
$primary_scheme()
}
!endsub
!startsub class
skinparam class {
$primary_scheme()
HeaderBackgroundColor $BGCOLOR
StereotypeFontColor $DARK
BorderThickness 1
AttributeFontColor $DARK
AttributeFontSize 11
}
!endsub
!startsub object
skinparam object {
$primary_scheme()
StereotypeFontColor $PRIMARY_TEXT
BorderThickness 1
AttributeFontColor $PRIMARY_TEXT
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_DARK
FontColor $INFO_DARK
}
!endsub
!startsub file
skinparam file {
BackgroundColor $BGCOLOR
BorderColor $LIGHT
FontColor $LIGHT
}
!endsub
!startsub stack
skinparam stack {
$primary_scheme()
}
!endsub
|Actor_For_red|
start
if (color?) is (red) then
:**action red**;
:foo1;
else (not red)
|Actor_For_no_red|
:**action not red**;
:foo2;
endif
|Next_Actor|
:foo3;
:foo4;
|Final_Actor|
: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 transparent
CBorderColor #4d4d4d
ABackgroundColor transparent
ABorderColor #24963e
IBackgroundColor transparent
IBorderColor #c6303e
EBackgroundColor transparent
EBorderColor #e6ae06
NBackgroundColor transparent
NBorderColor #1592a6
}
skinparam title {
FontColor #2e2e2e
BorderColor #4d4d4d
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor transparent
}
skinparam legend {
BackgroundColor transparent
BorderColor #4d4d4d
FontColor #2e2e2e
}
skinparam swimlane {
BorderColor #17a2b8
BorderThickness 2
TitleBackgroundColor transparent
TitleFontColor #2e2e2e
}
skinparam activity {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
BarColor #28a745
StartColor #17a2b8
EndColor #17a2b8
DiamondBackgroundColor transparent
DiamondBorderColor #4d4d4d
DiamondFontColor #2e2e2e
}
skinparam participant {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
ParticipantBorderThickness 2
}
skinparam actor {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
}
skinparam arrow {
Thickness 3
Color #333333
FontColor #2e2e2e
}
skinparam sequence {
BorderColor #333333
TitleFontColor #2e2e2e
BackgroundColor transparent
StartColor #333333
EndColor #333333
BoxBackgroundColor transparent
BoxBorderColor #555555
BoxFontColor #555555
LifeLineBorderColor #555555
LifeLineBorderThickness 2
LifeLineBackgroundColor #4d4d4d
GroupBorderColor #555555
GroupFontColor #555555
GroupHeaderFontColor #17a2b8
GroupBackgroundColor #555555
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 #2e2e2e
BorderColor #333333
BackgroundColor transparent
}
skinparam control {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
}
skinparam entity {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
}
skinparam boundary {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
}
skinparam agent {
BackgroundColor #ffc107
BorderColor #ffc720
FontColor #555555
}
skinparam note {
BorderThickness 1
BackgroundColor #17a2b8
BorderColor #1592a6
FontColor #ffffff
}
skinparam artifact {
BackgroundColor transparent
BorderColor #4d4d4d
FontColor #4d4d4d
}
skinparam component {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
}
skinparam interface {
BackgroundColor transparent
BorderColor #dc3545
FontColor #555555
}
skinparam storage {
BackgroundColor transparent
BorderColor #e6ae06
FontColor #e6ae06
}
skinparam node {
BackgroundColor transparent
BorderColor #ffffff
FontColor #ffffff
}
skinparam cloud {
BackgroundColor transparent
BorderColor #F2FCFE
FontColor #2e2e2e
}
skinparam database {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
}
skinparam class {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
HeaderBackgroundColor transparent
StereotypeFontColor #555555
BorderThickness 1
AttributeFontColor #555555
AttributeFontSize 11
}
skinparam object {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
StereotypeFontColor #2e2e2e
BorderThickness 1
AttributeFontColor #2e2e2e
AttributeFontSize 11
}
skinparam usecase {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
BorderThickness 2
StereotypeFontColor #333333
}
skinparam rectangle {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
BorderThickness 2
StereotypeFontColor #333333
}
skinparam package {
BackgroundColor transparent
BorderColor #333333
FontColor #333333
BorderThickness 2
}
skinparam folder {
BackgroundColor transparent
BorderColor #ffc107
FontColor #ffc107
BorderThickness 2
}
skinparam frame {
BackgroundColor transparent
BorderColor #17a2b8
FontColor #17a2b8
BorderThickness 2
}
skinparam state {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
StartColor #17a2b8
EndColor #17a2b8
AttributeFontColor #ffffff
AttributeFontSize 11
}
skinparam queue {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
}
skinparam card {
BackgroundColor transparent
BorderColor #1592a6
FontColor #1592a6
}
skinparam file {
BackgroundColor transparent
BorderColor #ffffff
FontColor #ffffff
}
skinparam stack {
FontColor #2e2e2e
BorderColor #333333
BackgroundColor transparent
}
|Actor_For_red|
start
if (color?) is (red) then
:**action red**;
:foo1;
else (not red)
|Actor_For_no_red|
:**action not red**;
:foo2;
endif
|Next_Actor|
:foo3;
:foo4;
|Final_Actor|
: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>