mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-27 07:16:36 +00:00
fix json and yaml
This commit is contained in:
parent
9432e0b1e5
commit
d50aa2e289
@ -1,12 +1,9 @@
|
|||||||
'' NAME = Sunlust
|
'' NAME = "Sunlust"
|
||||||
'' DESCRIPTION = sunlust theme based off of the [solarized theme](https://ethanschoonover.com/solarized)
|
'' DESCRIPTION = "Sunlust theme based off of the [solarized theme](https://ethanschoonover.com/solarized)"
|
||||||
'' AUTHOR = Artem V. Ageev
|
'' AUTHORS = ["Artem V. Ageev"]
|
||||||
'' LICENCE = GPL 3+
|
'' LICENCE = "GPL 3+"
|
||||||
|
|
||||||
!$THEME = 'sunlust'
|
!$THEME = 'sunlust'
|
||||||
!if %not(%variable_exists("$BGCOLOR"))
|
|
||||||
!$BGCOLOR = '#fdf6e3'
|
|
||||||
!endif
|
|
||||||
scale max 2000 * 2000
|
scale max 2000 * 2000
|
||||||
!$colors = {
|
!$colors = {
|
||||||
"font" : "#657b83",
|
"font" : "#657b83",
|
||||||
@ -27,33 +24,71 @@ scale max 2000 * 2000
|
|||||||
!$shapes = {
|
!$shapes = {
|
||||||
"TECHNOLOGY" : {
|
"TECHNOLOGY" : {
|
||||||
"color" : "#859900",
|
"color" : "#859900",
|
||||||
"shapes" : [ "Node", "File"]
|
"shapes" : [
|
||||||
|
"Node",
|
||||||
|
"File",
|
||||||
|
"Artifact",
|
||||||
|
"Circle"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"APPLICATION" : {
|
"APPLICATION" : {
|
||||||
"color" : "#268bd2",
|
"color" : "#268bd2",
|
||||||
"shapes" : [ "Participant", "Rectangle", "Component" ]
|
"shapes" : [
|
||||||
|
"Participant",
|
||||||
|
"Rectangle",
|
||||||
|
"Component",
|
||||||
|
"Hexagon",
|
||||||
|
"Agent"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"BUSINESS" : {
|
"BUSINESS" : {
|
||||||
"color" : "#b58900",
|
"color" : "#b58900",
|
||||||
"shapes" : [ "Actor", "Note", "Hexagon", "Boundary", "Control", "Entity" ]
|
"shapes" : [
|
||||||
|
"Actor",
|
||||||
|
"Note",
|
||||||
|
"Boundary",
|
||||||
|
"Control",
|
||||||
|
"Entity",
|
||||||
|
"Person"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"IMPLEMENTATION" : {
|
"IMPLEMENTATION" : {
|
||||||
"color" : "#dc322f",
|
"color" : "#dc322f",
|
||||||
"shapes" : [ "Class", "Map", "Json" ]
|
"shapes" : [
|
||||||
|
"Class",
|
||||||
|
"Map",
|
||||||
|
"Json",
|
||||||
|
"Package",
|
||||||
|
"Frame",
|
||||||
|
"Interface"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"MOTIVATION" : {
|
"MOTIVATION" : {
|
||||||
"color" : "#6c71c4",
|
"color" : "#6c71c4",
|
||||||
"shapes" : [ "Cloud", "Frame", "Collections", "Database", "Queue" ]
|
"shapes" : [
|
||||||
|
"Cloud",
|
||||||
|
"Collections",
|
||||||
|
"Database",
|
||||||
|
"Queue",
|
||||||
|
"Process",
|
||||||
|
"Stack",
|
||||||
|
"Storage"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"STRATEGY" : {
|
"STRATEGY" : {
|
||||||
"color" : "#STRATEGY",
|
"color" : "#cb4b16",
|
||||||
"shapes" : [ "Partition", "Folder", "Card" ]
|
"shapes" : [
|
||||||
|
"Action",
|
||||||
|
"Partition",
|
||||||
|
"Folder",
|
||||||
|
"Usecase",
|
||||||
|
"Card"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
!$thickness = 2
|
!$thickness = 2
|
||||||
<style>
|
<style>
|
||||||
!foreach $lib in %splitstr('root.wbsDiagram.mindmapDiagram.ganttDiagram.saltDiagram', '.')
|
nwdiagDiagram, wbsDiagram, mindmapDiagram, ganttDiagram, saltDiagram, jsonDiagram, yamlDiagram {
|
||||||
$lib {
|
|
||||||
BackGroundColor $colors.bg
|
BackGroundColor $colors.bg
|
||||||
arrow {
|
arrow {
|
||||||
LineColor $colors.font
|
LineColor $colors.font
|
||||||
@ -71,63 +106,45 @@ scale max 2000 * 2000
|
|||||||
LineColor $colors.red
|
LineColor $colors.red
|
||||||
BackGroundColor $colors.red_bg
|
BackGroundColor $colors.red_bg
|
||||||
}
|
}
|
||||||
}
|
|
||||||
!endfor
|
|
||||||
</style>
|
|
||||||
skinparam {
|
|
||||||
noteTextAlignment left
|
|
||||||
actorStyle awesome
|
|
||||||
Dpi 100
|
|
||||||
Shadowing false
|
|
||||||
BackgroundColor $colors.bg
|
|
||||||
WrapWidth 200
|
|
||||||
RoundCorner 15
|
|
||||||
Swimlane {
|
|
||||||
BorderColor $colors.font
|
|
||||||
Thickness $thickness
|
|
||||||
WrapTitleWidth 150
|
|
||||||
}
|
|
||||||
Arrow {
|
|
||||||
Color $colors.font
|
|
||||||
Thickness $thickness
|
|
||||||
}
|
|
||||||
Default {
|
|
||||||
TextAlignment center
|
|
||||||
FontName Dejavu Serif
|
|
||||||
}
|
|
||||||
Legend {
|
|
||||||
FontName VL Gothic
|
|
||||||
BorderColor transparent
|
|
||||||
BackgroundColor transparent
|
|
||||||
}
|
|
||||||
Sequence {
|
|
||||||
MessageAlign direction
|
|
||||||
ArrowThickness $thickness
|
|
||||||
LifeLineBorderColor $colors.yellow
|
|
||||||
BoxBorderThickness $thickness
|
|
||||||
}
|
|
||||||
!foreach $shape in %splitstr('Activity.State', '.')
|
|
||||||
$shape {
|
|
||||||
BackgroundColor transparent
|
|
||||||
Border {
|
|
||||||
Color $colors.violet
|
|
||||||
Thickness $thickness
|
|
||||||
}
|
|
||||||
Diamond {
|
|
||||||
BorderColor $colors.red
|
|
||||||
BackgroundColor transparent
|
|
||||||
}
|
|
||||||
}
|
|
||||||
!endfor
|
|
||||||
!foreach $key in %get_json_keys($shapes)
|
|
||||||
!foreach $shape in $shapes[$key].shapes
|
|
||||||
$shape {
|
|
||||||
BackgroundColor #$key
|
|
||||||
Border {
|
|
||||||
Color $shapes[$key].color
|
|
||||||
Thickness $thickness
|
|
||||||
}
|
|
||||||
}
|
|
||||||
!endfor
|
|
||||||
!endfor
|
|
||||||
}
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
skinparam noteTextAlignment left
|
||||||
|
skinparam actorStyle awesome
|
||||||
|
skinparam Dpi 100
|
||||||
|
skinparam Shadowing false
|
||||||
|
skinparam BackgroundColor $colors.bg
|
||||||
|
skinparam WrapWidth 200
|
||||||
|
skinparam RoundCorner 15
|
||||||
|
skinparam SwimlaneBorderColor $colors.font
|
||||||
|
skinparam SwimlaneThickness $thickness
|
||||||
|
skinparam SwimlaneWrapTitleWidth 150
|
||||||
|
skinparam ArrowColor $colors.font
|
||||||
|
skinparam ArrowThickness $thickness
|
||||||
|
skinparam DefaultTextAlignment center
|
||||||
|
skinparam DefaultFontName Dejavu Serif
|
||||||
|
skinparam LegendFontName VL Gothic
|
||||||
|
skinparam LegendBorderColor transparent
|
||||||
|
skinparam LegendBackgroundColor transparent
|
||||||
|
skinparam SequenceMessageAlign direction
|
||||||
|
skinparam SequenceArrowThickness $thickness
|
||||||
|
skinparam SequenceLifeLineBorderColor $colors.yellow
|
||||||
|
skinparam SequenceBoxBorderThickness $thickness
|
||||||
|
!foreach $shape in %splitstr('Activity.State', '.')
|
||||||
|
skinparam $shape {
|
||||||
|
BackgroundColor transparent
|
||||||
|
BorderColor $colors.violet
|
||||||
|
BorderThickness $thickness
|
||||||
|
DiamondBorderColor $colors.red
|
||||||
|
DiamondBackgroundColor transparent
|
||||||
|
}
|
||||||
|
!endfor
|
||||||
|
!foreach $key in %get_json_keys($shapes)
|
||||||
|
!foreach $shape in $shapes[$key].shapes
|
||||||
|
skinparam $shape {
|
||||||
|
BackgroundColor #$key
|
||||||
|
BorderColor $shapes[$key].color
|
||||||
|
BorderThickness $thickness
|
||||||
|
}
|
||||||
|
!endfor
|
||||||
|
!endfor
|
||||||
|
Loading…
Reference in New Issue
Block a user