Skip to content

Commit 997932b

Browse files
committed
Fix broken background in PlantUML WBS diagrams
In newer PlantUML versions, BackgroundColor at the wbsDiagram {} level sets the diagram canvas background instead of the default node background. Move BackgroundColor (and RoundCorner) into node {} blocks so they correctly apply to nodes rather than the diagram canvas.
1 parent 14afa54 commit 997932b

File tree

1 file changed

+29
-22
lines changed

1 file changed

+29
-22
lines changed

docs/parallel_execution.adoc

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,9 @@ scale 2
9898
<style>
9999
wbsDiagram {
100100
101-
BackgroundColor #88CCEE
102-
RoundCorner 10
103-
104101
node {
102+
BackgroundColor #88CCEE
103+
RoundCorner 10
105104
:depth(0) {
106105
BackgroundColor #DDCC77
107106
RoundCorner 0
@@ -168,7 +167,9 @@ skinparam shadowing false
168167
@startwbs
169168
<style>
170169
wbsDiagram {
171-
BackgroundColor #DDCC77
170+
node {
171+
BackgroundColor #DDCC77
172+
}
172173
}
173174
</style>
174175
skinparam shadowing false
@@ -193,8 +194,8 @@ skinparam shadowing false
193194
@startwbs
194195
<style>
195196
wbsDiagram {
196-
BackgroundColor #DDCC77
197197
node {
198+
BackgroundColor #DDCC77
198199
:depth(1) {
199200
BackgroundColor #88CCEE
200201
RoundCorner 10
@@ -225,8 +226,8 @@ skinparam shadowing false
225226
@startwbs
226227
<style>
227228
wbsDiagram {
228-
BackgroundColor #DDCC77
229229
node {
230+
BackgroundColor #DDCC77
230231
:depth(2) {
231232
BackgroundColor #88CCEE
232233
RoundCorner 10
@@ -262,8 +263,8 @@ The features inside a specification will run concurrently.
262263
@startwbs
263264
<style>
264265
wbsDiagram {
265-
BackgroundColor #DDCC77
266266
node {
267+
BackgroundColor #DDCC77
267268
:depth(1) {
268269
BackgroundColor #88CCEE
269270
RoundCorner 10
@@ -311,7 +312,9 @@ If you invert the values `SAME_THREAD` and `CONCURRENT` in these examples you wi
311312
@startwbs
312313
<style>
313314
wbsDiagram {
314-
BackgroundColor #DDCC77
315+
node {
316+
BackgroundColor #DDCC77
317+
}
315318
.concurrent * {
316319
BackgroundColor #88CCEE
317320
RoundCorner 10
@@ -340,7 +343,9 @@ In <<figure-execution-hierarchy-inheritance-feature-execution>> `@Execution` is
340343
@startwbs
341344
<style>
342345
wbsDiagram {
343-
BackgroundColor #DDCC77
346+
node {
347+
BackgroundColor #DDCC77
348+
}
344349
.concurrent * {
345350
BackgroundColor #88CCEE
346351
RoundCorner 10
@@ -370,7 +375,9 @@ The features execute concurrently since they inherit the explicit execution mode
370375
@startwbs
371376
<style>
372377
wbsDiagram {
373-
BackgroundColor #DDCC77
378+
node {
379+
BackgroundColor #DDCC77
380+
}
374381
.concurrent * {
375382
BackgroundColor #88CCEE
376383
RoundCorner 10
@@ -426,9 +433,9 @@ Certain <<extensions.adoc#extensions, extensions>> also set implicit locks when
426433
@startwbs
427434
<style>
428435
wbsDiagram {
429-
BackgroundColor #88CCEE
430-
RoundCorner 10
431436
node {
437+
BackgroundColor #88CCEE
438+
RoundCorner 10
432439
:depth(0) {
433440
BackgroundColor #DDCC77
434441
RoundCorner 0
@@ -469,9 +476,9 @@ However, if the parent node has only `READ` locks, then it allows parallel execu
469476
@startwbs
470477
<style>
471478
wbsDiagram {
472-
BackgroundColor #88CCEE
473-
RoundCorner 10
474479
node {
480+
BackgroundColor #88CCEE
481+
RoundCorner 10
475482
:depth(0) {
476483
BackgroundColor #DDCC77
477484
RoundCorner 0
@@ -519,9 +526,9 @@ skinparam shadowing false
519526
@startwbs
520527
<style>
521528
wbsDiagram {
522-
BackgroundColor #88CCEE
523-
RoundCorner 10
524529
node {
530+
BackgroundColor #88CCEE
531+
RoundCorner 10
525532
:depth(0) {
526533
BackgroundColor #DDCC77
527534
RoundCorner 0
@@ -577,9 +584,9 @@ If the features both had `READ_WRITE` and `READ` locks for the same resource, th
577584
@startwbs
578585
<style>
579586
wbsDiagram {
580-
BackgroundColor #88CCEE
581-
RoundCorner 10
582587
node {
588+
BackgroundColor #88CCEE
589+
RoundCorner 10
583590
:depth(0) {
584591
BackgroundColor #DDCC77
585592
RoundCorner 0
@@ -614,9 +621,9 @@ skinparam shadowing false
614621
@startwbs
615622
<style>
616623
wbsDiagram {
617-
BackgroundColor #88CCEE
618-
RoundCorner 10
619624
node {
625+
BackgroundColor #88CCEE
626+
RoundCorner 10
620627
:depth(0) {
621628
BackgroundColor #DDCC77
622629
RoundCorner 0
@@ -662,9 +669,9 @@ you might want to consider splitting the spec into `@Isolated` and non isolated.
662669
@startwbs
663670
<style>
664671
wbsDiagram {
665-
BackgroundColor #88CCEE
666-
RoundCorner 10
667672
node {
673+
BackgroundColor #88CCEE
674+
RoundCorner 10
668675
:depth(0) {
669676
BackgroundColor #DDCC77
670677
RoundCorner 0

0 commit comments

Comments
 (0)